mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-04 05:12:37 +02:00
85 lines
2.0 KiB
Plaintext
85 lines
2.0 KiB
Plaintext
# Contributor: Jordan ERNST <SecT0uch@sect0uch.world>
|
|
# Maintainer: Jordan ERNST <SecT0uch@sect0uch.world>
|
|
pkgname=firewalld
|
|
pkgver=2.1.2
|
|
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
|
|
"
|
|
|
|
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="
|
|
c2f107a917093fbd51448b954c98ccdb90c4a19880dc69d13f3e9f179cb271b3a67015e315f05ba3b0d0ccd1dc5c01d3737a6c7f91430667f6ee3b468785cd4f firewalld-2.1.2.tar.bz2
|
|
7a3089c1e34f4b499f463e7adf5ca4f1137994290780ebb08cdcf8728f0933d7236d1aa202c6598c3033d4984d7e113dec102f3b617ad2b766271c60e151d930 firewalld.initd
|
|
"
|