]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add cachemgr.conf.default for easier maintenance
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 13 May 2008 08:56:04 +0000 (20:56 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 13 May 2008 08:56:04 +0000 (20:56 +1200)
cachemgr.conf has for a long while been created conditionally if none
already existed, but no current new default file was added to compare
for new configuration options.

This patch reverts the behaviour to what was reportedy available in 2.5.
Adding a file named cachemgr.conf.default next to the cachemgr.conf

cachemgr.conf.default file is replaces unconditionally so that it remains
current with the most recently installed build.
cachemgr.conf itself is only created if not already present so as not to
loose local configuration changes.

tools/Makefile.am

index 59b5d400fd75f0399cde777586572fad1bfe2014..a41df66a7f6866dee7ddecfdb8100a4dc63f5eef 100644 (file)
@@ -45,6 +45,8 @@ DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
 $(OBJS): $(top_srcdir)/include/version.h ../include/autoconf.h
 
 install-data-local:
+       @echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default"; \
+       $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default; \
        @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \
                echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \
        else \