new package: ufw
This commit is contained in:
parent
194c629e4a
commit
c3d999ac1b
|
@ -0,0 +1,16 @@
|
||||||
|
# *-* shell *-*
|
||||||
|
#
|
||||||
|
case ${ACTION} in
|
||||||
|
post)
|
||||||
|
cat << _EOF
|
||||||
|
==========================================================================
|
||||||
|
|
||||||
|
If you want to make ufw start automatically at boot, add the services to
|
||||||
|
the 'default' runlevel:
|
||||||
|
|
||||||
|
$ rc-update add ufw default
|
||||||
|
|
||||||
|
==========================================================================
|
||||||
|
_EOF
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/sbin/runscript
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
before net
|
||||||
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
ebegin "Starting ufw"
|
||||||
|
ufw enable
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
ufw disable
|
||||||
|
}
|
|
@ -0,0 +1,30 @@
|
||||||
|
# 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
|
||||||
|
short_desc="Uncomplicated Firewall"
|
||||||
|
maintainer="Mike Rosset <mike.rosset@gmail.com>"
|
||||||
|
homepage="https://launchpad.net/ufw"
|
||||||
|
license="GPL-3"
|
||||||
|
checksum=98da13fe3e9aa8ff29611f20ef6e8b15be42bcdc43c8ef3145755b220f3bae1a
|
||||||
|
long_desc="
|
||||||
|
Ufw stands for Uncomplicated Firewall, and is program for managing a netfilter firewall.
|
||||||
|
It provides a command line interface and aims to be uncomplicated and easy to use.
|
||||||
|
"
|
||||||
|
|
||||||
|
Add_dependency run iptables
|
||||||
|
Add_dependency run python
|
||||||
|
Add_dependency build python
|
||||||
|
Add_dependency build iptables
|
||||||
|
|
||||||
|
do_install()
|
||||||
|
{
|
||||||
|
python setup.py install --root=${DESTDIR}
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install()
|
||||||
|
{
|
||||||
|
# OpenRC service to start/stop ufw.
|
||||||
|
vinstall ${FILESDIR}/$pkgname.rc 755 etc/init.d $pkgname
|
||||||
|
}
|
Loading…
Reference in New Issue