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
11 PKG_VERSION
:=2.1.20200510
14 PKG_SOURCE_URL
:=https
://miniupnp.tuxfamily.org
/files
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_HASH
:=821e708f369cc1fb851506441fbc3a1f4a1b5a8bf8e84a9e71758a32f5127e8b
18 PKG_LICENSE
:=BSD-3-Clause
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_CPE_ID
:=cpe
:/a
:miniupnp_project
:miniupnpd
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/version.mk
28 define Package
/miniupnpd
31 DEPENDS
:=+iptables
+libip4tc
+IPV6
:libip6tc
+IPV6
:ip6tables
+libuuid
+libcap-ng
32 TITLE
:=Lightweight UPnP IGD
, NAT-PMP
& PCP daemon
34 URL
:=https
://miniupnp.tuxfamily.org
/
37 define Package
/miniupnpd
/conffiles
42 $(call Build
/Prepare
/Default
)
43 echo
"$(VERSION_NUMBER)" | tr
'() ' '_' >$(PKG_BUILD_DIR
)/os.openwrt
47 $(if
$(CONFIG_IPV6
),--ipv6
) \
53 TARGET_CFLAGS
+= $(FPIC
) -flto
54 TARGET_LDFLAGS
+= -Wl
,--gc-sections
,--as-needed
56 define Package
/miniupnpd
/install
57 $(INSTALL_DIR
) $(1)/usr
/sbin
58 $(INSTALL_DIR
) $(1)/etc
/init.d
59 $(INSTALL_DIR
) $(1)/etc
/config
60 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
61 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
62 $(INSTALL_DIR
) $(1)/usr
/share
/miniupnpd
64 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/miniupnpd
$(1)/usr
/sbin
/miniupnpd
65 $(INSTALL_BIN
) .
/files
/miniupnpd.init
$(1)/etc
/init.d
/miniupnpd
66 $(INSTALL_CONF
) .
/files
/upnpd.config
$(1)/etc
/config
/upnpd
67 $(INSTALL_DATA
) .
/files
/miniupnpd.hotplug
$(1)/etc
/hotplug.d
/iface
/50-miniupnpd
68 $(INSTALL_BIN
) .
/files
/miniupnpd.defaults
$(1)/etc
/uci-defaults
/99-miniupnpd
69 $(INSTALL_DATA
) .
/files
/firewall.
include $(1)/usr
/share
/miniupnpd
/firewall.
include
72 $(eval
$(call BuildPackage
,miniupnpd
))