Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # Copyright (C) 2009-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mini_snmpd
  9. PKG_VERSION:=1.4-rc1
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Luke McKee <hojuruku@gmail.com>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/troglobit/mini-snmpd.git
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=203d92e60ed09466d6676c6ad20ad6cb2ce08a5d
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  19. PKG_FIXUP:=autoreconf
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_INSTALL:=1
  23. # As warned by upstream maintainer and binutils
  24. # however compiler warnings can be ignored until next binutils release
  25. # https://github.com/wongsyrone/openwrt-1/issues/67
  26. # PKG_SSP:=0
  27. # PKG_RELRO:=0
  28. include $(INCLUDE_DIR)/package.mk
  29. define Package/mini_snmpd
  30. SECTION:=net
  31. CATEGORY:=Network
  32. TITLE:=A tiny SNMP server for embedded systems
  33. URL:=http://troglobit.github.io/mini-snmpd.html
  34. # uncomment if you just want the binary, not the init script
  35. # openwrt requires init script runtime dependencies be defined for make menuconfig
  36. # (e.g busybox sysntpd)
  37. DEPENDS:=+jsonfilter +ubus +procd +ubox
  38. endef
  39. CONFIGURE_ARGS+= \
  40. $(if $(CONFIG_IPV6),,--disable-ipv6)
  41. # Configure weirdness - Disabled by default, explicitately disabling turns feature on!
  42. # --disable-debug \
  43. # --disable-demo - Upstream Github Issue #4 Fixed 20160707
  44. define Package/mini_snmpd/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(CP) $(PKG_INSTALL_DIR)/usr/bin/mini_snmpd $(1)/usr/bin/
  47. $(INSTALL_DIR) $(1)/etc/config
  48. $(INSTALL_CONF) ./files/mini_snmpd.config $(1)/etc/config/mini_snmpd
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/mini_snmpd.init $(1)/etc/init.d/mini_snmpd
  51. endef
  52. define Package/mini_snmpd/conffiles
  53. /etc/config/mini_snmpd
  54. endef
  55. $(eval $(call BuildPackage,mini_snmpd))