ufw: add sv file
This commit is contained in:
parent
feb662a68f
commit
77eb0d935e
3
srcpkgs/ufw/files/ufw/finish
Executable file
3
srcpkgs/ufw/files/ufw/finish
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
exec ufw disable
|
4
srcpkgs/ufw/files/ufw/run
Executable file
4
srcpkgs/ufw/files/ufw/run
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
ufw enable
|
||||||
|
exec chpst -b ufw pause
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'ufw'
|
# Template file for 'ufw'
|
||||||
pkgname=ufw
|
pkgname=ufw
|
||||||
version=0.35
|
version=0.35
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="python iptables"
|
hostmakedepends="python iptables"
|
||||||
depends="${hostmakedepends}"
|
depends="${hostmakedepends}"
|
||||||
conf_files="/etc/default/ufw /etc/ufw/ufw.conf"
|
conf_files="/etc/default/ufw /etc/ufw/ufw.conf"
|
||||||
@ -18,5 +18,6 @@ do_install() {
|
|||||||
sed -e 's|/lib|/usr/lib|' -i setup.py
|
sed -e 's|/lib|/usr/lib|' -i setup.py
|
||||||
python2 setup.py install --root=$DESTDIR
|
python2 setup.py install --root=$DESTDIR
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
|
vsv ufw
|
||||||
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
|
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user