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
17 PKG_SOURCE
:=mini-snmpd-
$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=https
://codeload.github.com
/troglobit
/mini-snmpd
/tar.gz
/v
$(PKG_VERSION
)?
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/mini-snmpd-
$(PKG_VERSION
)
20 PKG_HASH
:=de00c475a3c70c56f3ee97cd683cb71009d3521d60b1f589c5a91b4671ede9f3
25 # As warned by upstream maintainer and binutils
26 # however compiler warnings can be ignored until next binutils release
27 # https://github.com/wongsyrone/openwrt-1/issues/67
31 include $(INCLUDE_DIR
)/package.mk
33 define Package
/mini_snmpd
36 TITLE
:=A tiny SNMP server for embedded systems
37 URL
:=http
://troglobit.github.io
/mini-snmpd.html
38 # uncomment if you just want the binary, not the init script
39 # openwrt requires init script runtime dependencies be defined for make menuconfig
40 # (e.g busybox sysntpd)
41 DEPENDS
:=+jsonfilter
+ubus
+procd
+ubox
45 $(if
$(CONFIG_IPV6
),,--disable-ipv6
)
47 # Configure weirdness - Disabled by default, explicitately disabling turns feature on!
49 # --disable-demo - Upstream Github Issue #4 Fixed 20160707
51 define Package
/mini_snmpd
/install
52 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mini-snmpd
$(1)/usr
/sbin
54 $(INSTALL_DIR
) $(1)/etc
/config
55 $(INSTALL_CONF
) .
/files
/mini_snmpd.config
$(1)/etc
/config
/mini_snmpd
56 $(INSTALL_DIR
) $(1)/etc
/init.d
57 $(INSTALL_BIN
) .
/files
/mini_snmpd.init
$(1)/etc
/init.d
/mini_snmpd
60 define Package
/mini_snmpd
/conffiles
61 /etc
/config
/mini_snmpd
64 $(eval
$(call BuildPackage
,mini_snmpd
))