1 |
commit: b3b858110724cc3bf88b1048de07e56246f01033 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 28 23:02:17 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 28 23:02:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3b85811 |
7 |
|
8 |
net-firewall/firewalld: Re-add current stable |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-firewall/firewalld/Manifest | 1 + |
13 |
net-firewall/firewalld/firewalld-0.4.3.3.ebuild | 108 ++++++++++++++++++++++++ |
14 |
2 files changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/net-firewall/firewalld/Manifest b/net-firewall/firewalld/Manifest |
17 |
index 867d62e1570..f07683c2650 100644 |
18 |
--- a/net-firewall/firewalld/Manifest |
19 |
+++ b/net-firewall/firewalld/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST firewalld-0.4.3.3.tar.bz2 679617 BLAKE2B 37d3acda80f046e7e208f570688e9b554feb985c4b6c4d910236ed296113385bbc0c86fd4ae815538e0b68bef216154568b095023098d2b0620a1749af5cea4f SHA512 21cb91b9545263f6da4a6ff218c939b610c7fe5dba2ad509803673d9c01cf6fecb4ab32bacf1a04e3d579fd9699a03760475285f824a6641902037c81ad2243a |
22 |
DIST firewalld-0.5.1.tar.gz 1155989 BLAKE2B 8e5f67dc74738cec178715b0e3713afa7296be61b376a8d545b1ae1c01c0f0df78ec48222b6926bdce1d93c58f7d02fad14bc46c1ddd24840e8853e5e76b73ff SHA512 8c8ea1a07fc81b12f53fbc84112d18c65c4332e8f7b7d575dc1ccba8a12418c874f8503b0062b49990f8bcfdf5fdaa7c0e4e3ddc0e9b1d0a91f49eff284b22be |
23 |
|
24 |
diff --git a/net-firewall/firewalld/firewalld-0.4.3.3.ebuild b/net-firewall/firewalld/firewalld-0.4.3.3.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..566a084ed4b |
27 |
--- /dev/null |
28 |
+++ b/net-firewall/firewalld/firewalld-0.4.3.3.ebuild |
29 |
@@ -0,0 +1,108 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=5 |
34 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
35 |
+#BACKPORTS= |
36 |
+ |
37 |
+inherit autotools eutils gnome2-utils python-r1 systemd multilib bash-completion-r1 |
38 |
+ |
39 |
+DESCRIPTION="A firewall daemon with D-BUS interface providing a dynamic firewall" |
40 |
+HOMEPAGE="http://www.firewalld.org/" |
41 |
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.bz2 |
42 |
+ ${BACKPORTS:+https://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}" |
43 |
+ |
44 |
+LICENSE="GPL-2+" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="amd64 ~arm64 x86" |
47 |
+IUSE="gui" |
48 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
49 |
+ |
50 |
+RDEPEND="${PYTHON_DEPS} |
51 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
52 |
+ dev-python/decorator[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/python-slip-0.2.7[dbus,${PYTHON_USEDEP}] |
54 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
55 |
+ net-firewall/ebtables |
56 |
+ net-firewall/iptables[ipv6] |
57 |
+ net-firewall/ipset |
58 |
+ || ( >=sys-apps/openrc-0.11.5 sys-apps/systemd ) |
59 |
+ gui? ( |
60 |
+ x11-libs/gtk+:3 |
61 |
+ dev-python/PyQt4[${PYTHON_USEDEP}] |
62 |
+ )" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ dev-libs/glib:2 |
65 |
+ >=dev-util/intltool-0.35 |
66 |
+ sys-devel/gettext" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ [[ -n ${BACKPORTS} ]] && \ |
70 |
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ |
71 |
+ epatch |
72 |
+ |
73 |
+ epatch_user |
74 |
+ eautoreconf |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ python_setup |
79 |
+ |
80 |
+ econf \ |
81 |
+ --enable-systemd \ |
82 |
+ --with-iptables="${EPREFIX}/sbin/iptables" \ |
83 |
+ --with-ip6tables="${EPREFIX}/sbin/ip6tables" \ |
84 |
+ --with-iptables_restore="${EPREFIX}/sbin/iptables-restore" \ |
85 |
+ --with-ip6tables_restore="${EPREFIX}/sbin/ip6tables-restore" \ |
86 |
+ --with-ebtables="${EPREFIX}/sbin/ebtables" \ |
87 |
+ --with-ebtables_restore="${EPREFIX}/sbin/ebtables-restore" \ |
88 |
+ "$(systemd_with_unitdir 'systemd-unitdir')" \ |
89 |
+ --with-bashcompletiondir="$(get_bashcompdir)" |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ # manually split up the installation to avoid "file already exists" errors |
94 |
+ emake -C config DESTDIR="${D}" install |
95 |
+ emake -C po DESTDIR="${D}" install |
96 |
+ emake -C shell-completion DESTDIR="${D}" install |
97 |
+ emake -C doc DESTDIR="${D}" install |
98 |
+ |
99 |
+ install_python() { |
100 |
+ emake -C src DESTDIR="${D}" pythondir="$(python_get_sitedir)" install |
101 |
+ python_optimize |
102 |
+ } |
103 |
+ python_foreach_impl install_python |
104 |
+ |
105 |
+ python_replicate_script "${D}"/usr/bin/firewall-{offline-cmd,cmd,applet,config} |
106 |
+ python_replicate_script "${D}/usr/sbin/firewalld" |
107 |
+ |
108 |
+ # Get rid of junk |
109 |
+ rm -rf "${D}/etc/rc.d/" |
110 |
+ rm -rf "${D}/etc/sysconfig/" |
111 |
+ |
112 |
+ # For non-gui installs we need to remove GUI bits |
113 |
+ if ! use gui; then |
114 |
+ rm -rf "${D}/etc/xdg/autostart" |
115 |
+ rm -f "${D}/usr/bin/firewall-applet" |
116 |
+ rm -f "${D}/usr/bin/firewall-config" |
117 |
+ rm -rf "${D}/usr/share/applications" |
118 |
+ rm -rf "${D}/usr/share/icons" |
119 |
+ fi |
120 |
+ |
121 |
+ newinitd "${FILESDIR}"/firewalld.init firewalld |
122 |
+} |
123 |
+ |
124 |
+pkg_preinst() { |
125 |
+ gnome2_icon_savelist |
126 |
+ gnome2_schemas_savelist |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ gnome2_icon_cache_update |
131 |
+ gnome2_schemas_update |
132 |
+} |
133 |
+ |
134 |
+pkg_postrm() { |
135 |
+ gnome2_icon_cache_update |
136 |
+ gnome2_schemas_update |
137 |
+} |