source: packages/net/mini_snmpd_ipv6/Makefile @ 20889

Last change on this file since 20889 was 20889, checked in by acoul, 6 years ago

fix mini_snmpd on ipv4. Create a separate mini_snmpd_ipv6 package (closes #6578 & #7094)

File size: 1.2 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mini_snmpd
11PKG_VERSION:=1.0
12PKG_RELEASE:=5
13
14PKG_SOURCE:=mini_snmpd.tar.gz
15PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/
16PKG_MD5SUM:=13f2202ff01ff6b6463989f34f453063
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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
27endef
28
29
30define 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
37endef
38
39define 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
46endef
47
48$(eval $(call BuildPackage,mini-snmpd))
Note: See TracBrowser for help on using the repository browser.