summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2007-11-23 15:44:54 +0000
committerJakub Moc <jakub@gentoo.org>2007-11-23 15:44:54 +0000
commit742fc8bcefc3f4fe852312d9445a795fc4c30c45 (patch)
tree8439b0783390bb90e942745fd98e243e19a413d4 /net-firewall/tuxguardian/tuxguardian-0.5.ebuild
parentSilence repoman... (diff)
downloadsunrise-742fc8bcefc3f4fe852312d9445a795fc4c30c45.tar.gz
sunrise-742fc8bcefc3f4fe852312d9445a795fc4c30c45.tar.bz2
sunrise-742fc8bcefc3f4fe852312d9445a795fc4c30c45.zip
net-firewall/tuxguardian: Fix compile w/ 2.6.19+ kernels
svn path=/sunrise/; revision=5108
Diffstat (limited to 'net-firewall/tuxguardian/tuxguardian-0.5.ebuild')
-rw-r--r--net-firewall/tuxguardian/tuxguardian-0.5.ebuild16
1 files changed, 6 insertions, 10 deletions
diff --git a/net-firewall/tuxguardian/tuxguardian-0.5.ebuild b/net-firewall/tuxguardian/tuxguardian-0.5.ebuild
index c8ee1cd18..fa1d18ef7 100644
--- a/net-firewall/tuxguardian/tuxguardian-0.5.ebuild
+++ b/net-firewall/tuxguardian/tuxguardian-0.5.ebuild
@@ -16,28 +16,24 @@ IUSE=""
DEPEND="$(qt_min_version 3.1)"
RDEPEND="${DEPEND}"
+CONFIG_CHECK="SECURITY SECURITY_CAPABILITIES"
+
pkg_setup() {
linux-mod_pkg_setup
if kernel_is lt 2 6 12; then
die "${P} needs a kernel >=2.6.12!"
fi
- if ! linux_chkconfig_present SECURITY; then
- eerror "${P} needs \"different security models\" in kernel enabled (SECURITY=Y)"
- eerror "AND Default Linux Capabilities build as module (SECURITY_CAPABILITIES=M)"
- die "Kernel config not suitable"
- fi
- if ! linux_chkconfig_module SECURITY_CAPABILITIES; then
- eerror "${P} needs \"Default Linux Capabilities\" build as module"
- die "Kernel config not suitable"
- fi
MODULE_NAMES="tuxg(extra:${S}/module)"
BUILD_PARAMS="KERNEL_SRC=${KERNEL_DIR}"
}
+
src_unpack() {
unpack ${A}
cd "${S}"
- epatch "${FILESDIR}"/Makefile-gentoo-0.5.patch
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ kernel_is gt 2 6 18 && epatch "${FILESDIR}"/${P}-config.h.patch
}
+
src_compile() {
linux-mod_src_compile
emake DESTDIR="${D}" || die "emake failed"