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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Apr 12 18:06:51 2004 UTC (10 years, 8 months ago) by scox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
removed .24, marked .24-r1 as stable

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.ebuild,v 1.3 2004/03/04 18:07:43 vapier Exp $
4
5 IUSE="selinux"
6
7 ETYPE="sources"
8
9 inherit kernel
10
11 OKV="`echo ${PV}|sed -e 's:^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*:\1:'`"
12 EXTRAVERSION="-${PN/-*/}"
13 KV=${OKV}${EXTRAVERSION}
14
15 S=${WORKDIR}/linux-${KV}
16
17 DESCRIPTION="Special Security Hardened Gentoo Linux Kernel"
18
19 BASE_URI="http://dev.gentoo.org/~scox/kernels/v2.4"
20 SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
21 ${BASE_URI}/hardened-sources-${OKV}-base.patch.bz2
22 selinux? ( ${BASE_URI}/hardened-sources-${OKV}-selinux.patch.bz2 )
23 !selinux? ( ${BASE_URI}/hardened-sources-${OKV}-grsec.patch.bz2 )"
24
25
26 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/"
27 KEYWORDS="~x86"
28 SLOT="${KV}"
29
30 src_unpack() {
31 unpack ${A}
32
33 mv linux-${OKV} linux-${KV} || die
34
35 cd linux-${KV}
36
37 bzcat ${DISTDIR}/hardened-sources-${OKV}-base.patch.bz2 | patch -p1
38
39 if [ "`use selinux`" ]; then
40 bzcat ${DISTDIR}/hardened-sources-${OKV}-selinux.patch.bz2 | patch -p1
41 else
42 bzcat ${DISTDIR}/hardened-sources-${OKV}-grsec.patch.bz2 | patch -p1
43 fi
44
45 kernel_src_unpack
46
47 cd ${S}
48 }
49
50 pkg_postinst() {
51 einfo "This kernel contains LSM/SElinux or GRSecurity"
52 einfo "Also included are various other security related patches."
53 echo
54 einfo "If there are issues with this kernel, search http://bugs.gentoo.org/ for an"
55 einfo "existing bug. Only create a new bug if you have not found one that matches"
56 einfo "your issue. Please assign your bugs to scox@gentoo.org."
57 }

  ViewVC Help
Powered by ViewVC 1.1.20