From f89596a952b605035bd611e72d7e938cb4b30555 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Wed, 22 Jan 2020 23:13:56 -0500 Subject: [PATCH] New package: runit-nftables-20200123 --- srcpkgs/runit-nftables/files/91-nftables.sh | 3 +++ srcpkgs/runit-nftables/template | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 srcpkgs/runit-nftables/files/91-nftables.sh create mode 100644 srcpkgs/runit-nftables/template 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 +}