[packages] miniupnpd: fix copyright
[openwrt/svn-archive/archive.git] / net / miniupnpd / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=miniupnpd
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=b5e70e80dcf45b424b8fe3c966bdc613
14
15 PKG_SOURCE_URL:=http://miniupnp.free.fr/files
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/miniupnpd
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+iptables
24 TITLE:=Lightweight UPnP daemon
25 URL:=http://miniupnp.tuxfamily.org/
26 endef
27
28 define Build/Compile
29 ln -sf $(PKG_BUILD_DIR)/config.h.openwrt $(PKG_BUILD_DIR)/config.h
30 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt \
31 $(TARGET_CONFIGURE_OPTS) \
32 STAGING_DIR="$(STAGING_DIR)" \
33 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include -DIPTABLES_143" \
34 LIBS="$(STAGING_DIR)/usr/lib/libiptc.so"
35 endef
36
37 define Package/miniupnpd/install
38 $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface $(1)/lib/miniupnpd
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/
40 $(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
41 $(INSTALL_DATA) ./files/upnpd.config $(1)/etc/config/upnpd
42 $(INSTALL_DATA) ./files/miniupnpd.hotplug $(1)/etc/hotplug.d/iface/20-miniupnpd
43 $(INSTALL_DATA) ./files/miniupnpd.firewall $(1)/lib/miniupnpd/firewall.sh
44 endef
45
46 $(eval $(call BuildPackage,miniupnpd))