mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mini_snmpd: import 1.2b from oldpackages for reference http://git.openwrt.org/?p=packages.git;a=commit;h=787e4e15a2792eb4d059001e1fb8bc84da8d65fd
Signed-off-by: Luke McKee <hojuruku@gmail.com>
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
#
|
||||
# Copyright (C) 2009-2014 OpenWrt.org
|
||||
#
|
||||
# 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
|
||||
PKG_VERSION:=1.2b
|
||||
PKG_RELEASE:=8
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/
|
||||
PKG_MD5SUM:=9e432c50ba8216d7fab0983b11b7112a
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/mini-snmpd
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=SNMP server for embedded systems
|
||||
URL:=http://members.aon.at/linuxfreak/linux/mini_snmpd.html
|
||||
endef
|
||||
|
||||
ifneq ($(CONFIG_IPV6),)
|
||||
TARGET_CFLAGS+= -D__IPV6__
|
||||
else
|
||||
TARGET_CFLAGS+= -D__IPV4__
|
||||
endif
|
||||
|
||||
TARGET_CFLAGS+= -DSYSLOG
|
||||
|
||||
MAKE_FLAGS+= \
|
||||
OFLAGS="$(TARGET_CFLAGS)" \
|
||||
STRIP="/bin/true" \
|
||||
INSTALL_ROOT="$(PKG_INSTALL_DIR)"
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default,mini_snmpd)
|
||||
endef
|
||||
|
||||
define Package/mini-snmpd/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/sbin/mini_snmpd $(1)/usr/bin/
|
||||
$(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
|
||||
endef
|
||||
|
||||
define Package/mini-snmpd/conffiles
|
||||
/etc/config/mini_snmpd
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,mini-snmpd))
|
||||
Reference in New Issue
Block a user