From: Tollef Fog Heen Date: Thu, 2 Oct 2008 12:57:47 +0000 (+0200) Subject: Rename some of the default.vcls we have to something more sensible X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fticket_291;p=varnish Rename some of the default.vcls we have to something more sensible Fixes #291 --- diff --git a/varnish-cache/bin/varnishd/Makefile.am b/varnish-cache/bin/varnishd/Makefile.am index d4409a32..d6056c6a 100644 --- a/varnish-cache/bin/varnishd/Makefile.am +++ b/varnish-cache/bin/varnishd/Makefile.am @@ -82,14 +82,14 @@ varnishd_LDADD = \ @JEMALLOC_LDADD@ \ ${DL_LIBS} ${PTHREAD_LIBS} ${NET_LIBS} ${LIBM} ${LIBUMEM} -EXTRA_DIST = default.vcl +EXTRA_DIST = embed-default.vcl DISTCLEANFILES = default_vcl.h # # Turn the default.vcl file into a C-string we can include in the program. # -default_vcl.h: default.vcl Makefile - sed -e 's/"/\\"/g' -e 's/$$/\\n"/' -e 's/^/ "/' $(srcdir)/default.vcl > $@ +default_vcl.h: embed-default.vcl Makefile + sed -e 's/"/\\"/g' -e 's/$$/\\n"/' -e 's/^/ "/' $(srcdir)/embed-default.vcl > $@ # Explicitly record dependency mgt_vcc.c: default_vcl.h diff --git a/varnish-cache/etc/Makefile.am b/varnish-cache/etc/Makefile.am index 600dae57..29c512bd 100644 --- a/varnish-cache/etc/Makefile.am +++ b/varnish-cache/etc/Makefile.am @@ -2,7 +2,7 @@ EXTRA_DIST = zope-plone.vcl -dist_varnishconf_DATA = default.vcl +varnishconf_DATA = default.vcl default.vcl: $(top_srcdir)/bin/varnishd/default.vcl @echo -e "This is a basic VCL configuration file for varnish. See the vcl(7)\n\ diff --git a/varnish-cache/man/Makefile.am b/varnish-cache/man/Makefile.am index f77b8d0a..cde22f6d 100644 --- a/varnish-cache/man/Makefile.am +++ b/varnish-cache/man/Makefile.am @@ -1,11 +1,11 @@ # $Id$ EXTRA_DIST = vcl.7so -DISTCLEANFILES = vcl.7 default.vcl +DISTCLEANFILES = vcl.7 default.man-include.vcl dist_man_MANS = vcl.7 -vcl.7: vcl.7so default.vcl Makefile +vcl.7: vcl.7so default.man-include.vcl Makefile soelim $(srcdir)/vcl.7so > $@ -default.vcl: $(top_srcdir)/bin/varnishd/default.vcl Makefile +default.man-include.vcl: $(top_srcdir)/bin/varnishd/default.vcl Makefile sed -n '/vcl_recv/,$$p' $(top_srcdir)/bin/varnishd/default.vcl > $@ diff --git a/varnish-cache/man/vcl.7so b/varnish-cache/man/vcl.7so index 7e815b05..8ceac043 100644 --- a/varnish-cache/man/vcl.7so +++ b/varnish-cache/man/vcl.7so @@ -580,7 +580,7 @@ backend default { .port = "http"; } -.so default.vcl +.so default.man-include.vcl .Ed .Pp The following example shows how to support multiple sites running on