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
:=Marcin Jurkowski
<marcin1j@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
22 PKG_MIRROR_HASH
:=175d4d9b69c3195ef850eaffd8ac63d012a052089b4a9d074b4d3aef96888b8f
25 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
28 # As warned by upstream maintainer and binutils
29 # however compiler warnings can be ignored until next binutils release
30 # https://github.com/wongsyrone/openwrt-1/issues/67
34 include $(INCLUDE_DIR
)/package.mk
36 define Package
/mini_snmpd
39 TITLE
:=A tiny SNMP server for embedded systems
40 URL
:=http
://troglobit.github.io
/mini-snmpd.html
41 # uncomment if you just want the binary, not the init script
42 # openwrt requires init script runtime dependencies be defined for make menuconfig
43 # (e.g busybox sysntpd)
44 DEPENDS
:=+jsonfilter
+ubus
+procd
+ubox
48 $(if
$(CONFIG_IPV6
),,--disable-ipv6
)
50 # Configure weirdness - Disabled by default, explicitately disabling turns feature on!
52 # --disable-demo - Upstream Github Issue #4 Fixed 20160707
54 define Package
/mini_snmpd
/install
55 $(INSTALL_DIR
) $(1)/usr
/bin
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/mini_snmpd
$(1)/usr
/bin
/
57 $(INSTALL_DIR
) $(1)/etc
/config
58 $(INSTALL_CONF
) .
/files
/mini_snmpd.config
$(1)/etc
/config
/mini_snmpd
59 $(INSTALL_DIR
) $(1)/etc
/init.d
60 $(INSTALL_BIN
) .
/files
/mini_snmpd.init
$(1)/etc
/init.d
/mini_snmpd
63 define Package
/mini_snmpd
/conffiles
64 /etc
/config
/mini_snmpd
67 $(eval
$(call BuildPackage
,mini_snmpd
))