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