| 1 |
# Copyright 1999-2004 Gentoo Technologies, Inc.
|
| 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.26.ebuild,v 1.2 2004/05/30 23:53:42 pvdabeel Exp $
|
| 4 |
|
| 5 |
IUSE="selinux"
|
| 6 |
ETYPE="sources"
|
| 7 |
inherit kernel-2
|
| 8 |
detect_version
|
| 9 |
|
| 10 |
HGPV=26.0
|
| 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, 12xx patches are grsec related
|
| 16 |
# while 13xx are SELinux related.
|
| 17 |
|
| 18 |
if [ "`use selinux`" ]; then
|
| 19 |
UNIPATCH_EXCLUDE="12"
|
| 20 |
else
|
| 21 |
UNIPATCH_EXCLUDE="13"
|
| 22 |
fi
|
| 23 |
|
| 24 |
UNIPATCH_LIST="${DISTDIR}/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}.tar.bz2"
|
| 25 |
UNIPATCH_DOCS="${WORKDIR}/patches/hardened-patches-${KV_MAJOR}.${KV_MINOR}-${HGPV}/0000_README"
|
| 26 |
|
| 27 |
DESCRIPTION="Hardened sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
|
| 28 |
|
| 29 |
SRC_URI="${KERNEL_URI} ${HGPV_SRC}"
|
| 30 |
KEYWORDS="~x86 -ppc"
|
| 31 |
|
| 32 |
pkg_postinst() {
|
| 33 |
postinst_sources
|
| 34 |
}
|