blob: 53a011a4a7ca7c28423e61ca601c3f885d1c82e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $Id: PKGBUILD 85682 2013-03-04 23:03:57Z 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=1
pkgdesc='Userspace tools to interact with the Netfilter connection tracking system'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.netfilter.org/projects/conntrack-tools'
license=('GPL2')
depends=('libnetfilter_conntrack'
'libnetfilter_cttimeout'
'libnetfilter_cthelper'
'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')
install=$pkgname.install
sha1sums=('6fda497ef1ebd5e4afe01830ece072d2df2fe50f'
'2c205952a447ee0a6a7fc99bddeea1bfaf1b8034'
'e7607a9ac14dd839f3716ac68d46e19ab26ef112')
build() {
cd $pkgname-$pkgver
for i in "$srcdir"/*.patch; do
patch -p1 -i "$i"
done
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
# install binaries
pushd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
popd
# systemd
install -D -m 644 conntrackd.service \
"$pkgdir/usr/lib/systemd/system/conntrackd.service"
# install empty configuration files
install -D -m 644 /dev/null "$pkgdir/etc/conntrackd.conf"
}
# vim:set ts=2 sw=2 et:
|