diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2012-11-02 22:15:21 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2012-11-02 22:15:21 +0000 |
commit | 5bb44c6f6abf3bad25f00bf9a1412f74361ceb48 (patch) | |
tree | 5094dc26831da53606ebab5ffff0a1aa939a7159 /net-firewall/firewalld | |
parent | Bump to 0.9.9, install pdf manual, fix gmime dep (439842), remove old (diff) | |
download | gentoo-2-5bb44c6f6abf3bad25f00bf9a1412f74361ceb48.tar.gz gentoo-2-5bb44c6f6abf3bad25f00bf9a1412f74361ceb48.tar.bz2 gentoo-2-5bb44c6f6abf3bad25f00bf9a1412f74361ceb48.zip |
Initial version of firewalld. Let's see how this works out.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-firewall/firewalld')
-rw-r--r-- | net-firewall/firewalld/ChangeLog | 10 | ||||
-rw-r--r-- | net-firewall/firewalld/files/firewalld.init | 21 | ||||
-rw-r--r-- | net-firewall/firewalld/firewalld-0.2.9.ebuild | 82 | ||||
-rw-r--r-- | net-firewall/firewalld/metadata.xml | 13 |
4 files changed, 126 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/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> + |