diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-06 07:40:46 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-06 07:42:24 +0000 |
commit | 36712432276b02bb18c815cd02cb2173d7a829f3 (patch) | |
tree | 1a9dc5dd16dbee8b30def24340272ecef6ddb68b /main/dansguardian/APKBUILD | |
parent | d9ba721d7fff5e17a2182690e272dcee8dd1e2f8 (diff) | |
download | aports-36712432276b02bb18c815cd02cb2173d7a829f3.tar.bz2 aports-36712432276b02bb18c815cd02cb2173d7a829f3.tar.xz |
main/dansguardian: upgrade to 2.12.0.3
ref #1629
Diffstat (limited to 'main/dansguardian/APKBUILD')
-rw-r--r-- | main/dansguardian/APKBUILD | 61 |
1 files changed, 42 insertions, 19 deletions
diff --git a/main/dansguardian/APKBUILD b/main/dansguardian/APKBUILD index 4b3577d2a9..1d51dcab92 100644 --- a/main/dansguardian/APKBUILD +++ b/main/dansguardian/APKBUILD @@ -1,32 +1,40 @@ # Contributor: Michael Mason <ms13sp@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=dansguardian -pkgver=2.10.1.1 -pkgrel=9 +pkgver=2.12.0.3 +pkgrel=0 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" +install="$pkgname.pre-install" subpackages="$pkgname-doc" -source="http://dansguardian.org/downloads/2/Stable/$pkgname-$pkgver.tar.gz +pkgusers="dansguar" +pkggroups="dansguar" +source="http://downloads.sourceforge.net/project/dansguardian/dansguardian-$pkgver.tar.bz2 dansguardian.initd dansguardian.logrotate ftp-credential.patch - dansguardian-2.10.1.1-gcc44.patch - gcc4.6.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 - patch -p1 -i ../gcc4.6.patch || return 1 + dansguardian-2.10.1.1-pcre830.patch + " +_builddir="$srcdir"/dansguardian-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done # do not block "microsoft...clustimg=..." and similar - sed -e 's:\.\*:.{1,10}:g' configs/lists/bannedregexpurllist + sed -i -e 's:\.\*:.{1,10}:g' configs/lists/bannedregexpurllist + +} +build() { + cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ @@ -37,15 +45,30 @@ build() { --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 +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -D -m 755 "$srcdir"/dansguardian.initd \ + "$pkgdir"/etc/init.d/dansguardian || return 1 + install -D -m 644 "$srcdir"/dansguardian.logrotate \ + "$pkgdir"/etc/logrotate.d/dansguardian || return 1 + install -d -o dansguar -g dansguar "$pkgdir"/var/log/dansguardian } -md5sums="0987a1c9bfbdf398118386f10279611a dansguardian-2.10.1.1.tar.gz +md5sums="2a88d0392cd28eaec02b7ee727b2e253 dansguardian-2.12.0.3.tar.bz2 feaa8582f8c0251a4bff76b5e05c9369 dansguardian.initd 85b6de01c9508e8ceff5ebb55752f8d3 dansguardian.logrotate 475c46026e8553181d293d5a4feaf6d9 ftp-credential.patch -2c78b5c7346b8fcb3dee352e0c53cb5a dansguardian-2.10.1.1-gcc44.patch -858ea94750a9b32e7715f3da8ef4ae3c gcc4.6.patch" +594ca48a3753684151c2012ee371d15b dansguardian-2.10.1.1-pcre830.patch" +sha256sums="c74e9a32b97f9a9a056fced3da23fe48fca2bc6aa9af670afe9a53dc819414f5 dansguardian-2.12.0.3.tar.bz2 +8f4cc18fe5b9f6db1148dbb24c8fa9a3e7832fba63ba1b87a0ea92b1ab093171 dansguardian.initd +d105f5084dcd6ef87ec7bc7c1bc94cb875cdc9c0405bba5f6e2585c300e43b0c dansguardian.logrotate +1eba74871d5ffbb574d49eb0857cb9d43b292c1a27578736e0e883d58b2a7bb4 ftp-credential.patch +8686b5d845642ff74f4706559c770f027de38dd12982dd0a6573d946bb85aa87 dansguardian-2.10.1.1-pcre830.patch" +sha512sums="37155ef4f1a6dd6bdd87f79c7199b77de49746e4bff0631c239a569c21bf26240cbc9eae5a2436653bfc3d170a664710af9d80c4cfac3082a0620caeaac6740b dansguardian-2.12.0.3.tar.bz2 +d35100d255014e04f84d174e593a5a3a61687a3416e23c1112c201b2adeeb98ed5456da250693054e42b9b6bb5288b99b7498832be014005202199ac89dafb34 dansguardian.initd +cc23178755365a3cceff08d9eb5c26dd440648b22af15377a30d2032f71cf0bd8ed3ab59c8a671f2cc3f4cdcaebff5d6c9e412f2271b00ac6ce1be5178a32087 dansguardian.logrotate +07b62441363534f39a1400389c702bbd5a53317526a18b3fc929f00bd854706c56b891d7fecb4151e200448f8ba012729e712e9cfdbbd683a3d2634fdc095bd1 ftp-credential.patch +d3d9af038ff5a91d1f9dc6cf4175b0da2a791386ca624f4a639338ed189a274eba720e9771986e7ded517e2623185e8b61ef3689414197c47a6ae3220be99d57 dansguardian-2.10.1.1-pcre830.patch" |