# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=snmptt pkgver=1.3 pkgrel=7 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" pkgusers="snmptt" 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 } md5sums="ee8d8206d3e0d860fee126e09d8eb207 snmptt_1.3.tgz ed4579e5bc539dba21a5830b3da72e73 snmptt.initd be7faa2e9c09bd9aa4c1a04fa6cdeb52 snmptt.confd" sha256sums="2f09d489a2073f5b1f4bdc207533b7dcf99d5b57d1c9659cfaa3c2af44ce6567 snmptt_1.3.tgz aa684ca7850d241b90d03b6004c1a84db35c22110195542fc1b899b44a168842 snmptt.initd 41731614fb67bdc65b59ad3a8fe30d148f86620e652b4564df8a4781cc148437 snmptt.confd" sha512sums="8a8917c07879007eddafbbaac83ddbf8954e43df9086b7b5b29d88680e739f5b48d231e76ff11548349f25eb271d483ebcce6ad9a20746ba61ddd6a55201e415 snmptt_1.3.tgz 233e781150fdb217991e0d9eae4de1430e01f54c9ae7354a6ebef6676595c5497863a4ab2a829e67473c7a901c120b2dbb7aa51e67fd49fd7643ff9efca633f8 snmptt.initd 905f9c10b6daa43b112166c90d569c0737d569117c320a4a652ca22533195b559fe62628bf67bfc4df107db6af88a44ac4ffc58514c8dcc5bb45981240b90776 snmptt.confd"