2009-01-31 16:25:41 +00:00
|
|
|
#
|
2011-05-04 19:07:17 +00:00
|
|
|
# Copyright (C) 2009-2011 OpenWrt.org
|
2009-01-31 16:25:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mini_snmpd
|
2010-11-01 15:52:43 +00:00
|
|
|
PKG_VERSION:=1.2b
|
2011-05-04 19:07:17 +00:00
|
|
|
PKG_RELEASE:=2
|
2009-01-31 16:25:41 +00:00
|
|
|
|
2010-11-01 15:52:43 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-01-31 16:25:41 +00:00
|
|
|
PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/
|
2010-11-01 15:52:43 +00:00
|
|
|
PKG_MD5SUM:=9e432c50ba8216d7fab0983b11b7112a
|
2009-01-31 16:25:41 +00:00
|
|
|
|
2010-11-01 15:52:43 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)
|
2010-10-08 20:47:39 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_INSTALL:=1
|
2009-04-21 11:38:28 +00:00
|
|
|
|
2009-01-31 16:25:41 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-04-17 16:49:59 +00:00
|
|
|
define Package/mini-snmpd/Default
|
|
|
|
TITLE:=SNMP server for embedded systems
|
|
|
|
URL:=http://members.aon.at/linuxfreak/linux/mini_snmpd.html
|
|
|
|
endef
|
|
|
|
|
2009-01-31 16:25:41 +00:00
|
|
|
define Package/mini-snmpd
|
2010-04-17 16:49:59 +00:00
|
|
|
$(call Package/mini-snmpd/Default)
|
2009-01-31 16:25:41 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-11-01 15:52:43 +00:00
|
|
|
TITLE+= Mini Snmpd
|
2009-01-31 16:25:41 +00:00
|
|
|
endef
|
|
|
|
|
2010-04-17 16:49:59 +00:00
|
|
|
PKG_OFLAGS:=$(TARGET_CFLAGS) -DSYSLOG
|
2010-11-01 15:52:43 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_IPV6),y)
|
|
|
|
PKG_OFLAGS+= -D__IPV6__
|
|
|
|
else
|
|
|
|
PKG_OFLAGS+= -D__IPV4__
|
2010-04-17 16:49:59 +00:00
|
|
|
endif
|
2009-01-31 16:25:41 +00:00
|
|
|
|
2010-04-17 13:16:17 +00:00
|
|
|
MAKE_FLAGS+= \
|
2010-04-17 16:49:59 +00:00
|
|
|
OFLAGS="$(PKG_OFLAGS)" \
|
2010-04-17 13:16:17 +00:00
|
|
|
STRIP="/bin/true" \
|
2010-10-08 20:47:39 +00:00
|
|
|
INSTALL_ROOT="$(PKG_INSTALL_DIR)"
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default,mini_snmpd)
|
|
|
|
endef
|
2010-04-17 13:16:17 +00:00
|
|
|
|
2009-01-31 16:25:41 +00:00
|
|
|
define Package/mini-snmpd/install
|
2009-08-05 22:24:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/sbin/mini_snmpd $(1)/usr/bin/
|
2009-07-11 11:26:37 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/mini_snmpd.config $(1)/etc/config/mini_snmpd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/mini_snmpd.init $(1)/etc/init.d/mini_snmpd
|
2009-01-31 16:25:41 +00:00
|
|
|
endef
|
|
|
|
|
2010-04-17 16:49:59 +00:00
|
|
|
Package/mini-snmpd6/install=$(Package/mini-snmpd/install)
|
|
|
|
|
2009-01-31 16:25:41 +00:00
|
|
|
$(eval $(call BuildPackage,mini-snmpd))
|