diff options
author | Max Kellermann <max@musicpd.org> | 2018-12-28 14:16:02 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-12-28 14:16:02 +0100 |
commit | 22e6d95c4bbae15dd7f635eabe5fdde1ce06ba73 (patch) | |
tree | 30015237746efc3de22232ac012c2acf57ece4fb /src/lib | |
parent | 1c7bd7d5c4ff7afaecf4a68978ae53e9d2094026 (diff) |
remove libwrap support
libwrap is an obscure artefact from a past long ago, when source IP
address meant something.
And its API is "interesting"; it requires the application to expose
two global variables `allow_severity` and `deny_severity`. This led
to bug #437. I don't want to declare those variables; instead, I'd
like to remove libwrap support.
Closes #437
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/wrap/meson.build | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/lib/wrap/meson.build b/src/lib/wrap/meson.build deleted file mode 100644 index bd0461608..000000000 --- a/src/lib/wrap/meson.build +++ /dev/null @@ -1,21 +0,0 @@ -libwrap_option = get_option('libwrap') -enable_libwrap = false -if not libwrap_option.disabled() and compiler.has_header('tcpd.h') and compiler.compiles(''' -#include <tcpd.h> -bool CheckLibWrap(int fd, const char &progname) { - struct request_info req; - request_init(&req, RQ_FILE, fd, RQ_DAEMON, progname, 0); - fromhost(&req); - return hosts_access(&req); -} -''') - libwrap_dep = compiler.find_library('wrap', required: libwrap_option) -else - libwrap_dep = dependency('', required: libwrap_option) -endif - -if not libwrap_dep.found() and libwrap_option.enabled() - error('libwrap not found') -endif - -conf.set('HAVE_LIBWRAP', libwrap_dep.found()) |