1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils linux-mod qt3
6 DESCRIPTION="Tuxguardian is an appliction based firewall for Linux"
7 HOMEPAGE="http://tuxguardian.sourceforge.net/"
8 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13 DEPEND="$(qt_min_version 3.1)"
18 if kernel_is lt 2 6 12; then
19 die "${P} needs a kernel >=2.6.12!"
21 if ! linux_chkconfig_present SECURITY; then
22 eerror "${P} needs \"different security models\" in kernel enabled (SECURITY=Y)"
23 eerror "AND Default Linux Capabilities build as module (SECURITY_CAPABILITIES=M)"
24 die "Kernel config not suitable"
26 if ! linux_chkconfig_module SECURITY_CAPABILITIES; then
27 eerror "${P} needs \"Default Linux Capabilities\" build as module"
28 die "Kernel config not suitable"
30 MODULE_NAMES="tuxg(extra:${S}/module)"
35 epatch "${FILESDIR}"/Makefile-gentoo-0.5.patch
39 emake DESTDIR="${D}" || die "emake failed"
44 emake DESTDIR="${D}" install
45 newinitd "${FILESDIR}"/tuxguardian.init tuxguardian
47 dodoc README COPYING AUTHORS
52 elog "Inint script installed. use:"
53 elog "rc-update add tuxguardian {runlevel} (runlevel e.g. boot)"
54 elog "Toubleshooting:"
55 elog "Sometimes it occures, that the module freezes.. Use:"
56 elog "\"etc/init.d/tuxguardian restart\" to solve this"
57 elog "tg-frontend is the frontend to tuxguardian. Unfortunatly it needs superuser rights to run,"
58 elog "so you should use visudo to add a rule to your sudoers file. "
59 elog "Notice: if you decide not to use the tg-frontend please refer to the documentation, how to"
60 elog "edit \"/etc/daemon.conf\""