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/transport/Makefile.am | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/transport/Makefile.am') diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 0f5b2e8be..178ecc737 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am @@ -93,11 +93,19 @@ if LINUX test_quota_compliance_wlan_asymmetric endif +if HAVE_SUDO +SUDO_OR_DOAS_BINARY= $(SUDO_BINARY) +else +if HAVE_DOAS_BINARY +SUDO_OR_DOAS_BINARY= $(DOAS_BINARY) +endif +endif + if LINUX install-exec-hook: - $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true + $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true if HAVE_LIBBLUETOOTH - $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true + $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true endif else install-exec-hook: -- cgit v1.2.3