Makefile (1970B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=mini_snmpd 11 PKG_VERSION:=1.4-rc1 12 PKG_RELEASE:=2 13 PKG_MAINTAINER:=Luke McKee <hojuruku@gmail.com> 14 PKG_LICENSE:=GPL-2.0 15 PKG_LICENSE_FILES:=COPYING 16 17 PKG_SOURCE_PROTO:=git 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 23 PKG_FIXUP:=autoreconf 24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 25 PKG_BUILD_PARALLEL:=1 26 PKG_INSTALL:=1 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 30 # PKG_SSP:=0 31 # PKG_RELRO:=0 32 33 include $(INCLUDE_DIR)/package.mk 34 35 define Package/mini_snmpd 36 SECTION:=net 37 CATEGORY:=Network 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 44 endef 45 46 CONFIGURE_ARGS+= \ 47 $(if $(CONFIG_IPV6),,--disable-ipv6) 48 49 # Configure weirdness - Disabled by default, explicitately disabling turns feature on! 50 # --disable-debug \ 51 # --disable-demo - Upstream Github Issue #4 Fixed 20160707 52 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 60 endef 61 62 define Package/mini_snmpd/conffiles 63 /etc/config/mini_snmpd 64 endef 65 66 $(eval $(call BuildPackage,mini_snmpd))