source: packages/net/miniupnpd/Makefile @ 27151

Last change on this file since 27151 was 27151, checked in by jow, 6 years ago

[packages] miniupnpd: properly handle multiple internal interfaces in hotplug helper (#9538)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=miniupnpd
12PKG_VERSION:=1.5.20110309
13PKG_RELEASE:=2
14PKG_MD5SUM:=350d20bf25922e12f8d69e06fa33fd83
15
16PKG_SOURCE_URL:=http://miniupnp.free.fr/files
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/miniupnpd
22  SECTION:=net
23  CATEGORY:=Network
24  DEPENDS:=+iptables +libip4tc
25  TITLE:=Lightweight UPnP daemon
26  SUBMENU:=Firewall
27  URL:=http://miniupnp.free.fr/
28  MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
29endef
30
31define Package/miniupnpd/conffiles
32/etc/config/upnpd
33endef
34
35define Build/Compile
36        echo "OpenWRT/$(OPENWRTVERSION)" | tr \(\)\  _ >$(PKG_BUILD_DIR)/os.openwrt
37        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.linux \
38                $(TARGET_CONFIGURE_OPTS) \
39                STAGING_DIR="$(STAGING_DIR)" \
40                CC="$(TARGET_CC)" \
41                TARGET_OPENWRT=1 \
42                CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(firstword $(wildcard $(KERNEL_BUILD_DIR)/iptables-*/include)) -DIPTABLES_143" \
43                LIBS="$(STAGING_DIR)/usr/lib/libip4tc.so"
44endef
45
46define Package/miniupnpd/install
47        $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface $(1)/etc/hotplug.d/firewall
48        $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/miniupnpd
49        $(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
50        $(INSTALL_CONF) ./files/upnpd.config $(1)/etc/config/upnpd
51        $(INSTALL_DATA) ./files/miniupnpd.iface.hotplug $(1)/etc/hotplug.d/iface/50-miniupnpd
52        $(INSTALL_DATA) ./files/miniupnpd.firewall.hotplug $(1)/etc/hotplug.d/firewall/50-miniupnpd
53        $(INSTALL_DIR) $(1)/usr/share/miniupnpd
54endef
55
56$(eval $(call BuildPackage,miniupnpd))
Note: See TracBrowser for help on using the repository browser.