PKGBUILDs/extra/dansguardian/PKGBUILD
2009-10-09 21:23:22 -05:00

31 lines
1.1 KiB
Bash

# $Id: PKGBUILD 51988 2009-09-13 23:08:05Z kevin $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=dansguardian
pkgver=2.10.1.1
pkgrel=1
pkgdesc="Squid plugin for web content filtering."
url="http://dansguardian.org"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('squid' 'pcre' 'zlib')
install=$pkgname.install
backup=(etc/dansguardian/dansguardian.conf etc/dansguardian/dansguardianf1.conf)
source=(http://dansguardian.org/downloads/2/Stable/${pkgname}-${pkgver}.tar.gz
dansguardian dg2.10.1.1-missing.stdio.patch)
md5sums=('0987a1c9bfbdf398118386f10279611a' 'a65a2cb6309670ad8978f1544907d290'
'3444718c00cc17337cba711ceaa1c0e5')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np0 -i ${srcdir}/dg2.10.1.1-missing.stdio.patch
./configure --prefix="/usr" --with-proxyuser=proxy --with-proxygroup=proxy \
--sysconfdir=/etc --localstatedir=/var --enable-email
make || return 1
make DESTDIR=${pkgdir} install
install -D data/scripts/dansguardian ${pkgdir}/etc/logrotate.d/dansguardian
install -D -m755 ${srcdir}/dansguardian ${pkgdir}/etc/rc.d/dansguardian
}
# vim: ts=2 sw=2 et ft=sh