2006-11-27 09:22:29 +00:00
|
|
|
#
|
2009-05-02 01:01:10 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-11-27 09:22:29 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-11-26 23:44:09 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2009-05-04 20:19:12 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-11-26 23:44:09 +00:00
|
|
|
|
|
|
|
PKG_NAME:=miniupnpd
|
2011-01-24 11:49:56 +00:00
|
|
|
PKG_VERSION:=1.5
|
2011-02-19 19:11:11 +00:00
|
|
|
PKG_RELEASE:=6
|
2011-01-24 11:49:56 +00:00
|
|
|
PKG_MD5SUM:=063f03a2a8363b9d4cb0f73b20b8dfce
|
2006-11-26 23:44:09 +00:00
|
|
|
|
2007-06-30 16:40:06 +00:00
|
|
|
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
|
2006-12-08 18:36:31 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-11-26 23:44:09 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/miniupnpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+iptables
|
|
|
|
TITLE:=Lightweight UPnP daemon
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://miniupnp.free.fr/
|
2010-12-07 03:50:08 +00:00
|
|
|
MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
2009-12-04 23:11:05 +00:00
|
|
|
define Package/miniupnpd/conffiles
|
|
|
|
/etc/config/upnpd
|
|
|
|
endef
|
|
|
|
|
2006-11-26 23:44:09 +00:00
|
|
|
define Build/Compile
|
2007-02-07 04:57:08 +00:00
|
|
|
ln -sf $(PKG_BUILD_DIR)/config.h.openwrt $(PKG_BUILD_DIR)/config.h
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt \
|
2006-12-08 18:36:31 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-03-24 17:45:19 +00:00
|
|
|
STAGING_DIR="$(STAGING_DIR)" \
|
2010-01-24 23:01:01 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(firstword $(wildcard $(KERNEL_BUILD_DIR)/iptables-*/include)) -DIPTABLES_143" \
|
2010-01-24 20:07:43 +00:00
|
|
|
LIBS="$(STAGING_DIR)/usr/lib/libiptc.so $(STAGING_DIR)/usr/lib/libip4tc.so $(STAGING_DIR)/usr/lib/libip6tc.so"
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miniupnpd/install
|
2011-02-19 19:11:11 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface $(1)/etc/hotplug.d/firewall
|
2009-09-23 00:48:24 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/miniupnpd
|
2006-11-26 23:44:09 +00:00
|
|
|
$(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
|
2009-12-04 23:11:05 +00:00
|
|
|
$(INSTALL_CONF) ./files/upnpd.config $(1)/etc/config/upnpd
|
2011-02-19 19:11:11 +00:00
|
|
|
$(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
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,miniupnpd))
|