Index: audit-1.5.4.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-process/audit/audit-1.5.4.ebuild,v retrieving revision 1.2 diff -u -r1.2 audit-1.5.4.ebuild --- audit-1.5.4.ebuild 9 Jul 2007 05:05:48 -0000 1.2 +++ audit-1.5.4.ebuild 9 Jul 2007 16:06:08 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-1.5.4.ebuild,v 1.2 2007/07/09 05:05:48 vapier Exp $ -inherit autotools multilib toolchain-funcs +inherit autotools multilib toolchain-funcs linux-info DESCRIPTION="Userspace utilities for storing and processing auditing records" HOMEPAGE="http://people.redhat.com/sgrubb/audit/" @@ -19,6 +19,15 @@ >=sys-kernel/linux-headers-2.6.20-r2" # Do not use os-headers as this is linux specific +pkg_setup() { + if ! linux_chkconfig_present AUDIT; then + eerror + eerror "AUDIT kernel support is needed to run audit" + eerror + die "AUDIT kernel support not detected" + fi +} + src_unpack() { unpack ${A} cd "${S}"