From 9d41ec39756a783c53bb06581ea189c95e08c4d6 Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 17 Oct 2019 13:49:49 +0000 Subject: Add support for doas. --- src/exit/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/exit') diff --git a/src/exit/Makefile.am b/src/exit/Makefile.am index b7286349d..bca0f1d9f 100644 --- a/src/exit/Makefile.am +++ b/src/exit/Makefile.am @@ -14,10 +14,18 @@ plugindir = $(libdir)/gnunet dist_pkgcfg_DATA = \ exit.conf +if HAVE_SUDO +SUDO_OR_DOAS_BINARY= $(SUDO_BINARY) +else +if HAVE_DOAS_BINARY +SUDO_OR_DOAS_BINARY= $(DOAS_BINARY) +endif +endif + if LINUX EXITBIN = gnunet-helper-exit install-exec-hook: - $(top_srcdir)/src/exit/install-exit-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true + $(top_srcdir)/src/exit/install-exit-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true else install-exec-hook: endif -- cgit v1.2.3