diff options
Diffstat (limited to 'src/dns/Makefile.am')
-rw-r--r-- | src/dns/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dns/Makefile.am b/src/dns/Makefile.am index 33ec8ef85..acf9660f7 100644 --- a/src/dns/Makefile.am +++ b/src/dns/Makefile.am | |||
@@ -14,10 +14,18 @@ plugindir = $(libdir)/gnunet | |||
14 | pkgcfg_DATA = \ | 14 | pkgcfg_DATA = \ |
15 | dns.conf | 15 | dns.conf |
16 | 16 | ||
17 | if HAVE_SUDO | ||
18 | SUDO_OR_DOAS_BINARY= $(SUDO_BINARY) | ||
19 | else | ||
20 | if HAVE_DOAS_BINARY | ||
21 | SUDO_OR_DOAS_BINARY= $(DOAS_BINARY) | ||
22 | endif | ||
23 | endif | ||
24 | |||
17 | if LINUX | 25 | if LINUX |
18 | HIJACKBIN = gnunet-helper-dns | 26 | HIJACKBIN = gnunet-helper-dns |
19 | install-exec-hook: | 27 | install-exec-hook: |
20 | $(top_srcdir)/src/dns/install-dns-helper.sh $(DESTDIR)$(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true | 28 | $(top_srcdir)/src/dns/install-dns-helper.sh $(DESTDIR)$(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_OR_DOAS_BINARY) || true |
21 | else | 29 | else |
22 | install-exec-hook: | 30 | install-exec-hook: |
23 | endif | 31 | endif |