2006-11-27 09:22:29 +00:00
|
|
|
#
|
2008-09-23 23:23:52 +00:00
|
|
|
# Copyright (C) 2006-2008 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
|
2008-05-20 10:06:16 +00:00
|
|
|
PKG_VERSION:=1.1
|
2009-01-25 14:59:25 +00:00
|
|
|
PKG_RELEASE:=5
|
2008-05-20 10:06:16 +00:00
|
|
|
PKG_MD5SUM:=a0f6651476721db9b554668c8c83b151
|
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
|
|
|
|
URL:=http://miniupnp.tuxfamily.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
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)" \
|
2006-12-08 18:36:31 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include" \
|
|
|
|
LIBS="$(STAGING_DIR)/usr/lib/libiptc.a"
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miniupnpd/install
|
2008-12-25 03:25:13 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface $(1)/lib/miniupnpd
|
2006-11-26 23:44:09 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
|
2007-01-04 16:51:21 +00:00
|
|
|
$(INSTALL_DATA) ./files/upnpd.config $(1)/etc/config/upnpd
|
2007-06-28 21:13:40 +00:00
|
|
|
$(INSTALL_DATA) ./files/miniupnpd.hotplug $(1)/etc/hotplug.d/iface/20-miniupnpd
|
2008-12-25 03:25:13 +00:00
|
|
|
$(INSTALL_DATA) ./files/miniupnpd.firewall $(1)/lib/miniupnpd/firewall.sh
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,miniupnpd))
|