/[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.2 - (hide annotations) (download)
Sun Feb 29 14:34:18 2004 UTC (13 years, 7 months ago) by aliz
Branch: MAIN
Changes since 1.1: +2 -2 lines
mirror:// updates and ChangeLog fix

1 scox 1.1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 aliz 1.2 # $Header: /home/cvsroot/gentoo-x86/sys-kernel/hardened-sources/hardened-sources-2.4.24.ebuild,v 1.1 2004/02/07 02:43:20 scox Exp $
4 scox 1.1
5     IUSE="selinux"
6    
7     ETYPE="sources"
8    
9     inherit kernel || die
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 aliz 1.2 SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
21 scox 1.1 ${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