2006-11-27 09:22:29 +00:00
|
|
|
#
|
2013-01-13 18:03:27 +00:00
|
|
|
# Copyright (C) 2006-2013 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
|
|
|
|
|
|
|
|
PKG_NAME:=miniupnpd
|
2013-02-08 17:16:08 +00:00
|
|
|
PKG_VERSION:=1.8
|
|
|
|
PKG_RELEASE:=1
|
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
|
2013-02-08 17:16:08 +00:00
|
|
|
PKG_MD5SUM:=0d8a8e936d5a0012cb260a3b972acbf3
|
2006-11-26 23:44:09 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/miniupnpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2013-01-13 18:03:27 +00:00
|
|
|
DEPENDS:=+iptables +libip4tc +IPV6:libip6tc +libnfnetlink
|
2006-11-26 23:44:09 +00:00
|
|
|
TITLE:=Lightweight UPnP daemon
|
2011-03-12 01:14:02 +00:00
|
|
|
SUBMENU:=Firewall
|
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
|
|
|
|
|
2013-01-13 18:03:27 +00:00
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
|
|
|
echo "OpenWrt/$(OPENWRTVERSION)" | tr \(\)\ _ >$(PKG_BUILD_DIR)/os.openwrt
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
2013-01-13 18:03:27 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
LIBS="" \
|
|
|
|
CC="$(TARGET_CC) -DIPTABLES_143 -lnfnetlink -lip4tc $(if $(CONFIG_IPV6),-lip6tc)" \
|
|
|
|
CONFIG_OPTIONS="$(if $(CONFIG_IPV6),--ipv6) --leasefile" \
|
|
|
|
-f Makefile.linux \
|
|
|
|
miniupnpd
|
|
|
|
|
2006-11-26 23:44:09 +00:00
|
|
|
define Package/miniupnpd/install
|
2011-11-16 09:44:23 +00:00
|
|
|
$(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
|
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
|
2011-03-08 14:49:40 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/miniupnpd
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,miniupnpd))
|