Commit c5a2574f authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 1935-1939,1941,1943-1949 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1935 | ssm | 2007-09-04 12:55:25 +0200 (Tue, 04 Sep 2007) | 7 lines
  
  * 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.
........
  r1943 | des | 2007-09-12 10:37:42 +0200 (Wed, 12 Sep 2007) | 2 lines
  
  Install man pages into the correct directory.
........
  r1944 | ssm | 2007-09-12 15:19:27 +0200 (Wed, 12 Sep 2007) | 1 line
  
  Bump debian version-revision to 1.1.2-1
........
  r1945 | ssm | 2007-09-12 16:30:36 +0200 (Wed, 12 Sep 2007) | 4 lines
  
  Debian package: Fix lintian warnings
  * Add magic tag in varnish.postinst for debhelper
  * Remove old overrides, add two overrides for update-rc.d
........
  r1946 | ssm | 2007-09-12 16:31:22 +0200 (Wed, 12 Sep 2007) | 1 line
  
  Debian package: Rename library and development packages to reflect soname
........
  r1948 | ssm | 2007-09-12 17:21:12 +0200 (Wed, 12 Sep 2007) | 4 lines
  
  Man page fixes
  * Close list in varnishreplay.1
  * Remove macro after Cm, as this cancelled the effect of Cm
