summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce A. Locke <blocke@gentoo.org>2003-02-18 03:06:11 +0000
committerBruce A. Locke <blocke@gentoo.org>2003-02-18 03:06:11 +0000
commit95fa5394cbc323b3579f009ce2ced6ae4cd3bfa3 (patch)
tree1dfbf59c693802b930713404689c89b4ad4f9c35 /sys-kernel
parentupdate comment on portage (diff)
downloadhistorical-95fa5394cbc323b3579f009ce2ced6ae4cd3bfa3.tar.gz
historical-95fa5394cbc323b3579f009ce2ced6ae4cd3bfa3.tar.bz2
historical-95fa5394cbc323b3579f009ce2ced6ae4cd3bfa3.zip
update and revamp of redhat-sources ebuild, older version pulled due to multiple exploitable security issues
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/redhat-sources/ChangeLog11
-rw-r--r--sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18-r42
-rw-r--r--sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18.24.8.01
-rw-r--r--sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild99
-rw-r--r--sys-kernel/redhat-sources/redhat-sources-2.4.18.24.8.0.ebuild55
5 files changed, 64 insertions, 104 deletions
diff --git a/sys-kernel/redhat-sources/ChangeLog b/sys-kernel/redhat-sources/ChangeLog
index 1b756d6f2b06..249e77594c54 100644
--- a/sys-kernel/redhat-sources/ChangeLog
+++ b/sys-kernel/redhat-sources/ChangeLog
@@ -1,14 +1,19 @@
# ChangeLog for sys-kernel/redhat-sources
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/ChangeLog,v 1.7 2003/02/12 09:17:59 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/ChangeLog,v 1.8 2003/02/18 03:06:11 blocke Exp $
+
+*redhat-sources-2.4.18.24.8.0 (17 Feb 2003)
+
+ 17 Feb 2003; Bruce A. Locke <blocke@shivan.org> redhat-sources-2.4.18.24.8.0.ebuild:
+ Red Hat 8.0 kernel - 2.4.18-24.8.0 from updates
+
+*redhat-sources-2.4.18-r4 (21 May 2002)
17 Dec 2002; Brandon Low <lostlogic@gentoo.org>:
Make all kernel-sources SLOT="${KV}"
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
-*redhat-sources-2.4.18-r4 (21 May 2002)
-
15 Jul 2002; Mark Guertin <gerk@gentoo.org>
Added arch keywords (-ppc -sparc -sparc64)
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
deleted file mode 100644
index 84738e22f54d..000000000000
--- a/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18-r4
+++ /dev/null
@@ -1,2 +0,0 @@
-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.24.8.0 b/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18.24.8.0
new file mode 100644
index 000000000000..0bb20d1fa928
--- /dev/null
+++ b/sys-kernel/redhat-sources/files/digest-redhat-sources-2.4.18.24.8.0
@@ -0,0 +1 @@
+MD5 43ffe5e9be347b2da60d83cc03d64923 kernel-source-2.4.18-24.8.0.i386.rpm 28722802
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
deleted file mode 100644
index d80b20443ee4..000000000000
--- a/sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/redhat-sources-2.4.18-r4.ebuild,v 1.7 2003/02/13 16:43:39 vapier 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"
-SLOT="${KV}"
-KEYWORDS="x86 -ppc -sparc "
-
-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.24.8.0.ebuild b/sys-kernel/redhat-sources/redhat-sources-2.4.18.24.8.0.ebuild
new file mode 100644
index 000000000000..8149c75e66f2
--- /dev/null
+++ b/sys-kernel/redhat-sources/redhat-sources-2.4.18.24.8.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/redhat-sources/redhat-sources-2.4.18.24.8.0.ebuild,v 1.1 2003/02/18 03:06:11 blocke Exp $
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+ETYPE="sources"
+inherit kernel
+OKV=2.4.18
+KV=2.4.18-24.8.0
+EXTRAVERSION="-24.8.0-rhcustom"
+S=${WORKDIR}/linux-${KV}
+
+# This package contains the Linux Kernel source for the version of the
+# Linux Kernel shipped by Red Hat, Inc. as part of their 8.0 distribution.
+#
+# Do not report problems with this source package or the resulting compiled
+# compiled kernel to Red Hat, Inc. Red Hat is not responsible for this
+# package and has offered no warranties or promises that the kernels
+# resulting from the compilation of this package will work on anything
+# except specific versions of the Red Hat distribution and specific
+# compiler revisions.
+#
+# Gentoo provides this package without any guarantees that this kernel
+# will compile and run correctly and will only respond to bug reports
+# dealing with Gentoo specific packaging problems.
+
+RH_DISTRO_VER="8.0"
+
+# The easiest way to grab Red Hat kernel sources is from the rpm file
+# itself. We used to generate a patch against vanilla sources trees but
+# the added dependency of rpm2targz is minimal compared with having to
+# generate a new diff for every minor version update. (Also not to many
+# people have 2.4.18 vanilla source tarballs floating around these days)
+
+DEPEND="${DEPEND} app-arch/rpm2targz"
+
+DESCRIPTION="Kernel source tree used in Red Hat distributions (not supported by Red Hat)"
+SRC_URI="http://mirrors.kernel.org/redhat/redhat/linux/updates/8.0/en/os/i386/kernel-source-${KV}.i386.rpm"
+HOMEPAGE="http://www.kernel.org/ http://www.redhat.com/"
+KEYWORDS="~x86"
+SLOT="${KV}"
+
+src_unpack() {
+
+ cd ${WORKDIR}
+ rpm2targz ${DISTDIR}/kernel-source-${KV}.i386.rpm
+ tar xvzf kernel-source-${KV}.i386.tar.gz
+
+ mv usr/src/linux-${KV} ${WORKDIR}
+
+ cd ${S}
+
+ kernel_universal_unpack
+}
+