/[gentoo-x86]/sys-kernel/hardened-sources/hardened-sources-2.4.24-r3.ebuild
Gentoo

Contents of /sys-kernel/hardened-sources/hardened-sources-2.4.24-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 22 21:31:44 2004 UTC (10 years ago) by scox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
2.4.26-r1 version bump, fix for the CAN-2004-0394 issue and bug #53804. Marked 2.4.26-r1 as stable. Removed 2.4.26 and 2.4.24-r3.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/hardened-sources/hardened-sources-2.4.24-r3.ebuild,v 1.2 2004/05/30 23:53:42 pvdabeel Exp $
4
5 IUSE="selinux"
6 ETYPE="sources"
7
8 inherit kernel eutils
9
10 OKV="`echo ${PV}|sed -e 's:^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*:\1:'`"
11 EXTRAVERSION="-${PN/-*/}-${PR}"
12 KV=${OKV}${EXTRAVERSION}
13
14 S=${WORKDIR}/linux-${KV}
15 DESCRIPTION="Special Security Hardened Gentoo Linux Kernel"
16
17 BASE_URI="http://dev.gentoo.org/~scox/kernels/v2.4"
18 SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
19 ${BASE_URI}/hardened-sources-${OKV}-base.patch.bz2
20 selinux? ( ${BASE_URI}/hardened-sources-${OKV}-selinux.patch.bz2 )
21 !selinux? ( ${BASE_URI}/hardened-sources-${OKV}-grsec.patch.bz2 )"
22
23 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/"
24 KEYWORDS="x86 -ppc"
25 SLOT="${KV}"
26
27 src_unpack() {
28 unpack ${A}
29
30 mv linux-${OKV} linux-${KV} || die
31 cd linux-${KV}
32
33 bzcat ${DISTDIR}/hardened-sources-${OKV}-base.patch.bz2 | patch -p1
34 if [ "`use selinux`" ]; then
35 bzcat ${DISTDIR}/hardened-sources-${OKV}-selinux.patch.bz2 | patch -p1
36 else
37 bzcat ${DISTDIR}/hardened-sources-${OKV}-grsec.patch.bz2 | patch -p1
38 fi
39
40 epatch ${FILESDIR}/${P}.munmap.patch || die "Failed to apply munmap patch!"
41 epatch ${FILESDIR}/${P}.CAN-2004-0010.patch || die "Failed to add the CAN-2004-0010 patch!"
42 epatch ${FILESDIR}/${P}.CAN-2004-0109.patch || die "Failed to patch CAN-2004-0109 vulnerability!"
43 epatch ${FILESDIR}/${P}.CAN-2004-0177.patch || die "Failed to add the CAN-2004-0177 patch!"
44 epatch ${FILESDIR}/${P}.CAN-2004-0178.patch || die "Failed to add the CAN-2004-0178 patch!"
45 kernel_src_unpack
46 }
47
48 pkg_postinst() {
49 einfo "This kernel contains LSM/SElinux or GRSecurity"
50 einfo "Also included are various other security related patches."
51 echo
52 einfo "If there are issues with this kernel, search http://bugs.gentoo.org/ for an"
53 einfo "existing bug. Only create a new bug if you have not found one that matches"
54 einfo "your issue. Please assign your bugs to scox@gentoo.org."
55 }

  ViewVC Help
Powered by ViewVC 1.1.20