diff options
author | ng0 <ng0@n0.is> | 2019-10-17 13:49:49 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-17 13:49:49 +0000 |
commit | 9d41ec39756a783c53bb06581ea189c95e08c4d6 (patch) | |
tree | 08263348bc5cbeaa8e0a5dc21fcf0fdaabb7184a /src/gns | |
parent | 22ad43e23641318de7f50084aa816a6fda14d7ec (diff) | |
download | gnunet-9d41ec39756a783c53bb06581ea189c95e08c4d6.tar.gz gnunet-9d41ec39756a783c53bb06581ea189c95e08c4d6.zip |
Add support for doas.
Diffstat (limited to 'src/gns')
-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 |