summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Thorwirth (Moonstruxx) <Moonstruxx@gmx.de>2007-04-26 19:16:29 +0000
committerB. Thorwirth (Moonstruxx) <Moonstruxx@gmx.de>2007-04-26 19:16:29 +0000
commitec1f619bf51d785837ac75bde3003f10dbba1d1c (patch)
tree2cc335a49d44e3b756700a136b9c1e92042c94b6 /net-firewall/tuxguardian/tuxguardian-0.5.ebuild
parentnet-im/pyicq-t: Remove inherit eutils (diff)
downloadsunrise-ec1f619bf51d785837ac75bde3003f10dbba1d1c.tar.gz
sunrise-ec1f619bf51d785837ac75bde3003f10dbba1d1c.tar.bz2
sunrise-ec1f619bf51d785837ac75bde3003f10dbba1d1c.zip
net-firewall/tuxguardian: New Ebuild for bug 105990
svn path=/sunrise/; revision=3546
Diffstat (limited to 'net-firewall/tuxguardian/tuxguardian-0.5.ebuild')
-rwxr-xr-xnet-firewall/tuxguardian/tuxguardian-0.5.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/net-firewall/tuxguardian/tuxguardian-0.5.ebuild b/net-firewall/tuxguardian/tuxguardian-0.5.ebuild
new file mode 100755
index 000000000..925f28cf2
--- /dev/null
+++ b/net-firewall/tuxguardian/tuxguardian-0.5.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils linux-mod qt3
+DESCRIPTION="Tuxguardian is an appliction based firewall for Linux"
+HOMEPAGE="http://tuxguardian.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+SLOT="0"
+DEPEND="$(qt_min_version 3.1)"
+RDEPEND="${DEPEND}"
+
+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)"
+}
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/Makefile-gentoo-0.5.patch
+}
+src_compile() {
+ linux-mod_src_compile
+ emake DESTDIR="${D}" || die "emake failed"
+}
+
+src_install() {
+ linux-mod_src_install
+ emake DESTDIR="${D}" install
+ newinitd "${FILESDIR}"/tuxguardian.init tuxguardian
+ linux-mod_pkg_preinst
+ dodoc README COPYING AUTHORS
+
+}
+
+pkg_postinst() {
+ elog "Inint script installed. use:"
+ elog "rc-update add tuxguardian {runlevel} (runlevel e.g. boot)"
+ elog "Toubleshooting:"
+ elog "Sometimes it occures, that the module freezes.. Use:"
+ elog "\"etc/init.d/tuxguardian restart\" to solve this"
+ elog "tg-frontend is the frontend to tuxguardian. Unfortunatly it needs superuser rights to run,"
+ elog "so you should use visudo to add a rule to your sudoers file. "
+ elog "Notice: if you decide not to use the tg-frontend please refer to the documentation, how to"
+ elog "edit \"/etc/daemon.conf\""
+}
+