2006-11-27 09:22:29 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# 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
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=miniupnpd
|
2006-11-29 02:02:11 +00:00
|
|
|
PKG_VERSION:=20061129
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MD5SUM:=1826c480e61e0573dfa1d835ee9d8802
|
2006-11-26 23:44:09 +00:00
|
|
|
|
2006-11-29 02:02:11 +00:00
|
|
|
PKG_SOURCE_URL:=http://miniupnp.tuxfamily.org/files
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
|
2006-11-26 23:44:09 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/miniupnpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+iptables
|
|
|
|
TITLE:=Lightweight UPnP daemon
|
|
|
|
DESCRIPTION:=\
|
|
|
|
Lightweight UPnP daemon
|
|
|
|
URL:=http://miniupnp.tuxfamily.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miniupnpd/install
|
2006-12-05 06:24:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/CONTROL
|
2006-11-26 23:44:09 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/linux/*.sh $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
|
2006-12-05 06:24:30 +00:00
|
|
|
$(INSTALL_BIN) ./files/upnpd.config $(1)/etc/config/upnpd
|
|
|
|
$(INSTALL_BIN) ./ipkg/miniupnp.postinst $(1)/CONTROL/postinst
|
2006-11-26 23:44:09 +00:00
|
|
|
$(STRIP) $(1)/usr/bin/miniupnpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,miniupnpd))
|