handling replies continuously from server
[oweals/gnunet.git] / src / dns / Makefile.am
index 5f9f39116fafd235c4fd8d5d555db0146d916b99..ed000aa19244b054d83e0d2822caeadeb106e12c 100644 (file)
@@ -21,8 +21,8 @@ install-exec-hook:
        $(SUDO_BINARY) chown root $(bindir)/gnunet-helper-dns || true
        $(SUDO_BINARY) chgrp $(GNUNETDNS_GROUP) $(bindir)/gnunet-helper-dns || true
        $(SUDO_BINARY) chmod 4750 $(bindir)/gnunet-helper-dns || true
-       $(SUDO_BINARY) chgrp $(GNUNETDNS_GROUP) $(bindir)/gnunet-service-dns || true
-       $(SUDO_BINARY) chmod 2755 $(bindir)/gnunet-service-dns || true
+       $(SUDO_BINARY) chown gnunet:$(GNUNETDNS_GROUP) $(bindir)/gnunet-service-dns || true
+       $(SUDO_BINARY) chmod 2750 $(bindir)/gnunet-service-dns || true
 else
 install-exec-hook:
 endif
@@ -40,6 +40,10 @@ noinst_PROGRAMS = \
 plugin_LTLIBRARIES = \
   libgnunet_plugin_block_dns.la 
 
+if LINUX
+check_SCRIPTS = \
+ test_gnunet_dns.sh
+endif
 
 gnunet_helper_dns_SOURCES = \
  gnunet-helper-dns.c
@@ -71,6 +75,7 @@ gnunet_service_dns_SOURCES = \
  gnunet-service-dns.c 
 gnunet_service_dns_LDADD = \
   $(top_builddir)/src/tun/libgnunettun.la \
+  $(top_builddir)/src/mesh/libgnunetmesh.la \
   $(top_builddir)/src/statistics/libgnunetstatistics.la \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(GN_LIBINTL)
@@ -80,14 +85,16 @@ libgnunetdnsparser_la_SOURCES = \
 libgnunetdnsparser_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
 libgnunetdnsparser_la_LDFLAGS = \
-  $(GN_LIB_LDFLAGS)
+  $(GN_LIB_LDFLAGS) \
+  -version-info 0:0:0
 
 libgnunetdns_la_SOURCES = \
  dns_api.c dns.h
 libgnunetdns_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
 libgnunetdns_la_LDFLAGS = \
-  $(GN_LIB_LDFLAGS)
+  $(GN_LIB_LDFLAGS) \
+  -version-info 0:0:0
 
 libgnunet_plugin_block_dns_la_SOURCES = \
   plugin_block_dns.c
@@ -97,4 +104,9 @@ libgnunet_plugin_block_dns_la_LDFLAGS = \
   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
 
 
+if ENABLE_TEST_RUN
+TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
+endif
 
+EXTRA_DIST = \
+  $(check_SCRIPTS)