openwrt-packages/net/mini_snmpd/Makefile

67 lines
2.0 KiB
Makefile
Raw Normal View History

#
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
# Copyright (C) 2009-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mini_snmpd
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
PKG_VERSION:=1.4-rc1
PKG_RELEASE:=5
PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com>
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/troglobit/mini-snmpd.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=203d92e60ed09466d6676c6ad20ad6cb2ce08a5d
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MIRROR_HASH:=175d4d9b69c3195ef850eaffd8ac63d012a052089b4a9d074b4d3aef96888b8f
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
# As warned by upstream maintainer and binutils
# however compiler warnings can be ignored until next binutils release
# https://github.com/wongsyrone/openwrt-1/issues/67
# PKG_SSP:=0
# PKG_RELRO:=0
include $(INCLUDE_DIR)/package.mk
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
define Package/mini_snmpd
SECTION:=net
CATEGORY:=Network
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
TITLE:=A tiny SNMP server for embedded systems
URL:=http://troglobit.github.io/mini-snmpd.html
# uncomment if you just want the binary, not the init script
# openwrt requires init script runtime dependencies be defined for make menuconfig
# (e.g busybox sysntpd)
DEPENDS:=+jsonfilter +ubus +procd +ubox
endef
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
CONFIGURE_ARGS+= \
$(if $(CONFIG_IPV6),,--disable-ipv6)
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
# Configure weirdness - Disabled by default, explicitately disabling turns feature on!
# --disable-debug \
# --disable-demo - Upstream Github Issue #4 Fixed 20160707
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
define Package/mini_snmpd/install
$(INSTALL_DIR) $(1)/usr/bin
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
$(CP) $(PKG_INSTALL_DIR)/usr/bin/mini_snmpd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/mini_snmpd.config $(1)/etc/config/mini_snmpd
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/mini_snmpd.init $(1)/etc/init.d/mini_snmpd
endef
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
define Package/mini_snmpd/conffiles
/etc/config/mini_snmpd
endef
mini_snmpd: 1.4-rc1 add git,autoconf,procd init script,uci validation - new upstream/openwrt maintainer Makes use of all available runtime options that can be passed to mini_snmpd such as -I listen_on interface Run-tested on trunk on ar71xx. Please review the init script regarding procd monitoring interfaces, though everything else due to the conversion to procd should be and done properly, if not overkill compared to most other script bundled with openwrt. The main benefit of all this is now larger routers can run multiple instances of mini_snmpd on different ports, to get around the MIB hard coded 4 interface/mountpoint limits. Due to somewhat lacking dev / package maintainer docs except for http://wiki.prplfoundation.org/wiki/Procd_reference writing this script took longer than it should. You can see it's evolution here: https://github.com/hojuruku/openwrt-packages/blob/mini_snmpd/net/mini_snmpd/files/mini_snmpd.init If everything in it is found to be sane, please include it to the openwrt wiki on procd as an example. Due to procd / uci /sbin/validate_data cbi element datatype (uciname) being used to check uci config, the configuration file now only takes openwrt uci network names not physical network names as it did before. http://git.openwrt.org/?p=packages.git;a=commit;h=783e5578ad104d1ca3c31582add08fc8eb4ad083 Like busybox the package Makefile has depends for all runtime dependencies needed by the init script. mini_snmpd only depends on libc squashed commits: mini_snmpd: fix typo to fix procd triggers calling daemon binary directly instead of init script - misuse of $PROG var mini_snmpd: enable SSP & mini_snmpd to start by default and listen on lan mini_snmpd: disable RELRO blocker in Makefile after consulation mini_snmpd: add smarts to init script to detect if ubusd hasn't started yet mini_snmpd: fix init script - ubus -S doesn't print meaningful errors to give the user mini_snmpd: Makefile roll back Makefile PKG_RELEASE to 1 for feng shui
2016-07-09 15:54:37 +02:00
$(eval $(call BuildPackage,mini_snmpd))