Skip to content

Commit 20421f7

Browse files
committed
mini-snmpd: update to v2.0
Changelog: https://github.com/troglobit/mini-snmpd/blob/master/doc/ChangeLog.md Removed upstramed patches: - 0001-make-MAX_NR_INTERFACES-configurable.patch The startup script has been modified due to a change in the default listener behavior. Also fix param to enable debug level Fixes: #29943 Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
1 parent a56b754 commit 20421f7

3 files changed

Lines changed: 9 additions & 76 deletions

File tree

‎net/mini_snmpd/Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=mini_snmpd
11-
PKG_VERSION:=1.6
12-
PKG_RELEASE:=5
11+
PKG_VERSION:=2.0
12+
PKG_RELEASE:=1
1313
PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com>
1414
PKG_LICENSE:=GPL-2.0
1515
PKG_LICENSE_FILES:=COPYING
@@ -18,9 +18,9 @@ PKG_CPE_ID:=cpe:/a:minisnmpd_project:minisnmpd
1818
PKG_SOURCE_PROTO:=git
1919
PKG_SOURCE_URL:=https://github.com/troglobit/mini-snmpd
2020
PKG_SOURCE_SUBDIR:=mini-snmpd-$(PKG_VERSION)
21-
PKG_SOURCE_VERSION:=45765e39d52469fd2b5ec5cfb78e042f437c0df4
21+
PKG_SOURCE_VERSION:=dba5d0cee40a29d109dbf2f64853651cf6ec79e4
2222
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/mini-snmpd-$(PKG_VERSION)
23-
PKG_MIRROR_HASH:=580eb4bc45a86d9827df505813ec0cf47ba836261d27e8e4b5ca5e0e1581c255
23+
PKG_MIRROR_HASH:=16104e50a36ba193142252e5cfd0a6c3fec391ae651dfde40fb4da83226e0d28
2424

2525
PKG_FIXUP:=autoreconf
2626
PKG_BUILD_PARALLEL:=1

‎net/mini_snmpd/files/mini_snmpd.init‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,11 @@ start_instance() {
219219
append_arg "-V" "$vendor_oid"
220220
append_arg "-t" $mib_timeout
221221

222-
[ "$ipv6" = 1 ] && procd_append_param command "-6"
223-
[ "$debug" = 1 ] && procd_append_param command "-v"
222+
if "$PROG" -h 2>&1 | grep -q -- '--use-ipv4'; then
223+
[ "$ipv6" = 0 ] && procd_append_param command "-4"
224+
[ "$ipv6" = 1 ] && procd_append_param command "-6"
225+
fi
226+
[ "$debug" = 1 ] && procd_append_param command "-l" "debug"
224227
# uci_validate_section() aka /sbin/validate_data can only cast default values not defined in /etc/config/* to string
225228
# e.g. ="1" however it sets bools defined in /etc/config/* to =1 / =0
226229
[ "$auth" = 1 -o "$auth" = "1" ] && procd_append_param command "-a"

‎net/mini_snmpd/patches/0001-make-MAX_NR_INTERFACES-configurable.patch‎

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)