# Description: Varnish is a web application accelerator.
# URL: http://www.varnish-cache.org/
# Packager: alieanus at nutyx dot org, tnut at nutyx dot org
# Depends on: libedit pcre python-docutils 
name=varnish
version=4.0.3
release=1

source=(
http://repo.varnish-cache.org/source/$name-$version.tar.gz
varnish.service)

build(){
    cd $name-$version
    ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --localstatedir=/var/lib
    make
    make DESTDIR=$PKG install

    # install the varnish init script
    install -Dm755 $SRC/$name.service $PKG/etc/rc.d/init.d/$name
}
