From 0d52b275be21feb220218d05bd45d0809554c5d1 Mon Sep 17 00:00:00 2001 From: "Bruce A. Locke" Date: Tue, 21 May 2002 07:07:34 +0000 Subject: update to redhat-sources --- sys-kernel/redhat-sources/ChangeLog | 9 +- .../files/digest-redhat-sources-2.4.18-r4 | 2 + .../files/digest-redhat-sources-2.4.18.0.13 | 2 - .../redhat-sources/redhat-sources-2.4.18-r4.ebuild | 98 ++++++++++++++++++++++ .../redhat-sources-2.4.18.0.13.ebuild | 98 ---------------------- 5 files changed, 108 insertions(+), 101 deletions(-) create mode 100644 sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18-r4 delete mode 100644 sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18.0.13 create mode 100644 sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild delete mode 100644 sys-kernel/redhat-sources/redhat-sources-2.4.18.0.13.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/redhat-sources/ChangeLog b/sys-kernel/redhat-sources/ChangeLog index cafe2a648a46..026a47ec7d06 100644 --- a/sys-kernel/redhat-sources/ChangeLog +++ b/sys-kernel/redhat-sources/ChangeLog @@ -1,7 +1,14 @@ # ChangeLog for sys-kernel/redhat-sources # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/ChangeLog,v 1.1 2002/04/28 04:28:02 blocke Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/ChangeLog,v 1.2 2002/05/21 07:07:34 blocke Exp $ +*redhat-sources-2.4.18-r4 (21 May 2002) + + 21 May 2002; Bruce A. Locke redhat-sources-2.4.18-r4.ebuild : + + Redhat kernel 2.4.18-4 (official update to Redhat 7.3 kernel). Older + version removed due to potential instability and version conflict. + *redhat-sources-2.4.18.0.13 (28 Apr 2002) 28 Apr 2002; Bruce A. Locke redhat-sources-2.4.18.0.13.ebuild : diff --git a/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18-r4 b/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18-r4 new file mode 100644 index 000000000000..84738e22f54d --- /dev/null +++ b/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18-r4 @@ -0,0 +1,2 @@ +MD5 ad92859baaa837847b34d842b9f39d38 linux-2.4.18.tar.bz2 24161675 +MD5 a3f6160aa3e37959272fbfa25668ab3c linux-2.4.19-redhat-r4.patch.bz2 9615821 diff --git a/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18.0.13 b/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18.0.13 deleted file mode 100644 index 15f4a300bb73..000000000000 --- a/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18.0.13 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 ad92859baaa837847b34d842b9f39d38 linux-2.4.18.tar.bz2 24161675 -MD5 cf65463a8314fa7e726b98173aacb745 linux-2.4.19-0.13-redhat.patch.bz2 9103207 diff --git a/sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild b/sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild new file mode 100644 index 000000000000..90c1c28694b9 --- /dev/null +++ b/sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Maintainer: Bruce A. Locke +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild,v 1.1 2002/05/21 07:07:34 blocke 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=2.4.18 +KV=2.4.19-redhat-r4 +S=${WORKDIR}/linux-${KV} +ETYPE="sources" + +# INCLUDED: +# Redhat 7.3 Kernel Sources (Update Version) + +DESCRIPTION="Full sources for the Redhat Linux kernel" +SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://www.ibiblio.org/gentoo/distfiles/linux-${KV}.patch.bz2" +PROVIDE="virtual/linux-sources" +HOMEPAGE="http://www.kernel.org/ http://www.redhat.com/" +LICENSE="GPL-2" + +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-apps/modutils-2.4.2 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 + mv linux linux-${KV} || die + cd ${S} + cat ${DISTDIR}/linux-${KV}.patch.bz2 | bzip2 -d | patch -p1 || die + + #sometimes we have icky kernel symbols; this seems to get rid of them + make mrproper || die + + #this file is required for other things to build properly, so we autogenerate it + #make include/linux/version.h || die + + #fix silly permissions in tarball + cd ${WORKDIR} + chown -R 0.0 * + chmod -R a+r-w+X,u+w * + + # Gentoo Linux uses /boot, so fix 'make install' to work properly + cd ${S} + mv Makefile Makefile.orig + sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ + Makefile.orig >Makefile || die # test, remove me if Makefile ok + rm Makefile.orig +} + +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 ] + then + rm -f ${ROOT}usr/src/linux + ln -sf linux-${KV} ${ROOT}/usr/src/linux + fi +} diff --git a/sys-kernel/redhat-sources/redhat-sources-2.4.18.0.13.ebuild b/sys-kernel/redhat-sources/redhat-sources-2.4.18.0.13.ebuild deleted file mode 100644 index 3fe9d6a9569e..000000000000 --- a/sys-kernel/redhat-sources/redhat-sources-2.4.18.0.13.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# Maintainer: Bruce A. Locke -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/redhat-sources-2.4.18.0.13.ebuild,v 1.5 2002/05/08 05:59:25 drobbins 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=2.4.18 -KV=2.4.19-0.13-redhat -S=${WORKDIR}/linux-${KV} -ETYPE="sources" - -# INCLUDED: -# Redhat Skipjack Beta 2 Kernel - -DESCRIPTION="Full sources for the Redhat Linux kernel" -SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://www.ibiblio.org/gentoo/distfiles/linux-${KV}.patch.bz2" -PROVIDE="virtual/linux-sources" -HOMEPAGE="http://www.kernel.org/ http://www.redhat.com/" -LICENSE="GPL-2" - -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-apps/modutils-2.4.2 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 - mv linux linux-${KV} || die - cd ${S} - cat ${DISTDIR}/linux-${KV}.patch.bz2 | bzip2 -d | patch -p1 || die - - #sometimes we have icky kernel symbols; this seems to get rid of them - make mrproper || die - - #this file is required for other things to build properly, so we autogenerate it - #make include/linux/version.h || die - - #fix silly permissions in tarball - cd ${WORKDIR} - chown -R 0.0 * - chmod -R a+r-w+X,u+w * - - # Gentoo Linux uses /boot, so fix 'make install' to work properly - cd ${S} - mv Makefile Makefile.orig - sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ - Makefile.orig >Makefile || die # test, remove me if Makefile ok - rm Makefile.orig -} - -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 ] - then - rm -f ${ROOT}usr/src/linux - ln -sf linux-${KV} ${ROOT}/usr/src/linux - fi -} -- cgit v1.2.3-65-gdbad