summaryrefslogtreecommitdiff
path: root/community/conntrack-tools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/conntrack-tools/PKGBUILD')
-rw-r--r--community/conntrack-tools/PKGBUILD35
1 files changed, 18 insertions, 17 deletions
diff --git a/community/conntrack-tools/PKGBUILD b/community/conntrack-tools/PKGBUILD
index 6788553f2..a1373b1d0 100644
--- a/community/conntrack-tools/PKGBUILD
+++ b/community/conntrack-tools/PKGBUILD
@@ -1,12 +1,12 @@
-# $Id: PKGBUILD 90503 2013-05-12 23:32:26Z seblu $
+# $Id: PKGBUILD 95231 2013-08-07 09:35:16Z seblu $
# Maintainer: Sébastien Luttringer
# Contributor: Valere Monseur <valere_monseur@hotmail.com>
# Contributor: Alessandro Sagratini <ale_sagra@hotmail.com>
# Contributor: Kevin Edmonds <edmondskevin@hotmail.com>
pkgname=conntrack-tools
-pkgver=1.4.1
-pkgrel=2
+pkgver=1.4.2
+pkgrel=1
pkgdesc='Userspace tools to interact with the Netfilter connection tracking system'
arch=('i686' 'x86_64')
url='http://www.netfilter.org/projects/conntrack-tools'
@@ -17,33 +17,34 @@ depends=('libnetfilter_conntrack'
'libnetfilter_queue')
backup=('etc/conntrackd.conf')
options=('!libtool')
-source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"
- 'conntrackd.service'
- '01-config-file-path.patch')
+source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"{,.sig}
+ 'conntrackd.service')
install=$pkgname.install
-sha1sums=('6fda497ef1ebd5e4afe01830ece072d2df2fe50f'
- 'ab888d59b98b673709d2d89554c668e2bea0cb86'
- 'e7607a9ac14dd839f3716ac68d46e19ab26ef112')
+sha1sums=('50b89305bb689973d42a163c480dc77a5c0f6fe0'
+ 'SKIP'
+ 'ab888d59b98b673709d2d89554c668e2bea0cb86')
+
+prepare() {
+ sed -i -e 's,/etc/conntrackd/,/etc/,' -e 's,/var/lock/,/run/lock/,' \
+ $pkgname-$pkgver/include/conntrackd.h
+}
+
build() {
cd $pkgname-$pkgver
- for i in "$srcdir"/*.patch; do
- patch -p1 -i "$i"
- done
./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
make
}
package() {
# install binaries
- pushd $pkgname-$pkgver
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
- popd
# systemd
- install -D -m 644 conntrackd.service \
- "$pkgdir/usr/lib/systemd/system/conntrackd.service"
+ cd "$pkgdir"
+ install -D -m 644 "$srcdir/conntrackd.service" usr/lib/systemd/system/conntrackd.service
# install empty configuration files
- install -D -m 644 /dev/null "$pkgdir/etc/conntrackd.conf"
+ install -D -m 644 /dev/null etc/conntrackd.conf
}
# vim:set ts=2 sw=2 et: