diff options
Diffstat (limited to 'src/gns/Makefile.am')
-rw-r--r-- | src/gns/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am index 6cc09c098..48d13e3c0 100644 --- a/src/gns/Makefile.am +++ b/src/gns/Makefile.am | |||
@@ -158,10 +158,18 @@ gnunet_dns2gns_LDADD = \ | |||
158 | $(top_builddir)/src/identity/libgnunetidentity.la \ | 158 | $(top_builddir)/src/identity/libgnunetidentity.la \ |
159 | $(GN_LIBINTL) | 159 | $(GN_LIBINTL) |
160 | 160 | ||
161 | if HAVE_SUDO | ||
162 | SUDO_OR_DOAS_BINARY= $(SUDO_BINARY) | ||
163 | else | ||
164 | if HAVE_DOAS_BINARY | ||
165 | SUDO_OR_DOAS_BINARY= $(DOAS_BINARY) | ||
166 | endif | ||
167 | endif | ||
168 | |||
161 | if LINUX | 169 | if LINUX |
162 | HIJACKBIN = gnunet-dns2gns | 170 | HIJACKBIN = gnunet-dns2gns |
163 | install-exec-hook: | 171 | install-exec-hook: |
164 | $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true | 172 | $(SUDO_OR_DOAS_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true |
165 | else | 173 | else |
166 | install-exec-hook: | 174 | install-exec-hook: |
167 | endif | 175 | endif |