Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:=3
  11. PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@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_MIRROR_HASH:=175d4d9b69c3195ef850eaffd8ac63d012a052089b4a9d074b4d3aef96888b8f
  20. PKG_FIXUP:=autoreconf
  21. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  22. PKG_BUILD_PARALLEL:=1
  23. PKG_INSTALL:=1
  24. # As warned by upstream maintainer and binutils
  25. # however compiler warnings can be ignored until next binutils release
  26. # https://github.com/wongsyrone/openwrt-1/issues/67
  27. # PKG_SSP:=0
  28. # PKG_RELRO:=0
  29. include $(INCLUDE_DIR)/package.mk
  30. define Package/mini_snmpd
  31. SECTION:=net
  32. CATEGORY:=Network
  33. TITLE:=A tiny SNMP server for embedded systems
  34. URL:=http://troglobit.github.io/mini-snmpd.html
  35. # uncomment if you just want the binary, not the init script
  36. # openwrt requires init script runtime dependencies be defined for make menuconfig
  37. # (e.g busybox sysntpd)
  38. DEPENDS:=+jsonfilter +ubus +procd +ubox
  39. endef
  40. CONFIGURE_ARGS+= \
  41. $(if $(CONFIG_IPV6),,--disable-ipv6)
  42. # Configure weirdness - Disabled by default, explicitately disabling turns feature on!
  43. # --disable-debug \
  44. # --disable-demo - Upstream Github Issue #4 Fixed 20160707
  45. define Package/mini_snmpd/install
  46. $(INSTALL_DIR) $(1)/usr/bin
  47. $(CP) $(PKG_INSTALL_DIR)/usr/bin/mini_snmpd $(1)/usr/bin/
  48. $(INSTALL_DIR) $(1)/etc/config
  49. $(INSTALL_CONF) ./files/mini_snmpd.config $(1)/etc/config/mini_snmpd
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/mini_snmpd.init $(1)/etc/init.d/mini_snmpd
  52. endef
  53. define Package/mini_snmpd/conffiles
  54. /etc/config/mini_snmpd
  55. endef
  56. $(eval $(call BuildPackage,mini_snmpd))