X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=net%2Fmini_snmpd%2FMakefile;h=c49b6eb3c983b4c1932e2d1a67f6e7010120c202;hb=6827adf5abb02facf87d2f2670ba7b2fddeca20d;hp=972433af4827811914867bd7c2073812bdebea75;hpb=4df84390049f450037491211e89ea08ed6f6597c;p=packages.git diff --git a/net/mini_snmpd/Makefile b/net/mini_snmpd/Makefile index 972433af4..c49b6eb3c 100644 --- a/net/mini_snmpd/Makefile +++ b/net/mini_snmpd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2009 OpenWrt.orgv +# Copyright (C) 2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mini_snmpd PKG_VERSION:=1.0 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=mini_snmpd.tar.gz PKG_SOURCE_URL:=http://members.aon.at/linuxfreak/linux/ @@ -24,17 +24,20 @@ define Package/mini-snmpd CATEGORY:=Network TITLE:=SNMP server for embedded systems URL:=http://members.aon.at/linuxfreak/linux/mini_snmpd.html + DEPENDS:=+IPV6:kmod-ipv6 endef -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - CC="$(TARGET_CC)" \ - OFLAGS="$(TARGET_CFLAGS) -DSYSLOG" \ - STRIP="/bin/true" \ - INSTALL_ROOT="$(PKG_INSTALL_DIR)" \ - mini_snmpd install -endef +MAKE_FLAGS+= \ + STRIP="/bin/true" \ + INSTALL_ROOT="$(PKG_INSTALL_DIR)" \ + mini_snmpd install + +ifeq ($(CONFIG_IPV6),y) +MAKE_FLAGS+= OFLAGS="$(TARGET_CFLAGS) -DSYSLOG -DIPV6" +else +MAKE_FLAGS+= OFLAGS="$(TARGET_CFLAGS) -DSYSLOG" +endif define Package/mini-snmpd/install $(INSTALL_DIR) $(1)/usr/bin