ufw: add sv file

This commit is contained in:
Enno Boland 2016-04-04 13:05:27 +02:00
parent feb662a68f
commit 77eb0d935e
3 changed files with 9 additions and 1 deletions

3
srcpkgs/ufw/files/ufw/finish Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
set -e
exec ufw disable

4
srcpkgs/ufw/files/ufw/run Executable file
View File

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

View File

@ -1,7 +1,7 @@
# Template file for 'ufw'
pkgname=ufw
version=0.35
revision=1
revision=2
hostmakedepends="python iptables"
depends="${hostmakedepends}"
conf_files="/etc/default/ufw /etc/ufw/ufw.conf"
@ -18,5 +18,6 @@ do_install() {
sed -e 's|/lib|/usr/lib|' -i setup.py
python2 setup.py install --root=$DESTDIR
vmkdir usr/bin
vsv ufw
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
}