$NetBSD: patch-ab,v 1.4 2013/04/24 12:22:38 jperkin Exp $ Install into examples, not sysconfdir. --- etc/couchdb/Makefile.in.orig 2013-03-30 14:46:47.000000000 +0000 +++ etc/couchdb/Makefile.in @@ -99,7 +99,7 @@ am__uninstall_files_from_dir = { \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } -am__installdirs = "$(DESTDIR)$(localconfdir)" +am__installdirs = "$(DESTDIR)$(localegdir)" DATA = $(localconf_DATA) $(noinst_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) transform = @program_transform_name@ @@ -240,6 +240,7 @@ launchddir = @launchddir@ libdir = @libdir@ libexecdir = @libexecdir@ localconfdir = @localconfdir@ +localegdir = @localegdir@ localdatadir = @localdatadir@ localdocdir = @localdocdir@ localedir = @localedir@ @@ -331,25 +332,25 @@ clean-libtool: -rm -rf .libs _libs install-localconfDATA: $(localconf_DATA) @$(NORMAL_INSTALL) - @list='$(localconf_DATA)'; test -n "$(localconfdir)" || list=; \ + @list='$(localconf_DATA)'; test -n "$(localegdir)" || list=; \ if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(localconfdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(localconfdir)" || exit 1; \ + echo " $(MKDIR_P) '$(DESTDIR)$(localegdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(localegdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(localconfdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(localconfdir)" || exit $$?; \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(localegdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(localegdir)" || exit $$?; \ done uninstall-localconfDATA: @$(NORMAL_UNINSTALL) - @list='$(localconf_DATA)'; test -n "$(localconfdir)" || list=; \ + @list='$(localconf_DATA)'; test -n "$(localegdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(localconfdir)'; $(am__uninstall_files_from_dir) + dir='$(DESTDIR)$(localegdir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: @@ -391,7 +392,7 @@ check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: - for dir in "$(DESTDIR)$(localconfdir)"; do \ + for dir in "$(DESTDIR)$(localegdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am @@ -558,20 +559,20 @@ local_dev.ini: local.ini fi install-data-hook: - if test ! -f "$(DESTDIR)$(localconfdir)/local.ini"; then \ - cp $(srcdir)/local.ini "$(DESTDIR)$(localconfdir)/local.ini"; \ + if test ! -f "$(DESTDIR)$(localegdir)/local.ini"; then \ + cp $(srcdir)/local.ini "$(DESTDIR)$(localegdir)/local.ini"; \ fi if test ! "$(mkdir_p)" = ""; then \ - $(mkdir_p) "$(DESTDIR)$(localconfdir)/default.d"; \ - $(mkdir_p) "$(DESTDIR)$(localconfdir)/local.d"; \ + $(mkdir_p) "$(DESTDIR)$(localegdir)/default.d"; \ + $(mkdir_p) "$(DESTDIR)$(localegdir)/local.d"; \ else \ echo "WARNING: You may have to create these directories by hand."; \ - mkdir -p "$(DESTDIR)$(localconfdir)/default.d"; \ - mkdir -p "$(DESTDIR)$(localconfdir)/local.d"; \ + mkdir -p "$(DESTDIR)$(localegdir)/default.d"; \ + mkdir -p "$(DESTDIR)$(localegdir)/local.d"; \ fi uninstall-local: - rm -f "$(DESTDIR)/$(localconfdir)/local.ini" + rm -f "$(DESTDIR)/$(localegdir)/local.ini" # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded.