2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=4ba2a49c593d0c1088cc5791b8c6a985
16 PKG_SOURCE_URL
:=http
://ftp.berlios.de
/pub
/xwrt
/storage
/
17 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/miniupnpd
29 TITLE
:=Lightweight UPnP daemon
31 Lightweight UPnP daemon
32 URL
:=http
://miniupnp.tuxfamily.org
/
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) -f Makefile.openwrt
40 # remove the client dir since the build system doesnt know about it
41 rm -rf
$(PKG_BUILD_DIR
)/..
/miniupnpc
44 define Package
/miniupnpd
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/etc
/init.d
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/miniupnpd
$(1)/usr
/bin
/
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/linux
/*.sh
$(1)/usr
/bin
/
48 $(INSTALL_BIN
) .
/files
/miniupnpd.init
$(1)/etc
/init.d
/miniupnpd
49 $(STRIP
) $(1)/usr
/bin
/miniupnpd
52 $(eval
$(call BuildPackage
,miniupnpd
))