From 73886cfd6278d7ea0da1b18cd439481d88938197 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 27 Mar 2012 20:32:18 +0000 Subject: QPID-3603: Substitute installation directories in qpidd init scripts. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1306007 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/etc/Makefile.am | 20 +++++- qpid/cpp/etc/cluster.conf-example.xml | 70 ------------------ qpid/cpp/etc/cluster.conf-example.xml.in | 69 ++++++++++++++++++ qpid/cpp/etc/qpidd | 118 ------------------------------- qpid/cpp/etc/qpidd-primary | 102 -------------------------- qpid/cpp/etc/qpidd-primary.in | 102 ++++++++++++++++++++++++++ qpid/cpp/etc/qpidd.in | 118 +++++++++++++++++++++++++++++++ qpid/cpp/src/tests/install_env.sh.in | 2 +- 8 files changed, 308 insertions(+), 293 deletions(-) delete mode 100644 qpid/cpp/etc/cluster.conf-example.xml create mode 100644 qpid/cpp/etc/cluster.conf-example.xml.in delete mode 100755 qpid/cpp/etc/qpidd delete mode 100755 qpid/cpp/etc/qpidd-primary create mode 100755 qpid/cpp/etc/qpidd-primary.in create mode 100755 qpid/cpp/etc/qpidd.in (limited to 'qpid/cpp') diff --git a/qpid/cpp/etc/Makefile.am b/qpid/cpp/etc/Makefile.am index 183c600f96..22e9d2778c 100644 --- a/qpid/cpp/etc/Makefile.am +++ b/qpid/cpp/etc/Makefile.am @@ -20,9 +20,10 @@ SASL_CONF = sasl2/qpidd.conf EXTRA_DIST = \ $(SASL_CONF) \ - qpidd qpidd-primary qpidd.conf qpidc.conf CMakeLists.txt + qpidd qpidd-primary qpidd.conf qpidc.conf CMakeLists.txt \ + cluster.conf-example.xml -confdir=$(sysconfdir)/qpid +confdir = $(sysconfdir)/qpid nobase_conf_DATA=\ qpidc.conf @@ -35,5 +36,20 @@ nobase_sysconf_DATA += \ endif +# Substitute values for directories in init scripts. +# +# We can't use autoconf substitution directly because it leaves +# ${prefix} and ${exec_prefix} unexpanded. Substitute with sed +# scripts. +SUBST="s|!!sysconfdir!!|${sysconfdir}|;s|!!sbindir!!|${sbindir}|;s|!!bindir!!|${bindir}|" +qpidd: qpidd.in + sed $(SUBST) $< > $@ +qpidd-primary: qpidd-primary.in + sed $(SUBST) $< > $@ +cluster.conf-example.xml: cluster.conf-example.in + sed $(SUBST) $< > $@ + +CLEANFILES = qpidd qpidd-primary cluster.conf-example + initddir = $(sysconfdir)/init.d nobase_initd_SCRIPTS = qpidd qpidd-primary diff --git a/qpid/cpp/etc/cluster.conf-example.xml b/qpid/cpp/etc/cluster.conf-example.xml deleted file mode 100644 index 81dc19845f..0000000000 --- a/qpid/cpp/etc/cluster.conf-example.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -