94 Commits

Author SHA1 Message Date
Thomas Bernard
e72ad0aeed miniupnpd/Makefile.linux* : move some common targets to common.mk 2024-10-05 00:40:36 +02:00
Ivan Shapovalov
9c79f2496f miniupnpd: Makefile, miniupnpd.service: rework and install units
Rework systemd units to make use of newly-added systemd integration,
reference correct iptables/nft scripts, not hardcode paths and generally
make use of the correct idioms.

Additionally, when `configure --systemd` is used, teach `make install`
to install the service file instead of the init script.
2024-10-05 00:31:32 +02:00
Ivan Shapovalov
68414e9526
miniupnpd: Makefile: rework install target 2024-10-05 00:06:07 +02:00
Thomas Bernard
176b00b085 miniupnpd/Makefile.linux clean: remove validateversion 2024-10-04 23:51:51 +02:00
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
0ab27a2a32 miniupnpd/Makefile.linux*: do not remove config.h in clean target
It is consistent with Makefile.bsd.
And also more logical as config.h is generated by configure along
with the Makefile itself.

we could add a mrproper target to clean the config.h, config.mk, Makefile, etc.
2024-10-02 23:41:54 +02:00
Thomas Bernard
10901ba664 miniupnpd/Makefile.linux*: (c) 2024 2024-10-02 23:37:12 +02:00
Thomas Bernard
54b4086859
miniupnpd/Makefile.linux*: cleanup "clean:" target
there is no need to explicitely delete all theses files
which are included in OTHEROBJS
As OTHEROBJS is included in ALLOBJS, $(RM) $(ALLOBJS)
deletes the files
2024-10-02 23:17:24 +02:00
Ivan Shapovalov
49e6746b54 miniupnpd: Makefile: build ssdp tests in both iptables and nft Makefiles
I don't see a reason why they should not be built here; there is nothing
iptables-specific in them.
2024-10-02 23:07:08 +02:00
Ivan Shapovalov
8069d3d57d
miniupnpd: Makefile: remove pointless variable
In the Linux makefiles, test objects are specified directly for all
tests except this one. Remove the last variable for consistency.
2024-10-02 19:42:28 +02:00
Ivan Shapovalov
95a6ffda1f miniupnpd: Makefile: move uuid tool detection to configure 2024-10-02 19:26:30 +02:00
Thomas Bernard
8e5e40a8ce
miniupnpd/Makefile.linux: drop hack to support clock_gettime() with glibc before 2.17 2024-10-02 16:51:19 +02:00
Thomas Bernard
e0ecb78717
fix CONFIG_OPTIONS so call of configure are made with the same options
bug introduced in commit ddf32884
2024-10-02 16:30:36 +02:00
Ivan Shapovalov
f8397b941a
miniupnpd: Makefile: remove traces of pkg-config from Makefiles
Remove Makefile variables for pkg-config path to ensure other usages do
not get re-added to Makefiles by accident.
2024-10-02 16:15:07 +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
Ivan Shapovalov
cd01381bb3 miniupnpd: Makefile: move libuuid detection to configure 2024-09-30 19:58:57 +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
2f851743e0
miniupnpd: Makefile: generate dep-files during compilation
Implement the "Auto-Dependency Generation"[1] writeup by Paul D. Smith
and generate dep-files at the compilation time instead of requiring a
separate preprocessor pass. This removes the `depend` target as it is
not needed anymore.

[1]: https://make.mad-scientist.net/papers/advanced-auto-dependency-generation/
2024-09-30 16:08:15 +02:00
Ivan Shapovalov
2c889950f0
miniupnpd: Makefile: include other binaries objects in $(ALLOBJS) 2024-09-30 00:18:48 +02:00
Ivan Shapovalov
77d14e391f miniupnpd: Makefile: do not override _FORTIFY_SOURCE if defined 2024-09-04 06:29:13 +02:00
Renato Botelho do Couto
8900a3f7ec miniupnpd: Do not use --mode install parameter
Chimera linux uses install from BSD and it doesn't support --mode
parameter.  Replace it by -m and make it portable.
2024-06-11 14:03:59 -05:00
Renato Botelho do Couto
4cbe48f800 miniupnpd: Let SBININSTALLDIR to be replaced
On Chimera linux it's not allowed to instal any file to /usr/sbin.  Let
this variable to be replaced by environment to make it easy to package
it.
2024-06-11 14:01:13 -05:00
Thomas Bernard
a933c76be4
Makefile.linux: fix install dependencies 2021-09-30 23:20:25 +02:00
Natanael Copa
ebaa69b313 miniupnpd: don't check for glibc version with musl
Test that ldd is from GLIBC before exctracting the GLIBC_VERSION. This
is not needed with musl libc.
2021-07-21 10:38:35 +02:00
Thomas Bernard
ddf328845a
keep memory of ./configure parameters 2020-06-03 23:54:24 +02:00
Thomas Bernard
388d93d678 minipnpd: move check target to check.mk 2020-05-07 01:02:48 +02:00
Thomas Bernard
ea90d39892
miniupnpd: update linux makefiles 2020-05-07 00:34:44 +02:00
Thomas Bernard
4f67061e08
miniupnpd: allow to build in another directory. use .d for depends 2020-05-07 00:34:40 +02:00
Thomas Bernard
55d2535a6f
miniupnpd: move many scripts from Makefile.linux to configure 2020-05-02 18:28:05 +02:00
Thomas Bernard
1833a538ef
miniupnpd/Makefile.linux: move some compile config to configure script 2020-05-02 18:28:00 +02:00
Thomas Bernard
125030132e
genconfig.sh -> configure 2020-05-02 18:26:45 +02:00
HanJong Jang
5eaf3ec0fe Correct typo 2020-03-05 22:46:01 +09:00
Thomas Bernard
0a35f97db7
Makefile.linux: validate version 2019-10-05 22:44:36 +02:00
Thomas Bernard
49d3b57441
miniupnpd: Add --version commandline option
fixes #370
2019-10-05 22:44:31 +02:00
Paul Chambers
d5773600f9 add --firewall=<name> to genconfig.sh & tweak Makefiles to match 2019-09-28 22:17:51 -07:00
Thomas Bernard
81e0d83403 build doc with Doxygen 2019-09-24 11:57:27 +02:00
Guilherme Senges
62d62e4f88 Applied patch to OpenWRT compatibility 2019-09-02 00:28:45 +02:00
Thomas Bernard
8f403ae8ae Makefile.linux: clean testminissdp.o and testssdppktgen.o 2019-03-22 15:36:58 +01:00
Thomas Bernard
08e955de40 Update Changelogs + 2019 2019-02-10 16:11:16 +01:00
Shachar Menashe
51b5e09e04 miniupnpd: add secure compilation flags for Linux 2019-02-04 17:23:42 +02:00
Thomas Bernard
ac796a4077 linux: add -lrt when building for glibc < 2.17 2018-07-14 14:23:13 +02:00
Thomas Bernard
012cad4111 Makefile.linux: fix depends 2018-07-06 13:36:23 +02:00
Pali Rohár
4f53b322fd miniupnpd: Add function perform_stun() for detecting external IP address and restrictive NAT via STUN protocol
It automatically unblock selected UDP ports for incoming responses and after finishing ports unblock is removed.
2018-05-19 13:31:08 +02:00
yangfl
82ec7bc3df miniupnpd: Add options for netfilter scripts 2018-03-16 23:57:39 +08:00
Thomas Bernard
bf4f616f58 miniupnpd/Makefile.linux: add testminissdp 2017-12-12 12:46:59 +01:00
Thomas Bernard
144eeefd19 Merge branch 'master' into randomize_url
Conflicts:
	miniupnpd/genconfig.sh
	miniupnpd/testupnpdescgen.c
	miniupnpd/upnpdescgen.c
	miniupnpd/upnpglobalvars.c
	miniupnpd/upnpglobalvars.h
2016-11-11 18:01:35 +01:00
Thomas Bernard
60b38bf556 Fix test of iptables(libiptc) version
fix for versions >= 1.5.x
2016-04-18 11:00:53 +02:00
Thomas Bernard
b439bd7791 check uuid-dev / libuuid 2016-02-12 15:29:49 +01:00
Thomas Bernard
6059f000f7 use Linux libuuid uuid_generate() / BSD uuid_create() API 2016-02-11 11:39:28 +01:00
Thomas BERNARD
d4ee1ee7e6 Add "make check" to BSD Makefile.
Also make sure files are removed properly when using "make clean"
2015-10-25 16:33:24 +01:00