Commit 4dc7a9fe authored by Leonardo Arena's avatar Leonardo Arena

main/snmptt: add logrotate support. Create user

parent 02c89f56
......@@ -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
}
......
#!/bin/sh
adduser -h /var/spool/snmptt -s /bin/false -S -D snmptt &>/dev/null
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment