libexec_PROGRAMS = \
gnunet-service-gns \
- $(DO_W32_HELPER) \
gnunet-dns2gns \
+ $(DO_W32_HELPER) \
$(DO_PROXY)
bin_PROGRAMS = \
$(top_builddir)/src/dns/libgnunetdnsstub.la \
$(GN_LIBINTL)
+if LINUX
+HIJACKBIN = gnunet-dns2gns
+install-exec-hook:
+ $(SUDO_BINARY) setcap 'cap_net_bind_service=+ep' $(DESTDIR)$(libexecdir)/gnunet-dns2gns || true
+else
+install-exec-hook:
+endif
+
gnunet_gns_proxy_SOURCES = \
gnunet-gns-proxy.c
gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)