experimental/trunk/novell4gentoo/sys-kernel/apparmor-sources/apparmor-sources-2.6.17-r1.ebuild

44 lines
1.1 KiB
Bash

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="1"
inherit eutils kernel-2
detect_version
detect_arch
KEYWORDS="~x86 ~amd64"
HOMEPAGE="http://forge.novell.com/modules/xfmod/project/?apparmor"
DESCRIPTION="Full sources to provide the required AppArmor modules and kernel hooks. Based on the gentoo-sources tree."
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}"
src_unpack() {
ABI=${KERNEL_ABI}
kernel-2_src_unpack
EPATCH_FORCE="yes"
EPATCH_OPTS=""
epatch ${FILESDIR}/${PF}*.patch
}
pkg_postinst() {
postinst_sources
einfo
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
einfo
einfo "Make sure that your kernel configuration file is set with:"
einfo " CONFIG_SECURITY=y"
einfo " CONFIG_SECURITY_APPARMOR=m"
einfo "Without these, apparmor will not function."
einfo
einfo "Apparmor can be sensitive to module load order. Make sure"
einfo "it is listed before any other modules that rely on the "
einfo "'capability' module."
}