# $Id: PKGBUILD 44216 2011-04-04 13:31:34Z lfleischer $ # Maintainer: Lukas Fleischer # Contributor: Andrea Zucchelli pkgname=tinyproxy pkgver=1.8.2 pkgrel=3 pkgdesc='A light-weight HTTP proxy daemon for POSIX operating systems.' arch=('i686' 'x86_64') url='https://banu.com/tinyproxy/' license=('GPL') makedepends=('asciidoc') backup=('etc/tinyproxy/tinyproxy.conf') source=("https://banu.com/pub/${pkgname}/1.8/${pkgname}-${pkgver}.tar.bz2" 'tinyproxy') md5sums=('edc8502193cfed4974d6a770da173755' '464b5d60b1c9cbae26367fe2337c2d77') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc/tinyproxy --localstatedir=/var make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -Dm0755 "${srcdir}/tinyproxy" "${pkgdir}/etc/rc.d/tinyproxy" install -dm0755 -o nobody -g nobody "${pkgdir}/var/log/${pkgname}" # Provide sane defaults sed -i '/^#Listen/a\Listen 127.0.0.1' "${pkgdir}/etc/tinyproxy/tinyproxy.conf" }