X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=net%2Fminiupnpd%2FMakefile;h=8c342dfc0b668b90e66cf0881df6675ee2905d2d;hb=b8af45d244ffa6da8f7161641f31e56f8f2071c7;hp=61261c7e720559732849d80da80bfd174e8ca956;hpb=8a76c92527562e43ea470babbff6f39841f8ccfc;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile index 61261c7e72..8c342dfc0b 100644 --- a/net/miniupnpd/Makefile +++ b/net/miniupnpd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,38 +9,48 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=miniupnpd -PKG_VERSION:=1.3 +PKG_VERSION:=1.6.20110730 PKG_RELEASE:=4 -PKG_MD5SUM:=b5e70e80dcf45b424b8fe3c966bdc613 PKG_SOURCE_URL:=http://miniupnp.free.fr/files PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_MD5SUM:=8bd5c0447b6dc1101b96e958ee67d3ea include $(INCLUDE_DIR)/package.mk define Package/miniupnpd SECTION:=net CATEGORY:=Network - DEPENDS:=+iptables + DEPENDS:=+iptables +libip4tc TITLE:=Lightweight UPnP daemon + SUBMENU:=Firewall URL:=http://miniupnp.free.fr/ + MAINTAINER:=Daniel Dickinson +endef + +define Package/miniupnpd/conffiles +/etc/config/upnpd endef define Build/Compile - ln -sf $(PKG_BUILD_DIR)/config.h.openwrt $(PKG_BUILD_DIR)/config.h - $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt \ + echo "OpenWRT/$(OPENWRTVERSION)" | tr \(\)\ _ >$(PKG_BUILD_DIR)/os.openwrt + $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.linux \ $(TARGET_CONFIGURE_OPTS) \ STAGING_DIR="$(STAGING_DIR)" \ - CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(KERNEL_BUILD_DIR)/iptables-1.4.4/include -DIPTABLES_143" \ - LIBS="$(STAGING_DIR)/usr/lib/libiptc.so" + CC="$(TARGET_CC)" \ + TARGET_OPENWRT=1 \ + CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(firstword $(wildcard $(KERNEL_BUILD_DIR)/iptables-*/include)) -DIPTABLES_143" \ + LIBS="$(STAGING_DIR)/usr/lib/libip4tc.so" endef define Package/miniupnpd/install - $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/firewall - $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/miniupnpd + $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface $(1)/etc/hotplug.d/firewall + $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/sbin/miniupnpd $(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd - $(INSTALL_DATA) ./files/upnpd.config $(1)/etc/config/upnpd - $(INSTALL_DATA) ./files/miniupnpd.hotplug $(1)/etc/hotplug.d/firewall/50-miniupnpd + $(INSTALL_CONF) ./files/upnpd.config $(1)/etc/config/upnpd + $(INSTALL_DATA) ./files/miniupnpd.iface.hotplug $(1)/etc/hotplug.d/iface/50-miniupnpd + $(INSTALL_DATA) ./files/miniupnpd.firewall.hotplug $(1)/etc/hotplug.d/firewall/50-miniupnpd + $(INSTALL_DIR) $(1)/usr/share/miniupnpd endef $(eval $(call BuildPackage,miniupnpd))