From d33da1df789a4842269cb0945697320c1ff9d596 Mon Sep 17 00:00:00 2001 From: Noah Slater Date: Mon, 14 Apr 2008 23:15:55 +0000 Subject: removed non-standard use of .dist configuration files git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@648050 13f79535-47bb-0310-9956-ffa450edef68 --- etc/couchdb/Makefile.am | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'etc/couchdb') diff --git a/etc/couchdb/Makefile.am b/etc/couchdb/Makefile.am index d5ccdb15..2835b9a9 100644 --- a/etc/couchdb/Makefile.am +++ b/etc/couchdb/Makefile.am @@ -10,4 +10,27 @@ ## License for the specific language governing permissions and limitations ## under the License. -## This file intentionally left blank. +datarootdir = @prefix@/share + +pkgconf_DATA = couch.ini couch_httpd.conf + +nobase_dist_pkgconf_DATA = conf/mime.types + +CLEANFILES = $(pkgconf_DATA) $(dist_pkgconf_DATA) + +couch.ini: couch.ini.tpl + sed -e "s|%bindir%|@bindir@|g" \ + -e "s|%pkgconfdir%|@pkgconfdir@|g" \ + -e "s|%pkgdatadir%|@pkgdatadir@|g" \ + -e "s|%pkgstatelibdir%|@pkgstatelibdir@|g" \ + -e "s|%pkgstatelogdir%|@pkgstatelogdir@|g" \ + -e "s|%couchprivlibdir%|$(couchprivlibdir)|g" \ + -e "s|%couchjs_command_name%|$(couchjs_command_name)|g" \ + < $< > $@ + +couch_httpd.conf: couch_httpd.conf.tpl + sed -e "s|%pkgconfdir%|@pkgconfdir@|g" \ + -e "s|%pkgdatadir%|@pkgdatadir@|g" \ + -e "s|%pkgstatelogdir%|@pkgstatelogdir@|g" \ + < $< > $@ + -- cgit v1.2.3