diff --git a/srcpkgs/ufw/template b/srcpkgs/ufw/template index 245f1462400..d545ea95487 100644 --- a/srcpkgs/ufw/template +++ b/srcpkgs/ufw/template @@ -1,10 +1,10 @@ # Template file for 'ufw' pkgname=ufw version=0.33 -revision=2 +revision=3 +build_options="systemd" build_style=python-module hostmakedepends="python iptables" -makedepends="${hostmakedepends}" depends="${hostmakedepends}" conf_files="/etc/default/ufw /etc/ufw/ufw.conf" noarch="yes" @@ -17,6 +17,8 @@ distfiles="http://launchpad.net/ufw/${version}/${version}/+download/ufw-${versio checksum=5f85a8084ad3539b547bec097286948233188c971f498890316dec170bdd1da8 post_install() { - vinstall ${FILESDIR}/ufw.service 644 usr/lib/systemd/system + if [ "$build_option_systemd" ]; then + vinstall ${FILESDIR}/ufw.service 644 usr/lib/systemd/system + fi mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib/ }