]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Shuffle cachemgr.cgi.8 into tools/ with cachemgr.cgi code
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 10 Jul 2009 07:06:53 +0000 (19:06 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 10 Jul 2009 07:06:53 +0000 (19:06 +1200)
To perform this shuffle the SUBSTITUTE make code pushed into a sub-include
at doc/manuals/Substitute.am for shared use.

Also clean up the manual titles to reflect the binary they apply to
rather than the generic Squid project release name.

The use of generic @SYSCONFDIR@ and specific filenames allows the
translation strings to be more specific, readable for translators and
reduces Makefile complexity at once. squid.conf etc are widely mentioned
and used enough that allowing for alternative names at this point seems
meaningless.

doc/Makefile.am
doc/squid.8.in
test-suite/buildtests/layer-00-default.opts
test-suite/buildtests/layer-02-maximus.opts
tools/Makefile.am
tools/cachemgr.cgi.8.in [moved from doc/cachemgr.cgi.8.in with 93% similarity]
tools/squidclient.1

index d3649a400f1227758cda149a26b04da6c2b4a455..5bce2a46403f2844845d4fbe1fd15ea0cd7d5d30 100644 (file)
@@ -1,41 +1,19 @@
-#
-#  Makefile for the Squid Object Cache server
-#
-#  $Id$
-#
-#  Uncomment and customize the following to suit your needs:
-#
 
 SUBDIRS = manuals
 
 DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf
-DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
 DEFAULT_MIME_TABLE      = $(sysconfdir)/mime.conf
 DEFAULT_ERROR_DIR       = $(datadir)/errors
 
-SUBSTITUTE=sed "\
-       s%@DEFAULT_CONFIG_FILE@%$(DEFAULT_CONFIG_FILE)%g;\
-       s%@DEFAULT_CACHEMGR_CONFIG@%$(DEFAULT_CACHEMGR_CONFIG)%g;\
-       s%@DEFAULT_ERROR_DIR@%$(DEFAULT_ERROR_DIR)%g;\
-       s%@DEFAULT_MIME_TABLE@%$(DEFAULT_MIME_TABLE)%g;\
-       s%@""PACKAGE_STRING""@%$(PACKAGE_STRING)%g;\
-       "
+include $(top_srcdir)/doc/manuals/Substitute.am
 
 squid.8: $(srcdir)/squid.8.in Makefile
        $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
 
-cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
-       $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
-
-man_MANS = \
-       squid.8 \
-       cachemgr.cgi.8
+man_MANS = squid.8
 
 EXTRA_DIST = \
        squid.8.in \
-       cachemgr.cgi.8.in \
        debug-sections.txt
 
-CLEANFILES = \
-       squid.8 \
-       cachemgr.cgi.8
+CLEANFILES = squid.8
index b4c04445d39af39cbeeb2046951abd586e5664d7..60ec99226df4486eabf7453c763b5aa583b26729 100644 (file)
@@ -1,4 +1,4 @@
-.TH squid 8 "@PACKAGE_STRING@"
+.TH squid 8 "Squid Web Proxy"
 .\" Copyright and licensing information
 .\" goes here.
 .SH NAME
@@ -58,7 +58,7 @@ This manual page only lists the command line arguments.  For details
 on how to configure
 .B squid
 see the file 
-.BI @DEFAULT_CONFIG_FILE@.documented,
+.BI @SYSCONFDIR@/squid.conf.documented,
 the Squid wiki FAQ and examples at
 http://wiki.squid-cache.org/ ,
 or the configuration manual on the
@@ -74,7 +74,7 @@ to any http_port specifications in squid.conf.
 Write debugging to stderr also.
 .IP "-f file"
 Use the given config-file instead of
-.IR @DEFAULT_CONFIG_FILE@ .
+.IR @SYSCONFDIR@/squid.conf .
 If the file name starts with a ! or | then it is assumed to be an external
 command or command line. Can for example be used to pre-process the
 configuration before it is being read by Squid. To facilitate this Squid
@@ -94,7 +94,7 @@ Specify Windows Service name to use for service operations, default is:
 Remove a Windows Service (see -n option).
 .IP -s
 Enable logging to syslog. Also configurable in
-.BI @DEFAULT_CONFIG_FILE@
+.BI @SYSCONFDIR@/squid.conf
 .IP "-l facility"
 Use specified syslog facility. implies -s
 .IP "-u port"
@@ -121,7 +121,7 @@ Force full debugging.
 Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.
 
 .SH FILES
-.I @DEFAULT_CONFIG_FILE@
+.I @SYSCONFDIR@/squid.conf
 .RS
 The main configuration file.  You must initially make 
 changes to this file for 
@@ -137,7 +137,7 @@ the version of Squid you are using. Use this to look up the default
 configuration settings and syntax after upgrading.
 .RE
 
-.I @DEFAULT_CONFIG_FILE@.documented
+.I @SYSCONFDIR@/squid.conf.documented
 .RS
 Reference copy of the configuration file. Always kept up to date with
 the version of Squid you are using. Use this to read the documentation
index 74779fcfc795e705cbeaec57d5f222339fe54709..cd81c46d2f8a0f6b61c688abf7d1caea6ca50a9f 100644 (file)
@@ -1,9 +1,9 @@
 #
 #
 # Complete Check - everything MUST work at this level
-MAKETEST="distcheck"
+MAKETEST="check"
 #
 # Default configuration options.
 #  - Nothing special configured. Just whatever is found by "./configure"
 #
-OPTS=""
+OPTS=" --disable-loadable-modules "
index ba8a9b580f279722b524eef1d01452e5131e43e6..2d16b17e1437ba425085f5c32011537fe19490d9 100644 (file)
@@ -41,7 +41,7 @@ MAKETEST="check"
 #
 #
 OPTS=" \
-       --enable-loadable-modules \
+       --disable-loadable-modules \
        --enable-gnuregex \
        --enable-optimizations \
        --enable-inline \
index 550183280e804cfcf30724eb224578286db53dc6..d5366517e0eebee4356370dc1ed869fc4bb1cf61 100644 (file)
@@ -11,35 +11,50 @@ AUTOMAKE_OPTIONS = subdir-objects
 ## we need our local files too (but avoid -I. at all costs)
 INCLUDES += -I$(srcdir)
 
+SUBDIRS = 
+EXTRA_DIST = 
+man_MANS = 
+DISTCLEANFILES = 
 
-SUBDIRS                = 
+LDADD = \
+       ../compat/libcompat.la \
+       ../src/ip/libip.la \
+       -L../lib -lmiscutil \
+       $(XTRA_LIBS)
 
-bin_PROGRAMS = \
-       squidclient
+include $(top_srcdir)/doc/manuals/Substitute.am
 
-libexec_PROGRAMS = \
-       cachemgr$(CGIEXT)
 
-man_MANS = \
-       squidclient.1
+## ##### squidclient  #####
 
-DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
+bin_PROGRAMS = squidclient
 
 squidclient_SOURCES = squidclient.cc
+
+EXTRA_DIST += squidclient.1
+man_MANS += squidclient.1
+
+
+
+## ##### cachemgr.cgi  #####
+
+DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
+
+libexec_PROGRAMS = cachemgr$(CGIEXT)
+
 cachemgr__CGIEXT__SOURCES = cachemgr.cc
 cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
 
-LDADD = \
-       ../compat/libcompat.la \
-       ../src/ip/libip.la \
-       -L../lib -lmiscutil \
-       $(XTRA_LIBS)
+EXTRA_DIST += cachemgr.conf cachemgr.cgi.8
+CLEANFILES += cachemgr.cgi.8
+man_MANS += cachemgr.cgi.8
+
+cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
+       $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
+
 
-EXTRA_DIST = \
-       cachemgr.conf \
-       squidclient.1
 
-$(OBJS): $(top_srcdir)/include/version.h ../include/autoconf.h
+## Shared
 
 install-data-local:
        $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
@@ -53,6 +68,3 @@ install-data-local:
 uninstall-local:
        @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)
        $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
