r1935 - trunk/varnish-cache/debian

ssm at projects.linpro.no ssm at projects.linpro.no
Tue Sep 4 12:55:25 CEST 2007


Author: ssm
Date: 2007-09-04 12:55:25 +0200 (Tue, 04 Sep 2007)
New Revision: 1935

Modified:
   trunk/varnish-cache/debian/changelog
   trunk/varnish-cache/debian/rules
   trunk/varnish-cache/debian/varnish.default
   trunk/varnish-cache/debian/varnish.varnishlog.init
Log:
* Set statedir to /var/lib, to conform to debian packaging standards.

* Removed -n switch from varnish defaults file and varnishlog init script.
  Use the default instance name instead.  This makes sure varnish utilities work
  without having to use the -n switch for the default instance.



Modified: trunk/varnish-cache/debian/changelog
===================================================================
--- trunk/varnish-cache/debian/changelog	2007-09-04 08:04:48 UTC (rev 1934)
+++ trunk/varnish-cache/debian/changelog	2007-09-04 10:55:25 UTC (rev 1935)
@@ -1,14 +1,20 @@
-varnish (1.1.1) unstable; urgency=low
+varnish (1.1.1-1) unstable; urgency=low
 
+  [Lars Bahner]
   * New upstream release
   * User and Group id added to default DAEMON_OPTS
   * Added user and group creation to postinst
   * Added missing man pages
 
- -- Lars Bahner <bahner at debian.org>  Mon, 20 Aug 2007 11:29:33 +0200
+  [Stig Sandbeck Mathisen]
+  * Set statedir to /var/lib
+  * Removed -n switch from varnish defaults file and varnishlog init script.
+    Use the default instance name instead.
 
-varnish (1.1) unstable; urgency=low
+ -- Stig Sandbeck Mathisen <ssm at linpro.no>  Tue, 04 Sep 2007 12:27:09 +0200
 
+varnish (1.1-1) unstable; urgency=low
+
   * New upstream release
   * Split package into varnish, libvarnish and libvarnish-dev
 

Modified: trunk/varnish-cache/debian/rules
===================================================================
--- trunk/varnish-cache/debian/rules	2007-09-04 08:04:48 UTC (rev 1934)
+++ trunk/varnish-cache/debian/rules	2007-09-04 10:55:25 UTC (rev 1935)
@@ -32,7 +32,7 @@
 	# The boilerplate linker flags won't allow varnish to compile :(
 	# There are circular dependencies in the varnish libraries, but
 	# the core developers have OK'ed that we don't check.
-	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" --localstatedir=/var
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" --localstatedir=/var/lib
 
 
 build: build-stamp

Modified: trunk/varnish-cache/debian/varnish.default
===================================================================
--- trunk/varnish-cache/debian/varnish.default	2007-09-04 08:04:48 UTC (rev 1934)
+++ trunk/varnish-cache/debian/varnish.default	2007-09-04 10:55:25 UTC (rev 1935)
@@ -7,6 +7,10 @@
 # Maximum number of open files (for ulimit -n)
 NFILES=131072
 
+# Default varnish instance name is the local nodename.  Can be overridden with
+# the -n switch, to have more instances on a single server.
+INSTANCE=$(uname -n)
+
 # This file contains 4 alternatives, please use only one.
 
 ## Alternative 1, Minimal configuration, no VCL
@@ -18,8 +22,7 @@
              -T localhost:6082 \
 	     -b localhost:8080 \
 	     -u varnish -g varnish \
-	     -n /var/lib/varnish \
-	     -s file,/var/lib/varnish/varnish_storage.bin,1G"
+	     -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
 
 
 ## Alternative 2, Configuration with VCL
@@ -32,7 +35,7 @@
 #              -T localhost:6082 \
 #              -f /etc/varnish/default.vcl \
 #              -n /var/lib/varnish \
-#              -s file,/var/lib/varnish/varnish_storage.bin,1G"
+#              -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
 
 
 ## Alternative 3, Advanced configuration
@@ -65,7 +68,7 @@
 # VARNISH_HOMEDIR=/var/lib/varnish
 #
 # # Cache file location
-# VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
+# VARNISH_STORAGE_FILE=/var/lib/varnish/$INSTANCE/varnish_storage.bin
 #
 # # Cache file size: in bytes, optionally using k / M / G / T suffix,
 # # or in percentage of available disk space using the % suffix.
@@ -84,7 +87,6 @@
 #              -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
 #              -t ${VARNISH_TTL} \
 #              -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
-#              -n ${VARNISH_HOMEDIR} \
 #              -s ${VARNISH_STORAGE}"
 #
 

Modified: trunk/varnish-cache/debian/varnish.varnishlog.init
===================================================================
--- trunk/varnish-cache/debian/varnish.varnishlog.init	2007-09-04 08:04:48 UTC (rev 1934)
+++ trunk/varnish-cache/debian/varnish.varnishlog.init	2007-09-04 10:55:25 UTC (rev 1935)
@@ -24,7 +24,7 @@
 
 test -x $DAEMON || exit 0
 
-DAEMON_OPTS="-a -n /var/lib/varnish -w ${LOGFILE} -D -P $PIDFILE"
+DAEMON_OPTS="-a -w ${LOGFILE} -D -P $PIDFILE"
 
 case "$1" in
 	start)




More information about the varnish-commit mailing list