PowerDNS / weakforced

Anti-Abuse for servers at authentication time
GNU General Public License v3.0
124 stars 33 forks source link

weakforced on OpenBSD? #438

Open ozgurkazancci opened 1 month ago

ozgurkazancci commented 1 month ago

Hi,

Any chance to run weakforced on OpenBSD? No official package available, it seems.. Sadly. :/

Regards.

neilcook commented 1 month ago

Well you're very welcome to contribute - the package builder is very generic, and uses docker, so it should be straightforward to build for OpenBSD.

ozgurkazancci commented 1 month ago

OpenBSD is not Linux, there is no docker here;

$ git clone https://github.com/PowerDNS/weakforced.git $ cd weakforced $ git submodule init $ git submodule update $ ./build.sh sdist sshot

Thank you.

neilcook commented 1 month ago

Ok, well this is very unlikely to happen then, sorry!

neilcook commented 1 month ago

However, there's nothing to stop you compiling it and installing locally if that is what you want. If you find any compilation issues, let me know.

ozgurkazancci commented 1 month ago

However, there's nothing to stop you compiling it and installing locally if that is what you want. If you find any compilation issues, let me know.

Trying since hours - I was able to obtain all the dependencies&missing libraries for weakforced on OpenBSD and get to the final part of ./configure, failed because the 'getdns' package is missing now.

There is no 'getdns' package in OpenBSD either, because unwind and unbound are already there, for that.

I tried compiling getdns, but gave up when I encountered problems.

Thank you.

neilcook commented 1 month ago

I tried compiling getdns, but gave up when I encountered problems.

What problems did you have compiling getdns? Sounds like you're nearly there.

Have you tried something like:


./configure --with-gnutls --with-nettle --disable-ecdsa
ozgurkazancci commented 1 month ago

compiled with:

cmake -DENABLE_ECDSA=OFF -DUSE_GNUTLS=OFF -DENABLE_ED25519=OFF -DENABLE_ED448=OFF -DENABLE_TCP_FAST_OPEN=OFF ..

and then tried both make and gmake - reports;

dane

The issue seems DANE library.

neilcook commented 1 month ago

Why are you disabling gnutls? You need some kind of crypto library for DANE support.

ozgurkazancci commented 1 month ago

Why are you disabling gnutls?

Because it leads some more errors; _gmake[2]: [CMakeFiles/getdns_objects.dir/build.make:538: CMakeFiles/getdns_objects.dir/src/tls/val_secalgo.c.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:883: CMakeFiles/getdnsobjects.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Anyways, that's all it - it seems, thank you for your time.