| 1 |
# Copyright 1999-2006 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.32-r2.ebuild,v 1.2 2006/03/02 21:33:08 solar Exp $
|
| 4 |
|
| 5 |
IUSE="rsbac"
|
| 6 |
ETYPE="sources"
|
| 7 |
inherit kernel-2
|
| 8 |
detect_version
|
| 9 |
RDEPEND=""
|
| 10 |
HGPV=32.2
|
| 11 |
HGPV_SRC="mirror://gentoo/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}.tar.bz2"
|
| 12 |
|
| 13 |
UNIPATCH_STRICTORDER="yes"
|
| 14 |
|
| 15 |
UNIPATCH_LIST="${DISTDIR}/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}.tar.bz2"
|
| 16 |
|
| 17 |
UNIPATCH_DOCS="${WORKDIR}/patches/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}/0000_README"
|
| 18 |
|
| 19 |
DESCRIPTION="Hardened sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
|
| 20 |
|
| 21 |
SRC_URI="${KERNEL_URI} ${HGPV_SRC}"
|
| 22 |
KEYWORDS="x86"
|
| 23 |
|
| 24 |
pkg_setup() {
|
| 25 |
if use rsbac; then
|
| 26 |
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE}
|
| 27 |
3*.patch"
|
| 28 |
else
|
| 29 |
UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE}
|
| 30 |
4*.patch"
|
| 31 |
fi
|
| 32 |
}
|
| 33 |
pkg_postinst() {
|
| 34 |
postinst_sources
|
| 35 |
}
|