# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=dansguardian pkgver=2.10.1.1 pkgrel=9 pkgdesc="Web content filter" url="http://dansguardian.org" arch="all" license="GPL" depends="logrotate" makedepends="zlib-dev pcre-dev pkgconfig libiconv-dev" install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-doc" source="http://dansguardian.org/downloads/2/Stable/$pkgname-$pkgver.tar.gz dansguardian.initd dansguardian.logrotate ftp-credential.patch dansguardian-2.10.1.1-gcc44.patch " build() { cd "$srcdir/$pkgname-$pkgver" patch -p1 -i ../ftp-credential.patch || return 1 patch -p1 -i ../dansguardian-2.10.1.1-gcc44.patch || return 1 # do not block "microsoft...clustimg=..." and similar sed -e 's:\.\*:.{1,10}:g' configs/lists/bannedregexpurllist ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-proxyuser=dansguar \ --with-proxygroup=dansguar \ --with-logdir=/var/log/dansguardian \ --with-piddir=/var/run/ \ --enable-ntlm make || return 1 make DESTDIR="$pkgdir" install install -D -m 755 ../dansguardian.initd "$pkgdir"/etc/init.d/dansguardian install -D -m 644 ../dansguardian.logrotate "$pkgdir"/etc/logrotate.d/dansguardian } md5sums="0987a1c9bfbdf398118386f10279611a dansguardian-2.10.1.1.tar.gz feaa8582f8c0251a4bff76b5e05c9369 dansguardian.initd 85b6de01c9508e8ceff5ebb55752f8d3 dansguardian.logrotate 475c46026e8553181d293d5a4feaf6d9 ftp-credential.patch 2c78b5c7346b8fcb3dee352e0c53cb5a dansguardian-2.10.1.1-gcc44.patch"