[packages] add mini_snmpd, an SNMP server for embedded devices
[openwrt/svn-archive/archive.git] / net / mini_snmpd / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mini_snmpd
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=mini_snmpd.tar.gz
15 PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/
16 PKG_MD5SUM:=13f2202ff01ff6b6463989f34f453063
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/mini-snmpd
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=SNMP server for embedded systems
24 URL:=http://members.aon.at/linuxfreak/linux/mini_snmpd.html
25 endef
26
27
28 define Build/Compile
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 CC="$(TARGET_CC)" \
31 OFLAGS="$(TARGET_CFLAGS)" \
32 STRIP="/bin/true" \
33 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
34 mini_snmpd install
35 endef
36
37 define Package/mini-snmpd/install
38 $(INSTALL_DIR) $(1)/sbin
39 $(CP) $(PKG_INSTALL_DIR)/sbin/mini_snmpd $(1)/sbin/
40 endef
41
42 $(eval $(call BuildPackage,mini-snmpd))