summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2009-12-06 23:00:08 +0000
committerThomas Sachau <tommy@gentoo.org>2009-12-06 23:00:08 +0000
commit325fce0b47dd77b54468c257054dadbd674f3778 (patch)
treef837b90d5fe5a716687bd6d2706bafc68d98decd /net-firewall
parentAutomatic update to use.local.desc (diff)
downloadsunrise-reviewed-325fce0b47dd77b54468c257054dadbd674f3778.tar.gz
sunrise-reviewed-325fce0b47dd77b54468c257054dadbd674f3778.tar.bz2
sunrise-reviewed-325fce0b47dd77b54468c257054dadbd674f3778.zip
sunrise/ net-libs/libvuurmuur: Readd (lib)vuurmuur
svn path=/sunrise/; revision=9666
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/vuurmuur/ChangeLog9
-rw-r--r--net-firewall/vuurmuur/Manifest6
-rw-r--r--net-firewall/vuurmuur/files/vuurmuur.conf11
-rw-r--r--net-firewall/vuurmuur/files/vuurmuur.init57
-rw-r--r--net-firewall/vuurmuur/metadata.xml17
-rw-r--r--net-firewall/vuurmuur/vuurmuur-0.8_beta2.ebuild100
6 files changed, 200 insertions, 0 deletions
diff --git a/net-firewall/vuurmuur/ChangeLog b/net-firewall/vuurmuur/ChangeLog
new file mode 100644
index 000000000..7d96ae04e
--- /dev/null
+++ b/net-firewall/vuurmuur/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-firewall/vuurmuur
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 01 Dec 2009; Sven Schwyn (svoop) <gentoo@bitcetera.com>
+ +vuurmuur-0.8_beta2.ebuild, +files/vuurmuur.conf, +files/vuurmuur.init,
+ +metadata.xml:
+ Initial ebuild for bug 115697 thanks to TigerP and fredl.
+
diff --git a/net-firewall/vuurmuur/Manifest b/net-firewall/vuurmuur/Manifest
new file mode 100644
index 000000000..d072cb6c1
--- /dev/null
+++ b/net-firewall/vuurmuur/Manifest
@@ -0,0 +1,6 @@
+AUX vuurmuur.conf 311 RMD160 dc84e54dedc8db14d75cafaa8ab7098d75da104f SHA1 0f078fa4e563723998e348cd41ee47a274626ad3 SHA256 1724514ca6fed00ad42dabdebe43d095c12bb007b4382f6358135b99373a7466
+AUX vuurmuur.init 1257 RMD160 66087fa191a5a344d6671ff4aec2fb2f0315fc2d SHA1 7883be040d44ab925425c5eb2994dc85dbf5c7d4 SHA256 3179f7092f180a5287a6d0ed4519313df762f25a4de50acc376c5905729e0cae
+DIST Vuurmuur-0.8beta2.tar.gz 1877270 RMD160 d1f202adb5ab076ea7763c215faec2558100d5b6 SHA1 549cc3b7d8c86cac0cbccbb963a3b3d041e8ea70 SHA256 4c74de94698a0a4bca758322b5e4198afc27fb25401309a7ecff445742f28d0e
+EBUILD vuurmuur-0.8_beta2.ebuild 2565 RMD160 ccde772f6e32650da3af62e72623d3d40fc6bc5c SHA1 f40c074c796685fd2d67b62b2ecb38e697a2a438 SHA256 07bdcbaf82dd2346c58374f19e1a64a9d1256d5f2a9f5b69a90d882f9bcde6b0
+MISC ChangeLog 332 RMD160 04c823a02b57ca3de23e66549a33924fe11d8160 SHA1 136ce62dffe7aa780f4b6334feac82f6a0d6e0a3 SHA256 e11616ec626d7f5fae5d597fc06531d20f105397e06d3f07b88a571a9d2eaa26
+MISC metadata.xml 787 RMD160 7ba4b9181ee7ed0262274384606004f8fdc539f4 SHA1 1e0fd15989864731c442dd578c6fa9b9bc12c824 SHA256 56cd2a24a3a44c4031dd1530e75f6fe1adfda60d399870312f1989a57181ae56
diff --git a/net-firewall/vuurmuur/files/vuurmuur.conf b/net-firewall/vuurmuur/files/vuurmuur.conf
new file mode 100644
index 000000000..06958d0a7
--- /dev/null
+++ b/net-firewall/vuurmuur/files/vuurmuur.conf
@@ -0,0 +1,11 @@
+# Space separated list of kernel modules to load on start or 'none'.
+MODULES="none"
+
+# Configuration file to read.
+CONFIG=/etc/vuurmuur/config.conf
+
+# Options to be passed to the Vuurmuur daemon.
+OPTIONS="-l"
+
+# Comment the following line if you want more output when starting/stopping the daemons.
+QUIET="true" \ No newline at end of file
diff --git a/net-firewall/vuurmuur/files/vuurmuur.init b/net-firewall/vuurmuur/files/vuurmuur.init
new file mode 100644
index 000000000..a2e30a961
--- /dev/null
+++ b/net-firewall/vuurmuur/files/vuurmuur.init
@@ -0,0 +1,57 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+opts="${opts}"
+
+# this next comment is important, don't remove it - it has to be somewhere in
+# the init script to kill off a warning that doesn't apply to us
+# svc_start svc_stop
+
+depend() {
+ need net iptables
+ use modules
+}
+
+load_modules() {
+ if [ "${MODULES}" != "none" ]; then
+ ebegin "Loading modules for Vuurmuur"
+ local module
+ echo -n " "
+ for module in `echo ${MODULES}`; do
+ modprobe ${module}
+ echo -n "${module} "
+ done
+ echo
+ eend $?
+ fi
+}
+
+start() {
+ if load_modules ; then
+ ebegin "Starting Vuurmuur"
+ if test ! -f ${CONFIG}; then
+ eerror "Configuration file, ${CONFIG} does not exist."
+ eend 2
+ return 2
+ fi
+ start-stop-daemon --start ${QUIET+--quiet} --exec /usr/bin/vuurmuur -- ${OPTIONS}
+ eend $?
+ ebegin "Starting Vuurmuur Log"
+ start-stop-daemon --start ${QUIET+--quiet} --exec /usr/bin/vuurmuur_log
+ eend $?
+ else
+ eend 1
+ return 1
+ fi
+}
+
+stop() {
+ ebegin "Stopping Vuurmuur"
+ start-stop-daemon --stop ${QUIET+--quiet} --pidfile /var/run/vuurmuur.pid
+ eend $?
+ ebegin "Stopping Vuurmuur Log"
+ start-stop-daemon --stop ${QUIET+--quiet} --exec /usr/bin/vuurmuur_log
+ eend $?
+}
+
diff --git a/net-firewall/vuurmuur/metadata.xml b/net-firewall/vuurmuur/metadata.xml
new file mode 100644
index 000000000..62eba147a
--- /dev/null
+++ b/net-firewall/vuurmuur/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-wanted</herd>
+ <longdescription lang="en">
+ Vuurmuur is a firewall manager built on top of iptables on Linux.
+
+ It has a simple and easy to learn user interface that allows both simple
+ and complex configurations. The configuration can be fully made through
+ an Ncurses GUI, which allows secure remote administration over SSH or on
+ the console. Vuurmuur supports traffic shaping and has powerful monitoring
+ features, which allow the administrator to look at the logs, connections
+ and bandwidth usage in realtime.
+
+ This ebuild contains the daemon, binaries and configs for Vuurmuur.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-firewall/vuurmuur/vuurmuur-0.8_beta2.ebuild b/net-firewall/vuurmuur/vuurmuur-0.8_beta2.ebuild
new file mode 100644
index 000000000..4cd218534
--- /dev/null
+++ b/net-firewall/vuurmuur/vuurmuur-0.8_beta2.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit autotools
+
+MY_PN="Vuurmuur"
+MY_PV=${PV/_beta/beta}
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Frontend for iptables featuring easy to use command line utils, rule- and logdaemons"
+HOMEPAGE="http://www.vuurmuur.org"
+SRC_URI="ftp://ftp.vuurmuur.org/releases/${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="logrotate"
+
+RDEPEND="=net-libs/libvuurmuur-${PV}
+ >=sys-libs/ncurses-5
+ logrotate? ( app-admin/logrotate )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ for component in vuurmuur vuurmuur_conf; do
+ unpack "./${component}-${MY_PV}.tar.gz"
+ done
+}
+
+src_prepare() {
+ for component in vuurmuur vuurmuur_conf; do
+ cd "${S}/${component}-${MY_PV}"
+ eautoreconf
+ done
+}
+
+src_configure() {
+ cd "${S}/vuurmuur-${MY_PV}"
+ econf \
+ --with-libvuurmuur-includes=/usr/include \
+ --with-libvuurmuur-libraries=/usr/lib
+
+ cd "${S}/vuurmuur_conf-${MY_PV}"
+ econf \
+ --with-libvuurmuur-includes=/usr/include \
+ --with-libvuurmuur-libraries=/usr/lib \
+ --with-localedir=/usr/share/locale \
+ --with-widec=yes
+}
+
+src_compile() {
+ for component in vuurmuur vuurmuur_conf; do
+ cd "${S}/${component}-${MY_PV}"
+ emake || die "compiling ${component} failed"
+ done
+}
+
+src_install() {
+ cd "${S}/vuurmuur-${MY_PV}"
+ emake DESTDIR="${D}" install || die "installing vuurmuur failed"
+
+ newinitd "${FILESDIR}"/vuurmuur.init vuurmuur || die "installing init failed"
+ newconfd "${FILESDIR}"/vuurmuur.conf vuurmuur || die "installing conf failed"
+
+ insopts -m0600
+ insinto /etc/vuurmuur
+ newins config/config.conf.sample config.conf || die "installing config.conf failed"
+ insopts -m0644
+
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins scripts/vuurmuur-logrotate vuurmuur || die "installing logrotate config failed"
+ fi
+
+ cd "${S}/vuurmuur_conf-${MY_PV}"
+ emake DESTDIR="${D}" install || die "installing vuurmuur_conf failed"
+
+ # needed until the wizard scripts are copied by make
+ insopts -m0755
+ insinto /usr/share/scripts
+ doins scripts/*.sh || die "installing vuurmuur scripts failed"
+}
+
+pkg_postinst() {
+ elog "Please read the manual on www.vuurmuur.org now - you have"
+ elog "been warned!"
+ elog
+ elog "If this is a new install, make sure you define some rules"
+ elog "BEFORE you start the daemon in order not to lock yourself"
+ elog "out. The necessary steps are:"
+ elog "1) vuurmuur_conf"
+ elog "2) /etc/init.d/vuurmuur start"
+ elog "3) rc-update add vuurmuur default"
+}