aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2021-01-19 23:32:19 +0100
committerLeo <thinkabit.ukim@gmail.com>2021-02-04 05:48:44 +0000
commit7a8da7a446805e393707f6f8dcdd14ef5b40d30b (patch)
treefa16903b1ad7dd30b53bfd004a604e90e0e66576
parentac4a238e2f97614656b95a0268f34b1450ca60c5 (diff)
downloadaports-7a8da7a446805e393707f6f8dcdd14ef5b40d30b.tar.gz
aports-7a8da7a446805e393707f6f8dcdd14ef5b40d30b.tar.bz2
aports-7a8da7a446805e393707f6f8dcdd14ef5b40d30b.tar.xz
main/conntrack-tools: add logrotate
- Closes #12333 - Update url - Alphabetically sort makedepends
-rw-r--r--main/conntrack-tools/APKBUILD29
-rw-r--r--main/conntrack-tools/conntrackd.logrotate14
2 files changed, 35 insertions, 8 deletions
diff --git a/main/conntrack-tools/APKBUILD b/main/conntrack-tools/APKBUILD
index 5460761dc5..e1ad0fa20c 100644
--- a/main/conntrack-tools/APKBUILD
+++ b/main/conntrack-tools/APKBUILD
@@ -1,18 +1,28 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=conntrack-tools
pkgver=1.4.6
-pkgrel=0
+pkgrel=1
pkgdesc="Connection tracking userspace tools"
-url="http://conntrack-tools.netfilter.org"
+url="https://www.netfilter.org/projects/conntrack-tools/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc $pkgname-openrc"
-makedepends="linux-headers libnfnetlink-dev libnetfilter_conntrack-dev bison flex
- libmnl-dev libnetfilter_cttimeout-dev libnetfilter_cthelper-dev
- libnetfilter_queue-dev libtirpc-dev"
+makedepends="
+ bison
+ flex
+ libmnl-dev
+ libnetfilter_conntrack-dev
+ libnetfilter_cthelper-dev
+ libnetfilter_cttimeout-dev
+ libnetfilter_queue-dev
+ libnfnetlink-dev
+ libtirpc-dev
+ linux-headers
+ "
source="https://www.netfilter.org/projects/conntrack-tools/files/conntrack-tools-$pkgver.tar.bz2
conntrackd.initd
conntrackd.confd
+ conntrackd.logrotate
"
build() {
@@ -29,12 +39,15 @@ build() {
package() {
make DESTDIR="$pkgdir" install
- install -Dm755 ../conntrackd.initd "$pkgdir"/etc/init.d/conntrackd
- install -Dm644 ../conntrackd.confd "$pkgdir"/etc/conf.d/conntrackd
+ install -Dm755 "$srcdir"/conntrackd.initd "$pkgdir"/etc/init.d/conntrackd
+ install -Dm644 "$srcdir"/conntrackd.confd "$pkgdir"/etc/conf.d/conntrackd
install -Dm644 doc/stats/conntrackd.conf \
"$pkgdir"/etc/conntrackd/conntrackd.conf
+ install -Dm644 "$srcdir"/conntrackd.logrotate \
+ "$pkgdir"/etc/logrotate.d/conntrackd
}
sha512sums="a48260308a12b11b584fcf4658ec2c4c1adb2801c9cf9a73fc259e5c30d2fbe401aca21e931972413f03e415f98fbf9bd678d2126faa6c6d5748e8a652e58f1a conntrack-tools-1.4.6.tar.bz2
1d8e6d6eec79233b276d12e78c5d184d356df85ede299bfa9f6967ace30987f3b2f8c8077a1e2f9123a817f2805fdb9bf8fa9ec441882a112d83cabf84932e16 conntrackd.initd
-fd8cfab207867844db6671a8395efadca792d6085c3436381e574dc52f3b4e41d9526b3db6114dd98e534a5419ca19f291d21c091f8cf0426024d73d18133e6f conntrackd.confd"
+fd8cfab207867844db6671a8395efadca792d6085c3436381e574dc52f3b4e41d9526b3db6114dd98e534a5419ca19f291d21c091f8cf0426024d73d18133e6f conntrackd.confd
+1e4e6414bbf4210fab83d1a8cd7198bf11f2638d378abd674b1b66bd6ab6bdc048fc4052c3e263bd02dfc8085d007f3092f24e818f8579a940aa3b5af19c1766 conntrackd.logrotate"
diff --git a/main/conntrack-tools/conntrackd.logrotate b/main/conntrack-tools/conntrackd.logrotate
new file mode 100644
index 0000000000..8f5f1de2f9
--- /dev/null
+++ b/main/conntrack-tools/conntrackd.logrotate
@@ -0,0 +1,14 @@
+/var/log/conntrackd-stats.log {
+ compress
+ dateext
+ notifempty
+ missingok
+ nocreate
+ weekly
+ rotate 2
+ copytruncate
+
+ postrotate
+ /etc/init.d/conntrackd --quiet --ifstarted restart || true
+ endscript
+}