ufw: multiple fixes and improvements.
This commit is contained in:
parent
c3d999ac1b
commit
8fe7f125a9
2 changed files with 12 additions and 8 deletions
|
@ -7,8 +7,11 @@ depend() {
|
|||
start() {
|
||||
ebegin "Starting ufw"
|
||||
ufw enable
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ufw"
|
||||
ufw disable
|
||||
eend $?
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
# Template file for 'ufw'
|
||||
pkgname=ufw
|
||||
version=0.30.1
|
||||
distfiles="http://launchpad.net/ufw/0.30/0.30.1/+download/$pkgname-$version.tar.gz"
|
||||
build_style=custom-install
|
||||
revision=1
|
||||
distfiles="http://launchpad.net/ufw/0.30/$version/+download/$pkgname-$version.tar.gz"
|
||||
build_style=python-module
|
||||
short_desc="Uncomplicated Firewall"
|
||||
maintainer="Mike Rosset <mike.rosset@gmail.com>"
|
||||
homepage="https://launchpad.net/ufw"
|
||||
|
@ -13,18 +14,18 @@ long_desc="
|
|||
It provides a command line interface and aims to be uncomplicated and easy to use.
|
||||
"
|
||||
|
||||
noarch=yes
|
||||
conf_files="/etc/default/ufw /etc/ufw/ufw.conf"
|
||||
openrc_services="ufw default false"
|
||||
|
||||
Add_dependency run iptables
|
||||
Add_dependency run python
|
||||
Add_dependency build python
|
||||
Add_dependency build iptables
|
||||
|
||||
do_install()
|
||||
{
|
||||
python setup.py install --root=${DESTDIR}
|
||||
}
|
||||
Add_dependency build gettext
|
||||
|
||||
post_install()
|
||||
{
|
||||
# OpenRC service to start/stop ufw.
|
||||
vinstall ${FILESDIR}/$pkgname.rc 755 etc/init.d $pkgname
|
||||
vinstall ${FILESDIR}/ufw.rc 755 etc/init.d ufw
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue