public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gnome:master commit in: net-firewall/firewalld/, net-firewall/firewalld/files/
@ 2012-07-19  1:09 Alexandre Restovtsev
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Restovtsev @ 2012-07-19  1:09 UTC (permalink / raw
  To: gentoo-commits

commit:     c455032cf3c7ac4a32b1c79b1c3003b123a9e249
Author:     Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 19 01:06:29 2012 +0000
Commit:     Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
CommitDate: Thu Jul 19 01:09:09 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=c455032c

net-firewall/firewalld: new package

This will likely become a future dependency of gnome (and
gnome-control-center-3.4 already attempts to call it), but at the
moment, it's not really usable and therefore not suitable for the main
portage tree.

---
 .../files/firewalld-0.2.5-gentoo-paths.patch       |  137 ++++++++++++++++++++
 net-firewall/firewalld/files/firewalld-0.2.5.conf  |    2 +
 net-firewall/firewalld/files/firewalld-0.2.5.init  |   31 +++++
 net-firewall/firewalld/firewalld-0.2.5.ebuild      |   89 +++++++++++++
 4 files changed, 259 insertions(+), 0 deletions(-)

diff --git a/net-firewall/firewalld/files/firewalld-0.2.5-gentoo-paths.patch b/net-firewall/firewalld/files/firewalld-0.2.5-gentoo-paths.patch
new file mode 100644
index 0000000..11cdef1
--- /dev/null
+++ b/net-firewall/firewalld/files/firewalld-0.2.5-gentoo-paths.patch
@@ -0,0 +1,137 @@
+From a7afb4b69ab10ebe39ec243f9a6b453e1dbe952c Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Wed, 18 Jul 2012 17:52:01 -0400
+Subject: [PATCH] Fix Gentoo paths
+
+Also, make applet installation optional.
+---
+ config/Makefile.am       |   19 +++++++++++++------
+ config/firewalld.service |    2 +-
+ configure.in             |    5 +++++
+ src/Makefile.am          |   14 +++++++++++---
+ 4 files changed, 30 insertions(+), 10 deletions(-)
+
+diff --git a/config/Makefile.am b/config/Makefile.am
+index 564242d..823e080 100644
+--- a/config/Makefile.am
++++ b/config/Makefile.am
+@@ -1,11 +1,13 @@
+ sconfdir = $(sysconfdir)/firewalld
+-prefixlibdir = ${prefix}/lib/firewalld
++prefixlibdir = $(libdir)/firewalld
+ dist_sconf_DATA = firewalld.conf
+ 
++if WANT_APPLET
+ desktop_FILES = firewall-applet.desktop.in
+ #firewall-config.desktop.in
+ desktopdir = $(datadir)/applications
+ dist_desktop_DATA = $(desktop_FILES:.in=)
++endif
+ 
+ polkit1_action_FILES = org.fedoraproject.FirewallD1.policy.in
+ polkit1_actiondir = $(datadir)/polkit-1/actions
+@@ -14,8 +16,10 @@ dist_polkit1_action_DATA = $(polkit1_action_FILES:.in=)
+ dbus_policydir = $(sysconfdir)/dbus-1/system.d
+ dist_dbus_policy_DATA = FirewallD.conf
+ 
++if WANT_APPLET
+ gsettings_in_file = org.fedoraproject.FirewallApplet.gschema.xml.in
+ gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
++endif
+ 
+ @INTLTOOL_DESKTOP_RULE@
+ @INTLTOOL_POLICY_RULE@
+@@ -76,14 +80,17 @@ uninstall-service:
+ 	rm -f $(DESTDIR)$(SYSTEMD_UNITDIR)/firewalld.service
+ 
+ install-config:
+-	mkdir -p $(DESTDIR)$(sconfdir)
+-	mkdir -p $(DESTDIR)$(sconfdir)/icmptypes
+-	mkdir -p $(DESTDIR)$(sconfdir)/services
+-	mkdir -p $(DESTDIR)$(sconfdir)/zones
+-	mkdir -p $(DESTDIR)$(prefixlibdir)
++	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)
++	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)/icmptypes
++	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)/services
++	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)/zones
++	mkdir -m 0750 -p $(DESTDIR)$(prefixlibdir)
+ 	cp -r icmptypes $(DESTDIR)$(prefixlibdir)
++	chmod 0750 $(DESTDIR)$(prefixlibdir)/icmptypes
+ 	cp -r services $(DESTDIR)$(prefixlibdir)
++	chmod 0750 $(DESTDIR)$(prefixlibdir)/services
+ 	cp -r zones $(DESTDIR)$(prefixlibdir)
++	chmod 0750 $(DESTDIR)$(prefixlibdir)/zones
+ 
+ uninstall-config:
+ 	rmdir $(DESTDIR)$(sconfdir)/icmptypes
+diff --git a/config/firewalld.service b/config/firewalld.service
+index 7280a4c..0b44b2f 100644
+--- a/config/firewalld.service
++++ b/config/firewalld.service
+@@ -8,7 +8,7 @@ Before=NetworkManager.service
+ Conflicts=iptables.service ip6tables.service ebtables.service
+ 
+ [Service]
+-EnvironmentFile=-/etc/sysconfig/firewalld
++EnvironmentFile=-/etc/conf.d/firewalld
+ ExecStart=/usr/sbin/firewalld --nofork $FIREWALLD_ARGS
+ ExecReload=/bin/kill -HUP $MAINPID
+ # supress to log debug and error output also to /var/log/messages
+diff --git a/configure.in b/configure.in
+index 2acb0bc..5121cf8 100644
+--- a/configure.in
++++ b/configure.in
+@@ -39,6 +39,11 @@ AC_ARG_WITH([systemd-unitdir],
+        [SYSTEMD_UNITDIR=$withval], [SYSTEMD_UNITDIR="/lib/systemd/system"])
+ AC_SUBST(SYSTEMD_UNITDIR)
+ 
++AC_ARG_ENABLE([applet],
++        AS_HELP_STRING([--disable-applet], [Do not install GTK applet]),
++        [want_applet=$enableval], [want_applet=yes])
++AM_CONDITIONAL(WANT_APPLET, test x$want_applet != xno)
++
+ #############################################################
+ 
+ AC_SUBST([GETTEXT_PACKAGE], '[PKG_NAME]')
+diff --git a/src/Makefile.am b/src/Makefile.am
+index d778c33..5c13e7f 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,17 +1,23 @@
+-bin_SCRIPTS = firewall-applet firewall-cmd
++bin_SCRIPTS = firewall-cmd
+ #firewall-config
+ sbin_SCRIPTS = firewalld
+ 
++if WANT_APPLET
++bin_SCRIPTS += firewall-applet
+ icondir = $(datadir)/icons/hicolor
+ iconFILES = icons/*/apps/*
++endif
+ 
+ EXTRA_DIST = $(bin_SCRIPTS) \
+ 	$(sbin_SCRIPTS) \
+ 	firewall/*.py \
+ 	firewall/*/*.py \
+ 	firewall/*/*.py.in \
+-	firewall/*/*/*.py \
+-	$(iconFILES)
++	firewall/*/*/*.py
++
++if WANT_APPLET
++EXTRA_DIST += $(iconFILES)
++endif
+ 
+ CLEANFILES = *~ *\# .\#* *.py?
+ 
+@@ -20,5 +26,7 @@ install-data-local:
+ 	cp -fpR firewall $(DESTDIR)/$(pythondir)
+ 	find $(DESTDIR)/$(pythondir) -name "*.in" -exec rm {} \;
+ 
++if WANT_APPLET
+ 	install -d $(DESTDIR)/$(icondir)
+ 	cp -fpR icons/* $(DESTDIR)/$(icondir)
++endif
+-- 
+1.7.8.6
+

diff --git a/net-firewall/firewalld/files/firewalld-0.2.5.conf b/net-firewall/firewalld/files/firewalld-0.2.5.conf
new file mode 100644
index 0000000..6b3be0d
--- /dev/null
+++ b/net-firewall/firewalld/files/firewalld-0.2.5.conf
@@ -0,0 +1,2 @@
+# firewalld command line arguments
+FIREWALLD_ARGS=""

diff --git a/net-firewall/firewalld/files/firewalld-0.2.5.init b/net-firewall/firewalld/files/firewalld-0.2.5.init
new file mode 100644
index 0000000..70bb791
--- /dev/null
+++ b/net-firewall/firewalld/files/firewalld-0.2.5.init
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+extra_started_commands="reload"
+
+depend() {
+    need dbus lo
+}
+
+start() {
+    ebegin "Starting FirewallD"
+    start-stop-daemon --start --quiet --pidfile /var/run/firewalld.pid \
+        --exec /usr/sbin/firewalld -- ${FIREWALLD_ARGS}
+    eend $?
+}
+
+stop() {
+    ebegin "Stopping FirewallD"
+    start-stop-daemon --stop --quiet --pidfile /var/run/firewalld.pid
+    eend $?
+}
+
+reload() {
+    ebegin "Reloading FirewallD config"
+    firewall-cmd --reload
+    eend $?
+}
+
+# vim: set ft=gentoo-init-d ts=4 sw=4 et:

diff --git a/net-firewall/firewalld/firewalld-0.2.5.ebuild b/net-firewall/firewalld/firewalld-0.2.5.ebuild
new file mode 100644
index 0000000..de3d950
--- /dev/null
+++ b/net-firewall/firewalld/firewalld-0.2.5.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+GCONF_DEBUG="no"
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="xml"
+
+inherit autotools eutils gnome2 python systemd
+
+DESCRIPTION="Dynamic firewall service with a D-BUS interface"
+HOMEPAGE="http://fedoraproject.org/wiki/FirewallD
+	https://fedorahosted.org/firewalld/"
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.bz2
+	http://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}-icons.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk"
+
+COMMON_DEPEND="dev-libs/glib:2
+"
+RDEPEND="${COMMON_DEPEND}
+	dev-python/dbus-python
+	dev-python/python-slip[dbus]
+	net-firewall/ebtables
+	>=net-firewall/iptables-1.4.6[ipv6]
+	sys-auth/polkit
+	gtk? (
+		dev-python/pygobject:3
+		net-misc/networkmanager[introspection]
+		x11-libs/gtk+:3[introspection]
+		x11-libs/libnotify[introspection] )
+"
+DEPEND="${COMMON_DEPEND}
+	>=dev-util/intltool-0.35
+	sys-devel/gettext
+"
+
+# Tests will modify the system firewall
+RESTRICT="test"
+
+pkg_setup() {
+	G2CONF="${G2CONF}
+		$(use_enable gtk applet)
+		$(systemd_with_unitdir systemd-unitdir)"
+
+	python_set_active_version 2
+	python_pkg_setup
+}
+
+src_prepare() {
+	python_clean_py-compile_files
+	python_convert_shebangs -r 2 .
+
+	epatch "${FILESDIR}/${PN}-0.2.5-gentoo-paths.patch"
+
+	# icons missing in tarball :/
+	cp -vr "${WORKDIR}/${P}-icons/"{16x16,22x22,24x24,32x32,48x48,scalable} \
+		src/icons/ || die "cp failed"
+
+	# pre-generated configure missing from tarball :/
+	if [[ ! -f po/POTFILES.in ]]; then
+		for i in $(cat po/POTFILES.in.in); do echo $i>>po/POTFILES.in; done
+	fi
+	eautoreconf
+	gnome2_src_prepare
+}
+
+src_install() {
+	gnome2_src_install
+	diropts 0750
+	keepdir /etc/firewalld/{icmptypes,services,zones}
+	newinitd "${FILESDIR}/${PN}-0.2.5.init" ${PN}
+	newconfd "${FILESDIR}/${PN}-0.2.5.conf" ${PN}
+}
+
+pkg_postinst() {
+	gnome2_pkg_postinst
+	python_mod_optimize firewall
+}
+
+pkg_postrm() {
+	gnome2_pkg_postrm
+	python_mod_cleanup firewall
+}



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/gnome:master commit in: net-firewall/firewalld/, net-firewall/firewalld/files/
@ 2012-12-09 21:01 Alexandre Rostovtsev
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Rostovtsev @ 2012-12-09 21:01 UTC (permalink / raw
  To: gentoo-commits

commit:     7d180aa199642f94f6a6698f5e7a04a2870f1712
Author:     Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  9 21:01:20 2012 +0000
Commit:     Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
CommitDate: Sun Dec  9 21:01:20 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=7d180aa1

net-firewall/firewalld: in gx86

---
 .../files/firewalld-0.2.5-gentoo-paths.patch       |  137 --------------------
 net-firewall/firewalld/files/firewalld-0.2.5.conf  |    2 -
 net-firewall/firewalld/files/firewalld-0.2.5.init  |   31 -----
 net-firewall/firewalld/firewalld-0.2.5.ebuild      |   89 -------------
 4 files changed, 0 insertions(+), 259 deletions(-)

diff --git a/net-firewall/firewalld/files/firewalld-0.2.5-gentoo-paths.patch b/net-firewall/firewalld/files/firewalld-0.2.5-gentoo-paths.patch
deleted file mode 100644
index 11cdef1..0000000
--- a/net-firewall/firewalld/files/firewalld-0.2.5-gentoo-paths.patch
+++ /dev/null
@@ -1,137 +0,0 @@
-From a7afb4b69ab10ebe39ec243f9a6b453e1dbe952c Mon Sep 17 00:00:00 2001
-From: Alexandre Rostovtsev <tetromino@gentoo.org>
-Date: Wed, 18 Jul 2012 17:52:01 -0400
-Subject: [PATCH] Fix Gentoo paths
-
-Also, make applet installation optional.
----
- config/Makefile.am       |   19 +++++++++++++------
- config/firewalld.service |    2 +-
- configure.in             |    5 +++++
- src/Makefile.am          |   14 +++++++++++---
- 4 files changed, 30 insertions(+), 10 deletions(-)
-
-diff --git a/config/Makefile.am b/config/Makefile.am
-index 564242d..823e080 100644
---- a/config/Makefile.am
-+++ b/config/Makefile.am
-@@ -1,11 +1,13 @@
- sconfdir = $(sysconfdir)/firewalld
--prefixlibdir = ${prefix}/lib/firewalld
-+prefixlibdir = $(libdir)/firewalld
- dist_sconf_DATA = firewalld.conf
- 
-+if WANT_APPLET
- desktop_FILES = firewall-applet.desktop.in
- #firewall-config.desktop.in
- desktopdir = $(datadir)/applications
- dist_desktop_DATA = $(desktop_FILES:.in=)
-+endif
- 
- polkit1_action_FILES = org.fedoraproject.FirewallD1.policy.in
- polkit1_actiondir = $(datadir)/polkit-1/actions
-@@ -14,8 +16,10 @@ dist_polkit1_action_DATA = $(polkit1_action_FILES:.in=)
- dbus_policydir = $(sysconfdir)/dbus-1/system.d
- dist_dbus_policy_DATA = FirewallD.conf
- 
-+if WANT_APPLET
- gsettings_in_file = org.fedoraproject.FirewallApplet.gschema.xml.in
- gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
-+endif
- 
- @INTLTOOL_DESKTOP_RULE@
- @INTLTOOL_POLICY_RULE@
-@@ -76,14 +80,17 @@ uninstall-service:
- 	rm -f $(DESTDIR)$(SYSTEMD_UNITDIR)/firewalld.service
- 
- install-config:
--	mkdir -p $(DESTDIR)$(sconfdir)
--	mkdir -p $(DESTDIR)$(sconfdir)/icmptypes
--	mkdir -p $(DESTDIR)$(sconfdir)/services
--	mkdir -p $(DESTDIR)$(sconfdir)/zones
--	mkdir -p $(DESTDIR)$(prefixlibdir)
-+	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)
-+	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)/icmptypes
-+	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)/services
-+	mkdir -m 0750 -p $(DESTDIR)$(sconfdir)/zones
-+	mkdir -m 0750 -p $(DESTDIR)$(prefixlibdir)
- 	cp -r icmptypes $(DESTDIR)$(prefixlibdir)
-+	chmod 0750 $(DESTDIR)$(prefixlibdir)/icmptypes
- 	cp -r services $(DESTDIR)$(prefixlibdir)
-+	chmod 0750 $(DESTDIR)$(prefixlibdir)/services
- 	cp -r zones $(DESTDIR)$(prefixlibdir)
-+	chmod 0750 $(DESTDIR)$(prefixlibdir)/zones
- 
- uninstall-config:
- 	rmdir $(DESTDIR)$(sconfdir)/icmptypes
-diff --git a/config/firewalld.service b/config/firewalld.service
-index 7280a4c..0b44b2f 100644
---- a/config/firewalld.service
-+++ b/config/firewalld.service
-@@ -8,7 +8,7 @@ Before=NetworkManager.service
- Conflicts=iptables.service ip6tables.service ebtables.service
- 
- [Service]
--EnvironmentFile=-/etc/sysconfig/firewalld
-+EnvironmentFile=-/etc/conf.d/firewalld
- ExecStart=/usr/sbin/firewalld --nofork $FIREWALLD_ARGS
- ExecReload=/bin/kill -HUP $MAINPID
- # supress to log debug and error output also to /var/log/messages
-diff --git a/configure.in b/configure.in
-index 2acb0bc..5121cf8 100644
---- a/configure.in
-+++ b/configure.in
-@@ -39,6 +39,11 @@ AC_ARG_WITH([systemd-unitdir],
-        [SYSTEMD_UNITDIR=$withval], [SYSTEMD_UNITDIR="/lib/systemd/system"])
- AC_SUBST(SYSTEMD_UNITDIR)
- 
-+AC_ARG_ENABLE([applet],
-+        AS_HELP_STRING([--disable-applet], [Do not install GTK applet]),
-+        [want_applet=$enableval], [want_applet=yes])
-+AM_CONDITIONAL(WANT_APPLET, test x$want_applet != xno)
-+
- #############################################################
- 
- AC_SUBST([GETTEXT_PACKAGE], '[PKG_NAME]')
-diff --git a/src/Makefile.am b/src/Makefile.am
-index d778c33..5c13e7f 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -1,17 +1,23 @@
--bin_SCRIPTS = firewall-applet firewall-cmd
-+bin_SCRIPTS = firewall-cmd
- #firewall-config
- sbin_SCRIPTS = firewalld
- 
-+if WANT_APPLET
-+bin_SCRIPTS += firewall-applet
- icondir = $(datadir)/icons/hicolor
- iconFILES = icons/*/apps/*
-+endif
- 
- EXTRA_DIST = $(bin_SCRIPTS) \
- 	$(sbin_SCRIPTS) \
- 	firewall/*.py \
- 	firewall/*/*.py \
- 	firewall/*/*.py.in \
--	firewall/*/*/*.py \
--	$(iconFILES)
-+	firewall/*/*/*.py
-+
-+if WANT_APPLET
-+EXTRA_DIST += $(iconFILES)
-+endif
- 
- CLEANFILES = *~ *\# .\#* *.py?
- 
-@@ -20,5 +26,7 @@ install-data-local:
- 	cp -fpR firewall $(DESTDIR)/$(pythondir)
- 	find $(DESTDIR)/$(pythondir) -name "*.in" -exec rm {} \;
- 
-+if WANT_APPLET
- 	install -d $(DESTDIR)/$(icondir)
- 	cp -fpR icons/* $(DESTDIR)/$(icondir)
-+endif
--- 
-1.7.8.6
-

diff --git a/net-firewall/firewalld/files/firewalld-0.2.5.conf b/net-firewall/firewalld/files/firewalld-0.2.5.conf
deleted file mode 100644
index 6b3be0d..0000000
--- a/net-firewall/firewalld/files/firewalld-0.2.5.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-# firewalld command line arguments
-FIREWALLD_ARGS=""

diff --git a/net-firewall/firewalld/files/firewalld-0.2.5.init b/net-firewall/firewalld/files/firewalld-0.2.5.init
deleted file mode 100644
index 70bb791..0000000
--- a/net-firewall/firewalld/files/firewalld-0.2.5.init
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-extra_started_commands="reload"
-
-depend() {
-    need dbus lo
-}
-
-start() {
-    ebegin "Starting FirewallD"
-    start-stop-daemon --start --quiet --pidfile /var/run/firewalld.pid \
-        --exec /usr/sbin/firewalld -- ${FIREWALLD_ARGS}
-    eend $?
-}
-
-stop() {
-    ebegin "Stopping FirewallD"
-    start-stop-daemon --stop --quiet --pidfile /var/run/firewalld.pid
-    eend $?
-}
-
-reload() {
-    ebegin "Reloading FirewallD config"
-    firewall-cmd --reload
-    eend $?
-}
-
-# vim: set ft=gentoo-init-d ts=4 sw=4 et:

diff --git a/net-firewall/firewalld/firewalld-0.2.5.ebuild b/net-firewall/firewalld/firewalld-0.2.5.ebuild
deleted file mode 100644
index de3d950..0000000
--- a/net-firewall/firewalld/firewalld-0.2.5.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-GCONF_DEBUG="no"
-PYTHON_DEPEND="2"
-PYTHON_USE_WITH="xml"
-
-inherit autotools eutils gnome2 python systemd
-
-DESCRIPTION="Dynamic firewall service with a D-BUS interface"
-HOMEPAGE="http://fedoraproject.org/wiki/FirewallD
-	https://fedorahosted.org/firewalld/"
-SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.bz2
-	http://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}-icons.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="gtk"
-
-COMMON_DEPEND="dev-libs/glib:2
-"
-RDEPEND="${COMMON_DEPEND}
-	dev-python/dbus-python
-	dev-python/python-slip[dbus]
-	net-firewall/ebtables
-	>=net-firewall/iptables-1.4.6[ipv6]
-	sys-auth/polkit
-	gtk? (
-		dev-python/pygobject:3
-		net-misc/networkmanager[introspection]
-		x11-libs/gtk+:3[introspection]
-		x11-libs/libnotify[introspection] )
-"
-DEPEND="${COMMON_DEPEND}
-	>=dev-util/intltool-0.35
-	sys-devel/gettext
-"
-
-# Tests will modify the system firewall
-RESTRICT="test"
-
-pkg_setup() {
-	G2CONF="${G2CONF}
-		$(use_enable gtk applet)
-		$(systemd_with_unitdir systemd-unitdir)"
-
-	python_set_active_version 2
-	python_pkg_setup
-}
-
-src_prepare() {
-	python_clean_py-compile_files
-	python_convert_shebangs -r 2 .
-
-	epatch "${FILESDIR}/${PN}-0.2.5-gentoo-paths.patch"
-
-	# icons missing in tarball :/
-	cp -vr "${WORKDIR}/${P}-icons/"{16x16,22x22,24x24,32x32,48x48,scalable} \
-		src/icons/ || die "cp failed"
-
-	# pre-generated configure missing from tarball :/
-	if [[ ! -f po/POTFILES.in ]]; then
-		for i in $(cat po/POTFILES.in.in); do echo $i>>po/POTFILES.in; done
-	fi
-	eautoreconf
-	gnome2_src_prepare
-}
-
-src_install() {
-	gnome2_src_install
-	diropts 0750
-	keepdir /etc/firewalld/{icmptypes,services,zones}
-	newinitd "${FILESDIR}/${PN}-0.2.5.init" ${PN}
-	newconfd "${FILESDIR}/${PN}-0.2.5.conf" ${PN}
-}
-
-pkg_postinst() {
-	gnome2_pkg_postinst
-	python_mod_optimize firewall
-}
-
-pkg_postrm() {
-	gnome2_pkg_postrm
-	python_mod_cleanup firewall
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-09 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-09 21:01 [gentoo-commits] proj/gnome:master commit in: net-firewall/firewalld/, net-firewall/firewalld/files/ Alexandre Rostovtsev
  -- strict thread matches above, loose matches on Subject: below --
2012-07-19  1:09 Alexandre Restovtsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox