summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dns/Makefile.am7
-rw-r--r--src/exit/Makefile.am3
-rw-r--r--src/nat/Makefile.am12
-rw-r--r--src/transport/Makefile.am6
-rw-r--r--src/vpn/Makefile.am3
5 files changed, 23 insertions, 8 deletions
diff --git a/src/dns/Makefile.am b/src/dns/Makefile.am
index acf9660f7..8082cbab5 100644
--- a/src/dns/Makefile.am
+++ b/src/dns/Makefile.am
@@ -25,7 +25,12 @@ endif
25if LINUX 25if LINUX
26HIJACKBIN = gnunet-helper-dns 26HIJACKBIN = gnunet-helper-dns
27install-exec-hook: 27install-exec-hook:
28 $(top_srcdir)/src/dns/install-dns-helper.sh $(DESTDIR)$(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_OR_DOAS_BINARY) || true 28 chown root $(DESTDIR)$(libexecdir)/gnunt-helper-dns
29 chgrp $(GNUNETDNS_GROUP) $(DESTDIR)$(libexecdir)/gnunt-helper-dns
30 chmod 4750 $(DESTDIR)$(libexecdir)/gnunt-helper-dns
31 chgrp $(GNUNETDNS_GROUP) $(DESTDIR)$(libexecdir)/gnunt-helper-dns
32 chown gnunet:$(GNUNETDNS_GROUP) $(DESTDIR)$(libexecdir)/gnunt-helper-dns
33 chmod 2750 $(DESTDIR)$(libexecdir)/gnunt-helper-dns
29else 34else
30install-exec-hook: 35install-exec-hook:
31endif 36endif
diff --git a/src/exit/Makefile.am b/src/exit/Makefile.am
index bca0f1d9f..c45354256 100644
--- a/src/exit/Makefile.am
+++ b/src/exit/Makefile.am
@@ -25,7 +25,8 @@ endif
25if LINUX 25if LINUX
26EXITBIN = gnunet-helper-exit 26EXITBIN = gnunet-helper-exit
27install-exec-hook: 27install-exec-hook:
28 $(top_srcdir)/src/exit/install-exit-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true 28 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-exit
29 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-exit
29else 30else
30install-exec-hook: 31install-exec-hook:
31endif 32endif
diff --git a/src/nat/Makefile.am b/src/nat/Makefile.am
index d88dd6db4..2c04741da 100644
--- a/src/nat/Makefile.am
+++ b/src/nat/Makefile.am
@@ -21,14 +21,20 @@ if LINUX
21 NATSERVER = gnunet-helper-nat-server.c 21 NATSERVER = gnunet-helper-nat-server.c
22 NATCLIENT = gnunet-helper-nat-client.c 22 NATCLIENT = gnunet-helper-nat-client.c
23install-exec-hook: 23install-exec-hook:
24 $(top_srcdir)/src/nat/install-nat-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true 24 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-nat-server
25 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-nat-client
26 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-nat-server
27 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-nat-client
25else 28else
26if XFREEBSD 29if XFREEBSD
27 NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client 30 NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
28 NATSERVER = gnunet-helper-nat-server.c 31 NATSERVER = gnunet-helper-nat-server.c
29 NATCLIENT = gnunet-helper-nat-client.c 32 NATCLIENT = gnunet-helper-nat-client.c
30install-exec-hook: 33install-exec-hook:
31 $(top_srcdir)/src/nat/install-nat-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true 34 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-nat-server
35 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-nat-client
36 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-nat-server
37 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-nat-client
32endif 38endif
33else 39else
34install-exec-hook: 40install-exec-hook:
@@ -61,7 +67,7 @@ if USE_COVERAGE
61endif 67endif
62 68
63lib_LTLIBRARIES = \ 69lib_LTLIBRARIES = \
64 libgnunetnatnew.la 70 libgnunetnatnew.la
65 71
66libgnunetnatnew_la_SOURCES = \ 72libgnunetnatnew_la_SOURCES = \
67 nat_api.c \ 73 nat_api.c \
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 178ecc737..b690fa345 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -103,9 +103,11 @@ endif
103 103
104if LINUX 104if LINUX
105install-exec-hook: 105install-exec-hook:
106 $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true 106 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-transport-wlan
107 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-transport-wlan
107if HAVE_LIBBLUETOOTH 108if HAVE_LIBBLUETOOTH
108 $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true 109 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-transport-bluetooth
110 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-transport-bluetooth
109endif 111endif
110else 112else
111install-exec-hook: 113install-exec-hook:
diff --git a/src/vpn/Makefile.am b/src/vpn/Makefile.am
index 4d7ca087e..9992fa5ed 100644
--- a/src/vpn/Makefile.am
+++ b/src/vpn/Makefile.am
@@ -25,7 +25,8 @@ endif
25if LINUX 25if LINUX
26VPNBIN = gnunet-helper-vpn 26VPNBIN = gnunet-helper-vpn
27install-exec-hook: 27install-exec-hook:
28 $(top_srcdir)/src/vpn/install-vpn-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true 28 chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-vpn
29 chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-vpn
29else 30else
30install-exec-hook: 31install-exec-hook:
31endif 32endif