summaryrefslogtreecommitdiff
path: root/extra/dansguardian/PKGBUILD
blob: 6d943cc2a38a1e87afc83de0ad077f1c4359ad67 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# $Id: PKGBUILD 70467 2010-02-26 21:24:54Z dgriffiths $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=dansguardian
pkgver=2.10.1.1
pkgrel=2
pkgdesc="Squid plugin for web content filtering."
url="http://dansguardian.org"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('squid' 'pcre' 'zlib')
install=${pkgname}.install
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
}

backup=(etc/dansguardian/dansguardian.conf 
etc/dansguardian/dansguardianf1.conf
etc/dansguardian/downloadmanagers/default.conf
etc/dansguardian/downloadmanagers/fancy.conf
etc/dansguardian/authplugins/proxy-digest.conf
etc/dansguardian/authplugins/proxy-basic.conf
etc/dansguardian/authplugins/ident.conf
etc/dansguardian/authplugins/ip.conf
etc/dansguardian/lists/weightedphraselist 
etc/dansguardian/lists/contentregexplist
etc/dansguardian/lists/exceptionfileurllist
etc/dansguardian/lists/exceptionextensionlist
etc/dansguardian/lists/bannedextensionlist
etc/dansguardian/lists/exceptionmimetypelist
etc/dansguardian/lists/blacklists/ads/urls
etc/dansguardian/lists/blacklists/ads/domains
etc/dansguardian/lists/exceptionregexpurllist
etc/dansguardian/lists/authplugins/ipgroups
etc/dansguardian/lists/bannedregexpheaderlist
etc/dansguardian/lists/phraselists/rta/banned
etc/dansguardian/lists/phraselists/sport/weighted
etc/dansguardian/lists/phraselists/proxies/weighted
etc/dansguardian/lists/phraselists/safelabel/banned
etc/dansguardian/lists/phraselists/peer2peer/weighted
etc/dansguardian/lists/phraselists/drugadvocacy/weighted
etc/dansguardian/lists/phraselists/googlesearches/banned
etc/dansguardian/lists/phraselists/conspiracy/weighted
etc/dansguardian/lists/phraselists/secretsocieties/weighted
etc/dansguardian/lists/phraselists/idtheft/weighted
etc/dansguardian/lists/phraselists/illegaldrugs/banned
etc/dansguardian/lists/phraselists/illegaldrugs/weighted_portuguese
etc/dansguardian/lists/phraselists/illegaldrugs/weighted
etc/dansguardian/lists/phraselists/violence/weighted_portuguese
etc/dansguardian/lists/phraselists/violence/weighted
etc/dansguardian/lists/phraselists/domainsforsale/weighted
etc/dansguardian/lists/phraselists/music/weighted
etc/dansguardian/lists/phraselists/upstreamfilter/weighted
etc/dansguardian/lists/phraselists/games/weighted
etc/dansguardian/lists/phraselists/weapons/weighted_portuguese
etc/dansguardian/lists/phraselists/weapons/weighted
etc/dansguardian/lists/phraselists/legaldrugs/weighted
etc/dansguardian/lists/phraselists/gore/weighted_portuguese
etc/dansguardian/lists/phraselists/gore/weighted
etc/dansguardian/lists/phraselists/warezhacking/weighted
etc/dansguardian/lists/phraselists/pornography/weighted_chinese
etc/dansguardian/lists/phraselists/pornography/weighted_malay
etc/dansguardian/lists/phraselists/pornography/weighted_german
etc/dansguardian/lists/phraselists/pornography/weighted_dutch
etc/dansguardian/lists/phraselists/pornography/banned_portuguese
etc/dansguardian/lists/phraselists/pornography/weighted_french
etc/dansguardian/lists/phraselists/pornography/weighted_polish
etc/dansguardian/lists/phraselists/pornography/banned
etc/dansguardian/lists/phraselists/pornography/weighted_danish
etc/dansguardian/lists/phraselists/pornography/weighted_japanese
etc/dansguardian/lists/phraselists/pornography/weighted_portuguese
etc/dansguardian/lists/phraselists/pornography/weighted_russian
etc/dansguardian/lists/phraselists/pornography/weighted_italian
etc/dansguardian/lists/phraselists/pornography/weighted_swedish
etc/dansguardian/lists/phraselists/pornography/weighted
etc/dansguardian/lists/phraselists/pornography/weighted_norwegian
etc/dansguardian/lists/phraselists/pornography/weighted_spanish
etc/dansguardian/lists/phraselists/personals/weighted_portuguese
etc/dansguardian/lists/phraselists/personals/weighted
etc/dansguardian/lists/phraselists/nudism/weighted
etc/dansguardian/lists/phraselists/malware/weighted
etc/dansguardian/lists/phraselists/goodphrases/weighted_general_polish
etc/dansguardian/lists/phraselists/goodphrases/weighted_general_swedish
etc/dansguardian/lists/phraselists/goodphrases/exception_email
etc/dansguardian/lists/phraselists/goodphrases/exception
etc/dansguardian/lists/phraselists/goodphrases/weighted_general
etc/dansguardian/lists/phraselists/goodphrases/weighted_general_danish
etc/dansguardian/lists/phraselists/goodphrases/weighted_general_malay
etc/dansguardian/lists/phraselists/goodphrases/weighted_general_dutch
etc/dansguardian/lists/phraselists/goodphrases/weighted_general_portuguese
etc/dansguardian/lists/phraselists/goodphrases/weighted_news
etc/dansguardian/lists/phraselists/translation/weighted
etc/dansguardian/lists/phraselists/chat/weighted_italian
etc/dansguardian/lists/phraselists/chat/weighted
etc/dansguardian/lists/phraselists/news/weighted
etc/dansguardian/lists/phraselists/badwords/weighted_german
etc/dansguardian/lists/phraselists/badwords/weighted_dutch
etc/dansguardian/lists/phraselists/badwords/weighted_french
etc/dansguardian/lists/phraselists/badwords/weighted_portuguese
etc/dansguardian/lists/phraselists/badwords/weighted_spanish
etc/dansguardian/lists/phraselists/webmail/weighted
etc/dansguardian/lists/phraselists/travel/weighted
etc/dansguardian/lists/phraselists/gambling/banned_portuguese
etc/dansguardian/lists/phraselists/gambling/banned
etc/dansguardian/lists/phraselists/gambling/weighted_portuguese
etc/dansguardian/lists/phraselists/gambling/weighted
etc/dansguardian/lists/phraselists/forums/weighted
etc/dansguardian/lists/phraselists/intolerance/banned_portuguese
etc/dansguardian/lists/phraselists/intolerance/weighted_portuguese
etc/dansguardian/lists/phraselists/intolerance/weighted
etc/dansguardian/lists/logsitelist
etc/dansguardian/lists/logregexpurllist
etc/dansguardian/lists/greysitelist
etc/dansguardian/lists/filtergroupslist
etc/dansguardian/lists/downloadmanagers/managedmimetypelist
etc/dansguardian/lists/downloadmanagers/managedextensionlist
etc/dansguardian/lists/exceptionfilesitelist
etc/dansguardian/lists/bannedmimetypelist
etc/dansguardian/lists/pics
etc/dansguardian/lists/exceptionurllist
etc/dansguardian/lists/logurllist
etc/dansguardian/lists/exceptionphraselist
etc/dansguardian/lists/bannedurllist
etc/dansguardian/lists/headerregexplist
etc/dansguardian/lists/bannediplist
etc/dansguardian/lists/exceptionsitelist
etc/dansguardian/lists/bannedphraselist
etc/dansguardian/lists/exceptioniplist
etc/dansguardian/lists/bannedregexpurllist
etc/dansguardian/lists/bannedsitelist
etc/dansguardian/lists/urlregexplist
etc/dansguardian/lists/greyurllist)

# vim: ts=2 sw=2 et ft=sh