aboutsummaryrefslogtreecommitdiffstats
path: root/main/snmptt
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-02-15 10:38:10 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-02-15 10:38:32 +0000
commit4dc7a9fe46de3a6345035ea8239007bea91f423e (patch)
tree82ebd218de28088052f50001c5574ef1da7609c3 /main/snmptt
parent02c89f5659ffff9ad39cd9737919a1c87caeb6d6 (diff)
downloadaports-4dc7a9fe46de3a6345035ea8239007bea91f423e.tar.bz2
aports-4dc7a9fe46de3a6345035ea8239007bea91f423e.tar.xz
main/snmptt: add logrotate support. Create user
Diffstat (limited to 'main/snmptt')
-rw-r--r--main/snmptt/APKBUILD5
-rw-r--r--main/snmptt/snmptt.pre-install2
2 files changed, 5 insertions, 2 deletions
diff --git a/main/snmptt/APKBUILD b/main/snmptt/APKBUILD
index 24ea766919..fb9eed050f 100644
--- a/main/snmptt/APKBUILD
+++ b/main/snmptt/APKBUILD
@@ -2,14 +2,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snmptt
pkgver=1.3
-pkgrel=2
+pkgrel=3
pkgdesc="Translates traps received from snmptrapd into easy to understand messages"
url="http://www.snmptt.org"
arch="noarch"
license="GPL"
depends="perl perl-config-inifiles perl-list-moreutils"
makedepends=
-install=
+install="$pkgname.pre-install"
source="http://downloads.sourceforge.net/$pkgname/${pkgname}_$pkgver.tgz
snmptt.initd
snmptt.confd
@@ -28,6 +28,7 @@ package() {
install -D -m755 snmpttconvert "$pkgdir"/usr/bin/snmpttconvert
install -D -m755 snmpttconvertmib "$pkgdir"/usr/bin/snmpttconvertmib
install -D -m644 snmptt.ini "$pkgdir"/etc/snmptt/snmptt.ini
+ install -D -m644 snmptt.logrotate "$pkgdir"/etc/logrotate.d/snmptt
install -D -m755 ../snmptt.initd "$pkgdir"/etc/init.d/snmptt
install -D -m644 ../snmptt.confd "$pkgdir"/etc/conf.d/snmptt
}
diff --git a/main/snmptt/snmptt.pre-install b/main/snmptt/snmptt.pre-install
new file mode 100644
index 0000000000..1f978bac74
--- /dev/null
+++ b/main/snmptt/snmptt.pre-install
@@ -0,0 +1,2 @@
+#!/bin/sh
+adduser -h /var/spool/snmptt -s /bin/false -S -D snmptt &>/dev/null