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