[packages] add multiwan, a simple to use multi wan configuration agent
[openwrt/svn-archive/archive.git] / net / mini_snmpd_ipv6 / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.orgv
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.0
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=mini_snmpd.tar.gz
15 PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/
16 PKG_MD5SUM:=13f2202ff01ff6b6463989f34f453063
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/mini-snmpd
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=SNMP server for embedded systems
26 URL:=http://members.aon.at/linuxfreak/linux/mini_snmpd.html
27 endef
28
29
30 define Build/Compile
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 CC="$(TARGET_CC)" \
33 OFLAGS="$(TARGET_CFLAGS) -DSYSLOG" \
34 STRIP="/bin/true" \
35 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
36 mini_snmpd install
37 endef
38
39 define Package/mini-snmpd/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(CP) $(PKG_INSTALL_DIR)/sbin/mini_snmpd $(1)/usr/bin/
42 $(INSTALL_DIR) $(1)/etc/config
43 $(INSTALL_CONF) ./files/mini_snmpd.config $(1)/etc/config/mini_snmpd
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/mini_snmpd.init $(1)/etc/init.d/mini_snmpd
46 endef
47
48 $(eval $(call BuildPackage,mini-snmpd))