summaryrefslogtreecommitdiff
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)
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 += \
endif
endif
-if ENABLE_MONKEY
- MONKEY = @MONKEYPREFIX@
- AM_LDFLAGS = -no-install
-endif
-
if ENABLE_TEST_RUN
AM_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 = \
test_gns_simple_lookup.conf \
gns-helper-service-w32.conf \
w32nsp.def \
- gnunet-gns-proxy-setup-ca \
+ openssl.cnf \
+ gnunet-gns-proxy-setup-ca.in \
zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
zonefiles/test_zonekey \
@@ -80,7 +81,7 @@ noinst_PROGRAMS = \
gnunet-gns-benchmark
pkgdata_DATA = \
- openssl.cnf
+ openssl.cnf
if HAVE_MHD
if LINUX
@@ -93,25 +94,16 @@ plugin_LTLIBRARIES = \
libgnunet_plugin_gnsrecord_gns.la
-if HAVE_OPENSSL
-xOPENSSL=$(shell which openssl)
-do_subst_openssl = $(SED) -e 's,[@]OPENSSLBIN[@],${xOPENSSL},g'
-endif
-
-if HAVE_CERTUTIL
-xCERTUTIL=$(shell which certutil)
-do_subst_certutil = $(SED) -e 's,[@]CERTUTILBIN[@],${xCERTUTIL},g'
-endif
+bin_SCRIPTS = \
+ gnunet-gns-proxy-setup-ca
-xPFX=$(pkgdatadir)/openssl.cnf
-do_subst = $(SED) -e 's,[@]PREFIX[@],${xPFX},g'
+# See: https://www.gnu.org/software/automake/manual/html_node/Scripts.html#Scripts
+do_subst = sed -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
-gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in
- $(do_subst) < $(top_srcdir)/src/gns/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
+gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in Makefile
+ $(do_subst) < $(srcdir)/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca
chmod +x gnunet-gns-proxy-setup-ca
-bin_SCRIPTS = gnunet-gns-proxy-setup-ca
-
libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
plugin_gnsrecord_gns.c
libgnunet_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 @@
# and install it (for both GNUnet and your browser).
#
-OPENSSLCFG=@PREFIX@
+OPENSSLCFG=@pkgdatadir@/openssl.cnf
if ! which openssl > /dev/null
then
echo "'openssl' command not found. Please install it."