2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=https
://miniupnp.tuxfamily.org
/files
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_HASH
:=f158dc73b718ca72da69e25ef23c57c3a10a0d7e7d1b4b9b57d5690823040ec2
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=LICENSE
21 PKG_CPE_ID
:=cpe
:/a
:miniupnp_project
:miniupnpd
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/version.mk
29 define Package
/miniupnpd
32 DEPENDS
:=+iptables
+libip4tc
+IPV6
:libip6tc
+IPV6
:ip6tables
+libuuid
+libcap-ng
33 TITLE
:=Lightweight UPnP IGD
, NAT-PMP
& PCP daemon
35 URL
:=https
://miniupnp.tuxfamily.org
/
38 define Package
/miniupnpd
/conffiles
43 $(call Build
/Prepare
/Default
)
44 echo
"$(VERSION_NUMBER)" | tr
'() ' '_' >$(PKG_BUILD_DIR
)/os.openwrt
48 $(if
$(CONFIG_IPV6
),--ipv6
) \
55 TARGET_CFLAGS
+= $(FPIC
) -flto
56 TARGET_LDFLAGS
+= -Wl
,--gc-sections
,--as-needed
58 define Package
/miniupnpd
/install
59 $(INSTALL_DIR
) $(1)/usr
/sbin
60 $(INSTALL_DIR
) $(1)/etc
/init.d
61 $(INSTALL_DIR
) $(1)/etc
/config
62 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
63 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
64 $(INSTALL_DIR
) $(1)/usr
/share
/miniupnpd
66 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/miniupnpd
$(1)/usr
/sbin
/miniupnpd
67 $(INSTALL_BIN
) .
/files
/miniupnpd.init
$(1)/etc
/init.d
/miniupnpd
68 $(INSTALL_CONF
) .
/files
/upnpd.config
$(1)/etc
/config
/upnpd
69 $(INSTALL_DATA
) .
/files
/miniupnpd.hotplug
$(1)/etc
/hotplug.d
/iface
/50-miniupnpd
70 $(INSTALL_BIN
) .
/files
/miniupnpd.defaults
$(1)/etc
/uci-defaults
/99-miniupnpd
71 $(INSTALL_DATA
) .
/files
/firewall.
include $(1)/usr
/share
/miniupnpd
/firewall.
include
74 $(eval
$(call BuildPackage
,miniupnpd
))