Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/dansguardian: ChangeLog dansguardian-2.9.9.3_beta.ebuild dansguardian-2.9.9.1_beta.ebuild
Date: Sun, 20 Apr 2008 02:14:59
Message-Id: E1JnP4x-0007jw-49@stork.gentoo.org
1 mrness 08/04/20 02:14:55
2
3 Modified: ChangeLog
4 Added: dansguardian-2.9.9.3_beta.ebuild
5 Removed: dansguardian-2.9.9.1_beta.ebuild
6 Log:
7 Version bump (#212366).
8 (Portage version: 2.1.4.4)
9
10 Revision Changes Path
11 1.33 net-proxy/dansguardian/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 30 Dec 2007 11:35:14 -0000 1.32
24 +++ ChangeLog 20 Apr 2008 02:14:54 -0000 1.33
25 @@ -1,6 +1,16 @@
26 # ChangeLog for net-proxy/dansguardian
27 -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.32 2007/12/30 11:35:14 mrness Exp $
29 +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.33 2008/04/20 02:14:54 mrness Exp $
31 +
32 +*dansguardian-2.9.9.3_beta (20 Apr 2008)
33 +
34 + 20 Apr 2008; Alin Năstac <mrness@g.o>
35 + -files/dansguardian-2.9.9.1-gentoo.patch,
36 + -files/dansguardian-2.9.9.1-no-default-lists.patch,
37 + -files/dansguardian-2.9.9.1-uclibc++.patch,
38 + +files/dansguardian-2.9.9.3-gentoo.patch,
39 + -dansguardian-2.9.9.1_beta.ebuild, +dansguardian-2.9.9.3_beta.ebuild:
40 + Version bump (#212366).
41
42 *dansguardian-2.9.9.2_beta (30 Dec 2007)
43
44
45
46
47 1.1 net-proxy/dansguardian/dansguardian-2.9.9.3_beta.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.9.9.3_beta.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.9.9.3_beta.ebuild?rev=1.1&content-type=text/plain
51
52 Index: dansguardian-2.9.9.3_beta.ebuild
53 ===================================================================
54 # Copyright 1999-2008 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/dansguardian-2.9.9.3_beta.ebuild,v 1.1 2008/04/20 02:14:54 mrness Exp $
57
58 inherit eutils
59
60 MY_P=${P/_beta/}
61
62 DESCRIPTION="Web content filtering via proxy"
63 HOMEPAGE="http://dansguardian.org"
64 SRC_URI="http://dansguardian.org/downloads/2/Beta/${MY_P}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
69 IUSE="clamav kaspersky debug ntlm pcre"
70
71 DEPEND="pcre? ( >=dev-libs/libpcre-6.0 )
72 clamav? ( app-antivirus/clamav )"
73 RDEPEND="${DEPEND}"
74
75 S="${WORKDIR}/${MY_P}"
76
77 pkg_setup() {
78 if has_version "<${CATEGORY}/${PN}-2.9" ; then
79 ewarn "This version introduces brand new USE flags:"
80 ewarn " clamav kaspersky ntlm pcre"
81 echo
82
83 local f="${ROOT}/etc/dansguardian"
84 f=${f//\/\///}
85 if [ -d "${f}" ] ; then
86 eerror "The structure of ${f} has changed in this version!"
87 eerror "For avoiding confusion, you must either move or delete the old ${f},"
88 eerror "then continue with the upgrade:"
89 eerror " mv '${f}' '${f}.old'"
90 eerror " emerge --resume"
91 die "Obsolete config files detected"
92 fi
93 fi
94 }
95
96 src_unpack() {
97 unpack ${A}
98
99 epatch "${FILESDIR}/${P%_beta}-gentoo.patch"
100 }
101
102 src_compile() {
103 local myconf="--with-logdir=/var/log/dansguardian
104 --with-piddir=/var/run
105 $(use_enable pcre)
106 $(use_enable ntlm)
107 --enable-fancydm
108 --enable-email"
109 if use clamav; then
110 myconf="${myconf} --enable-clamd --enable-clamav
111 --with-proxyuser=clamav
112 --with-proxygroup=clamav"
113 fi
114 if use kaspersky; then
115 myconf="${myconf} --enable-kavd"
116 fi
117 if use debug; then
118 myconf="${myconf} --with-dgdebug=on"
119 fi
120
121 econf ${myconf} || die "configure failed"
122
123 emake OPTIMISE="${CFLAGS}" || die "emake failed"
124 }
125
126 src_install() {
127 make "DESTDIR=${D}" install || die "make install failed"
128
129 # Copying init script
130 newinitd "${FILESDIR}/dansguardian.init" dansguardian
131
132 if use clamav; then
133 sed -r -i -e 's/[ \t]+use dns/& clamd/' "${D}/etc/init.d/dansguardian"
134 sed -r -i -e 's/^#( *contentscanner *=.*clamdscan[.]conf.*)/\1/' "${D}/etc/dansguardian/dansguardian.conf"
135 sed -r -i -e 's/^#( *clamdudsfile *=.*)/\1/' "${D}/etc/dansguardian/contentscanners/clamdscan.conf"
136 elif use kaspersky; then
137 sed -r -i -e 's/^#( *contentscanner *=.*kavdscan[.]conf.*)/\1/' "${D}/etc/dansguardian/dansguardian.conf"
138 fi
139
140 # Copying logrotation file
141 insinto /etc/logrotate.d
142 newins "${FILESDIR}/dansguardian.logrotate" dansguardian
143
144 keepdir /var/log/dansguardian
145 fperms o-rwx /var/log/dansguardian
146
147 # TODO : see if no-default-lists.patch and these linea are still needed in next version
148 local f
149 touch "${T}"/emptyfile
150 insinto /etc/dansguardian/lists
151 for f in exceptionfileurllist bannedregexpheaderlist logsitelist logurllist headerregexplist logregexpurllist; do
152 if [ -f "${f}" ] ; then
153 einfo "${f} already exists"
154 else
155 newins "${T}"/emptyfile ${f}
156 fi
157 done
158 }
159
160 pkg_postinst() {
161 local runas="nobody:nobody"
162 if use clamav ; then
163 runas="clamav:clamav"
164 fi
165 einfo "The dansguardian daemon will run by default as ${runas}"
166
167 if [ -d "${ROOT}/var/log/dansguardian" ] ; then
168 chown -R ${runas} "${ROOT}/var/log/dansguardian"
169 chmod o-rwx "${ROOT}/var/log/dansguardian"
170 fi
171 }
172
173
174
175 --
176 gentoo-commits@l.g.o mailing list