summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2012-11-02 22:15:22 +0000
committerDoug Goldstein <cardoe@gentoo.org>2012-11-02 22:15:22 +0000
commit1c1dab0d40b6b8a0fe4afea7b35a8ea3899922c5 (patch)
tree679833110672a75ea5a50416627a246659760059 /net-firewall/firewalld
parentBump to 0.9.9, install pdf manual, fix gmime dep (439842), remove old (diff)
downloadhistorical-1c1dab0d40b6b8a0fe4afea7b35a8ea3899922c5.tar.gz
historical-1c1dab0d40b6b8a0fe4afea7b35a8ea3899922c5.tar.bz2
historical-1c1dab0d40b6b8a0fe4afea7b35a8ea3899922c5.zip
Initial version of firewalld. Let's see how this works out.
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Diffstat (limited to 'net-firewall/firewalld')
-rw-r--r--net-firewall/firewalld/ChangeLog10
-rw-r--r--net-firewall/firewalld/Manifest6
-rw-r--r--net-firewall/firewalld/files/firewalld.init21
-rw-r--r--net-firewall/firewalld/firewalld-0.2.9.ebuild82
-rw-r--r--net-firewall/firewalld/metadata.xml13
5 files changed, 132 insertions, 0 deletions
diff --git a/net-firewall/firewalld/ChangeLog b/net-firewall/firewalld/ChangeLog
new file mode 100644
index 000000000000..229920f742d6
--- /dev/null
+++ b/net-firewall/firewalld/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-firewall/firewalld
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/firewalld/ChangeLog,v 1.1 2012/11/02 22:15:21 cardoe Exp $
+
+*firewalld-0.2.9 (02 Nov 2012)
+
+ 02 Nov 2012; Doug Goldstein <cardoe@gentoo.org> +firewalld-0.2.9.ebuild,
+ +files/firewalld.init, +metadata.xml:
+ Initial version of firewalld. Let's see how this works out.
+
diff --git a/net-firewall/firewalld/Manifest b/net-firewall/firewalld/Manifest
new file mode 100644
index 000000000000..d21a61121753
--- /dev/null
+++ b/net-firewall/firewalld/Manifest
@@ -0,0 +1,6 @@
+AUX firewalld.init 561 SHA256 98bca869042295061eb2e7e236cffbf55163a473206def9541bd6eac7a2241dc SHA512 6d9c6fcc3c67bcd7e5862cc015fbb62adfe2d42b75dfcdb17f74f31df51c6542092fc009b5fbe833c1b5355fec693f0c03dd23ee83ec3ea8859e884ddb3bd1cb WHIRLPOOL c33f79f790e5f9581ce829c0c2b5d3085f3c9db07e74772f99b3557958be720f427d796a807d76cfed89bcd2e7ab749e967308b79aec3c64917d6c518a6c76e1
+DIST firewalld-0.2.9-3ab6b297.tar.xz 3776 SHA256 038b36d8d85af3aad5de087ba0612a57916c49b5aefcd4679f9d06d3aee533c8 SHA512 30f1b06b1f9b44ac163bc9bae744a2cf00f8bea03aa58f07ef452349880e24f43b809bab7b781500488991de99a9a879779a40651b5573a0802624ebb13c597e WHIRLPOOL 8019911c82c34f2e034c65fae30a50774e92edb8687af8264e466ce603d9319c21f1fa499fa3044d6280b58bd2e9792c0f98b86a0971819a217f5d168be6edde
+DIST firewalld-0.2.9.tar.bz2 280445 SHA256 106fd985074a74bbd84a3c866fa4023693b185d0e8b3e386d0aec9627b36bfd0 SHA512 1e1518ad2b7dd8e2c987bfa7b1efc72e7735444235a240350655801dc84a05fc1f9c524ea7ba71d5cc7d16735f2f54f3ed7d8bdd4b4770036a5756e379f7d656 WHIRLPOOL 849ccf8334f39333aa3c08e317d912528c4e69ebbb4db719ecf8428cc33c5f6e0d6a24eaef0f03ffbf912ce4619807904a3fd212cf6e63700c84dd1036291674
+EBUILD firewalld-0.2.9.ebuild 1924 SHA256 f8d4c78a206e832c7cca52948ef5bb81efb55d23e4732ec2382a3c3913a24795 SHA512 336c12b7e8b0302b8a84747eab31cf35c137ab5b0d015a34ffb33e2851af641246b0e8cdf495ff5a433905f2346092749606b1b0972730a1e9397d3f8b0cb9d0 WHIRLPOOL 49e40d89975f7f022942e16488931c46e9b5c4dcaa929e45e26cd653cccc97d8c3c76b6c7df914f4d7cd3fb403ffa78755244fe4ad06cb33a57914fbc2494916
+MISC ChangeLog 427 SHA256 62bde27ac36d66c751b526fbbbcd20e3c9da2aa8f70d3ada4e3129245c17f6cd SHA512 d9a00c76f545f5720b6ed3788a849c37042ef63e501f0899798482c4747ca73b69d53873af73a79abdeed81fa2fc4b479b36db5fbb4dfb9f0bd0cf49713307b9 WHIRLPOOL ce524216438629c6f38d5c890d60f8e1d092bd2eec1ae38d102c292ad3564ead5622bcee06861a31a3948eca145a4e1fb07667ae5a97d2ce2805a88c649baebe
+MISC metadata.xml 357 SHA256 ebd525995b6a8776c10d984533962fefe49a9d2e7e04ded9cc5b3efe664a58a8 SHA512 3bbc1d68b2999faf4c3a6acaf45f78621a7b612c7c691e5fdfbd7a92793be7629d67c7abf04b455c7cbef5bb0ab53214dfa15006a15df7fa40adca6689995c35 WHIRLPOOL 15b22a034a9186a4656431d20a4b64cb338ec865900fabf613e17da4c17f8e417fdf3223faaf6a9560c071b796c719157e84a8030bcf7365601f671b794461d2
diff --git a/net-firewall/firewalld/files/firewalld.init b/net-firewall/firewalld/files/firewalld.init
new file mode 100644
index 000000000000..871384d4d87d
--- /dev/null
+++ b/net-firewall/firewalld/files/firewalld.init
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/firewalld/files/firewalld.init,v 1.1 2012/11/02 22:15:21 cardoe Exp $
+
+depend() {
+ provide iptables ip6tables ebtables
+}
+
+start() {
+ ebegin "Starting FirewallD"
+ start-stop-daemon --start --quiet --exec /usr/sbin/firewalld \
+ --pidfile /var/run/firewalld.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping FirewallD"
+ start-stop-daemon --stop --quiet --pidfile /var/run/firewalld.pid
+ eend $?
+}
diff --git a/net-firewall/firewalld/firewalld-0.2.9.ebuild b/net-firewall/firewalld/firewalld-0.2.9.ebuild
new file mode 100644
index 000000000000..f03f1570f57e
--- /dev/null
+++ b/net-firewall/firewalld/firewalld-0.2.9.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/firewalld/firewalld-0.2.9.ebuild,v 1.1 2012/11/02 22:15:21 cardoe Exp $
+
+EAPI=4
+PYTHON_COMPAT=( python{2_6,2_7} )
+BACKPORTS=3ab6b297
+
+inherit autotools eutils gnome2-utils python-r1 systemd
+
+DESCRIPTION="A firewall daemon with D-BUS interface providing a dynamic firewall"
+HOMEPAGE="http://fedorahosted.org/firewalld"
+SRC_URI="https://fedorahosted.org/released/firewalld/${P}.tar.bz2
+ ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="gui"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/dbus-python
+ dev-python/decorator
+ >=dev-python/python-slip-0.2.7[dbus]
+ dev-python/pygobject:3
+ net-firewall/ebtables
+ net-firewall/iptables[ipv6]
+ gui? (
+ dev-python/pygtk:2
+ >=x11-libs/gtk+-2.6:2
+ x11-libs/gtk+:3
+ )"
+DEPEND="${RDEPEND}
+ dev-libs/glib:2
+ >=dev-util/intltool-0.35
+ sys-devel/gettext"
+
+src_prepare() {
+ [[ -n ${BACKPORTS} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ epatch_user
+ eautoreconf
+}
+
+src_configure() {
+ python_export_best
+
+ econf \
+ --enable-systemd
+ "$(systemd_with_unitdir 'systemd-unitdir')"
+}
+
+src_install() {
+ python_foreach_impl \
+ emake DESTDIR="${ED}" pythondir="$(python_get_sitedir)" install
+
+ # Get rid of junk
+ rm -f "${ED}/etc/rc.d/init.d/firewalld"
+ rm -f "${ED}/etc/sysconfig/firewalld"
+ rm -rf "${ED}/etc/rc.d/"
+ rm -rf "${ED}/etc/sysconfig/"
+
+ # For non-gui installs we need to remove GUI bits
+ if ! use gui; then
+ rm -f "${ED}/usr/bin/firewall-applet"
+ rm -f "${ED}/usr/bin/firewall-config"
+ rm -rf "${ED}/usr/share/icons"
+ rm -rf "${ED}/usr/share/applications"
+ fi
+
+ newinitd "${FILESDIR}"/firewalld.init firewalld
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/net-firewall/firewalld/metadata.xml b/net-firewall/firewalld/metadata.xml
new file mode 100644
index 000000000000..499286b8714a
--- /dev/null
+++ b/net-firewall/firewalld/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>virtualization</herd>
+ <maintainer>
+ <email>cardoe@gentoo.org</email>
+ <name>Doug Goldstein</name>
+ </maintainer>
+ <use>
+ <flag name='gui'>Builds and installs GUI configurator and GTK+ applet</flag>
+ </use>
+</pkgmetadata>
+