1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils linux-mod qt3
8 DESCRIPTION="An application based firewall for Linux"
9 HOMEPAGE="http://tuxguardian.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
17 DEPEND=">=x11-libs/qt-3.1:3"
20 CONFIG_CHECK="SECURITY SECURITY_CAPABILITIES"
24 if kernel_is lt 2 6 12; then
25 die "${P} needs a kernel >=2.6.12!"
27 MODULE_NAMES="tuxg(extra:${S}/module)"
28 BUILD_PARAMS="KERNEL_SRC=${KERNEL_DIR}"
34 epatch "${FILESDIR}"/${P}-makefile.patch
35 kernel_is gt 2 6 18 && epatch "${FILESDIR}"/${P}-config.h.patch
40 emake DESTDIR="${D}" || die "emake failed"
45 emake DESTDIR="${D}" install || die "install failed"
46 newinitd "${FILESDIR}"/tuxguardian.init tuxguardian
52 elog "Run rc-update add tuxguardian {runlevel} to start this automatically at boot"
54 elog "Sometimes the module freezes; to solve this, just run"
55 elog "/etc/init.d/tuxguardian restart"
57 elog "tg-frontend frontend unfortunately needs superuser priviledges to run."
58 elog "If you decide not to use the tg-frontend, please refer to the documentation"
59 elog "and edit /etc/daemon.conf accordingly."