........
  r1949 | des | 2007-09-12 17:55:51 +0200 (Wed, 12 Sep 2007) | 2 lines
  
  Additional markup fixes, bump date
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1950 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 46ebd0a6
...@@ -17,4 +17,5 @@ export CONFIG_SHELL=/bin/sh ...@@ -17,4 +17,5 @@ export CONFIG_SHELL=/bin/sh
--enable-extra-developer-warnings \ --enable-extra-developer-warnings \
--enable-stack-protector \ --enable-stack-protector \
--enable-werror \ --enable-werror \
--prefix=/opt/varnish --prefix=/opt/varnish \
--mandir=/opt/varnish/man
...@@ -28,26 +28,26 @@ ...@@ -28,26 +28,26 @@
.\" .\"
.\" $Id$ .\" $Id$
.\" .\"
.Dd August 19, 2007 .Dd September 12, 2007
.Dt VARNISHADM 1 .Dt VARNISHADM 1
.Os .Os
.Sh NAME .Sh NAME
.Nm varnishadm .Nm varnishadm
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Fl T Ar address:port .Fl T Ar address Ns : Ns Ar port
.Cm Ar command .Cm command
.Op Ar ... .Op Ar ...
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
utility sends the given command and arguments to the utility sends the given command and arguments to the
.Xr varnishd 1 .Xr varnishd 1
instance at address:port and prints the results. instance at the specified address and port and prints the results.
.Pp .Pp
The following options are available: The following options are available:
.Bl -tag -width Fl .Bl -tag -width Fl
.It Fl T Ar address:port .It Fl T Ar address Ns : Ns Ar port
Connect to the management interface at the specified address and port. Connect to the management interface at the specified address and port.
.El .El
.Sh EXIT STATUS .Sh EXIT STATUS
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
.Nd HTTP accelerator daemon .Nd HTTP accelerator daemon
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl a Ar addrss Ns Op : Ns Ar port .Op Fl a Ar address Ns Op : Ns Ar port
.Op Fl b Ar host Ns Op : Ns Ar port .Op Fl b Ar host Ns Op : Ns Ar port
.Op Fl d .Op Fl d
.Op Fl F .Op Fl F
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
.\" .\"
.\" $Id$ .\" $Id$
.\" .\"
.Dd June 25, 2007 .Dd September 12, 2007
.Dt VARNISHREPLAY 1 .Dt VARNISHREPLAY 1
.Os .Os
.Sh NAME .Sh NAME
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl D .Op Fl D
.Fl a Ar address:port .Fl a Ar address Ns : Ns Ar port
.Fl r Ar file .Fl r Ar file
.Sh DESCRIPTION .Sh DESCRIPTION
The The
...@@ -45,7 +45,7 @@ utility parses varnish logs and attempts to reproduce the traffic. ...@@ -45,7 +45,7 @@ utility parses varnish logs and attempts to reproduce the traffic.
.Pp .Pp
The following options are available: The following options are available:
.Bl -tag -width Fl .Bl -tag -width Fl
.It Fl a Ar address:port .It Fl a Ar address Ns : Ns Ar port
Send the traffic over tcp to this address and port. Send the traffic over tcp to this address and port.
This option is mandatory. This option is mandatory.
.It Fl D .It Fl D
...@@ -53,6 +53,7 @@ Turn on debugging mode. ...@@ -53,6 +53,7 @@ Turn on debugging mode.
.It Fl r Ar file .It Fl r Ar file
Parse logs from this file. Parse logs from this file.
This option is mandatory. This option is mandatory.
.El
.Sh SEE ALSO .Sh SEE ALSO
.Xr varnishd 1 , .Xr varnishd 1 ,
.Xr varnishlog 1 .Xr varnishlog 1
......
varnish (1.1.1) unstable; urgency=low varnish (1.1.2-1) unstable; urgency=low
* New upstream release
* Renamed library and development packages to reflect sonames
-- Stig Sandbeck Mathisen <ssm@fnord.no> Wed, 12 Sep 2007 16:05:22 +0200
varnish (1.1.1-1) unstable; urgency=low
[Lars Bahner]
* New upstream release * New upstream release
* User and Group id added to default DAEMON_OPTS * User and Group id added to default DAEMON_OPTS
* Added user and group creation to postinst * Added user and group creation to postinst
* Added missing man pages * Added missing man pages
-- Lars Bahner <bahner@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.
-- Stig Sandbeck Mathisen <ssm@linpro.no> Tue, 04 Sep 2007 12:27:09 +0200
varnish (1.1) unstable; urgency=low varnish (1.1-1) unstable; urgency=low
* New upstream release * New upstream release
* Split package into varnish, libvarnish and libvarnish-dev * Split package into varnish, libvarnish and libvarnish-dev
......
...@@ -8,7 +8,7 @@ Standards-Version: 3.7.2 ...@@ -8,7 +8,7 @@ Standards-Version: 3.7.2
Package: varnish Package: varnish
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, gcc ( >= 3.3), libvarnish, libc6-dev | libc-dev Depends: ${shlibs:Depends}, ${misc:Depends}, gcc ( >= 3.3), libc6-dev | libc-dev, adduser
Description: A state-of-the-art, high-performance HTTP accelerator Description: A state-of-the-art, high-performance HTTP accelerator
varnish is the server-side alternative to Squid, written primarily with varnish is the server-side alternative to Squid, written primarily with
speed in mind, and with a look to implementing full ESI-support in speed in mind, and with a look to implementing full ESI-support in
...@@ -21,26 +21,16 @@ Description: A state-of-the-art, high-performance HTTP accelerator ...@@ -21,26 +21,16 @@ Description: A state-of-the-art, high-performance HTTP accelerator
will take full advantage of the advanced I/O features offered by these will take full advantage of the advanced I/O features offered by these
operating systems. operating systems.
Package: libvarnish Package: libvarnish0
Replaces: libvarnish
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Shared library for Varnish Description: Shared libraries for Varnish
Shared library for Varnish. Shared libraries for the Varnish HTTP accelerator.
.
Varnish is the server-side alternative to Squid, written primarily
with speed in mind.
.
The goal of the Varnish project is to develop a state-of-the-art,
high-performance HTTP accelerator.
Package: libvarnish-dev Package: libvarnish0-dev
Replaces: libvarnish-dev
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libvarnish Depends: ${shlibs:Depends}, ${misc:Depends}, libvarnish0
Description: Shared library for Varnish Description: Shared library for Varnish
Development files for the Varnish library. Development files for the Varnish library.
.
Varnish is the server-side alternative to Squid, written primarily
with speed in mind.
.
The goal of the Varnish project is to develop a state-of-the-art,
high-performance HTTP accelerator.
usr/include
usr/lib/*.a
usr/lib/*.la
varnish: non-dev-pkg-with-shlib-symlink usr/lib/libvarnish.so.0.0.0 usr/lib/libvarnish.so varnish: duplicate-updaterc.d-calls-in-postinst varnish
varnish: non-dev-pkg-with-shlib-symlink usr/lib/libvarnishapi.so.0.0.0 usr/lib/libvarnishapi.so varnish: duplicate-updaterc.d-calls-in-postinst varnishlog
varnish: non-dev-pkg-with-shlib-symlink usr/lib/libvcl.so.0.0.0 usr/lib/libvcl.so
varnish: package-name-doesnt-match-sonames libvarnishapi0 libvcl0 libvarnish0
...@@ -32,7 +32,7 @@ config.status: configure ...@@ -32,7 +32,7 @@ config.status: configure
# The boilerplate linker flags won't allow varnish to compile :( # The boilerplate linker flags won't allow varnish to compile :(
# There are circular dependencies in the varnish libraries, but # There are circular dependencies in the varnish libraries, but
# the core developers have OK'ed that we don't check. # 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 build: build-stamp
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
# Maximum number of open files (for ulimit -n) # Maximum number of open files (for ulimit -n)
NFILES=131072 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. # This file contains 4 alternatives, please use only one.
## Alternative 1, Minimal configuration, no VCL ## Alternative 1, Minimal configuration, no VCL
...@@ -18,8 +22,7 @@ DAEMON_OPTS="-a :6081 \ ...@@ -18,8 +22,7 @@ DAEMON_OPTS="-a :6081 \
-T localhost:6082 \ -T localhost:6082 \
-b localhost:8080 \ -b localhost:8080 \
-u varnish -g varnish \ -u varnish -g varnish \
-n /var/lib/varnish \ -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
-s file,/var/lib/varnish/varnish_storage.bin,1G"
## Alternative 2, Configuration with VCL ## Alternative 2, Configuration with VCL
...@@ -32,7 +35,7 @@ DAEMON_OPTS="-a :6081 \ ...@@ -32,7 +35,7 @@ DAEMON_OPTS="-a :6081 \
# -T localhost:6082 \ # -T localhost:6082 \
# -f /etc/varnish/default.vcl \ # -f /etc/varnish/default.vcl \
# -n /var/lib/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 3, Advanced configuration ## Alternative 3, Advanced configuration
...@@ -65,7 +68,7 @@ DAEMON_OPTS="-a :6081 \ ...@@ -65,7 +68,7 @@ DAEMON_OPTS="-a :6081 \
# VARNISH_HOMEDIR=/var/lib/varnish # VARNISH_HOMEDIR=/var/lib/varnish
# #
# # Cache file location # # 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, # # Cache file size: in bytes, optionally using k / M / G / T suffix,
# # or in percentage of available disk space using the % suffix. # # or in percentage of available disk space using the % suffix.
...@@ -84,7 +87,6 @@ DAEMON_OPTS="-a :6081 \ ...@@ -84,7 +87,6 @@ DAEMON_OPTS="-a :6081 \
# -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \ # -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
# -t ${VARNISH_TTL} \ # -t ${VARNISH_TTL} \
# -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \ # -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
# -n ${VARNISH_HOMEDIR} \
# -s ${VARNISH_STORAGE}" # -s ${VARNISH_STORAGE}"
# #
......
...@@ -8,6 +8,7 @@ varnish_setup_user() { ...@@ -8,6 +8,7 @@ varnish_setup_user() {
varnish_setup_user varnish_setup_user
#DEBHELPER#
# Automatically added by dh_installinit # Automatically added by dh_installinit
if [ -x "/etc/init.d/varnish" ]; then if [ -x "/etc/init.d/varnish" ]; then
update-rc.d varnish defaults >/dev/null update-rc.d varnish defaults >/dev/null
......
...@@ -24,7 +24,7 @@ LOGFILE=/var/log/varnish/varnish.log ...@@ -24,7 +24,7 @@ LOGFILE=/var/log/varnish/varnish.log
test -x $DAEMON || exit 0 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 case "$1" in
start) start)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment