From 28c6a295e69e7dbbf598a93280fec348ba9454ad Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 18 Dec 2014 22:02:12 +0100 Subject: [PATCH] ufw: added systemd build option (off). --- srcpkgs/ufw/template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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/ }