shorewall: added runit service.

This commit is contained in:
Juan RP 2014-10-13 17:04:26 +02:00
parent 062b622c5d
commit b344b3edc0
3 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
set -e
exec shorewall stop

View file

@ -0,0 +1,4 @@
#!/bin/sh
set -e
shorewall start
exec chpst -b shorewall pause

View file

@ -1,7 +1,7 @@
# Template file for 'shorewall'
pkgname=shorewall
version=4.6.3.2
revision=1
revision=2
_disturl="http://www.shorewall.net/pub/${pkgname}/4.6/${pkgname}-4.6.3"
distfiles="
${_disturl}/${pkgname}-${version}.tar.bz2
@ -17,9 +17,9 @@ homepage="http://www.shorewall.net/"
license="GPL"
short_desc="An iptables-based firewall for Linux systems"
replaces="runit-void<20141013_2"
noarch="yes"
create_wrksrc="yes"
systemd_services="${pkgname}.service off"
make_dirs="/var/lib/${pkgname} 0755 0 0"
conf_files="
/etc/shorewall/accounting
@ -67,7 +67,6 @@ conf_files="
/etc/shorewall/tunnels
/etc/shorewall/zones"
do_build(){
for product in ${pkgname}{-core,6,}-${version}; do
cd ${wrksrc}/${product}
@ -80,6 +79,7 @@ do_install() {
DESTDIR="${DESTDIR}" ./install.sh
vmkdir usr/share/doc/${pkgname}
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
vsv shorewall
}
shorewall-core_package() {
@ -91,12 +91,10 @@ shorewall-core_package() {
DESTDIR="${PKGDESTDIR}" ./install.sh
}
}
shorewall6_package() {
noarch="yes"
depends="shorewall"
short_desc+=" - IPv6 support"
systemd_services="${pkgname}.service off"
make_dirs="/var/lib/${pkgname} 0755 0 0"
pkg_install() {
cd ${wrksrc}/${pkgname}-${version}