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
|
2009-12-04 23:11:05 +00:00
|
|
|
PKG_VERSION:=1.4
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MD5SUM:=ffa33d4ed8732c662bdb7d511e86db76
|
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/
|
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)" \
|
2009-08-07 09:43:18 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(KERNEL_BUILD_DIR)/iptables-1.4.4/include -DIPTABLES_143" \
|
2009-05-02 00:59:22 +00:00
|
|
|
LIBS="$(STAGING_DIR)/usr/lib/libiptc.so"
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miniupnpd/install
|
2009-09-23 00:48:24 +00:00
|
|
|
$(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
|
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
|
2009-09-23 00:48:24 +00:00
|
|
|
$(INSTALL_DATA) ./files/miniupnpd.hotplug $(1)/etc/hotplug.d/firewall/50-miniupnpd
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,miniupnpd))
|