igd2-for-linux: new package
PATCH v4 1/1 igd2-for-linux: new package
This is The Linux UPnP Internet Gateway Device 2. It is modified from the original Linux UPnP Internet Gateway Device
[http://linux-igd.sourceforge.net/] according to UPnP InternetGatewayDevice:2 specifications.
It implements the UPnP Internet Gateway Device version 2 specification (IGDv2) and allows UPnP aware clients, such as MSN Messenger, Azureus or Miranda to work properly from behind a NAT firewall.
Please edit /etc/upnpd.conf before using upnpd!
https://github.com/ffontaine/igd2-for-linux
---
Changes v3 -> v4 (after review of Thomas Petazzoni):
- Allow modification of LAN and WAN interfaces by sourcing /etc/default/upnpd in init scripts
- Do not add UPnP multicast route by default
- Fix indentation of IGD2_FOR_LINUX_BUILD_CMDS
- Simplify file installation in IGD2_FOR_LINUX_INSTALL_TARGET_CMDS
- Replace wrong reference to domoticz by igd2-for-linux
Changes v2 -> v3 (after review of Romain Naour):
- Remove iptables from IGD2_FOR_LINUX_DEPENDENCIES as this is a runtime dependency
- Remove CFLAGS definition from IGD2_FOR_LINUX_BUILD_CMDS as it's already a part of TARGET_CONFIGURE_OPTS
- Remove BINDIR and MANDIR from IGD2_FOR_LINUX_BUILD_CMDS as they're not defined in Makefile
- Use -D option and specify a full destination path when installing files
Changes v1 -> v2 (after review of Romain Naour):
- Do not use HAVE_LIBIPTC as it doesn't work with musl toolchain due to mixed userspace and kernel headers and some undeclared IPPROTO_TCP/IPPROTO_UDP variables. libiptc is not a public and stable API for iptables:
http://www.netfilter.org/documentation/FAQ/netfilter-faq-4.html
package/Config.in | 1 + package/igd2-for-linux/Config.in | 25 +++++++++++ package/igd2-for-linux/S99upnpd | 67 ++++++++++++++++++++++++++++++ package/igd2-for-linux/igd2-for-linux.hash | 2 + package/igd2-for-linux/igd2-for-linux.mk | 49 ++++++++++++++++++++++ package/igd2-for-linux/upnpd.service | 22 ++++++++++ 6 files changed, 166 insertions(+) create mode 100644 package/igd2-for-linux/Config.in create mode 100644 package/igd2-for-linux/S99upnpd create mode 100644 package/igd2-for-linux/igd2-for-linux.hash create mode 100644 package/igd2-for-linux/igd2-for-linux.mk create mode 100644 package/igd2-for-linux/upnpd.service
package/Config.in +1 -0
@@ -1443,6 +1443,7 @@ menu "Networking applications" source "package/ifplugd/Config.in" source "package/iftop/Config.in" source "package/ifupdown/Config.in" + source "package/igd2-for-linux/Config.in" source "package/igh-ethercat/Config.in" source "package/igmpproxy/Config.in" source "package/inadyn/Config.in"
package/igd2-for-linux/Config.in new file +25 -0
@@ -0,0 +1,25 @@ +config BR2_PACKAGE_IGD2_FOR_LINUX + bool "igd2-for-linux" + depends on BR2_USE_MMU # fork() + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_WCHAR + select BR2_PACKAGE_IPTABLES # runtime + select BR2_PACKAGE_LIBUPNP + help + This is The Linux UPnP Internet Gateway Device 2. It is + modified from the original Linux UPnP Internet Gateway Device + [http://linux-igd.sourceforge.net/] according to UPnP + InternetGatewayDevice:2 specifications. + + It implements the UPnP Internet Gateway Device version 2 + specification (IGDv2) and allows UPnP aware clients, such as + MSN Messenger, Azureus or Miranda to work properly from behind + a NAT firewall. + + Please edit /etc/upnpd.conf before using upnpd! + + https://github.com/ffontaine/igd2-for-linux + +comment "igd2-for-linux needs a toolchain w/ threads and wchar" + depends on BR2_USE_MMU + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
package/igd2-for-linux/S99upnpd new file +67 -0
67 lines not on this page · raw message
package/igd2-for-linux/igd2-for-linux.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 a8edc4c14aa104dcffa79d1f3057b8b9c5cef0f8f43901f61e306120a4efe01f igd2-for-linux-v1.1.tar.gz
package/igd2-for-linux/igd2-for-linux.mk new file +49 -0
49 lines not on this page · raw message
package/igd2-for-linux/upnpd.service new file +22 -0
@@ -0,0 +1,22 @@ +[Unit] +Description=UPnP Internet Gateway Device version 2 daemon +After=network.target + +[Service] +Environment="LAN=eth0" +Environment="WAN=eth0" +EnvironmentFile=/etc/default/upnpd +# For the UPnP library to function correctly, networking must be configured +# properly for multicasting as described in +# https://sourceforge.net/p/pupnp/code/ci/master/tree/README. +# Without this addition, device advertisements and control point searches will +# not function. +# However, the route has to be configured once for all UPnP applications +# (igd2-for-linux, ushare, ...) so do not manage UPnP route by default +#ExecStartPre=/sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $LAN +#ExecStopPost=/sbin/route del -net 239.0.0.0 netmask 255.0.0.0 $LAN +ExecStart=/usr/sbin/upnpd -f $WAN $LAN +Restart=always + +[Install] +WantedBy=multi-user.target
Signature · 1 line
2.7.4
Thomas Petazzoni
AppliedPATCH v4 1/1 igd2-for-linux: new package
Hello,
Quoted 15 lines · Fabrice Fontaine
This is The Linux UPnP Internet Gateway Device 2. It is modified from the original Linux UPnP Internet Gateway Device
[http://linux-igd.sourceforge.net/] according to UPnP InternetGatewayDevice:2 specifications.It implements the UPnP Internet Gateway Device version 2 specification (IGDv2) and allows UPnP aware clients, such as MSN Messenger, Azureus or Miranda to work properly from behind a NAT firewall.
Please edit
/etc/upnpd.confbefore using upnpd!https://github.com/ffontaine/igd2-for-linux
Signed-off-by Fabrice Fontaine <[email protected]>
Quoted 8 lines
---
Changes v3 -> v4 (after review of Thomas Petazzoni):
- Allow modification of LAN and WAN interfaces by sourcing/etc/default/upnpdin init scripts
- Do not add UPnP multicast route by default
- Fix indentation ofIGD2_FOR_LINUX_BUILD_CMDS
- Simplify file installation inIGD2_FOR_LINUX_INSTALL_TARGET_CMDS
- Replace wrong reference to domoticz by igd2-for-linux
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com