diff --git a/srcpkgs/ufw/files/ufw.service b/srcpkgs/ufw/files/ufw.service deleted file mode 100644 index 2efaddb800..0000000000 --- a/srcpkgs/ufw/files/ufw.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=CLI Netfilter Manager - -[Service] -Type=oneshot -ExecStart=/usr/lib/ufw/ufw-init start -ExecStop=/usr/lib/ufw/ufw-init stop -RemainAfterExit=yes - -[Install] -WantedBy=multi-user.target diff --git a/srcpkgs/ufw/template b/srcpkgs/ufw/template index 9e0d180c5c..1ff509d7e7 100644 --- a/srcpkgs/ufw/template +++ b/srcpkgs/ufw/template @@ -1,8 +1,7 @@ # Template file for 'ufw' pkgname=ufw version=0.33 -revision=3 -build_options="systemd" +revision=4 build_style=python-module hostmakedepends="python iptables" depends="${hostmakedepends}" @@ -17,8 +16,7 @@ distfiles="http://launchpad.net/ufw/${version}/${version}/+download/ufw-${versio checksum=5f85a8084ad3539b547bec097286948233188c971f498890316dec170bdd1da8 post_install() { - if [ "$build_option_systemd" ]; then - vinstall ${FILESDIR}/ufw.service 644 usr/lib/systemd/system - fi + vmkdir usr/bin mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib/ + mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin }