#Packager: Frédéric Galusik pkgname=varnish pkgver=3.0.3 pkgrel=1fg #arch=noarch source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz" "rc.varnishd") sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver docs=("readme" "license" "install") url=https://www.varnish-cache.org/ dotnew=('etc/rc.d/rc.varnishd' 'etc/varnish/default.vcl') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "varnish (High-performance HTTP accelerator)" "Varnish Cache is a web application accelerator also known as a " "caching HTTP reverse proxy. You install it in front of any server " "that speaks HTTP and configure it to cache the contents. Varnish " "Cache is really, really fast. It typically speeds up delivery with a " "factor of 300 - 1000x, depending on your architecture. A high level " "overview of what Varnish does can be seen in the video attached to " "this web page." ) build() { cd $SRC/$pkgname-$pkgver # Disable the PCRE JIT compiler by default # bug: https://www.varnish-cache.org/trac/ticket/1191 sed -i '/pcre_study/ s/PCRE_STUDY_JIT_COMPILE/0/' lib/libvarnish/vre.c ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-static=no \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver \ --build=$ARCH-slackware-linux make || return 1 make install DESTDIR=$PKG || return 1 # make varnish a service, off by default # rc.varnishd from Matt Schurenko install -Dm 644 $SRC/rc.varnishd $PKG/etc/rc.d/rc.varnishd }