[PATCH] mini_snmpd: support for IPv6
[openwrt/svn-archive/archive.git] / net / mini_snmpd / Makefile
index a2679bd..120f513 100644 (file)
@@ -4,17 +4,19 @@
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
-# $Id$
 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mini_snmpd
-PKG_RELEASE:=1
+PKG_VERSION:=1.0
+PKG_RELEASE:=4
 
 PKG_SOURCE:=mini_snmpd.tar.gz
 PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/
 PKG_MD5SUM:=13f2202ff01ff6b6463989f34f453063
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/mini-snmpd
@@ -28,7 +30,7 @@ endef
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \
-               OFLAGS="$(TARGET_CFLAGS)" \
+               OFLAGS="$(TARGET_CFLAGS) -DSYSLOG" \
                STRIP="/bin/true" \
                INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
                mini_snmpd install
@@ -37,6 +39,10 @@ endef
 define Package/mini-snmpd/install
        $(INSTALL_DIR) $(1)/sbin
        $(CP) $(PKG_INSTALL_DIR)/sbin/mini_snmpd $(1)/sbin/
+       $(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
 
 $(eval $(call BuildPackage,mini-snmpd))