aboutsummaryrefslogtreecommitdiffstats
path: root/main/dansguardian/APKBUILD
blob: dc6dee7cdce5d939bb05f4301f4666a8a0b0665c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dansguardian
pkgver=2.10.1.1
pkgrel=2
pkgdesc="Web content filter"
url="http://dansguardian.org"
license="GPL"
depends="logrotate"
makedepends="zlib-dev uclibc++-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
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	patch -p1 -i ../ftp-credential.patch || return 1
	export CXX=${CXX_UC:-g++-uc}

	./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
0c04f74cd5db9fc7a8e80b407ec34214  dansguardian.initd
85b6de01c9508e8ceff5ebb55752f8d3  dansguardian.logrotate
475c46026e8553181d293d5a4feaf6d9  ftp-credential.patch"