1 |
# Copyright 1999-2005 Gentoo Foundation |
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.27-r2.ebuild,v 1.3 2005/01/14 03:07:38 tocharian Exp $ |
4 |
|
5 |
IUSE="selinux" |
6 |
ETYPE="sources" |
7 |
inherit kernel-2 |
8 |
detect_version |
9 |
|
10 |
HGPV=27.1 |
11 |
HGPV_SRC="http://dev.gentoo.org/~scox/kernels/v2.4/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}.tar.bz2" |
12 |
|
13 |
UNIPATCH_STRICTORDER="yes" |
14 |
|
15 |
# According to the patchset numbering scheme, 31xx patches are grsec related |
16 |
# while 32xx are SELinux related. |
17 |
|
18 |
if use selinux; then |
19 |
UNIPATCH_EXCLUDE="31" |
20 |
else |
21 |
UNIPATCH_EXCLUDE="32" |
22 |
fi |
23 |
|
24 |
UNIPATCH_LIST=" ${DISTDIR}/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}.tar.bz2 \ |
25 |
${FILESDIR}/${OKV}*.patch" |
26 |
|
27 |
UNIPATCH_DOCS="${WORKDIR}/patches/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}/0000_README" |
28 |
|
29 |
DESCRIPTION="Hardened sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree" |
30 |
|
31 |
SRC_URI="${KERNEL_URI} ${HGPV_SRC}" |
32 |
KEYWORDS="x86 -ppc" |
33 |
|
34 |
pkg_postinst() { |
35 |
postinst_sources |
36 |
} |