summaryrefslogtreecommitdiffstats
path: root/main/snmptt/APKBUILD
blob: 264fa5e3f7ed3c8bbb71dd3419d5c37d78c7fb65 (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
42
43
44
# Contributor: Jeff Bilyk <jbilyk at gmail> 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snmptt
pkgver=1.3
pkgrel=4
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="$pkgname.pre-install"
source="http://downloads.sourceforge.net/$pkgname/${pkgname}_$pkgver.tgz
	snmptt.initd
	snmptt.confd
	"

build() {
	return 0
}

package() {
	cd "$srcdir"/snmptt_${pkgver}
	mkdir -p "$pkgdir"/var/log/snmptt
	mkdir -p "$pkgdir"/var/spool/snmptt
	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
}

md5sums="ee8d8206d3e0d860fee126e09d8eb207  snmptt_1.3.tgz
581af51464cbce90588de9565e232a9a  snmptt.initd
be7faa2e9c09bd9aa4c1a04fa6cdeb52  snmptt.confd"
sha256sums="2f09d489a2073f5b1f4bdc207533b7dcf99d5b57d1c9659cfaa3c2af44ce6567  snmptt_1.3.tgz
ef76f32931a785f1d699ae486e9df07f0e2f9807f8d5c8d45972d8ca86deba6f  snmptt.initd
41731614fb67bdc65b59ad3a8fe30d148f86620e652b4564df8a4781cc148437  snmptt.confd"
sha512sums="8a8917c07879007eddafbbaac83ddbf8954e43df9086b7b5b29d88680e739f5b48d231e76ff11548349f25eb271d483ebcce6ad9a20746ba61ddd6a55201e415  snmptt_1.3.tgz
bf65987a2c8aaba4828060f56bc9d42e5c0701c365f6ecd3c359caa430fdfa9dce2c80d0c7184a989a5bec9a915c178e1eca6fdaed0cd32d89473ea63a78fb4b  snmptt.initd
905f9c10b6daa43b112166c90d569c0737d569117c320a4a652ca22533195b559fe62628bf67bfc4df107db6af88a44ac4ffc58514c8dcc5bb45981240b90776  snmptt.confd"