Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/firewalld/, net-firewall/firewalld/files/
Date: Thu, 18 Oct 2018 05:20:35
Message-Id: 1539839964.9475fd2b16b650273ca215b4b88b08f7f3856d96.mattst88@gentoo
1 commit: 9475fd2b16b650273ca215b4b88b08f7f3856d96
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 18 04:50:47 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 18 05:19:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9475fd2b
7
8 net-firewall/firewalld: Version bump to 0.6.3
9
10 Handle a bunch of overdue changes at the same time:
11 - Depend on net-firewall/nftables (see upstream commit 7fc4b6cfb52c)
12 - Switch to python-single-r1 (see upstream commit 6d5c0c61fe04)
13 - Check for required kernel options (bug 540110)
14 - Update OpenRC init file (bug 654706)
15
16 Closes: https://github.com/gentoo/gentoo/pull/10033
17 Closes: https://bugs.gentoo.org/540110
18 Closes: https://bugs.gentoo.org/654706
19 Closes: https://bugs.gentoo.org/662314
20 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
21
22 net-firewall/firewalld/Manifest | 1 +
23 net-firewall/firewalld/files/firewalld.init | 4 +-
24 net-firewall/firewalld/firewalld-0.6.3.ebuild | 100 ++++++++++++++++++++++++++
25 3 files changed, 103 insertions(+), 2 deletions(-)
26
27 diff --git a/net-firewall/firewalld/Manifest b/net-firewall/firewalld/Manifest
28 index 867d62e1570..ab80ac82657 100644
29 --- a/net-firewall/firewalld/Manifest
30 +++ b/net-firewall/firewalld/Manifest
31 @@ -1 +1,2 @@
32 DIST firewalld-0.5.1.tar.gz 1155989 BLAKE2B 8e5f67dc74738cec178715b0e3713afa7296be61b376a8d545b1ae1c01c0f0df78ec48222b6926bdce1d93c58f7d02fad14bc46c1ddd24840e8853e5e76b73ff SHA512 8c8ea1a07fc81b12f53fbc84112d18c65c4332e8f7b7d575dc1ccba8a12418c874f8503b0062b49990f8bcfdf5fdaa7c0e4e3ddc0e9b1d0a91f49eff284b22be
33 +DIST firewalld-0.6.3.tar.gz 2294470 BLAKE2B 09bb971d8142e5d28b6a085527e7f5275090f15e5dc4ccf2b16b6ed837049ed75443b09a54db76e37c6f0c5db6524ba85cf34c5117c1139bba0e3b223f289d57 SHA512 ea9e8bad34d3608257ef2a38851855974eff97b21dbab93ca3d8cfad90339734a8124447ed531a978b41546ab4040135bb61c8fdc9677ba0df9188d7ee4422ee
34
35 diff --git a/net-firewall/firewalld/files/firewalld.init b/net-firewall/firewalld/files/firewalld.init
36 index 2618338e9f8..3bd3623de86 100644
37 --- a/net-firewall/firewalld/files/firewalld.init
38 +++ b/net-firewall/firewalld/files/firewalld.init
39 @@ -1,5 +1,5 @@
40 #!/sbin/openrc-run
41 -# Copyright 1999-2012 Gentoo Foundation
42 +# Copyright 1999-2018 Gentoo Authors
43 # Distributed under the terms of the GNU General Public License v2
44
45 description="FirewallD"
46 @@ -8,5 +8,5 @@ pidfile=/var/run/firewalld.pid
47
48 depend() {
49 need dbus
50 - provide iptables ip6tables ebtables
51 + provide firewall
52 }
53
54 diff --git a/net-firewall/firewalld/firewalld-0.6.3.ebuild b/net-firewall/firewalld/firewalld-0.6.3.ebuild
55 new file mode 100644
56 index 00000000000..fc1c2cde788
57 --- /dev/null
58 +++ b/net-firewall/firewalld/firewalld-0.6.3.ebuild
59 @@ -0,0 +1,100 @@
60 +# Copyright 1999-2018 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=6
64 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
65 +
66 +inherit autotools gnome2-utils linux-info python-single-r1 systemd bash-completion-r1
67 +
68 +DESCRIPTION="A firewall daemon with D-BUS interface providing a dynamic firewall"
69 +HOMEPAGE="http://www.firewalld.org/"
70 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
71 +
72 +LICENSE="GPL-2+"
73 +SLOT="0"
74 +KEYWORDS="~amd64 ~arm64 ~x86"
75 +IUSE="gui"
76 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
77 +
78 +RDEPEND="${PYTHON_DEPS}
79 + !!net-firewall/gshield
80 + dev-python/dbus-python[${PYTHON_USEDEP}]
81 + dev-python/decorator[${PYTHON_USEDEP}]
82 + >=dev-python/python-slip-0.2.7[dbus,${PYTHON_USEDEP}]
83 + dev-python/pygobject:3[${PYTHON_USEDEP}]
84 + net-firewall/ebtables
85 + net-firewall/iptables[ipv6]
86 + net-firewall/ipset
87 + net-firewall/nftables
88 + || ( >=sys-apps/openrc-0.11.5 sys-apps/systemd )
89 + gui? (
90 + x11-libs/gtk+:3
91 + dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
92 + )"
93 +DEPEND="${RDEPEND}
94 + dev-libs/glib:2
95 + >=dev-util/intltool-0.35
96 + sys-devel/gettext"
97 +
98 +RESTRICT="test" # bug 650760
99 +
100 +pkg_setup() {
101 + local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV4 ~NF_CONNTRACK_IPV6 ~NETFILTER_XT_MATCH_CONNTRACK"
102 + linux-info_pkg_setup
103 +}
104 +
105 +src_prepare() {
106 + default
107 + eautoreconf
108 +}
109 +
110 +src_configure() {
111 + python_setup
112 +
113 + econf \
114 + --enable-systemd \
115 + --with-iptables="${EPREFIX}/sbin/iptables" \
116 + --with-ip6tables="${EPREFIX}/sbin/ip6tables" \
117 + --with-iptables_restore="${EPREFIX}/sbin/iptables-restore" \
118 + --with-ip6tables_restore="${EPREFIX}/sbin/ip6tables-restore" \
119 + --with-ebtables="${EPREFIX}/sbin/ebtables" \
120 + --with-ebtables_restore="${EPREFIX}/sbin/ebtables-restore" \
121 + --with-nft="${EPREFIX}/sbin/nft" \
122 + --with-systemd-unitdir="$(systemd_get_systemunitdir)" \
123 + --with-bashcompletiondir="$(get_bashcompdir)"
124 +}
125 +
126 +src_install() {
127 + default
128 + python_optimize
129 +
130 + # Get rid of junk
131 + rm -rf "${D}/etc/rc.d/" || die
132 + rm -rf "${D}/etc/sysconfig/" || die
133 +
134 + # For non-gui installs we need to remove GUI bits
135 + if ! use gui; then
136 + rm -rf "${D}/etc/xdg/autostart" || die
137 + rm -f "${D}/usr/bin/firewall-applet" || die
138 + rm -f "${D}/usr/bin/firewall-config" || die
139 + rm -rf "${D}/usr/share/applications" || die
140 + rm -rf "${D}/usr/share/icons" || die
141 + fi
142 +
143 + newinitd "${FILESDIR}"/firewalld.init firewalld
144 +}
145 +
146 +pkg_preinst() {
147 + gnome2_icon_savelist
148 + gnome2_schemas_savelist
149 +}
150 +
151 +pkg_postinst() {
152 + gnome2_icon_cache_update
153 + gnome2_schemas_update
154 +}
155 +
156 +pkg_postrm() {
157 + gnome2_icon_cache_update
158 + gnome2_schemas_update
159 +}