shorewall: added runit service.
This commit is contained in:
parent
062b622c5d
commit
b344b3edc0
3 changed files with 10 additions and 5 deletions
3
srcpkgs/shorewall/files/shorewall/finish
Executable file
3
srcpkgs/shorewall/files/shorewall/finish
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
exec shorewall stop
|
4
srcpkgs/shorewall/files/shorewall/run
Executable file
4
srcpkgs/shorewall/files/shorewall/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
shorewall start
|
||||||
|
exec chpst -b shorewall pause
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'shorewall'
|
# Template file for 'shorewall'
|
||||||
pkgname=shorewall
|
pkgname=shorewall
|
||||||
version=4.6.3.2
|
version=4.6.3.2
|
||||||
revision=1
|
revision=2
|
||||||
_disturl="http://www.shorewall.net/pub/${pkgname}/4.6/${pkgname}-4.6.3"
|
_disturl="http://www.shorewall.net/pub/${pkgname}/4.6/${pkgname}-4.6.3"
|
||||||
distfiles="
|
distfiles="
|
||||||
${_disturl}/${pkgname}-${version}.tar.bz2
|
${_disturl}/${pkgname}-${version}.tar.bz2
|
||||||
|
@ -17,9 +17,9 @@ homepage="http://www.shorewall.net/"
|
||||||
license="GPL"
|
license="GPL"
|
||||||
short_desc="An iptables-based firewall for Linux systems"
|
short_desc="An iptables-based firewall for Linux systems"
|
||||||
|
|
||||||
|
replaces="runit-void<20141013_2"
|
||||||
noarch="yes"
|
noarch="yes"
|
||||||
create_wrksrc="yes"
|
create_wrksrc="yes"
|
||||||
systemd_services="${pkgname}.service off"
|
|
||||||
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/shorewall/accounting
|
/etc/shorewall/accounting
|
||||||
|
@ -67,7 +67,6 @@ conf_files="
|
||||||
/etc/shorewall/tunnels
|
/etc/shorewall/tunnels
|
||||||
/etc/shorewall/zones"
|
/etc/shorewall/zones"
|
||||||
|
|
||||||
|
|
||||||
do_build(){
|
do_build(){
|
||||||
for product in ${pkgname}{-core,6,}-${version}; do
|
for product in ${pkgname}{-core,6,}-${version}; do
|
||||||
cd ${wrksrc}/${product}
|
cd ${wrksrc}/${product}
|
||||||
|
@ -80,6 +79,7 @@ do_install() {
|
||||||
DESTDIR="${DESTDIR}" ./install.sh
|
DESTDIR="${DESTDIR}" ./install.sh
|
||||||
vmkdir usr/share/doc/${pkgname}
|
vmkdir usr/share/doc/${pkgname}
|
||||||
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
||||||
|
vsv shorewall
|
||||||
}
|
}
|
||||||
|
|
||||||
shorewall-core_package() {
|
shorewall-core_package() {
|
||||||
|
@ -91,12 +91,10 @@ shorewall-core_package() {
|
||||||
DESTDIR="${PKGDESTDIR}" ./install.sh
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shorewall6_package() {
|
shorewall6_package() {
|
||||||
noarch="yes"
|
noarch="yes"
|
||||||
depends="shorewall"
|
depends="shorewall"
|
||||||
short_desc+=" - IPv6 support"
|
short_desc+=" - IPv6 support"
|
||||||
systemd_services="${pkgname}.service off"
|
|
||||||
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
cd ${wrksrc}/${pkgname}-${version}
|
cd ${wrksrc}/${pkgname}-${version}
|
||||||
|
|
Loading…
Reference in a new issue