diff options
author | 2003-02-25 21:08:59 +0000 | |
---|---|---|
committer | 2003-02-25 21:08:59 +0000 | |
commit | e9153826021de16a4ca119840c24633d25f129b7 (patch) | |
tree | f3cc42e5b372ec3d60581722866c287c914dd977 /sys-kernel/mm-sources | |
parent | corrected bug nr (diff) | |
download | historical-e9153826021de16a4ca119840c24633d25f129b7.tar.gz historical-e9153826021de16a4ca119840c24633d25f129b7.tar.bz2 historical-e9153826021de16a4ca119840c24633d25f129b7.zip |
move akpm's patches to his own sources dir...
Diffstat (limited to 'sys-kernel/mm-sources')
13 files changed, 649 insertions, 0 deletions
diff --git a/sys-kernel/mm-sources/ChangeLog b/sys-kernel/mm-sources/ChangeLog new file mode 100644 index 000000000000..eeb48eaeb493 --- /dev/null +++ b/sys-kernel/mm-sources/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for sys-kernel/mm-sources +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mm-sources/ChangeLog,v 1.1 2003/02/25 21:08:59 lostlogic Exp $ + + 25 Feb 2003; Brandon Low <lostlogic@gentoo.org> *-r[0-9].ebuild, + digest-*-r[0-9]: + Move all of the mm patchsets here from development-sources. diff --git a/sys-kernel/mm-sources/development-sources-2.5.60-r1.ebuild b/sys-kernel/mm-sources/development-sources-2.5.60-r1.ebuild new file mode 100644 index 000000000000..45fd0135161d --- /dev/null +++ b/sys-kernel/mm-sources/development-sources-2.5.60-r1.ebuild @@ -0,0 +1,105 @@ +# 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/development-sources-2.5.60-r1.ebuild,v 1.1 2003/02/25 21:08:59 lostlogic Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +#we use this next variable to avoid duplicating stuff on cvs +GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files +OKV=${PV} +if [ "${PR}" != "r0" ]; then + PATCH_URI="http://www.zipworld.com.au/~akpm/linux/patches/2.5/${PV}/${PVR/r/mm}/${PVR/r/mm}.gz" +fi +KV=${PVR/r/mm} +S=${WORKDIR}/linux-${KV} +ETYPE="sources" + +# What's in this kernel? + +# INCLUDED: +# beta 2.5.59 kernel sources with the -mm1 patch. + +DESCRIPTION="Full sources for the Gentoo Linux kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.5/linux-${OKV}.tar.bz2 ${PATCH_URI}" +PROVIDE="virtual/linux-sources" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" +LICENSE="GPL-2" +SLOT="${KV}" +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" + RDEPEND=">=sys-libs/ncurses-5.2 sys-devel/perl + sys-devel/make" +fi + +[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include" + +src_unpack() { + cd ${WORKDIR} + unpack linux-${OKV}.tar.bz2 + + if [ "${PATCH_URI}" ]; then + mv linux-${OKV} linux-${KV} + cd ${S} + zcat ${DISTDIR}/${PVR/r/mm}.gz | patch -p1 -l || \ + die "akpm patch application failure" + sed -e "s:^EXTRAVERSION.*$:EXTRAVERSION = -${PR/r/mm}:" \ + Makefile > Makefile.new + mv Makefile.new Makefile + else + cd ${S} + fi + + #sometimes we have icky kernel symbols; this seems to get rid of them + 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 + + ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta + fi +} diff --git a/sys-kernel/mm-sources/development-sources-2.5.60-r2.ebuild b/sys-kernel/mm-sources/development-sources-2.5.60-r2.ebuild new file mode 100644 index 000000000000..f5a1e0808ffa --- /dev/null +++ b/sys-kernel/mm-sources/development-sources-2.5.60-r2.ebuild @@ -0,0 +1,105 @@ +# 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/development-sources-2.5.60-r2.ebuild,v 1.1 2003/02/25 21:08:59 lostlogic Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +#we use this next variable to avoid duplicating stuff on cvs +GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files +OKV=${PV} +if [ "${PR}" != "r0" ]; then + PATCH_URI="http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/${PV}/${PVR/r/mm}/${PVR/r/mm}.gz" +fi +KV=${PVR/r/mm} +S=${WORKDIR}/linux-${KV} +ETYPE="sources" + +# What's in this kernel? + +# INCLUDED: +# beta 2.5.59 kernel sources with the -mm1 patch. + +DESCRIPTION="Full sources for the Gentoo Linux kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.5/linux-${OKV}.tar.bz2 ${PATCH_URI}" +PROVIDE="virtual/linux-sources" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" +LICENSE="GPL-2" +SLOT="${KV}" +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" + RDEPEND=">=sys-libs/ncurses-5.2 sys-devel/perl + sys-devel/make" +fi + +[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include" + +src_unpack() { + cd ${WORKDIR} + unpack linux-${OKV}.tar.bz2 + + if [ "${PATCH_URI}" ]; then + mv linux-${OKV} linux-${KV} + cd ${S} + zcat ${DISTDIR}/${PVR/r/mm}.gz | patch -p1 -l || \ + die "akpm patch application failure" + sed -e "s:^EXTRAVERSION.*$:EXTRAVERSION = -${PR/r/mm}:" \ + Makefile > Makefile.new + mv Makefile.new Makefile + else + cd ${S} + fi + + #sometimes we have icky kernel symbols; this seems to get rid of them + 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 + + ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta + fi +} diff --git a/sys-kernel/mm-sources/development-sources-2.5.61-r1.ebuild b/sys-kernel/mm-sources/development-sources-2.5.61-r1.ebuild new file mode 100644 index 000000000000..dc3789227762 --- /dev/null +++ b/sys-kernel/mm-sources/development-sources-2.5.61-r1.ebuild @@ -0,0 +1,105 @@ +# 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/development-sources-2.5.61-r1.ebuild,v 1.1 2003/02/25 21:08:59 lostlogic Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +#we use this next variable to avoid duplicating stuff on cvs +GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files +OKV=${PV} +if [ "${PR}" != "r0" ]; then + PATCH_URI="http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/${PV}/${PVR/r/mm}/${PVR/r/mm}.gz" +fi +KV=${PVR/r/mm} +S=${WORKDIR}/linux-${KV} +ETYPE="sources" + +# What's in this kernel? + +# INCLUDED: +# beta 2.5.59 kernel sources with the -mm1 patch. + +DESCRIPTION="Full sources for the Gentoo Linux kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.5/linux-${OKV}.tar.bz2 ${PATCH_URI}" +PROVIDE="virtual/linux-sources" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" +LICENSE="GPL-2" +SLOT="${KV}" +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" + RDEPEND=">=sys-libs/ncurses-5.2 sys-devel/perl + sys-devel/make" +fi + +[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include" + +src_unpack() { + cd ${WORKDIR} + unpack linux-${OKV}.tar.bz2 + + if [ "${PATCH_URI}" ]; then + mv linux-${OKV} linux-${KV} + cd ${S} + zcat ${DISTDIR}/${PVR/r/mm}.gz | patch -p1 -l || \ + die "akpm patch application failure" + sed -e "s:^EXTRAVERSION.*$:EXTRAVERSION = -${PR/r/mm}:" \ + Makefile > Makefile.new + mv Makefile.new Makefile + else + cd ${S} + fi + + #sometimes we have icky kernel symbols; this seems to get rid of them + 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 + + ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta + fi +} diff --git a/sys-kernel/mm-sources/development-sources-2.5.62-r1.ebuild b/sys-kernel/mm-sources/development-sources-2.5.62-r1.ebuild new file mode 100644 index 000000000000..3d513d2d2a43 --- /dev/null +++ b/sys-kernel/mm-sources/development-sources-2.5.62-r1.ebuild @@ -0,0 +1,105 @@ +# 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/development-sources-2.5.62-r1.ebuild,v 1.1 2003/02/25 21:08:59 lostlogic Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +#we use this next variable to avoid duplicating stuff on cvs +GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files +OKV=${PV} +if [ "${PR}" != "r0" ]; then + PATCH_URI="http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/${PV}/${PVR/r/mm}/${PVR/r/mm}.gz" +fi +KV=${PVR/r/mm} +S=${WORKDIR}/linux-${KV} +ETYPE="sources" + +# What's in this kernel? + +# INCLUDED: +# beta 2.5.59 kernel sources with the -mm1 patch. + +DESCRIPTION="Full sources for the Gentoo Linux kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.5/linux-${OKV}.tar.bz2 ${PATCH_URI}" +PROVIDE="virtual/linux-sources" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" +LICENSE="GPL-2" +SLOT="${KV}" +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" + RDEPEND=">=sys-libs/ncurses-5.2 sys-devel/perl + sys-devel/make" +fi + +[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include" + +src_unpack() { + cd ${WORKDIR} + unpack linux-${OKV}.tar.bz2 + + if [ "${PATCH_URI}" ]; then + mv linux-${OKV} linux-${KV} + cd ${S} + zcat ${DISTDIR}/${PVR/r/mm}.gz | patch -p1 -l || \ + die "akpm patch application failure" + sed -e "s:^EXTRAVERSION.*$:EXTRAVERSION = -${PR/r/mm}:" \ + Makefile > Makefile.new + mv Makefile.new Makefile + else + cd ${S} + fi + + #sometimes we have icky kernel symbols; this seems to get rid of them + 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 + + ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta + fi +} diff --git a/sys-kernel/mm-sources/development-sources-2.5.62-r2.ebuild b/sys-kernel/mm-sources/development-sources-2.5.62-r2.ebuild new file mode 100644 index 000000000000..5b94d0b0c91d --- /dev/null +++ b/sys-kernel/mm-sources/development-sources-2.5.62-r2.ebuild @@ -0,0 +1,105 @@ +# 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/development-sources-2.5.62-r2.ebuild,v 1.1 2003/02/25 21:08:59 lostlogic Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +#we use this next variable to avoid duplicating stuff on cvs +GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files +OKV=${PV} +if [ "${PR}" != "r0" ]; then + PATCH_URI="http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/${PV}/${PVR/r/mm}/${PVR/r/mm}.gz" +fi +KV=${PVR/r/mm} +S=${WORKDIR}/linux-${KV} +ETYPE="sources" + +# What's in this kernel? + +# INCLUDED: +# beta 2.5.59 kernel sources with the -mm1 patch. + +DESCRIPTION="Full sources for the Gentoo Linux kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.5/linux-${OKV}.tar.bz2 ${PATCH_URI}" +PROVIDE="virtual/linux-sources" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" +LICENSE="GPL-2" +SLOT="${KV}" +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" + RDEPEND=">=sys-libs/ncurses-5.2 sys-devel/perl + sys-devel/make" +fi + +[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include" + +src_unpack() { + cd ${WORKDIR} + unpack linux-${OKV}.tar.bz2 + + if [ "${PATCH_URI}" ]; then + mv linux-${OKV} linux-${KV} + cd ${S} + zcat ${DISTDIR}/${PVR/r/mm}.gz | patch -p1 -l || \ + die "akpm patch application failure" + sed -e "s:^EXTRAVERSION.*$:EXTRAVERSION = -${PR/r/mm}:" \ + Makefile > Makefile.new + mv Makefile.new Makefile + else + cd ${S} + fi + + #sometimes we have icky kernel symbols; this seems to get rid of them + 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 + + ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta + fi +} diff --git a/sys-kernel/mm-sources/development-sources-2.5.62-r3.ebuild b/sys-kernel/mm-sources/development-sources-2.5.62-r3.ebuild new file mode 100644 index 000000000000..ab18efe137b6 --- /dev/null +++ b/sys-kernel/mm-sources/development-sources-2.5.62-r3.ebuild @@ -0,0 +1,105 @@ +# 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/development-sources-2.5.62-r3.ebuild,v 1.1 2003/02/25 21:08:59 lostlogic Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +#we use this next variable to avoid duplicating stuff on cvs +GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files +OKV=${PV} +if [ "${PR}" != "r0" ]; then + PATCH_URI="http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/${PV}/${PVR/r/mm}/${PVR/r/mm}.gz" +fi +KV=${PVR/r/mm} +S=${WORKDIR}/linux-${KV} +ETYPE="sources" + +# What's in this kernel? + +# INCLUDED: +# beta 2.5.59 kernel sources with the -mm1 patch. + +DESCRIPTION="Full sources for the Gentoo Linux kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.5/linux-${OKV}.tar.bz2 ${PATCH_URI}" +PROVIDE="virtual/linux-sources" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" +LICENSE="GPL-2" +SLOT="${KV}" +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" + RDEPEND=">=sys-libs/ncurses-5.2 sys-devel/perl + sys-devel/make" +fi + +[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include" + +src_unpack() { + cd ${WORKDIR} + unpack linux-${OKV}.tar.bz2 + + if [ "${PATCH_URI}" ]; then + mv linux-${OKV} linux-${KV} + cd ${S} + zcat ${DISTDIR}/${PVR/r/mm}.gz | patch -p1 -l || \ + die "akpm patch application failure" + sed -e "s:^EXTRAVERSION.*$:EXTRAVERSION = -${PR/r/mm}:" \ + Makefile > Makefile.new + mv Makefile.new Makefile + else + cd ${S} + fi + + #sometimes we have icky kernel symbols; this seems to get rid of them + 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 + + ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta + fi +} diff --git a/sys-kernel/mm-sources/files/digest-development-sources-2.5.60-r1 b/sys-kernel/mm-sources/files/digest-development-sources-2.5.60-r1 new file mode 100644 index 000000000000..6f34d683a969 --- /dev/null +++ b/sys-kernel/mm-sources/files/digest-development-sources-2.5.60-r1 @@ -0,0 +1,2 @@ +MD5 a8e743f76800c7b1c1e6a27797e8e02c linux-2.5.60.tar.bz2 31643072 +MD5 fb62afa5797765c1cc126cf44929e337 2.5.60-mm1.gz 150041 diff --git a/sys-kernel/mm-sources/files/digest-development-sources-2.5.60-r2 b/sys-kernel/mm-sources/files/digest-development-sources-2.5.60-r2 new file mode 100644 index 000000000000..d5ae96566818 --- /dev/null +++ b/sys-kernel/mm-sources/files/digest-development-sources-2.5.60-r2 @@ -0,0 +1,2 @@ +MD5 a8e743f76800c7b1c1e6a27797e8e02c linux-2.5.60.tar.bz2 31643072 +MD5 b4fc4c6747794a4049d6999224311be8 2.5.60-mm2.gz 1070495 diff --git a/sys-kernel/mm-sources/files/digest-development-sources-2.5.61-r1 b/sys-kernel/mm-sources/files/digest-development-sources-2.5.61-r1 new file mode 100644 index 000000000000..0ebfa3beeb73 --- /dev/null +++ b/sys-kernel/mm-sources/files/digest-development-sources-2.5.61-r1 @@ -0,0 +1,2 @@ +MD5 4d8bdf0e886f541a42f6d46680cdebb7 linux-2.5.61.tar.bz2 31712990 +MD5 65382581fa38c6d5a3d32eb37bf5f105 2.5.61-mm1.gz 780029 diff --git a/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r1 b/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r1 new file mode 100644 index 000000000000..f9b2fa8617fe --- /dev/null +++ b/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r1 @@ -0,0 +1,2 @@ +MD5 0ecd08b94b3bb398e3ec8368aa187a87 linux-2.5.62.tar.bz2 31727429 +MD5 79cd93c7d71ef1aef18dfc0b75f32008 2.5.62-mm1.gz 792807 diff --git a/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r2 b/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r2 new file mode 100644 index 000000000000..16461dee2990 --- /dev/null +++ b/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r2 @@ -0,0 +1,2 @@ +MD5 0ecd08b94b3bb398e3ec8368aa187a87 linux-2.5.62.tar.bz2 31727429 +MD5 a1ea349c1649c46677a7014b05b9a488 2.5.62-mm2.gz 1234618 diff --git a/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r3 b/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r3 new file mode 100644 index 000000000000..27d0ff7bfed0 --- /dev/null +++ b/sys-kernel/mm-sources/files/digest-development-sources-2.5.62-r3 @@ -0,0 +1,2 @@ +MD5 0ecd08b94b3bb398e3ec8368aa187a87 linux-2.5.62.tar.bz2 31727429 +MD5 085b97e5e3893e9ea04f0e171447923d 2.5.62-mm3.gz 1431349 |