diff options
Diffstat (limited to 'testing/varnish/APKBUILD')
-rw-r--r-- | testing/varnish/APKBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/testing/varnish/APKBUILD b/testing/varnish/APKBUILD new file mode 100644 index 0000000000..0476610d3b --- /dev/null +++ b/testing/varnish/APKBUILD @@ -0,0 +1,62 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=varnish +pkgver=2.1.5 +pkgrel=0 +pkgdesc="High-performance HTTP accelerator" +url="http://www.varnish-cache.org/" +arch="all" +license="BSD" +depends="gcc" +depends_dev= +makedepends="$depends_dev pcre-dev ncurses-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +source="http://repo.varnish-cache.org/source/varnish-$pkgver.tar.gz + varnishd.initd + varnishd.confd + varnishd.logrotate" + +_builddir="$srcdir"/varnish-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -Dm755 "$srcdir"/varnishd.initd "$pkgdir"/etc/init.d/varnishd \ + || return 1 + install -Dm644 "$srcdir"/varnishd.confd "$pkgdir"/etc/conf.d/varnishd \ + || return 1 + install -Dm644 "$srcdir"/varnishd.logrotate \ + "$pkgdir"/etc/logrotate.d/varnishd || return 1 +} + +libs() { + pkgdesc="Libraries for varnish" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir"/usr/lib/ +} + +md5sums="2d2f227da36a2a240c475304c717b8e3 varnish-2.1.5.tar.gz +a86ece4df03e2643d4d659fb841e1ea6 varnishd.initd +78bc033e92dc6153656408f44b1d1df8 varnishd.confd +a6cb8a43c9465699cf956dc992998225 varnishd.logrotate" |