From eb5561a8e1bc3198ea2536418319d90275638d84 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Mon, 9 Jul 2012 17:48:19 +0200
Subject: [PATCH] ufw: switch to /usr.

---
 srcpkgs/ufw/files/ufw.service | 4 ++--
 srcpkgs/ufw/template          | 9 ++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/srcpkgs/ufw/files/ufw.service b/srcpkgs/ufw/files/ufw.service
index dd9cd5ec37..2efaddb800 100644
--- a/srcpkgs/ufw/files/ufw.service
+++ b/srcpkgs/ufw/files/ufw.service
@@ -3,8 +3,8 @@ Description=CLI Netfilter Manager
 
 [Service]
 Type=oneshot
-ExecStart=/lib/ufw/ufw-init start
-ExecStop=/lib/ufw/ufw-init stop
+ExecStart=/usr/lib/ufw/ufw-init start
+ExecStop=/usr/lib/ufw/ufw-init stop
 RemainAfterExit=yes
 
 [Install]
diff --git a/srcpkgs/ufw/template b/srcpkgs/ufw/template
index 3517b2301a..d0cedc82b5 100644
--- a/srcpkgs/ufw/template
+++ b/srcpkgs/ufw/template
@@ -1,7 +1,7 @@
 # Template file for 'ufw'
 pkgname=ufw
 version=0.30.1
-revision=5
+revision=6
 distfiles="http://launchpad.net/ufw/0.30/$version/+download/$pkgname-$version.tar.gz"
 build_style=python-module
 depends="iptables python"
@@ -20,8 +20,7 @@ noarch=yes
 pycompile_module="ufw"
 conf_files="/etc/default/ufw /etc/ufw/ufw.conf"
 
-
-post_install()
-{
-	vinstall ${FILESDIR}/ufw.service 644 lib/systemd/system
+post_install() {
+	vinstall ${FILESDIR}/ufw.service 644 usr/lib/systemd/system
+	vmove "lib/*" usr/lib
 }