blob: c4003c23e79b59a41fa0445a49c84e2f60b95a81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snmptt
pkgver=1.4
pkgrel=0
pkgdesc="Translates traps received from snmptrapd into easy to understand messages"
url="http://www.snmptt.org"
arch="noarch"
license="GPL-2.0-or-later"
pkgusers="snmptt"
pkggroups="snmptt"
depends="perl perl-config-inifiles perl-list-moreutils"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="http://downloads.sourceforge.net/$pkgname/${pkgname}_$pkgver.tgz
snmptt.initd
snmptt.confd
"
build() {
return 0
}
package() {
cd "$srcdir"/snmptt_${pkgver}
for dir in /var/log/snmptt /var/spool/snmptt; do
mkdir -p "$pkgdir"${dir} && chown snmptt "$pkgdir"${dir}
done
install -D -m755 snmptt "$pkgdir"/usr/bin/snmptt
install -D -m755 snmptthandler "$pkgdir"/usr/bin/snmptthandler
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
}
sha512sums="200ebe565766c15f85b9b9cbc178baeef740663efc951af4c790c4b28d27398c14a95c4b38306ec3503cefe9b86634d5f24ec5f2482694f07789e9025ea39a80 snmptt_1.4.tgz
233e781150fdb217991e0d9eae4de1430e01f54c9ae7354a6ebef6676595c5497863a4ab2a829e67473c7a901c120b2dbb7aa51e67fd49fd7643ff9efca633f8 snmptt.initd
905f9c10b6daa43b112166c90d569c0737d569117c320a4a652ca22533195b559fe62628bf67bfc4df107db6af88a44ac4ffc58514c8dcc5bb45981240b90776 snmptt.confd"
|