cd66d1c5c4b38fdfad0fe09f1aaade655a8d49cf
[openwrt/svn-archive/archive.git] / net / miniupnpd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=miniupnpd
12 PKG_VERSION:=20061129
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=1826c480e61e0573dfa1d835ee9d8802
15
16 PKG_SOURCE_URL:=http://miniupnp.tuxfamily.org/files
17 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/miniupnpd
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+iptables
29 TITLE:=Lightweight UPnP daemon
30 DESCRIPTION:=\
31 Lightweight UPnP daemon
32 URL:=http://miniupnp.tuxfamily.org/
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt
37 endef
38
39 define Package/miniupnpd/install
40 $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/CONTROL
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux/*.sh $(1)/usr/bin/
43 $(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
44 $(INSTALL_BIN) ./files/upnpd.config $(1)/etc/config/upnpd
45 $(INSTALL_BIN) ./ipkg/miniupnp.postinst $(1)/CONTROL/postinst
46 $(STRIP) $(1)/usr/bin/miniupnpd
47 endef
48
49 $(eval $(call BuildPackage,miniupnpd))