2 # Copyright (C) 2009-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_MAINTAINER:=Luke McKee <hojuruku@gmail.com>
15 PKG_LICENSE_FILES:=COPYING
18 PKG_SOURCE_URL:=https://github.com/troglobit/mini-snmpd.git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=203d92e60ed09466d6676c6ad20ad6cb2ce08a5d
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27 # As warned by upstream maintainer and binutils
28 # however compiler warnings can be ignored until next binutils release
29 # https://github.com/wongsyrone/openwrt-1/issues/67
33 include $(INCLUDE_DIR)/package.mk
35 define Package/mini_snmpd
38 TITLE:=A tiny SNMP server for embedded systems
39 URL:=http://troglobit.github.io/mini-snmpd.html
40 # uncomment if you just want the binary, not the init script
41 # openwrt requires init script runtime dependencies be defined for make menuconfig
42 # (e.g busybox sysntpd)
43 DEPENDS:=+jsonfilter +ubus +procd +ubox
47 $(if $(CONFIG_IPV6),,--disable-ipv6)
49 # Configure weirdness - Disabled by default, explicitately disabling turns feature on!
51 # --disable-demo - Upstream Github Issue #4 Fixed 20160707
53 define Package/mini_snmpd/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/mini_snmpd $(1)/usr/bin/
56 $(INSTALL_DIR) $(1)/etc/config
57 $(INSTALL_CONF) ./files/mini_snmpd.config $(1)/etc/config/mini_snmpd
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/mini_snmpd.init $(1)/etc/init.d/mini_snmpd
62 define Package/mini_snmpd/conffiles
63 /etc/config/mini_snmpd
66 $(eval $(call BuildPackage,mini_snmpd))