diff options
author | Ned Ludd <solar@gentoo.org> | 2003-12-01 21:27:11 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2003-12-01 21:27:11 +0000 |
commit | 86c95162b521cdd23a342b0cbc74cac028a77525 (patch) | |
tree | 9123fc2083724f216d2ba7410ab83bd9d09f6825 /sys-kernel/grsec-sources | |
parent | performance enhancements, PaX updates including PT_GNU_STACK and PT_GNU_HEAP ... (diff) | |
download | gentoo-2-86c95162b521cdd23a342b0cbc74cac028a77525.tar.gz gentoo-2-86c95162b521cdd23a342b0cbc74cac028a77525.tar.bz2 gentoo-2-86c95162b521cdd23a342b0cbc74cac028a77525.zip |
performance enhancements, PaX updates including PT_GNU_STACK and PT_GNU_HEAP support, documentation updates, a fix for an initrd problem.
Diffstat (limited to 'sys-kernel/grsec-sources')
-rw-r--r-- | sys-kernel/grsec-sources/ChangeLog | 8 | ||||
-rw-r--r-- | sys-kernel/grsec-sources/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.23.1.9.13 | 3 | ||||
-rw-r--r-- | sys-kernel/grsec-sources/grsec-sources-2.4.23.1.9.13.ebuild | 92 |
4 files changed, 104 insertions, 3 deletions
diff --git a/sys-kernel/grsec-sources/ChangeLog b/sys-kernel/grsec-sources/ChangeLog index 4e83f17f23fb..02658739a370 100644 --- a/sys-kernel/grsec-sources/ChangeLog +++ b/sys-kernel/grsec-sources/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-kernel/grsec-sources # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/grsec-sources/ChangeLog,v 1.4 2003/11/05 17:29:40 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/grsec-sources/ChangeLog,v 1.5 2003/12/01 21:27:08 solar Exp $ + +*grsec-sources-2.4.23.1.9.13 (01 Dec 2003) + + 01 Dec 2003; <solar@gentoo.org> grsec-sources-2.4.23.1.9.13.ebuild: + performance enhancements, PaX updates including PT_GNU_STACK and PT_GNU_HEAP + support, documentation updates, a fix for an initrd problem. 05 Nov 2003; <solar@gentoo.org> grsec-sources-2.4.21.1.9.11.ebuild, grsec-sources-2.4.21.2.0_rc2.ebuild, grsec-sources-2.4.22.2.0_rc3.ebuild, diff --git a/sys-kernel/grsec-sources/Manifest b/sys-kernel/grsec-sources/Manifest index 65620a7faa7a..85b56fd46ca1 100644 --- a/sys-kernel/grsec-sources/Manifest +++ b/sys-kernel/grsec-sources/Manifest @@ -1,10 +1,10 @@ MD5 916f7d616f0c58d7e8507e0c365f4970 grsec-sources-2.4.21.2.0_rc2.ebuild 1667 MD5 ffd77eca6117d9d054dc2ad98d5b27ea grsec-sources-2.4.21.1.9.11.ebuild 1666 MD5 225cb9e370f4e7d3bc1a98549377249e metadata.xml 484 -MD5 8b457646d2a10e4f6b49962e1e8408e5 ChangeLog 936 +MD5 0b7d48f034c6bc8ead15d46c7e7bdb85 ChangeLog 1193 MD5 fd6786a0953d9e9072b20c4de511e4a7 grsec-sources-2.4.22.1.9.12.ebuild 3216 MD5 122d507e0228496b4431daeeb10d39aa grsec-sources-2.4.22.2.0_rc3.ebuild 1667 -MD5 ac237d463313efb5678405bf6d5bdb11 grsec-sources-2.4.23.1.9.13.ebuild 3205 +MD5 e51371a91d9715275608a8c94eba2591 grsec-sources-2.4.23.1.9.13.ebuild 3205 MD5 8ce72e4001839fb39f9d3b0597e681b8 files/digest-grsec-sources-2.4.21.1.9.11 219 MD5 a66ec80566f602367995d845a5266ed4 files/digest-grsec-sources-2.4.21.2.0_rc2 221 MD5 d321249b3131edd6a4a7b55bd63a5f47 files/digest-grsec-sources-2.4.22.1.9.12 367 diff --git a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.23.1.9.13 b/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.23.1.9.13 new file mode 100644 index 000000000000..33392af76ca8 --- /dev/null +++ b/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.23.1.9.13 @@ -0,0 +1,3 @@ +MD5 642af5ab5e1fc63685fde85e9ae601e4 linux-2.4.23.tar.bz2 29832609 +MD5 be06efac223602b9b5dac48327426f0c grsecurity-1.9.13-2.4.23.patch 523851 +MD5 9a9700f4f295edb3e41f99fb7295fa21 grsecurity-1.9.13-2.4.23.patch.sign 189 diff --git a/sys-kernel/grsec-sources/grsec-sources-2.4.23.1.9.13.ebuild b/sys-kernel/grsec-sources/grsec-sources-2.4.23.1.9.13.ebuild new file mode 100644 index 000000000000..6e5fb09d302f --- /dev/null +++ b/sys-kernel/grsec-sources/grsec-sources-2.4.23.1.9.13.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/grsec-sources/grsec-sources-2.4.23.1.9.13.ebuild,v 1.1 2003/12/01 21:27:08 solar Exp $ + +# Documentation on the patch contained in this kernel will be installed someday + +ETYPE="sources" +IUSE="" + +inherit eutils +inherit kernel + +[ "$OKV" == "" ] && OKV="2.4.23" + +PATCH_BASE="${PV/${OKV}./}" +PATCH_BASE="${PATCH_BASE/_/-}" +EXTRAVERSION="-grsec-${PATCH_BASE}" +KV="${OKV}${EXTRAVERSION}" +PARISC_KERNEL_VERSION="pa7" + +################### +DESCRIPTION="Vanilla sources of the linux kernel with the grsecurity ${PATCH_BASE} patch" + +# hppa? ( http://cvs.parisc-linux.org/download/linux-2.4/patch-${OKV}-${PARISC_KERNEL_VERSION}.gz ) \ +# hppa? ( http://dev.gentoo.org/~pappy/gentoo-x86/sys-kernel/grsec-sources/parisc-linux-${OKV}-${PARISC_KERNEL_VERSION}${EXTRAVERSION}.gz ) + +SRC_URI=" + http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 \ + http://grsecurity.net/grsecurity-${PATCH_BASE}-${OKV}.patch \ + http://grsecurity.net/grsecurity-${PATCH_BASE}-${OKV}.patch.sign +" + +HOMEPAGE="http://www.kernel.org/ http://www.grsecurity.net" + +[ ${PATCH_BASE/.*/} == 1 ] && KEYWORDS="x86" || KEYWORDS="~x86 ~sparc ~ppc ~alpha" + +SLOT="${OKV}" +S="${WORKDIR}/linux-${KV}" +################### + +src_unpack() { + if [ "${ARCH}" == "hppa" ] + then + KV="${OKV}-${PARISC_KERNEL_VERSION}${EXTRAVERSION}" + S="${WORKDIR}/linux-${KV}" + # ewarn "custom patch for gentoo-${ARCH}: linux-${KV}" + unpack linux-"${OKV}".tar.bz2 || die "unable to unpack the kernel" + mv linux-"${OKV}" linux-"${KV}" || die "unable to move the kernel" + cd linux-"${KV}" || die "unable to cd into the kernel source tree" + + if [ -f "${DISTDIR}/patch-${OKV}-${PARISC_KERNEL_VERSION}.gz" ]; then + ebegin "applying patch-${OKV}-${PARISC_KERNEL_VERSION}" + zcat "${DISTDIR}"/patch-"${OKV}"-"${PARISC_KERNEL_VERSION}".gz | patch -p 1 --quiet + eend $? + else + eerror "FAILURE: applying patch-${OKV}-${PARISC_KERNEL_VERSION}" + die "unable to apply parisc-linux kernel patch" + fi + + if [ -f "${DISTDIR}/parisc-linux-${OKV}-${PARISC_KERNEL_VERSION}${EXTRAVERSION}.gz" ]; then + ebegin "applying parisc-linux-grsecurity-${OKV}-${PARISC_KERNEL_VERSION}" + zcat "${DISTDIR}"/parisc-linux-"${OKV}"-"${PARISC_KERNEL_VERSION}${EXTRAVERSION}".gz | patch -p 1 --quiet + eend $? + else + eerror "FAILURE: applying parisc-linux-grsecurity-${OKV}-${PARISC_KERNEL_VERSION}" + die "unable to apply gentoo-hppa parisc-linux grsecurity patch" + fi + else + unpack linux-${OKV}.tar.bz2 || die "Unable to unpack the kernel" + mv linux-${OKV} linux-${KV} || die "Unable to move the kernel" + cd linux-${KV} || die "Unable to cd into the kernel source tree" + + if [ -f "${DISTDIR}/grsecurity-${PATCH_BASE}-${OKV}.patch" ]; then + ebegin "Patching the kernel with the grsecurity-${PATCH_BASE}-${OKV} patch" + cat ${DISTDIR}/grsecurity-${PATCH_BASE}-${OKV}.patch | patch -p 1 + eend $? + else + die "Unable to the kernel patch" + fi + + mkdir -p docs + touch docs/patches.txt + kernel_universal_unpack + fi + + # kernel_universal_unpack + # kernel_src_unpack +} + +#src_install() { +# kernel_src_install +#} |