mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-12 17:21:39 +02:00
90 lines
2.0 KiB
Plaintext
90 lines
2.0 KiB
Plaintext
# Contributor: Jordan ERNST <SecT0uch@sect0uch.world>
|
|
# Maintainer: Jordan ERNST <SecT0uch@sect0uch.world>
|
|
pkgname=firewalld
|
|
pkgver=2.0.1
|
|
pkgrel=0
|
|
pkgdesc="Firewall daemon with D-Bus interface providing a dynamic firewall"
|
|
url="https://github.com/firewalld/firewalld"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
# checks produce errors (firewalld needs to be started)
|
|
options="!check"
|
|
depends="
|
|
dbus
|
|
nftables
|
|
py3-dbus
|
|
py3-gobject3
|
|
py3-nftables
|
|
"
|
|
makedepends="
|
|
autoconf
|
|
desktop-file-utils
|
|
docbook-xsl
|
|
gettext
|
|
glib-dev
|
|
intltool
|
|
libxslt
|
|
"
|
|
checkdepends="
|
|
iproute2-minimal
|
|
musl-locales
|
|
"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-doc
|
|
$pkgname-gui
|
|
$pkgname-lang
|
|
$pkgname-openrc
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="
|
|
https://github.com/firewalld/firewalld/releases/download/v$pkgver/firewalld-$pkgver.tar.bz2
|
|
$pkgname.initd
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
# Disable sytemd and iptables features
|
|
./configure \
|
|
--sysconfdir=/etc \
|
|
--disable-systemd \
|
|
--without-systemd-unitdir \
|
|
--disable-rpmmacros \
|
|
--without-iptables \
|
|
--without-ip6tables \
|
|
--without-ebtables \
|
|
--without-ipset \
|
|
--without-iptables-restore \
|
|
--without-ip6tables-restore \
|
|
--without-ebtables-restore
|
|
make dist
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# Remove useless
|
|
rm -rf "$pkgdir"/etc/sysconfig/
|
|
rm -rf "$pkgdir"/etc/rc.d/
|
|
|
|
install -Dm 755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
|
}
|
|
|
|
gui() {
|
|
# Taken here: https://gitweb.gentoo.org/repo/gentoo.git/tree/net-firewall/firewalld/firewalld-1.2.1.ebuild#n181
|
|
pkgdesc="GUI tools and assets for $pkgname"
|
|
amove etc/xdg
|
|
amove usr/bin/firewall-applet
|
|
amove usr/bin/firewall-config
|
|
amove usr/share/applications
|
|
amove usr/share/icons
|
|
}
|
|
|
|
sha512sums="
|
|
31b18b74af4d731f6259915fd86d6551968eea563deba211b6d304d961747662085a02c7c185c0d7d8916693f53a5dca581b0877bce59c634e99a9f20de2f3e1 firewalld-2.0.1.tar.bz2
|
|
7a3089c1e34f4b499f463e7adf5ca4f1137994290780ebb08cdcf8728f0933d7236d1aa202c6598c3033d4984d7e113dec102f3b617ad2b766271c60e151d930 firewalld.initd
|
|
"
|