aports/openrc/iptables/APKBUILD

32 lines
1.2 KiB
Plaintext
Raw Normal View History

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_svcname=iptables
_grpname=firewall
. ../APKBUILD-openrc.common
pkgver=2021.01.26
pkgrel=2
source="
runfile-4
runfile-6
conffile-4
conffile-6
"
package() {
mkdir -p "$pkgdir"/etc/runlevels/$_grpname
ln -s /etc/init.d/iptables.redxen "$pkgdir"/etc/runlevels/$_grpname
ln -s /etc/init.d/ip6tables.redxen "$pkgdir"/etc/runlevels/$_grpname
install -Dm755 runfile-4 "$pkgdir"/etc/init.d/iptables.redxen
install -Dm755 runfile-6 "$pkgdir"/etc/init.d/ip6tables.redxen
install -Dm644 conffile-4 "$pkgdir"/etc/conf.d/iptables.redxen
install -Dm644 conffile-6 "$pkgdir"/etc/conf.d/ip6tables.redxen
}
sha512sums="5345c1607fd90f08db81e20466ad4169461ed8a711689567e0534a4d1afbf115cf7d0420d39c7ed3ce688387ce31cb8b0092955c9022c40e0ddb82dc7ab1b620 runfile-4
5345c1607fd90f08db81e20466ad4169461ed8a711689567e0534a4d1afbf115cf7d0420d39c7ed3ce688387ce31cb8b0092955c9022c40e0ddb82dc7ab1b620 runfile-6
9673f6611a4bfdc27fd4f6759331ce6696d688950c98cc8017ac396e9c26b2036c46108c2ea7f5d631d0dd67f79552e3713b973a752f2c47c8e4178f3d16da9a conffile-4
02ce6849b1f9723f97bba57682ad3f3aebe9e80ee89cf0f324c69bc753654a8e6693804c4462b848945f0b50752378b4c3b7c4a95c1ce81406b37288968aaa1b conffile-6"