new package: snmptt
This commit is contained in:
parent
1c0e8ce18d
commit
671eed12f7
29
packages/snmptt/build.sh
Normal file
29
packages/snmptt/build.sh
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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_SRCURL=https://downloads.sourceforge.net/snmptt/snmptt_${TERMUX_PKG_VERSION}.tgz
|
||||||
|
TERMUX_PKG_SHA256=1b455a5ae252dab5d828926125073b5376e36855e38423aca8da9bce6c4920c5
|
||||||
|
TERMUX_PKG_DEPENDS="net-snmp, perl"
|
||||||
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
|
||||||
|
termux_step_pre_configure() {
|
||||||
|
find . -maxdepth 1 -type f -name 'snmptt*' | xargs -n 1 sed -i \
|
||||||
|
-e 's:\([^A-Za-z0-9.]\)/etc/:\1'$TERMUX_PREFIX'/etc/:g' \
|
||||||
|
-e 's:\([^A-Za-z0-9.]\)/sbin/:\1'$TERMUX_PREFIX'/bin/:g' \
|
||||||
|
-e 's:\([^A-Za-z0-9.]\)/usr/sbin/:\1'$TERMUX_PREFIX'/bin/:g' \
|
||||||
|
-e 's:\([^A-Za-z0-9.]\)/var/:\1'$TERMUX_PREFIX'/var/:g' \
|
||||||
|
-e 's:\([^A-Za-z0-9.]\)/usr/local/etc/:\1'$TERMUX_PREFIX'/local/etc/:g'
|
||||||
|
}
|
||||||
|
|
||||||
|
termux_step_make_install() {
|
||||||
|
install -Dm700 -t $TERMUX_PREFIX/bin \
|
||||||
|
snmptt snmptt-net-snmp-test \
|
||||||
|
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 examples/snmptt.conf.generic \
|
||||||
|
$TERMUX_PREFIX/etc/snmp/snmptt.conf
|
||||||
|
}
|
10
packages/snmptt/snmptt.ini.patch
Normal file
10
packages/snmptt/snmptt.ini.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- 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'
|
||||||
|
snmptt_conf_files = <<END
|
||||||
|
-/etc/snmp/snmptt.conf
|
||||||
|
+@TERMUX_PREFIX@/etc/snmp/snmptt.conf
|
||||||
|
END
|
||||||
|
|
Loading…
Reference in New Issue
Block a user