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-11-17 10:47:15 +00:00
|
|
|
PKG_RELEASE:=6
|
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
|
|
|
|
2011-11-13 22:15:50 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(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
|
|
|
|
|
|
|
|
define Package/mini-snmpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-11-13 22:15:50 +00:00
|
|
|
TITLE:=SNMP server for embedded systems
|
|
|
|
URL:=http://members.aon.at/linuxfreak/linux/mini_snmpd.html
|
2009-01-31 16:25:41 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-13 22:15:50 +00:00
|
|
|
ifneq ($(CONFIG_IPV6),)
|
|
|
|
TARGET_CFLAGS+= -D__IPV6__
|
2010-11-01 15:52:43 +00:00
|
|
|
else
|
2011-11-13 22:15:50 +00:00
|
|
|
TARGET_CFLAGS+= -D__IPV4__
|
2010-04-17 16:49:59 +00:00
|
|
|
endif
|
2009-01-31 16:25:41 +00:00
|
|
|
|
2011-11-13 22:15:50 +00:00
|
|
|
TARGET_CFLAGS+= -DSYSLOG
|
|
|
|
|
2010-04-17 13:16:17 +00:00
|
|
|
MAKE_FLAGS+= \
|
2011-11-13 22:15:50 +00:00
|
|
|
OFLAGS="$(TARGET_CFLAGS)" \
|
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
|
|
|
|
|
2011-11-16 09:44:31 +00:00
|
|
|
define Package/mini-snmpd/conffiles
|
|
|
|
/etc/config/mini_snmpd
|
|
|
|
endef
|
|
|
|
|
2009-01-31 16:25:41 +00:00
|
|
|
$(eval $(call BuildPackage,mini-snmpd))
|