New package: runit-iptables-20180618 (#158)
This commit is contained in:
parent
3ee8d6d34f
commit
7723437cb3
2 changed files with 21 additions and 0 deletions
7
srcpkgs/runit-iptables/files/91-iptables.sh
Normal file
7
srcpkgs/runit-iptables/files/91-iptables.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
if [ -e /etc/iptables/iptables.rules ]; then
|
||||||
|
iptables-restore /etc/iptables/iptables.rules
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e /etc/iptables/ip6tables.rules ]; then
|
||||||
|
ip6tables-restore /etc/iptables/ip6tables.rules
|
||||||
|
fi
|
14
srcpkgs/runit-iptables/template
Normal file
14
srcpkgs/runit-iptables/template
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Template file for 'runit-iptables'
|
||||||
|
pkgname=runit-iptables
|
||||||
|
version=20180616
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
depends="runit-void iptables"
|
||||||
|
short_desc="Restore iptables rules on boot"
|
||||||
|
maintainer="Nicolas Porcel <nicolasporcel06@gmail.com>"
|
||||||
|
license="Public Domain"
|
||||||
|
homepage="http://www.voidlinux.org/"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vinstall ${FILESDIR}/91-iptables.sh 0644 etc/runit/core-services
|
||||||
|
}
|
Loading…
Reference in a new issue