da0cb16a1ac6a01f5792a3baf3eaab3f12df221b
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mini_snmpd
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=2
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)/sbin
41 $(CP) $(PKG_INSTALL_DIR)/sbin/mini_snmpd $(1)/sbin/
42 endef
43
44 $(eval $(call BuildPackage,mini-snmpd))