ufw: multiple fixes and improvements.
This commit is contained in:
parent
c3d999ac1b
commit
8fe7f125a9
|
@ -7,8 +7,11 @@ depend() {
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting ufw"
|
ebegin "Starting ufw"
|
||||||
ufw enable
|
ufw enable
|
||||||
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
ebegin "Stopping ufw"
|
||||||
ufw disable
|
ufw disable
|
||||||
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# Template file for 'ufw'
|
# Template file for 'ufw'
|
||||||
pkgname=ufw
|
pkgname=ufw
|
||||||
version=0.30.1
|
version=0.30.1
|
||||||
distfiles="http://launchpad.net/ufw/0.30/0.30.1/+download/$pkgname-$version.tar.gz"
|
revision=1
|
||||||
build_style=custom-install
|
distfiles="http://launchpad.net/ufw/0.30/$version/+download/$pkgname-$version.tar.gz"
|
||||||
|
build_style=python-module
|
||||||
short_desc="Uncomplicated Firewall"
|
short_desc="Uncomplicated Firewall"
|
||||||
maintainer="Mike Rosset <mike.rosset@gmail.com>"
|
maintainer="Mike Rosset <mike.rosset@gmail.com>"
|
||||||
homepage="https://launchpad.net/ufw"
|
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.
|
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 iptables
|
||||||
Add_dependency run python
|
Add_dependency run python
|
||||||
Add_dependency build python
|
Add_dependency build python
|
||||||
Add_dependency build iptables
|
Add_dependency build iptables
|
||||||
|
Add_dependency build gettext
|
||||||
do_install()
|
|
||||||
{
|
|
||||||
python setup.py install --root=${DESTDIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
# OpenRC service to start/stop ufw.
|
# 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 New Issue