[arch-commits] Commit in conntrack-tools/repos (4 files)
Sébastien Luttringer
seblu at archlinux.org
Wed May 16 23:52:41 UTC 2018
Date: Wednesday, May 16, 2018 @ 23:52:41
Author: seblu
Revision: 324394
archrelease: copy trunk to testing-x86_64
Added:
conntrack-tools/repos/testing-x86_64/
conntrack-tools/repos/testing-x86_64/PKGBUILD
(from rev 324393, conntrack-tools/trunk/PKGBUILD)
conntrack-tools/repos/testing-x86_64/conntrack-tools.install
(from rev 324393, conntrack-tools/trunk/conntrack-tools.install)
conntrack-tools/repos/testing-x86_64/conntrackd.service
(from rev 324393, conntrack-tools/trunk/conntrackd.service)
-------------------------+
PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++++++++++++
conntrack-tools.install | 9 +++++++
conntrackd.service | 8 ++++++
3 files changed, 72 insertions(+)
Copied: conntrack-tools/repos/testing-x86_64/PKGBUILD (from rev 324393, conntrack-tools/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-05-16 23:52:41 UTC (rev 324394)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Valere Monseur <valere_monseur at hotmail.com>
+# Contributor: Alessandro Sagratini <ale_sagra at hotmail.com>
+# Contributor: Kevin Edmonds <edmondskevin at hotmail.com>
+
+pkgname=conntrack-tools
+pkgver=1.4.5
+pkgrel=1
+pkgdesc='Userspace tools to interact with the Netfilter connection tracking system'
+arch=('x86_64')
+url='https://www.netfilter.org/projects/conntrack-tools/'
+license=('GPL2')
+makedepends=('systemd')
+depends=('glibc' 'libtirpc' 'libnetfilter_conntrack' 'libnetfilter_cttimeout'
+ 'libnetfilter_cthelper' 'libnetfilter_queue' 'libmnl' 'libsystemd'
+ 'libnfnetlink')
+backup=('etc/conntrackd.conf')
+validpgpkeys=('C09DB2063F1D7034BA6152ADAB4655A126D292E4') # Netfilter Core Team
+source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"{,.sig}
+ 'conntrackd.service')
+install=$pkgname.install
+sha1sums=('7d03a8d6d9ef56a9980ebfe25a282123807f8dcb'
+ '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
+ ./configure \
+ LIBNETFILTER_CTHELPER_CFLAGS='-I /usr/include/tirpc/' \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --enable-systemd
+ make
+}
+
+package() {
+ # install binaries
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ # systemd
+ 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 etc/conntrackd.conf
+}
+
+# vim:set ts=2 sw=2 et:
Copied: conntrack-tools/repos/testing-x86_64/conntrack-tools.install (from rev 324393, conntrack-tools/trunk/conntrack-tools.install)
===================================================================
--- testing-x86_64/conntrack-tools.install (rev 0)
+++ testing-x86_64/conntrack-tools.install 2018-05-16 23:52:41 UTC (rev 324394)
@@ -0,0 +1,9 @@
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ [ $(vercmp "$2" '1.0.1-2') -gt 0 ] || cat <<EOF
+Config file have been moved from /etc/conntrackd/conntrackd.conf to /etc/conntrackd.conf.
+EOF
+}
+
+# vim:set ts=2 sw=2 ft=sh et:
Copied: conntrack-tools/repos/testing-x86_64/conntrackd.service (from rev 324393, conntrack-tools/trunk/conntrackd.service)
===================================================================
--- testing-x86_64/conntrackd.service (rev 0)
+++ testing-x86_64/conntrackd.service 2018-05-16 23:52:41 UTC (rev 324394)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Conntrack Daemon
+
+[Service]
+ExecStart=/usr/bin/conntrackd
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list