summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2004-01-28 09:21:42 +0000
committerMichael Januszewski <spock@gentoo.org>2004-01-28 09:21:42 +0000
commit55c0e186ddaba33f86c7d83dc2bc49bfbc6bb82d (patch)
tree864a45cef5394e426d0b73a5b515293d0d2ece9e /sys-kernel/usermode-sources
parentVersion bump. (Manifest recommit) (diff)
downloadgentoo-2-55c0e186ddaba33f86c7d83dc2bc49bfbc6bb82d.tar.gz
gentoo-2-55c0e186ddaba33f86c7d83dc2bc49bfbc6bb82d.tar.bz2
gentoo-2-55c0e186ddaba33f86c7d83dc2bc49bfbc6bb82d.zip
Version bump.
Diffstat (limited to 'sys-kernel/usermode-sources')
-rw-r--r--sys-kernel/usermode-sources/ChangeLog8
-rw-r--r--sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.1-r12
-rw-r--r--sys-kernel/usermode-sources/usermode-sources-2.6.1-r1.ebuild61
3 files changed, 70 insertions, 1 deletions
diff --git a/sys-kernel/usermode-sources/ChangeLog b/sys-kernel/usermode-sources/ChangeLog
index a1e7716a8b8e..90eefbcdb3b5 100644
--- a/sys-kernel/usermode-sources/ChangeLog
+++ b/sys-kernel/usermode-sources/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-kernel/usermode-sources
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/ChangeLog,v 1.24 2004/01/28 08:50:27 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/ChangeLog,v 1.25 2004/01/28 09:21:42 spock Exp $
+
+*usermode-sources-2.6.1-r1 (28 Jan 2004)
+
+ 28 Jan 2004; Michal Januszewski <spock@gentoo.org>
+ usermode-sources-2.6.1-r1.ebuild:
+ Version bump.
*usermode-sources-2.4.23-r2 (28 Jan 2004)
diff --git a/sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.1-r1 b/sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.1-r1
new file mode 100644
index 000000000000..d9fd020ff9af
--- /dev/null
+++ b/sys-kernel/usermode-sources/files/digest-usermode-sources-2.6.1-r1
@@ -0,0 +1,2 @@
+MD5 fa82d1e4be518261b2eeb78eabf9cca7 linux-2.6.1.tar.bz2 33240033
+MD5 2252eb7106624fe5fc9e77159d369c78 uml-patch-2.6.1-1.bz2 96069
diff --git a/sys-kernel/usermode-sources/usermode-sources-2.6.1-r1.ebuild b/sys-kernel/usermode-sources/usermode-sources-2.6.1-r1.ebuild
new file mode 100644
index 000000000000..8afee9eed86d
--- /dev/null
+++ b/sys-kernel/usermode-sources/usermode-sources-2.6.1-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/usermode-sources/usermode-sources-2.6.1-r1.ebuild,v 1.1 2004/01/28 09:21:42 spock Exp $
+
+ETYPE="sources"
+inherit kernel
+
+UML_PATCH="uml-patch-2.6.1-1"
+
+# we patch against vanilla-sources only
+DESCRIPTION="Full (vanilla) sources for the User Mode Linux kernel"
+SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${PV}.tar.bz2
+mirror://sourceforge/user-mode-linux/${UML_PATCH}.bz2"
+HOMEPAGE="http://www.kernel.org/ http://user-mode-linux.sourceforge.net"
+LICENSE="GPL-2"
+SLOT="${PV}"
+KEYWORDS="x86"
+EXTRAVERSION=${PR}
+
+# console-tools is needed to solve the loadkeys fiasco.
+# binutils version needed to avoid Athlon/PIII/SSE assembler bugs.
+DEPEND=">=sys-devel/binutils-2.11.90.0.31 dev-lang/perl"
+RDEPEND=">=sys-libs/ncurses-5.2"
+
+S=${WORKDIR}/linux-${PV}
+
+src_unpack() {
+ # unpack vanilla sources
+ cd ${WORKDIR}
+ unpack linux-${PV}.tar.bz2
+
+ # apply usermode patch
+ cd ${S}
+ epatch ${DISTDIR}/${UML_PATCH}.bz2
+
+ kernel_universal_unpack
+}
+
+src_compile() {
+ true
+}
+
+src_install() {
+ mkdir -p ${D}/usr/src/uml
+
+ # fix silly permissions in tarball
+ cd ${WORKDIR}
+ chown -R root:root *
+ chmod -R a+r-w+X,u+w *
+
+ mv linux-${PV} ${D}/usr/src/uml/
+}
+
+pkg_postinst() {
+ # create linux symlink
+ if [ ! -e ${ROOT}usr/src/uml/linux ]
+ then
+ rm -f ${ROOT}usr/src/uml/linux
+ ln -sf ${ROOT}usr/src/uml/linux-${PV} ${ROOT}usr/src/uml/linux
+ fi
+}