aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-20 10:05:26 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-20 10:05:26 +0100
commit756799b50daeaaec1dc0594f1506d83bbef7d4b5 (patch)
treee8a568b3318669537e5c799478703a2cf0ed4396 /src
parent4a1e326038f86f496af3a33c3786253fe80cdf0a (diff)
downloadgnunet-756799b50daeaaec1dc0594f1506d83bbef7d4b5.tar.gz
gnunet-756799b50daeaaec1dc0594f1506d83bbef7d4b5.zip
fix build system to actually handle openssl.cnf properly
Diffstat (limited to 'src')
-rw-r--r--src/fs/Makefile.am5
-rw-r--r--src/gns/Makefile.am26
-rw-r--r--src/gns/gnunet-gns-proxy-setup-ca.in2
3 files changed, 10 insertions, 23 deletions
diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am
index 33260a794..d452bbf3c 100644
--- a/src/fs/Makefile.am
+++ b/src/fs/Makefile.am
@@ -282,11 +282,6 @@ check_SCRIPTS += \
282endif 282endif
283endif 283endif
284 284
285if ENABLE_MONKEY
286 MONKEY = @MONKEYPREFIX@
287 AM_LDFLAGS = -no-install
288endif
289
290 285
291if ENABLE_TEST_RUN 286if ENABLE_TEST_RUN
292AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; $(MONKEY) 287AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; $(MONKEY)
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am
index 991c40ae3..434d50f34 100644
--- a/src/gns/Makefile.am
+++ b/src/gns/Makefile.am
@@ -14,7 +14,8 @@ EXTRA_DIST = \
14 test_gns_simple_lookup.conf \ 14 test_gns_simple_lookup.conf \
15 gns-helper-service-w32.conf \ 15 gns-helper-service-w32.conf \
16 w32nsp.def \ 16 w32nsp.def \
17 gnunet-gns-proxy-setup-ca \ 17 openssl.cnf \
18 gnunet-gns-proxy-setup-ca.in \
18 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \ 19 zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
19 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \ 20 zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
20 zonefiles/test_zonekey \ 21 zonefiles/test_zonekey \
@@ -80,7 +81,7 @@ noinst_PROGRAMS = \
80 gnunet-gns-benchmark 81 gnunet-gns-benchmark
81 82
82pkgdata_DATA = \ 83pkgdata_DATA = \
83 openssl.cnf 84 openssl.cnf
84 85
85if HAVE_MHD 86if HAVE_MHD
86if LINUX 87if LINUX
@@ -93,25 +94,16 @@ plugin_LTLIBRARIES = \
93 libgnunet_plugin_gnsrecord_gns.la 94 libgnunet_plugin_gnsrecord_gns.la
94 95
95 96
96if HAVE_OPENSSL 97bin_SCRIPTS = \
97xOPENSSL=$(shell which openssl) 98 gnunet-gns-proxy-setup-ca
98do_subst_openssl = $(SED) -e 's,[@]OPENSSLBIN[@],${xOPENSSL},g'
99endif
100
101if HAVE_CERTUTIL
102xCERTUTIL=$(shell which certutil)
103do_subst_certutil = $(SED) -e 's,[@]CERTUTILBIN[@],${xCERTUTIL},g'
104endif
105 99
106xPFX=$(pkgdatadir)/openssl.cnf 100# See: https://www.gnu.org/software/automake/manual/html_node/Scripts.html#Scripts
107do_subst = $(SED) -e 's,[@]PREFIX[@],${xPFX},g' 101do_subst = sed -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
108 102
109gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in 103gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in Makefile
110 $(do_subst) < $(top_srcdir)/src/gns/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca 104 $(do_subst) < $(srcdir)/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
111 chmod +x gnunet-gns-proxy-setup-ca 105 chmod +x gnunet-gns-proxy-setup-ca
112 106
113bin_SCRIPTS = gnunet-gns-proxy-setup-ca
114
115libgnunet_plugin_gnsrecord_gns_la_SOURCES = \ 107libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
116 plugin_gnsrecord_gns.c 108 plugin_gnsrecord_gns.c
117libgnunet_plugin_gnsrecord_gns_la_LIBADD = \ 109libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
diff --git a/src/gns/gnunet-gns-proxy-setup-ca.in b/src/gns/gnunet-gns-proxy-setup-ca.in
index 55a60e544..0a6fab18a 100644
--- a/src/gns/gnunet-gns-proxy-setup-ca.in
+++ b/src/gns/gnunet-gns-proxy-setup-ca.in
@@ -3,7 +3,7 @@
3# and install it (for both GNUnet and your browser). 3# and install it (for both GNUnet and your browser).
4# 4#
5 5
6OPENSSLCFG=@PREFIX@ 6OPENSSLCFG=@pkgdatadir@/openssl.cnf
7if ! which openssl > /dev/null 7if ! which openssl > /dev/null
8then 8then
9 echo "'openssl' command not found. Please install it." 9 echo "'openssl' command not found. Please install it."