aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac19
-rw-r--r--contrib/scripts/gnunet-logread/Makefile.am12
-rwxr-xr-xcontrib/scripts/gnunet-logread/gnunet-logread.in2
4 files changed, 33 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ed48e3e7..4c4e3bf54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
1Sun Dec 01 19:31:00 UTC 2019
2 configure: Add --with-gnunet-logread.
3 -ng0
4
1Wed Oct 30 10:50:00 UTC 2019 5Wed Oct 30 10:50:00 UTC 2019
2 Released gnunet 0.11.8 6 Released gnunet 0.11.8
3 -ng0 7 -ng0
diff --git a/configure.ac b/configure.ac
index 53db0bfaf..6471cb872 100644
--- a/configure.ac
+++ b/configure.ac
@@ -247,6 +247,25 @@ AC_PATH_PROG( PERL, perl, ,
247 $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin ) 247 $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
248AC_SUBST([PERL]) 248AC_SUBST([PERL])
249 249
250# should we install gnunet-logread?
251AC_MSG_CHECKING(whether to install gnunet-logread)
252AC_ARG_WITH([gnunet-logread],
253 [AS_HELP_STRING([--with-gnunet-logread],
254 [Install gnunet-logread])],
255 [logread=${withval}],
256 [logread=no])
257AC_MSG_RESULT($logread)
258AS_IF([test "x$logread" = "xyes"],
259 [AM_CONDITIONAL([GNUNET_LOGREAD], true)
260 AC_DEFINE([GNUNET_LOGREAD],
261 [1],
262 [Installing gnunet-logread])],
263 [AM_CONDITIONAL([GNUNET_LOGREAD],
264 false)
265 AC_DEFINE([GNUNET_LOGREAD],
266 [0],
267 [Not installing gnunet-logread])])
268
250# iptables is a soft requirement to run tests 269# iptables is a soft requirement to run tests
251AC_PATH_TARGET_TOOL(VAR_IPTABLES_BINARY, iptables, false) 270AC_PATH_TARGET_TOOL(VAR_IPTABLES_BINARY, iptables, false)
252 271
diff --git a/contrib/scripts/gnunet-logread/Makefile.am b/contrib/scripts/gnunet-logread/Makefile.am
index 790b58fea..e1183a885 100644
--- a/contrib/scripts/gnunet-logread/Makefile.am
+++ b/contrib/scripts/gnunet-logread/Makefile.am
@@ -1,7 +1,7 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include 2AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3 3
4do_subst = $(AWK) -v py="$(PERL)" '{gsub("@PERLEXE@",py); print $$0}' 4do_subst = $(AWK) -v prl="$(PERL)" -v pfx="$(prefix)" '{if (/@SUBSTPREFIX@/) { gsub("@SUBSTPREFIX@",pfx)}; gsub("@PERLEXE@",prl); print $$0}'
5 5
6SUFFIXES = .in 6SUFFIXES = .in
7 7
@@ -17,9 +17,15 @@ CLEANFILES= \
17 gnunet-logread \ 17 gnunet-logread \
18 gnunet-logread-ipc-sdedit 18 gnunet-logread-ipc-sdedit
19 19
20if GNUNET_LOGREAD
21bin_SCRIPTS = \
22 gnunet-logread-ipc \
23 $(CLEANFILES)
24else
20noinst_SCRIPTS = \ 25noinst_SCRIPTS = \
21 $(CLEANFILES) \ 26 gnunet-logread-ipc \
22 gnunet-logread-ipc 27 $(CLEANFILES)
28endif
23 29
24EXTRA_DIST = \ 30EXTRA_DIST = \
25 gnunet-logread.in \ 31 gnunet-logread.in \
diff --git a/contrib/scripts/gnunet-logread/gnunet-logread.in b/contrib/scripts/gnunet-logread/gnunet-logread.in
index e27c1d3fc..ce588b8e6 100755
--- a/contrib/scripts/gnunet-logread/gnunet-logread.in
+++ b/contrib/scripts/gnunet-logread/gnunet-logread.in
@@ -29,7 +29,7 @@ my %levels = ( NONE => 0, ERROR => 1, WARNING => 2, INFO => 4, DEBUG => 8 );
29 29
30# Message type numbers to names 30# Message type numbers to names
31my %msgtypes; 31my %msgtypes;
32my $prefix = $ENV{GNUNET_PREFIX} || '/usr'; 32my $prefix = $ENV{GNUNET_PREFIX} || '@SUBSTPREFIX@';
33my $filename = "$prefix/include/gnunet/gnunet_protocols.h"; 33my $filename = "$prefix/include/gnunet/gnunet_protocols.h";
34$ipc = $opts{s} || $DEFAULT_SOCKET; 34$ipc = $opts{s} || $DEFAULT_SOCKET;
35 35