From 4dc7a9fe46de3a6345035ea8239007bea91f423e Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Fri, 15 Feb 2013 10:38:10 +0000 Subject: main/snmptt: add logrotate support. Create user --- main/snmptt/APKBUILD | 5 +++-- main/snmptt/snmptt.pre-install | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 main/snmptt/snmptt.pre-install (limited to 'main') 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 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 -- cgit v1.2.3