diff options
author | Phillip Smith | 2015-11-16 13:53:08 +1100 |
---|---|---|
committer | Phillip Smith | 2015-11-16 13:53:08 +1100 |
commit | aef28f7c23f453e2b52b6ed9feec520aba4d7d07 (patch) | |
tree | 62eca31361643af373ef410f8b43cc23ac7c6121 | |
parent | 9da49534e467db09d2382d54799433af81ad3817 (diff) | |
download | aur-aef28f7c23f453e2b52b6ed9feec520aba4d7d07.tar.gz |
upgpkg: iptrafvol 0.3.4-5
iptrafvol; add systemd units
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | iptrafvol.service | 9 | ||||
-rw-r--r-- | iptrafvol.timer | 11 |
4 files changed, 36 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = iptrafvol pkgdesc = IP traffic volume logger using iptables pkgver = 0.3.4 - pkgrel = 4 + pkgrel = 5 url = http://iptrafficvolume.sourceforge.net/ arch = i686 arch = x86_64 @@ -10,8 +10,12 @@ pkgbase = iptrafvol depends = perl source = http://downloads.sourceforge.net/project/iptrafficvolume/iptrafficvolume/0.3.4/iptrafvol-0.3.4.tgz source = fix-pod.patch + source = iptrafvol.timer + source = iptrafvol.service md5sums = 21d96650dd6452792ad47a5636954053 md5sums = 4201e99e219f92ec7b5147c65c09fda9 + md5sums = 0d612976c4cc7e6a133926721bbf6232 + md5sums = dc2737ba522b528c6f35872798497afe pkgname = iptrafvol @@ -15,16 +15,20 @@ pkgname=iptrafvol _pkgname=iptrafficvolume pkgver=0.3.4 -pkgrel=4 +pkgrel=5 pkgdesc="IP traffic volume logger using iptables" arch=('i686' 'x86_64') url="http://iptrafficvolume.sourceforge.net/" license=('GPL') depends=('iptables' 'perl') source=("http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}/${pkgver}/${pkgname}-${pkgver}.tgz" - 'fix-pod.patch') + 'fix-pod.patch' + 'iptrafvol.timer' + 'iptrafvol.service') md5sums=('21d96650dd6452792ad47a5636954053' - '4201e99e219f92ec7b5147c65c09fda9') + '4201e99e219f92ec7b5147c65c09fda9' + '0d612976c4cc7e6a133926721bbf6232' + 'dc2737ba522b528c6f35872798497afe') prepare() { cd "$srcdir"/${pkgname}-${pkgver} @@ -50,6 +54,10 @@ package() { install -D -m644 iptrafvol.1.gz "$pkgdir"/usr/share/man/man1/iptrafvol.1.gz install -D -m644 COPYING "$pkgdir"/usr/share/licenses/${pkgname}/COPYING + # install systemd units (thanks to @Amplificator) + install -D -m755 "$srcdir"/iptrafvol.timer "$pkgdir"/usr/lib/systemd/system/iptrafvol.timer + install -D -m755 "$srcdir"/iptrafvol.service "$pkgdir"/usr/lib/systemd/system/iptrafvol.service + # adapt config to suits arch sed \ -e 's|/sbin/iptables|/usr/bin/iptables|' \ diff --git a/iptrafvol.service b/iptrafvol.service new file mode 100644 index 000000000000..ac4975485d51 --- /dev/null +++ b/iptrafvol.service @@ -0,0 +1,9 @@ +### /usr/lib/systemd/system/iptrafvol.service + +[Unit] +Description=IPTrafficVolume network traffic volume logging tool +Wants=iptrafvol.timer + +[Service] +Type=oneshot +ExecStart=/usr/bin/iptrafvol.pl -l diff --git a/iptrafvol.timer b/iptrafvol.timer new file mode 100644 index 000000000000..37d251073603 --- /dev/null +++ b/iptrafvol.timer @@ -0,0 +1,11 @@ +### /usr/lib/systemd/system/iptrafvol.timer + +[Unit] +Description=Timer for iptrafvol.service + +[Timer] +OnBootSec=5min +OnUnitActiveSec=5min + +[Install] +WantedBy=multi-user.target |