summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-07-16 17:40:49 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-07-16 17:40:49 +0000
commit3b60fe7cc006968c7f50be26127b1debc26877be (patch)
treec26a032a10f59301ce01b1a94f586951db051928 /sys-kernel
parentFew changes to vars and stuff for 2.6 and forward support (diff)
downloadgentoo-2-3b60fe7cc006968c7f50be26127b1debc26877be.tar.gz
gentoo-2-3b60fe7cc006968c7f50be26127b1debc26877be.tar.bz2
gentoo-2-3b60fe7cc006968c7f50be26127b1debc26877be.zip
Use kernel.eclass now
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/mm-sources/Manifest2
-rw-r--r--sys-kernel/mm-sources/mm-sources-2.6.0_beta1-r1.ebuild92
2 files changed, 16 insertions, 78 deletions
diff --git a/sys-kernel/mm-sources/Manifest b/sys-kernel/mm-sources/Manifest
index 0558d8b58b59..c5594c65909d 100644
--- a/sys-kernel/mm-sources/Manifest
+++ b/sys-kernel/mm-sources/Manifest
@@ -1,6 +1,6 @@
MD5 8c8e886fd53d80e668deedfa5e48147f mm-sources-2.5.74-r1.ebuild 2701
MD5 ece2eca96d8d1148ca5271b8d1812e59 mm-sources-2.5.74-r3.ebuild 2701
-MD5 e921ab52dc151188fbffd2f37c1c47db mm-sources-2.6.0_beta1-r1.ebuild 2774
+MD5 ded670325f24cb5a799f012c450ecf35 mm-sources-2.6.0_beta1-r1.ebuild 1099
MD5 2c81d4ac92ff6eaa1ac7e3b0f926d869 mm-sources-2.5.74-r2.ebuild 2703
MD5 8df46b5d523c7e2f9438574a17be29fd ChangeLog 8447
MD5 f5051bf46b0cb3f14a41e4d668dd041d mm-sources-2.5.75-r1.ebuild 2703
diff --git a/sys-kernel/mm-sources/mm-sources-2.6.0_beta1-r1.ebuild b/sys-kernel/mm-sources/mm-sources-2.6.0_beta1-r1.ebuild
index b5c3648428f3..bcd22a0019ae 100644
--- a/sys-kernel/mm-sources/mm-sources-2.6.0_beta1-r1.ebuild
+++ b/sys-kernel/mm-sources/mm-sources-2.6.0_beta1-r1.ebuild
@@ -1,41 +1,29 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mm-sources/mm-sources-2.6.0_beta1-r1.ebuild,v 1.1 2003/07/16 12:14:53 latexer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mm-sources/mm-sources-2.6.0_beta1-r1.ebuild,v 1.2 2003/07/16 17:40:44 lostlogic Exp $
#OKV=original kernel version, KV=patched kernel version. They can be the same.
-inherit eutils
-
-MY_PV=${PV/_beta/-test}
-MY_PVR=${PVR/_beta/-test}
-OKV=${MY_PV}
-KV=${MY_PVR/r/mm}
-S=${WORKDIR}/linux-${KV}
ETYPE="sources"
+OKV=${PV/_beta/-test}
+
+EXTRAVERSION="`echo ${OKV}-${PR/r/mm} | \
+ sed -e 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\)/\1/'`"
+
+KV=${OKV}-${PR/r/mm}
+
+inherit kernel
+
# What's in this kernel?
# INCLUDED:
# The development branch of the linux kernel with Andrew Morton's patch
DESCRIPTION="Full sources for the development linux kernel with Andrew Morton's patchset"
-SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2 ${PATCH_URI}
-mirror://kernel/linux/kernel/people/akpm/patches/2.6/${MY_PV}/${MY_PVR/r/mm}/${MY_PVR/r/mm}.bz2"
-PROVIDE="virtual/linux-sources"
-HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/"
-LICENSE="GPL-2"
-SLOT="${KV}"
+SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${PV/_beta/-test}.tar.bz2
+mirror://kernel/linux/kernel/people/akpm/patches/2.6/${PV/_beta/-test}/${KV}/${KV}.bz2"
KEYWORDS="x86 ppc"
-
-if [ $ETYPE = "sources" ] && [ -z "`use build`" ]
-then
- #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
- >=sys-apps/sed-4"
- RDEPEND=">=sys-libs/ncurses-5.2 dev-lang/perl
- sys-devel/make"
-fi
-
-[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
+SLOT=${KV}
src_unpack() {
cd ${WORKDIR}
@@ -43,59 +31,9 @@ src_unpack() {
mv linux-${OKV} linux-${KV}
cd ${S}
- bzcat ${DISTDIR}/${MY_PVR/r/mm}.bz2 | patch -p1 || die "mm patch failed"
- sed -i -e "s:^EXTRAVERSION.*$:EXTRAVERSION = -${PR/r/mm}:" Makefile
+ bzcat ${DISTDIR}/${KV}.bz2 | patch -p1 || die "mm patch failed"
- #sometimes we have icky kernel symbols; this seems to get rid of them
- # ARCH is used differently in the makefiles now, and this seems to fix things
unset ARCH
- make mrproper || die
-
- #fix silly permissions in tarball
- cd ${WORKDIR}
- chown -R 0.0 *
- chmod -R a+r-w+X,u+w *
-
-}
-
-src_compile() {
- if [ "$ETYPE" = "headers" ]
- then
- yes "" | make oldconfig
- echo "Ignore any errors from the yes command above."
- fi
-}
-
-src_install() {
- if [ "$ETYPE" = "sources" ]
- then
- dodir /usr/src
- echo ">>> Copying sources..."
- mv ${WORKDIR}/* ${D}/usr/src
- else
- #linux-headers
- dodir /usr/include/linux
- cp -ax ${S}/include/linux/* ${D}/usr/include/linux
- rm -rf ${D}/usr/include/linux/modules
- dodir /usr/include/asm
- cp -ax ${S}/include/asm-i386/* ${D}/usr/include/asm
- fi
-}
-
-pkg_preinst() {
- if [ "$ETYPE" = "headers" ]
- then
- [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux
- [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm
- true
- fi
-}
-
-pkg_postinst() {
- [ "$ETYPE" = "headers" ] && return
- if [ ! -e ${ROOT}usr/src/linux-beta ]
- then
+ kernel_universal_unpack
- ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta
- fi
}