# Contributor: Jeff Bilyk # Maintainer: Natanael Copa global pkgname := 'snmptt' global pkgver := '1.3' global pkgrel := '7' global pkgdesc := '"Translates traps received from snmptrapd into easy to understand messages'" global url := '"http://www.snmptt.org'" global arch := '"noarch'" global license := '"GPL'" global depends := '"perl perl-config-inifiles perl-list-moreutils'" global makedepends := '' global install := ""$pkgname.pre-install"" global pkgusers := '"snmptt'" global source := ""http://downloads.sourceforge.net/$pkgname/$(pkgname)_$pkgver.tgz snmptt.initd snmptt.confd "" proc build { return 0 } proc package { cd "$srcdir"/snmptt_$(pkgver) for dir in [/var/log/snmptt /var/spool/snmptt] { mkdir -p "$pkgdir"$(dir) && chown snmptt "$pkgdir"$(dir) } 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 } global md5sums := '"ee8d8206d3e0d860fee126e09d8eb207 snmptt_1.3.tgz ed4579e5bc539dba21a5830b3da72e73 snmptt.initd be7faa2e9c09bd9aa4c1a04fa6cdeb52 snmptt.confd'" global sha256sums := '"2f09d489a2073f5b1f4bdc207533b7dcf99d5b57d1c9659cfaa3c2af44ce6567 snmptt_1.3.tgz aa684ca7850d241b90d03b6004c1a84db35c22110195542fc1b899b44a168842 snmptt.initd 41731614fb67bdc65b59ad3a8fe30d148f86620e652b4564df8a4781cc148437 snmptt.confd'" global sha512sums := '"8a8917c07879007eddafbbaac83ddbf8954e43df9086b7b5b29d88680e739f5b48d231e76ff11548349f25eb271d483ebcce6ad9a20746ba61ddd6a55201e415 snmptt_1.3.tgz 233e781150fdb217991e0d9eae4de1430e01f54c9ae7354a6ebef6676595c5497863a4ab2a829e67473c7a901c120b2dbb7aa51e67fd49fd7643ff9efca633f8 snmptt.initd 905f9c10b6daa43b112166c90d569c0737d569117c320a4a652ca22533195b559fe62628bf67bfc4df107db6af88a44ac4ffc58514c8dcc5bb45981240b90776 snmptt.confd'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(snmptt)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.3)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(7)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Translates traps received from snmptrapd into easy to understand messages"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.snmptt.org"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ("perl perl-config-inifiles perl-list-moreutils"))} spids: [35] ) ] spids: [35] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:makedepends) op:Equal rhs:{(SQ )} spids:[40])] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:install) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (.pre-install))} spids: [42] ) ] spids: [42] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgusers) op:Equal rhs:{(DQ (snmptt))} spids:[48])] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://downloads.sourceforge.net/") ($ VSub_Name "$pkgname") (/) (${ VSub_Name pkgname) (_) ($ VSub_Name "$pkgver") (".tgz\n") ("\tsnmptt.initd\n") ("\tsnmptt.confd\n") ("\t") ) } spids: [53] ) ] spids: [53] ) (FuncDef name: build body: (BraceGroup children: [(ControlFlow token: arg_word:{(0)})] spids: [74] ) spids: [70 73] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$srcdir")) (/snmptt_) (${ VSub_Name pkgver)}) (ForEach iter_name: dir iter_words: [{(/var/log/snmptt)} {(/var/spool/snmptt)}] do_arg_iter: False body: (DoGroup children: [ (AndOr children: [ (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (${ VSub_Name dir)}) (C {(chown)} {(snmptt)} {(DQ ($ VSub_Name "$pkgdir")) (${ VSub_Name dir)}) ] op_id: Op_DAmp ) ] spids: [113 141] ) spids: [107 111] ) (C {(install)} {(-D)} {(-m755)} {(snmptt)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/snmptt)}) (C {(install)} {(-D)} {(-m755)} {(snmptthandler)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/snmptthandler)} ) (C {(install)} {(-D)} {(-m755)} {(snmpttconvert)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/snmpttconvert)} ) (C {(install)} {(-D)} {(-m755)} {(snmpttconvertmib)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/snmpttconvertmib)} ) (C {(install)} {(-D)} {(-m644)} {(snmptt.ini)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/snmptt/snmptt.ini)} ) (C {(install)} {(-D)} {(-m644)} {(snmptt.logrotate)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/logrotate.d/snmptt)} ) (C {(install)} {(-D)} {(-m755)} {(../snmptt.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/snmptt)} ) (C {(install)} {(-D)} {(-m644)} {(../snmptt.confd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/conf.d/snmptt)} ) ] spids: [88] ) spids: [84 87] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("ee8d8206d3e0d860fee126e09d8eb207 snmptt_1.3.tgz\n") ("ed4579e5bc539dba21a5830b3da72e73 snmptt.initd\n") ("be7faa2e9c09bd9aa4c1a04fa6cdeb52 snmptt.confd") ) } spids: [258] ) ] spids: [258] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "2f09d489a2073f5b1f4bdc207533b7dcf99d5b57d1c9659cfaa3c2af44ce6567 snmptt_1.3.tgz\n" ) ("aa684ca7850d241b90d03b6004c1a84db35c22110195542fc1b899b44a168842 snmptt.initd\n") ("41731614fb67bdc65b59ad3a8fe30d148f86620e652b4564df8a4781cc148437 snmptt.confd") ) } spids: [265] ) ] spids: [265] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "8a8917c07879007eddafbbaac83ddbf8954e43df9086b7b5b29d88680e739f5b48d231e76ff11548349f25eb271d483ebcce6ad9a20746ba61ddd6a55201e415 snmptt_1.3.tgz\n" ) ( "233e781150fdb217991e0d9eae4de1430e01f54c9ae7354a6ebef6676595c5497863a4ab2a829e67473c7a901c120b2dbb7aa51e67fd49fd7643ff9efca633f8 snmptt.initd\n" ) ( "905f9c10b6daa43b112166c90d569c0737d569117c320a4a652ca22533195b559fe62628bf67bfc4df107db6af88a44ac4ffc58514c8dcc5bb45981240b90776 snmptt.confd" ) ) } spids: [272] ) ] spids: [272] ) ] )