aboutsummaryrefslogtreecommitdiff
path: root/network/varnish
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-13 00:09:01 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-13 00:09:01 +0200
commitfa5a9461ecd1bb5dc0963348ce2c0f96e5573423 (patch)
tree523bbe1f7f5637b5856d2e6174d0c3193f6fe300 /network/varnish
parent4bdc9ca47792fe15b4ea139d915710ea45298abd (diff)
network/varnish: Removed from 13.0 repository
Diffstat (limited to 'network/varnish')
-rw-r--r--network/varnish/README5
-rw-r--r--network/varnish/doinst.sh24
-rw-r--r--network/varnish/rc.varnishd87
-rw-r--r--network/varnish/slack-desc19
-rw-r--r--network/varnish/varnish.SlackBuild97
-rw-r--r--network/varnish/varnish.info8
6 files changed, 0 insertions, 240 deletions
diff --git a/network/varnish/README b/network/varnish/README
deleted file mode 100644
index fd69914faf0f..000000000000
--- a/network/varnish/README
+++ /dev/null
@@ -1,5 +0,0 @@
-VARNISH -- a state-of-the-art, high-performance HTTP accelerator.
-
-Varnish is targeted primarily at the FreeBSD 6 and Linux 2.6 platforms,
-and will take full advantage of the virtual memory system and advanced
-I/O features offered by these operating systems.
diff --git a/network/varnish/doinst.sh b/network/varnish/doinst.sh
deleted file mode 100644
index eacbac22fdaa..000000000000
--- a/network/varnish/doinst.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
-# Keep same perms on rc.varnishd.new:
-if [ -e etc/rc.d/rc.varnishd ]; then
- cp -a etc/rc.d/rc.varnishd etc/rc.d/rc.varnishd.new.incoming
- cat etc/rc.d/rc.varnishd.new > etc/rc.d/rc.varnishd.new.incoming
- mv etc/rc.d/rc.varnishd.new.incoming etc/rc.d/rc.varnishd.new
-fi
-
-config etc/rc.d/rc.varnishd.new
-config etc/varnish/default.vcl.new
-config etc/varnish/zope-plone.vcl.new
-
diff --git a/network/varnish/rc.varnishd b/network/varnish/rc.varnishd
deleted file mode 100644
index f3cfc86a81fa..000000000000
--- a/network/varnish/rc.varnishd
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/sh
-#
-# Varnish daemon control script.
-# Written for Slackware Linux by Cherife Li <cherife-#-dotimes.com>.
-
-VARNISH_VCL_CONF=/etc/varnish/default.vcl
-VARNISH_PIDFILE=/var/run/varnish.pid
-VARNISH_LOCKFILE=/var/lock/subsys/varnish
-VARNISH_DAEMON=/usr/sbin/varnishd
-VARNISH_PARAM="-p thread_pool_max=1500 -p thread_pools=5 -p listen_depth=512 -p client_http11=off"
-
-VARNISH_LOG_PIDFILE=/var/run/varnishlog.pid
-VARNISH_LOG_LOCKFILE=/var/lock/subsys/varnishlog
-VARNISH_LOG_DAEMON=/usr/bin/varnishlog
-LOGFILE=/var/log/varnish.log
-VARNISH_LOG_OPTS="-a -w ${LOGFILE} -D -P ${VARNISH_LOG_PIDFILE}"
-
-# Default address and port to bind to
-# Blank address means all IPv4 and IPv6 interfaces, otherwise specify
-# a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
-VARNISH_LISTEN_ADDRESS=
-VARNISH_LISTEN_PORT=80
-
-# Telnet admin interface listen address and port
-VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
-VARNISH_ADMIN_LISTEN_PORT=81
-
-# The minimum number of worker threads to start
-VARNISH_MIN_THREADS=1
-
-# The Maximum number of worker threads to start
-VARNISH_MAX_THREADS=100
-
-# Idle timeout for worker threads
-VARNISH_THREAD_TIMEOUT=120
-
-# Cache file location
-VARNISH_STORAGE_FILE=/var/lib/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.
-VARNISH_STORAGE_SIZE=1G
-
-# Backend storage specification
-VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
-
-# Default TTL used when the backend does not specify one
-VARNISH_TTL=120
-
-# VARNISH_DAEMON_OPTS is used by the init script. If you add or remove options, make
-# sure you update this section, too.
-VARNISH_DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
- -f ${VARNISH_VCL_CONF} \
- -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
- -t ${VARNISH_TTL} \
- -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
- -u nobody -g nobody \
- -P ${VARNISH_PIDFILE} \
- -s ${VARNISH_STORAGE}"
-
-case "$1" in
-'start')
- echo -n "Starting varnish daemon..."
- $VARNISH_DAEMON $VARNISH_DAEMON_OPTS $VARNISH_PARAM > /dev/null 2>&1
- $VARNISH_LOG_DAEMON $VARNISH_LOG_OPTS
- touch $VARNISH_LOCKFILE $VARNISH_LOG_LOCKFILE
- echo
- ;;
-'stop')
- echo -n "Stopping varnish daemon..."
- kill -9 $(cat $VARNISH_PIDFILE)
- kill -9 $(cat $VARNISH_LOG_PIDFILE)
- rm -f $VARNISH_PIDFILE $VARNISH_LOG_PIDFILE $VARNISH_LOCKFILE $VARNISH_LOG_LOCKFILE
- killall varnishd 2> /dev/null
- echo
- ;;
-'restart')
- $0 stop
- sleep 3
- $0 start
- ;;
-*)
- echo "usage $0 {start|stop|restart}"
- exit 1
-esac
-
-exit 0
diff --git a/network/varnish/slack-desc b/network/varnish/slack-desc
deleted file mode 100644
index 4934984ec55c..000000000000
--- a/network/varnish/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':'.
-
- |-----handy-ruler------------------------------------------------------|
-varnish: VARNISH (high-performance HTTP accelerator)
-varnish:
-varnish: Varnish is targeted primarily at the FreeBSD 6 and
-varnish: Linux 2.6 platforms, and will take full advantage
-varnish: of the virtual memory system and advanced I/O
-varnish: features offered by these operating systems.
-varnish:
-varnish: Homepage: http://varnish.projects.linpro.no/
-varnish:
-varnish:
-varnish:
diff --git a/network/varnish/varnish.SlackBuild b/network/varnish/varnish.SlackBuild
deleted file mode 100644
index 34a35df72df1..000000000000
--- a/network/varnish/varnish.SlackBuild
+++ /dev/null
@@ -1,97 +0,0 @@
-#!/bin/sh
-#
-# Slackware build script for ganglia
-#
-# Copyright 2008 Cherife Li <cherife-#-dotimes.com>
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-PRGNAM=varnish
-VERSION=${VERSION:-2.0.2}
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
-
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
-fi
-
-set -e
-
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION
-chown -R root:root .
-find . \
- \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc/varnish \
- --localstatedir=/var \
- --mandir=/usr/man \
- --enable-static=no \
- --build=$ARCH-slackware-linux \
- --host=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
-
-mkdir -p $PKG/etc/{varnish,rc.d}
-cat etc/default.vcl > $PKG/etc/varnish/default.vcl.new
-cat etc/zope-plone.vcl > $PKG/etc/varnish/zope-plone.vcl.new
-cat $CWD/rc.varnishd > $PKG/etc/rc.d/rc.varnishd.new
-
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog INSTALL LICENSE README doc/*.{xml,xsl,html,css} $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/varnish/varnish.info b/network/varnish/varnish.info
deleted file mode 100644
index 8c29c1523b09..000000000000
--- a/network/varnish/varnish.info
+++ /dev/null
@@ -1,8 +0,0 @@
-PRGNAM="varnish"
-VERSION="2.0.2"
-HOMEPAGE="http://varnish.projects.linpro.no/"
-DOWNLOAD="http://downloads.sourceforge.net/varnish/varnish-2.0.2.tar.gz"
-MD5SUM="131f502a9a507b9ce0a7a91b22528e0c"
-MAINTAINER="Cherife Li"
-EMAIL="cherife-#-dotimes.com"
-APPROVED="dsomero"