snmptt: Bump to 1.5

This commit is contained in:
Tee KOBAYASHI 2022-11-23 23:21:48 +09:00 committed by xtkoba
parent a2708ee26d
commit 501a561735
2 changed files with 10 additions and 10 deletions

View File

@ -2,10 +2,11 @@ TERMUX_PKG_HOMEPAGE=http://www.snmptt.org/
TERMUX_PKG_DESCRIPTION="SNMP trap translator"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.4.2
TERMUX_PKG_VERSION=1.5
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/snmptt/snmptt_${TERMUX_PKG_VERSION}.tgz
TERMUX_PKG_SHA256=1b455a5ae252dab5d828926125073b5376e36855e38423aca8da9bce6c4920c5
TERMUX_PKG_SHA256=91fb6146a08c0d143e4193f1fffdb697f769f75666d72a73eeb78c013b8a227f
TERMUX_PKG_DEPENDS="net-snmp, perl"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
@ -23,7 +24,7 @@ termux_step_make_install() {
snmpttconvert snmpttconvertmib \
snmptthandler snmptthandler-embedded
install -Dm600 -t $TERMUX_PREFIX/share/snmptt/examples examples/*
install -Dm600 -t $TERMUX_PREFIX/etc/snmp snmptt.ini
install -Dm600 -t $TERMUX_PREFIX/etc/snmptt snmptt.ini
install -Dm600 -T examples/snmptt.conf.generic \
$TERMUX_PREFIX/etc/snmp/snmptt.conf
$TERMUX_PREFIX/etc/snmptt/snmptt.conf
}

View File

@ -1,10 +1,9 @@
--- a/snmptt.ini
+++ b/snmptt.ini
@@ -621,6 +621,6 @@
# A list of snmptt.conf files (this is NOT the snmptrapd.conf file). The COMPLETE path
# and filename. Ex: '/etc/snmp/snmptt.conf'
@@ -714,5 +714,5 @@
# /etc/snmptt/snmptt.conf
# /etc/snmptt/snmptt.*.conf
snmptt_conf_files = <<END
-/etc/snmp/snmptt.conf
+@TERMUX_PREFIX@/etc/snmp/snmptt.conf
-/etc/snmptt/snmptt.conf
+@TERMUX_PREFIX@/etc/snmptt/snmptt.conf
END