# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=snmptt pkgver=1.4.2 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="https://downloads.sourceforge.net/$pkgname/${pkgname}_$pkgver.tgz snmptt.initd snmptt.confd " # secfixes: # 1.4.2-r0: # - CVE-2020-24361 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="b8782aa5789227253c1b65c98771de7eba319f1f29b56224415f89d0c687515cd099f0ba7d0e304d43a9d054fa66335fe09d99545f50415745ac86b8b56a2b9d snmptt_1.4.2.tgz 233e781150fdb217991e0d9eae4de1430e01f54c9ae7354a6ebef6676595c5497863a4ab2a829e67473c7a901c120b2dbb7aa51e67fd49fd7643ff9efca633f8 snmptt.initd 905f9c10b6daa43b112166c90d569c0737d569117c320a4a652ca22533195b559fe62628bf67bfc4df107db6af88a44ac4ffc58514c8dcc5bb45981240b90776 snmptt.confd"