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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Apr 15 22:28:46 2004 UTC (10 years, 5 months ago) by plasmaroo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Version bump for the CAN-2004-0109 issue; bug #47881.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/sys-kernel/hardened-sources/hardened-sources-2.4.24-r1.ebuild,v 1.5 2004/04/12 18:06:51 scox 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
24 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/"
25 KEYWORDS="x86"
26 SLOT="${KV}"
27
28 src_unpack() {
29 unpack ${A}
30
31 mv linux-${OKV} linux-${KV} || die
32 cd linux-${KV}
33
34 bzcat ${DISTDIR}/hardened-sources-${OKV}-base.patch.bz2 | patch -p1
35
36 if [ "`use selinux`" ]; then
37 bzcat ${DISTDIR}/hardened-sources-${OKV}-selinux.patch.bz2 | patch -p1
38 else
39 bzcat ${DISTDIR}/hardened-sources-${OKV}-grsec.patch.bz2 | patch -p1
40 fi
41
42 epatch ${FILESDIR}/${P}.munmap.patch || die "Failed to apply munmap patch!"
43 kernel_src_unpack
44 }
45
46 pkg_postinst() {
47 einfo "This kernel contains LSM/SElinux or GRSecurity"
48 einfo "Also included are various other security related patches."
49 echo
50 einfo "If there are issues with this kernel, search http://bugs.gentoo.org/ for an"
51 einfo "existing bug. Only create a new bug if you have not found one that matches"
52 einfo "your issue. Please assign your bugs to scox@gentoo.org."
53 }

  ViewVC Help
Powered by ViewVC 1.1.20