net-firewall/firewalld: Drop package
firewalld has a weird syntax, auth issues with polkit and so on. I’ll stick with the simplicity/KISS fanatics wrt security..
This commit is contained in:
parent
cfb32609ed
commit
931ab41df2
@ -1,22 +0,0 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST firewalld-0.8.0.tar.gz 1245947 BLAKE2B 2258449a0964bf36c48bbb8dd0c62b032f3fe6a2e530a298eeaa76901eb4fddd340c51ddadae3e7d4f6fb7944a7fe6f107caa4955d5e64228164e98e9500a923 SHA512 f046c81894b84aba58432eb5b902bee1e5ebad63e987183c4a144fa1fc40026c927a3da0422f515cc095a325a033b79193928799a8a02f1e5a315db922d70a43
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAl4JKB5fFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDcy
|
||||
MERFQ0UyRTUxQUUxNzEzQkQ5NzU5MEJDNURDMjk5OEFBRDJCMjEACgkQvF3CmYqt
|
||||
KyENSRAAnm6Q1Wy3IQSDfN0HQyOgdQ7azTH6s8nsjxHW8fmrEwgArIOqDO0IgVa3
|
||||
xs+2kHNeyhvSl5qnkaqOQhoYz5GsaiR7/xVPV2QT69jilY+u5OcNmYLdq1FwFWEg
|
||||
IRx01t/7S5l1tGWsvkE88BZuVk0o+tMhGbfJSiwEh0afbpALLyQdLrpih7/zpO4m
|
||||
4trP7SGGtuXfYlyKsyxY4yuo12fXu7F4Z4imyfH7ua/8BHgvI4UdyVkUPf7aLwpc
|
||||
UOP+SR0JHDA/oJunEQ8YYqCIgLLzWDO6gZI+VU2d6/37/TtzycpynEQvtJ0dZ5C5
|
||||
qCctG4xL5xxFWWdWbBE8YJ0E06dHTH5aLAw6gyFMiQD/s9x+isaqZroYgaPuNGsQ
|
||||
Oa248bFjrBITAVRZzwUQVqupjKD3/s3p0broVEgDBQIjc4bSjJKWLQR8cvYaa4Fs
|
||||
9WFOKHgwh9asQDKmEfXhte6Gz47F8q1WbddW0AFDkPqgS7R6WvbnJkQIPpPQU2d0
|
||||
HR5H6DC00Kbckb332RifaSXmh0KWDN0wMGKCw6qitUljVvderJEA8mSWc/FrdMSK
|
||||
+z63cz9yUTuNHK8PcxQoFZH97XjWfdMCfuf4kuPRQMSTPqwiEFJ7vFhOeYjoFZpq
|
||||
HlkXs0KKuJ7+CrIeIwkDmydLfvZ14o2utTraaYzHyKGee9vjOQQ=
|
||||
=H5kY
|
||||
-----END PGP SIGNATURE-----
|
@ -1,12 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="firewalld"
|
||||
command=/usr/sbin/firewalld
|
||||
pidfile=/var/run/firewalld.pid
|
||||
|
||||
depend() {
|
||||
need dbus
|
||||
provide firewall
|
||||
}
|
@ -1,145 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit autotools bash-completion-r1 gnome2-utils linux-info python-single-r1 systemd xdg-utils
|
||||
|
||||
DESCRIPTION="A firewall daemon with D-BUS interface providing a dynamic firewall"
|
||||
HOMEPAGE="https://www.firewalld.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="iptables gui systemd +nftables"
|
||||
REQUIRED_USE="
|
||||
|| ( iptables nftables )
|
||||
${PYTHON_REQUIRED_USE}
|
||||
"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/python-slip[dbus,${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
nftables? ( net-firewall/nftables[python,${PYTHON_USEDEP}] )
|
||||
iptables? (
|
||||
net-firewall/ipset
|
||||
net-firewall/iptables[ipv6]
|
||||
|| (
|
||||
net-firewall/iptables[nftables]
|
||||
net-firewall/ebtables
|
||||
)
|
||||
)
|
||||
systemd? ( sys-apps/systemd )
|
||||
!systemd? ( sys-apps/openrc )
|
||||
gui? (
|
||||
x11-libs/gtk+:3
|
||||
dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/glib:2
|
||||
>=dev-util/intltool-0.35
|
||||
sys-devel/gettext"
|
||||
|
||||
# See bug 650760.
|
||||
# And it got even worse with $PV == 0.8.0:
|
||||
# Out of 149 tests 1 passed, 147 failed unexpectedly and 1 was skipped.
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
get_version
|
||||
|
||||
local CONFIG_CHECK="~NF_CONNTRACK "
|
||||
# The seperate conntrack modules were merged into one with linux-4.19,
|
||||
# so let's check against our current version.
|
||||
if [[ ${KV_MAJOR} < 4 && ${KV_MINOR} < 19 ]]
|
||||
then CONFIG_CHECK+="~NF_CONNTRACK_IPV4 ~NF_CONNTRACK_IPV6 "
|
||||
fi
|
||||
use iptables && CONFIG_CHECK+="~NETFILTER_XT_MATCH_CONNTRACK"
|
||||
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
python_setup
|
||||
|
||||
local myeconfargs=(
|
||||
--with-bashcompletiondir="$(get_bashcompdir)"
|
||||
)
|
||||
|
||||
if systemd
|
||||
then myeconfargs+=(
|
||||
--enable-systemd
|
||||
--with-systemd-unitdir="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
else myeconfargs+=( --disable-systemd )
|
||||
fi
|
||||
|
||||
if use iptables
|
||||
then myeconfargs+=(
|
||||
--with-iptables="${EPREFIX}/sbin/iptables"
|
||||
--with-ip6tables="${EPREFIX}/sbin/ip6tables"
|
||||
--with-iptables_restore="${EPREFIX}/sbin/iptables-restore"
|
||||
--with-ip6tables_restore="${EPREFIX}/sbin/ip6tables-restore"
|
||||
--with-ebtables="${EPREFIX}/sbin/ebtables"
|
||||
--with-ebtables-restore="${EPREFIX}/sbin/ebtables-restore"
|
||||
--with-ipset="${EPREFIX}/usr/sbin/ipset"
|
||||
)
|
||||
fi
|
||||
if use nftables
|
||||
then myeconfargs+=(
|
||||
--without-iptables
|
||||
--without-ip6tables
|
||||
--without-iptables-restore
|
||||
--without-ip6tables-restore
|
||||
--without-ebtables
|
||||
--without-ebtables-restore
|
||||
--without-ipset
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
python_optimize
|
||||
|
||||
# Get rid of junk
|
||||
rm -rf "${D}/etc/rc.d/" || die
|
||||
rm -rf "${D}/etc/sysconfig/" || die
|
||||
|
||||
# For non-gui installs we need to remove GUI bits
|
||||
if ! use gui; then
|
||||
rm -rf "${D}/etc/xdg/autostart" || die
|
||||
rm -f "${D}/usr/bin/firewall-applet" || die
|
||||
rm -f "${D}/usr/bin/firewall-config" || die
|
||||
rm -rf "${D}/usr/share/applications" || die
|
||||
rm -rf "${D}/usr/share/icons" || die
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/firewalld.init firewalld
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>holgersson@posteo.de</email>
|
||||
<name>Nils Freydank</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="iptables">Support (legacy) iptables kernel interface</flag>
|
||||
<flag name="gui">Builds and installs GUI configurator and GTK+ applet</flag>
|
||||
<flag name="nftables">Support nftables kernel interface</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user