# Maintainer: Natanael Copa pkgname=pound pkgver=2.6 pkgrel=3 pkgdesc="A reverse proxy, load balancer, and SSL wrapper" url="http://www.apsis.ch/pound/index_html" arch="all" license="GPL" depends= makedepends="pcre-dev openssl-dev" subpackages="$pkgname-doc" source="http://www.apsis.ch/$pkgname/Pound-$pkgver.tgz pound.cfg $pkgname.initd" _builddir="$srcdir"/Pound-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/pound \ --with-owner=root \ --with-group=root \ || return 1 make || return 1 } package() { cd "$_builddir" install -d "$pkgdir"/usr/sbin make DESTDIR="$pkgdir" install || return 1 install -Dm755 "$srcdir"/pound.initd "$pkgdir"/etc/init.d/pound install -Dm644 "$srcdir"/pound.cfg "$pkgdir"/etc/pound.cfg } md5sums="8c913b527332694943c4c67c8f152071 Pound-2.6.tgz 736b12a47acbb7fc2802ed7f51e959d0 pound.cfg 074fc58c89bb70e8fcd767ee70ebd0f0 pound.initd"