diff --git a/srcpkgs/runit-nftables/files/91-nftables.sh b/srcpkgs/runit-nftables/files/91-nftables.sh new file mode 100644 index 00000000000..8af4ca96dca --- /dev/null +++ b/srcpkgs/runit-nftables/files/91-nftables.sh @@ -0,0 +1,3 @@ +if [ -e /etc/nftables.conf ]; then + nft -f /etc/nftables.conf +fi diff --git a/srcpkgs/runit-nftables/template b/srcpkgs/runit-nftables/template new file mode 100644 index 00000000000..d07cb42cae5 --- /dev/null +++ b/srcpkgs/runit-nftables/template @@ -0,0 +1,14 @@ +# Template file for 'runit-nftables' +pkgname=runit-nftables +version=20200123 +revision=1 +archs=noarch +depends="runit-void nftables" +short_desc="Restore nftables rules on boot" +maintainer="Andrew J. Hesford " +license="Public Domain" +homepage="https://www.voidlinux.org" + +do_install() { + vinstall ${FILESDIR}/91-nftables.sh 0644 etc/runit/core-services +}