void-packages/srcpkgs/ufw/template
2017-01-07 23:20:19 +01:00

35 lines
936 B
Bash

# Template file for 'ufw'
pkgname=ufw
version=0.35
revision=5
hostmakedepends="python iptables"
depends="${hostmakedepends}"
conf_files="/etc/default/ufw /etc/ufw/ufw.conf"
noarch="yes"
pycompile_module="ufw"
short_desc="Uncomplicated Firewall"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://launchpad.net/ufw"
license="GPL-3"
distfiles="http://launchpad.net/ufw/${version}/${version}/+download/ufw-${version}.tar.gz"
checksum=662f865bc83bf8aa1a40a6fe578bc2ce796ff60a1be2c1103def7db1b91f8509
conf_files="
/etc/ufw/after.init
/etc/ufw/after.rules
/etc/ufw/after6.rules
/etc/ufw/before.init
/etc/ufw/before.rules
/etc/ufw/before6.rules
/etc/ufw/sysctl.conf
/etc/ufw/ufw.conf
/etc/ufw/user.rules
/etc/ufw/user6.rules
/etc/ufw/applications.d/*"
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
}