From 239d18a9915d35bde5700d02e956c33c49b08037 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Mon, 9 Jul 2012 23:08:17 +0200
Subject: [PATCH] iptables: switch to /usr.

---
 srcpkgs/iptables/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/iptables/template b/srcpkgs/iptables/template
index 6d52900c92..9d9895b05d 100644
--- a/srcpkgs/iptables/template
+++ b/srcpkgs/iptables/template
@@ -1,10 +1,10 @@
 # Template file for 'iptables'
 pkgname=iptables
 version=1.4.14
+revision=2
 build_style=gnu-configure
 configure_args="--enable-libipq --enable-shared --enable-static"
 subpackages="$pkgname-devel"
-revision=1
 short_desc="Linux IPv[46] packet filtering ruleset"
 maintainer="Juan RP <xtraeme@gmail.com>"
 homepage="http://www.netfilter.org/"
@@ -23,10 +23,10 @@ long_desc="
 
 post_install() {
 	# systemd services.
-	vinstall ${FILESDIR}/iptables.service 644 lib/systemd/system
-	vinstall ${FILESDIR}/ip6tables.service 644 lib/systemd/system
+	vmkdir usr/lib/systemd/system
+	install -m644 ${FILESDIR}/*.service ${DESTDIR}/usr/lib/systemd/system
 	vinstall ${FILESDIR}/iptables-flush.scripts 755 \
-		lib/systemd/scripts iptables-flush
+		usr/lib/systemd/scripts iptables-flush
 
 	# Configuration files and rules.
 	for f in empty.rules simple_firewall.rules; do