From: Markus Ullmann Date: Thu, 15 Feb 2007 23:42:38 +0000 (+0000) Subject: Initial ebuild for bug #70667 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5822217047efe861373b2a029bedac49ebc561a2;p=gentoo.git Initial ebuild for bug #70667 Package-Manager: portage-2.1.2-r8 --- diff --git a/net-firewall/fireflier/ChangeLog b/net-firewall/fireflier/ChangeLog new file mode 100644 index 000000000000..4e8857f0c59f --- /dev/null +++ b/net-firewall/fireflier/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-firewall/fireflier +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/fireflier/ChangeLog,v 1.1 2007/02/15 23:42:38 jokey Exp $ + +*fireflier-1.1.6 (15 Feb 2007) + + 15 Feb 2007; Markus Ullmann +files/fireflier.initd, + +metadata.xml, +fireflier-1.1.6.ebuild: + Initial ebuild for bug #70667 + diff --git a/net-firewall/fireflier/Manifest b/net-firewall/fireflier/Manifest new file mode 100644 index 000000000000..81dfcfe0551e --- /dev/null +++ b/net-firewall/fireflier/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX fireflier.initd 666 RMD160 5c53241123d0b97d03767b74f2508721e44a435c SHA1 ee8960502ea618609e3be21031bf6a423117aea1 SHA256 739d5bc9fa626d0d028f15ab68190bfa76b7d3524879f77b7cb52cbf66f904f5 +MD5 7a901a761eeca6f399ec3e065665558a files/fireflier.initd 666 +RMD160 5c53241123d0b97d03767b74f2508721e44a435c files/fireflier.initd 666 +SHA256 739d5bc9fa626d0d028f15ab68190bfa76b7d3524879f77b7cb52cbf66f904f5 files/fireflier.initd 666 +DIST fireflier_1.1.6.tgz 590607 RMD160 4f3b1165b5e59a333f753c7edeff80164b8b86bd SHA1 ad9d99fedf95b9936a451f6079bd6052acb14afd SHA256 59d37782a075833a2faf3b92571b8ff8ebb2ccc5a301f05148a15156b194f7cb +EBUILD fireflier-1.1.6.ebuild 2466 RMD160 43d2cfddaf2ff8a797068dd166713ba9b59d1e73 SHA1 9ce112e0a3289ab85b830e67d8811e35d76ddc50 SHA256 40ce5ff2ea712804402395247f90d22905c5fe9f0e713d69d83dfc25981630ff +MD5 5f5ee9c7e354c286690e7e2babc647a7 fireflier-1.1.6.ebuild 2466 +RMD160 43d2cfddaf2ff8a797068dd166713ba9b59d1e73 fireflier-1.1.6.ebuild 2466 +SHA256 40ce5ff2ea712804402395247f90d22905c5fe9f0e713d69d83dfc25981630ff fireflier-1.1.6.ebuild 2466 +MISC ChangeLog 396 RMD160 b15d013013b08348d0e4af115cb0a9a1038e28e3 SHA1 8b833bc9bcee630d43c63792d78c7f799642817f SHA256 3d0fa6a46d3ee0c2c6e271ff1fc11d9e66f970f3b3496255d9caddd3b11b900a +MD5 45f9f8d3712b6444d634bf9836aeaf61 ChangeLog 396 +RMD160 b15d013013b08348d0e4af115cb0a9a1038e28e3 ChangeLog 396 +SHA256 3d0fa6a46d3ee0c2c6e271ff1fc11d9e66f970f3b3496255d9caddd3b11b900a ChangeLog 396 +MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 +MD5 f34e3c8858756da0001b12d2d3fa1af2 metadata.xml 159 +RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b metadata.xml 159 +SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 metadata.xml 159 +MD5 0a4accbf60c5e0fc12b837094c39715e files/digest-fireflier-1.1.6 238 +RMD160 a5119e6a7282fd1b19997f385f7e3427bc14402c files/digest-fireflier-1.1.6 238 +SHA256 d136fc2e57fe1c31bcaf30cd8fa530fee6b6c5e899b56790d0fcece78e8d829d files/digest-fireflier-1.1.6 238 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.1 (GNU/Linux) + +iD8DBQFF1O+kz974XjDVpbkRAmmtAKCTG6xN6zWwX8ypuxgMesmpe+esLQCaA7pG +3QHhcMc0ZwnYd90RS/PhKbk= +=wLXP +-----END PGP SIGNATURE----- diff --git a/net-firewall/fireflier/files/digest-fireflier-1.1.6 b/net-firewall/fireflier/files/digest-fireflier-1.1.6 new file mode 100644 index 000000000000..a82b35f7dc3f --- /dev/null +++ b/net-firewall/fireflier/files/digest-fireflier-1.1.6 @@ -0,0 +1,3 @@ +MD5 b6065320a51534d13dcca11146b6b9e2 fireflier_1.1.6.tgz 590607 +RMD160 4f3b1165b5e59a333f753c7edeff80164b8b86bd fireflier_1.1.6.tgz 590607 +SHA256 59d37782a075833a2faf3b92571b8ff8ebb2ccc5a301f05148a15156b194f7cb fireflier_1.1.6.tgz 590607 diff --git a/net-firewall/fireflier/files/fireflier.initd b/net-firewall/fireflier/files/fireflier.initd new file mode 100644 index 000000000000..17f2a6e366a1 --- /dev/null +++ b/net-firewall/fireflier/files/fireflier.initd @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/fireflier/files/fireflier.initd,v 1.1 2007/02/15 23:42:38 jokey Exp $ + +depend() { + before net + after iptables + need logger +} + +checkconfig() { + # Verify kernel modules + modprobe -q ip_queue +} + +start() { + checkconfig || return 1 + ebegin "Starting Fireflier" + start-stop-daemon --start --quiet --pidfile /var/run/fireflier.pid \ + --startas /usr/sbin/fireflierd -- -d + eend $? +} + +stop() { + ebegin "Stopping Fireflier" + start-stop-daemon --stop --quiet --pidfile /var/run/fireflier.pid + eend $? +} diff --git a/net-firewall/fireflier/fireflier-1.1.6.ebuild b/net-firewall/fireflier/fireflier-1.1.6.ebuild new file mode 100644 index 000000000000..a121b182a435 --- /dev/null +++ b/net-firewall/fireflier/fireflier-1.1.6.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/fireflier/fireflier-1.1.6.ebuild,v 1.1 2007/02/15 23:42:38 jokey Exp $ + +inherit eutils kde linux-mod qt3 + +MY_P=${P/-/_} +DESCRIPTION="FireFlier, a personnal firewall for Liux based on IPTables" +HOMEPAGE="http://fireflier.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" + +LICENSE="GPL-2" +KEYWORDS="~x86" +SLOT="0" +IUSE="ssl qt3" + +DEPEND="net-firewall/iptables + sys-libs/pam + dev-libs/openssl + qt3? ( $(qt_min_version 3.3) )" + +# Checking if modules a present +modules_check() { + ebegin "Checking of kernel has the needed modules" + linux_chkconfig_present NETFILTER + linux_chkconfig_present IP_NF_QUEUE + linux_chkconfig_present IP_NF_IPTABLES + linux_chkconfig_present IP_NF_MATCH_STATE + linux_chkconfig_present IP_NF_FILTER + eend $? + + if [ "$?" != 0 ] + then + eerror "This program need following modules:" + eerror "CONFIG_NETFILTER CONFIG_IP_NF_QUEUE CONFIG_IP_NF_IPTABLES" + eerror "CONFIG_IP_NF_MATCH_STATE CONFIG_IP_NF_FILTER" + eerror + eerror "Please compile these modules into your kernel" + die "Modules needed" + fi +} + +src_compile() { + # Compile the server + # Check for modules + mkdir -p $T/fakehome + mkdir -p $T/fakehome/.qt + export HOME="$T/fakehome" + addwrite "${QTDIR}/etc/settings" + + modules_check + einfo "Compiling the Fireflier Server..." + cd "${S}"/server + econf || die "Failed to configure FireFlier server" + emake || die "Failed to compile FireFlier server" + # Compile the QT client + if use qt3 ; then + einfo "Compiling the Fireflier QT client" + cd "${S}"/qtclient + [ -f configure ] || (aclocal && autoconf) + econf --with-x \ + --with-Qt-dir=${QTDIR} || die "Failed to configure QT client" + emake || die "Failed to compile QT client" + fi +} + +src_install () { + cd "${S}"/server + make DESTDIR="${D}" install || die "Failed to install server" + newinitd "${FILESDIR}"/fireflier.initd fireflier + doman man/fireflier.1 + + dodir /usr/bin + if use qt3 ; then + cd "${S}"/qtclient + make DESTDIR="${D}" install || die "Failed to install QT client" + fi + cd "${S}" + dodoc AUTHORS AUTOLOGIN README TODO protocol.lyx +} + +pkg_postinst () { + ewarn "If you are using NIS or other networked naming solutions" + ewarn "then you need to make sure they are allowed by iptables" + ewarn "the first time you start fireflierd as otherwise your" + ewarn "system will be nearly unusable (no username-resolution!)" +} + diff --git a/net-firewall/fireflier/metadata.xml b/net-firewall/fireflier/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-firewall/fireflier/metadata.xml @@ -0,0 +1,5 @@ + + + +netmon +