Ivan Shapovalov
eb3cf72900
miniupnpd: configure, Makefile: make tests optional
...
Tests confuse compilation-database-driven code analysis tools
(specifically, some tests stub out certain functions and the stubs
sometimes get preferred over real definitions). So, make them optional.
2024-10-02 23:48:08 +02:00
Thomas Bernard
1b596c8d74
miniupnpd/Makefile.bsd: set OSNAME and ARCH in configure
2024-10-02 23:29:06 +02:00
Ivan Shapovalov
95a6ffda1f
miniupnpd: Makefile: move uuid tool detection to configure
2024-10-02 19:26:30 +02:00
Ivan Shapovalov
d1fb15e40e
miniupnpd: Makefile: move libssl detection to configure
...
fix: use "openssl" pkg-config instead of "libssl"
(libcrypto was missing)
Improvement : libssl is linked only when needed
(IGD2 and HTTPS both enabled)
2024-10-02 16:13:47 +02:00
Thomas Bernard
6ab64d765b
miniupnpd/configure: add --https --https-cert and --https-key
2024-10-02 00:25:16 +02:00
Thomas Bernard
e0f26840dd
miniupnpd/configure: fix CONFIG_MK existence test
...
fix d68edd90cf64ff8d6de79072204d421889a95b5a
(my fault)
2024-10-01 01:21:35 +02:00
Ivan Shapovalov
cd01381bb3
miniupnpd: Makefile: move libuuid detection to configure
2024-09-30 19:58:57 +02:00
Ivan Shapovalov
e9d63f63ef
miniupnpd: Makefile: move libnftnl, libmnl detection to configure
2024-09-30 19:51:44 +02:00
Ivan Shapovalov
a1b4085de6
miniupnpd: Makefile: remove obsolete parts of libiptc detection
...
If for some inexplicable reason there is no pkg-config in the system,
we are able to detect libiptc 1.4.3+ in configure via testing for
xtables.h, so the Gentoo-specific hack seems obsolete.
2024-09-30 19:50:34 +02:00
Ivan Shapovalov
1ee9301092
miniupnpd: configure: cleanup libiptc detection
2024-09-30 19:49:20 +02:00
Thomas Bernard
3b78208545
miniupnpd/configure: pkg_detect() output a message for a library not found
2024-09-30 19:47:13 +02:00
Ivan Shapovalov
c0c35bb86e
miniupnpd: configure: add a helper for pkg-config and config.mk
...
Instead of open-coding pkg-config usage, add a helper to use it
consistently, writing the results to config.mk.
2024-09-30 16:56:43 +02:00
Ivan Shapovalov
a715632987
miniupnpd: configure: check for OpenWrt consistently
...
Current OpenWrt build system always creates `./os.openwrt`, so there is
no point in checking for OpenWrt in any other way.
2024-09-30 00:47:02 +02:00
Ivan Shapovalov
0bdce75bc5
miniupnpd: configure: compute and set $OS_FAMILY
for internal use
2024-09-30 00:43:41 +02:00
Thomas BERNARD
f0ff3a4f4d
miniupnpd: improve detection of iptables 1.4.16+
2024-09-30 00:13:06 +02:00
Thomas BERNARD
f80bb2e111
miniupnpd/configure: message if libcap/libcap-ng detection is impossible
2024-09-30 00:12:48 +02:00
Ivan Shapovalov
d68edd90cf
miniupnpd: configure: generate config.mk consistently
...
(used only for Linux netfilter / nftables)
2024-09-27 18:07:48 +02:00
Thomas Bernard
0cf7acb0ee
configure: show OS_MACHINE
2024-06-22 21:21:57 +02:00
Thomas Bernard
ea207a21f6
"Usage:" not "Usage :"
2024-06-22 19:15:10 +02:00
Thomas Bernard
d235793dcb
Merge branch 'pr-755'
...
fixes #755
thank you @rbgarga
2024-06-19 08:38:56 +02:00
Thomas Bernard
83e002338f
configure: --uselibpfctl / USE_LIBPFCTL
...
see #671
2024-06-17 00:18:55 +02:00
Renato Botelho do Couto
066c27054d
miniupnpd: Detect Chimera linux
2024-06-11 14:12:53 -05:00
Renato Botelho do Couto
23d9475f45
miniupnpd: Fix date call on BSD date
...
Chimera linux uses date from BSDs and the parameters are quite
different. Change it to detect which one is being used and use
appropriate parameters.
2024-06-11 14:12:53 -05:00
Self-Hosting-Group
fc5c72d177
miniupnpd: Fix RemoteHost filtering support not enabled on linux
2024-05-10 16:44:11 +02:00
Thomas Bernard
0306f6974b
configure: reformat --help
2024-01-26 01:30:16 +01:00
Thomas Bernard
3c02d79b40
configure: DeviceProtection service implementation is incomplete
2024-01-26 01:24:15 +01:00
Thomas Bernard
2355c108db
configure: Fix Caps/spaces...
2024-01-26 01:23:21 +01:00
Thomas Bernard
4b0ff229d8
default to /etc/miniupnpd/miniupnpd.conf under linux
...
it is still /etc/miniupnpd.conf under BSD.
closes #695
2024-01-17 00:49:32 +01:00
Thomas Bernard
f22a96b469
miniupnpd version 2.3.4
2024-01-04 01:54:52 +01:00
Thomas Bernard
e8f8208e24
miniupnpd: Disable DeviceProtection service by default
2023-06-29 02:08:02 +02:00
Thomas Bernard
3a6feb49c0
configure: http => https
2023-06-27 01:00:07 +02:00
yangfl
2ff8cb17da
miniupnpd: Add option to match rules with regex
...
Some reports that a certain app is abusing UPnP for exploiting upload
bandwidth. This commit adds support to restrict UPnP rules to a regex.
By matching requester's description string against rule's regex, this
will make some obstacles for that app.
2022-10-21 21:26:39 +02:00
Thomas Bernard
047fe367dd
miniupnpd: improve configure script for cross builds
2022-05-18 09:55:52 +02:00
Thomas Bernard
89c6556338
miniupnpd/ipfw: make it clear it is not working under FreeBSD
2022-02-19 22:49:14 +01:00
Jo-Philipp Wich
a28dec3c2d
configure: expose USE_GETIFADDRS configuration
...
The miniupnpd sources contain a working getifaddrs() based implementation
to fetch the IP address of an interface but that implementation is guarded
by a USE_GETIFADDRS define which can only be passed manually via CFLAGS.
Introduce a new `--getifaddrs` option to the configure script which can be
used to explicitly enable `getifaddrs()` usage.
Also extend the OpenWrt configuration case to enable `getifaddrs()` since
OpenWrt ships with a working implementation of it since several years
already.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-16 17:54:01 +01:00
Stijn Tintel
51a422407b
miniupnpd/configure: don't hardcode iptables
...
The OpenWrt Makefile that builds miniupnpd passes the firewall argument
to the configure script, so this is not needed and it is blocking us
from using nftables instead, which will be the default backend for
firewall4 to be used in the next OpenWrt stable release.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-11-07 20:24:29 +02:00
Stijn Tintel
2b00c461fb
treewide: s/OpenWRT/OpenWrt/
...
The correct spelling is OpenWrt.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-11-07 20:21:25 +02:00
Thomas Bernard
881ba06bc1
configure: warning when no libiptc pkg-config found
2021-09-30 01:49:30 +02:00
Thomas Bernard
d2f558f659
configure: use 'command -v' instead of 'which'
2021-09-30 01:49:30 +02:00
Thomas Bernard
6e16650bc2
miniupnpd/configure: fix comparaison
...
[ "$IPTABLES_143" -eq 1 ]
doesn't work if $ITABLES_143 is empty
using instead :
[ "$IPTABLES_143" = "1" ]
2021-09-30 01:49:30 +02:00
Thomas Bernard
08ae9e9e71
miniupnpd: dynamically retrieve uname -r
...
fixes #547
2021-05-22 00:16:40 +02:00
Thomas Bernard
1331b42410
fix dd99f0eb75282a1e07242b97fd55c7fc239de3d4
2020-10-31 10:05:50 +01:00
Thomas Bernard
dd99f0eb75
sysctl is not always in /sbin
2020-10-30 23:11:44 +01:00
Thomas Bernard
c9939cc01e
fix portinuse.c for OpenBSD 5.5+
...
all CIRCLEQ have been replaced by TAILQ
fixes #496
2020-10-30 22:14:45 +01:00
Thomas Bernard
95d611e7a0
fix 67465c3cc0ad03f52bb87f4e80bb04639c89cc69
2020-06-04 00:30:01 +02:00
Thomas Bernard
ddf328845a
keep memory of ./configure parameters
2020-06-03 23:54:24 +02:00
Thomas Bernard
8a665a1c8e
configure --disable-fork to disable going to background
...
fixes #468
2020-06-03 23:43:58 +02:00
Thomas Bernard
67465c3cc0
OpenBSD: Disable pledge()
...
see #455
2020-06-03 23:11:15 +02:00
Thomas Bernard
e823722b5d
some cp implementations do not support the -v option
2020-05-11 23:31:53 +02:00
Thomas Bernard
02e41f7346
miniupnpd: BSD: allow to build from another directory
...
$ cd miniupnpd
$ mkdir build
$ cd build
$ ../configure && make
2020-05-11 23:30:19 +02:00