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
|
2007-06-28 19:15:00 +00:00
|
|
|
PKG_VERSION:=1.0-RC5
|
2006-11-29 02:02:11 +00:00
|
|
|
PKG_RELEASE:=1
|
2007-06-28 19:15:00 +00:00
|
|
|
PKG_MD5SUM:=fce12f92178409f0026a635d4bb5d8be
|
2006-11-26 23:44:09 +00:00
|
|
|
|
2006-11-29 02:02:11 +00:00
|
|
|
PKG_SOURCE_URL:=http://miniupnp.tuxfamily.org/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
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2006-12-08 18:36:31 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-11-26 23:44:09 +00:00
|
|
|
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
|
|
|
|
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
|
2006-12-08 18:36:31 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface
|
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
|
2007-01-04 16:51:21 +00:00
|
|
|
$(INSTALL_DATA) ./files/upnpd.config $(1)/etc/config/upnpd
|
2006-12-08 18:36:31 +00:00
|
|
|
$(INSTALL_DATA) ./files/miniupnpd.hotplug $(1)/etc/hotplug.d/iface/10-miniupnpd
|
2006-11-26 23:44:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,miniupnpd))
|