X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=net%2Fminiupnpd%2FMakefile;h=532885619a5a53a9e96c668e20740687e0641b9c;hb=a5d6c75e01f9252233425275bba50c133bcb1dba;hp=feba7cfad4878b00bf09e90d850e95cdfde035e3;hpb=2b7175b8ee396dd4ac8bea253adf5559050335c7;p=packages.git diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile index feba7cfad..532885619 100644 --- a/net/miniupnpd/Makefile +++ b/net/miniupnpd/Makefile @@ -1,17 +1,17 @@ # -# Copyright (C) 2006-2008 OpenWrt.org +# Copyright (C) 2006-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=miniupnpd -PKG_VERSION:=1.1 -PKG_RELEASE:=4 -PKG_MD5SUM:=a0f6651476721db9b554668c8c83b151 +PKG_VERSION:=1.5.20110302 +PKG_RELEASE:=2 +PKG_MD5SUM:=9c2906a2f87d9b9504e4fc09488afe41 PKG_SOURCE_URL:=http://miniupnp.free.fr/files PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -23,25 +23,35 @@ define Package/miniupnpd CATEGORY:=Network DEPENDS:=+iptables TITLE:=Lightweight UPnP daemon - URL:=http://miniupnp.tuxfamily.org/ + 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" \ - LIBS="$(STAGING_DIR)/usr/lib/libiptc.a" + 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/libiptc.so $(STAGING_DIR)/usr/lib/libip4tc.so $(STAGING_DIR)/usr/lib/libip6tc.so" endef define Package/miniupnpd/install - $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface $(1)/lib/miniupnpd - $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/bin $(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/bin/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/iface/20-miniupnpd - $(INSTALL_DATA) ./files/miniupnpd.firewall $(1)/lib/miniupnpd/firewall.sh + $(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 + $(INSTALL_DATA) $(PKG_BUILD_DIR)/miniupnpd.conf $(1)/usr/share/miniupnpd/miniupnpd.conf.example + $(INSTALL_DATA) ./files/upnpd.config.example $(1)/etc/config/upnpd.example endef $(eval $(call BuildPackage,miniupnpd))