-
-DISTCLEANFILES = 
-
similarity index 93%
rename from doc/cachemgr.cgi.8.in
rename to tools/cachemgr.cgi.8.in
index 117f3eb803d39f3ca4528a96c6f1a71034b99b4a..9df70620e7c1146985b7161162d9ec2fa846097d 100644 (file)
@@ -1,4 +1,4 @@
-.TH cachemgr.cgi 8 "@PACKAGE_STRING@"
+.TH cachemgr.cgi 8 "Squid Cache Manager CGI Web Interface"
 .\" Copyright and licensing information
 .\" goes here.
 .SH NAME
@@ -13,7 +13,7 @@ into the server.
 .SH FILES
 .I ./cachemgr.conf
 .br
-.I @DEFAULT_CACHEMGR_CONFIG@
+.I @SYSCONFDIR@/cachemgr.conf
 .RS
 The access configuration file defining which Squid servers may
 be managed via this cachemgr.cgi program. Each line specifies a
@@ -38,6 +38,7 @@ Configuration examples for many common web servers can be found in the
 Squid FAQ.
 .SH SEE ALSO
 .BR squid "(8)"
+.BR squidclient "(1)"
 .br
 .BR "The Squid FAQ" ", Chapter 9 The Cache Manager"
 .\" Could add the following sections:
index 391bfc3d0b7b27aad573936b0e8a099942cf985c..d8810fad8ced21a15b66aca7896aa3e2940b6ad1 100644 (file)
@@ -1,4 +1,4 @@
-.TH SQUIDCLIENT 1 "Mar 1998" "Squid Cache" "Debian Linux"
+.TH SQUIDCLIENT 1 "Mar 1998" "Squid Web Client Tool"
 .SH NAME
 squidclient -- client interface to the squid cache
 .SH SYNOPSIS