1 |
mrness 07/09/09 19:59:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dansguardian-2.9.9.1_beta.ebuild |
5 |
Removed: dansguardian-2.9.8.5_beta.ebuild |
6 |
Log: |
7 |
Version bump (#191870) |
8 |
(Portage version: 2.1.2.12) |
9 |
|
10 |
Revision Changes Path |
11 |
1.31 net-proxy/dansguardian/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.31&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.31&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?r1=1.30&r2=1.31 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v |
20 |
retrieving revision 1.30 |
21 |
retrieving revision 1.31 |
22 |
diff -u -r1.30 -r1.31 |
23 |
--- ChangeLog 18 Aug 2007 14:34:42 -0000 1.30 |
24 |
+++ ChangeLog 9 Sep 2007 19:58:59 -0000 1.31 |
25 |
@@ -1,6 +1,17 @@ |
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.30 2007/08/18 14:34:42 mrness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.31 2007/09/09 19:58:59 mrness Exp $ |
30 |
+ |
31 |
+*dansguardian-2.9.9.1_beta (09 Sep 2007) |
32 |
+ |
33 |
+ 09 Sep 2007; Alin Năstac <mrness@g.o> |
34 |
+ -files/dansguardian-2.9.8.5-gentoo.patch, |
35 |
+ -files/dansguardian-2.9.8.5-uclibc++.patch, |
36 |
+ +files/dansguardian-2.9.9.1-gentoo.patch, |
37 |
+ +files/dansguardian-2.9.9.1-no-default-lists.patch, |
38 |
+ +files/dansguardian-2.9.9.1-uclibc++.patch, |
39 |
+ -dansguardian-2.9.8.5_beta.ebuild, +dansguardian-2.9.9.1_beta.ebuild: |
40 |
+ Version bump (#191870). |
41 |
|
42 |
*dansguardian-2.9.9.0_beta (18 Aug 2007) |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.1 net-proxy/dansguardian/dansguardian-2.9.9.1_beta.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.9.9.1_beta.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.9.9.1_beta.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: dansguardian-2.9.9.1_beta.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2007 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.1_beta.ebuild,v 1.1 2007/09/09 19:58:59 mrness Exp $ |
57 |
|
58 |
inherit eutils autotools |
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 |
epatch "${FILESDIR}/${P%_beta}-uclibc++.patch" |
101 |
epatch "${FILESDIR}/${P%_beta}-no-default-lists.patch" |
102 |
|
103 |
cd "${S}" |
104 |
eautoreconf |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
local myconf="--with-logdir=/var/log/dansguardian |
109 |
--with-piddir=/var/run |
110 |
$(use_enable pcre) |
111 |
$(use_enable ntlm) |
112 |
--enable-fancydm |
113 |
--enable-email" |
114 |
if use clamav; then |
115 |
myconf="${myconf} --enable-clamd --enable-clamav |
116 |
--with-proxyuser=clamav |
117 |
--with-proxygroup=clamav" |
118 |
fi |
119 |
if use kaspersky; then |
120 |
myconf="${myconf} --enable-kavd" |
121 |
fi |
122 |
if use debug; then |
123 |
myconf="${myconf} --with-dgdebug=on" |
124 |
fi |
125 |
|
126 |
econf ${myconf} || die "configure failed" |
127 |
|
128 |
emake OPTIMISE="${CFLAGS}" || die "emake failed" |
129 |
} |
130 |
|
131 |
src_install() { |
132 |
make "DESTDIR=${D}" install || die "make install failed" |
133 |
|
134 |
# Copying init script |
135 |
newinitd "${FILESDIR}/dansguardian.init" dansguardian |
136 |
|
137 |
if use clamav; then |
138 |
sed -r -i -e 's/[ \t]+use dns/& clamd/' "${D}/etc/init.d/dansguardian" |
139 |
sed -r -i -e 's/^#( *contentscanner *=.*clamdscan[.]conf.*)/\1/' "${D}/etc/dansguardian/dansguardian.conf" |
140 |
sed -r -i -e 's/^#( *clamdudsfile *=.*)/\1/' "${D}/etc/dansguardian/contentscanners/clamdscan.conf" |
141 |
elif use kaspersky; then |
142 |
sed -r -i -e 's/^#( *contentscanner *=.*kavdscan[.]conf.*)/\1/' "${D}/etc/dansguardian/dansguardian.conf" |
143 |
fi |
144 |
|
145 |
# Copying logrotation file |
146 |
insinto /etc/logrotate.d |
147 |
newins "${FILESDIR}/dansguardian.logrotate" dansguardian |
148 |
|
149 |
keepdir /var/log/dansguardian |
150 |
fperms o-rwx /var/log/dansguardian |
151 |
|
152 |
# TODO : see if no-default-lists.patch and these linea are still needed in next version |
153 |
local f |
154 |
touch "${T}"/emptyfile |
155 |
insinto /etc/dansguardian/lists |
156 |
for f in exceptionfileurllist bannedregexpheaderlist logsitelist logurllist headerregexplist logregexpurllist; do |
157 |
if [ -f "${f}" ] ; then |
158 |
einfo "${f} already exists" |
159 |
else |
160 |
newins "${T}"/emptyfile ${f} |
161 |
fi |
162 |
done |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
local runas="nobody:nobody" |
167 |
if use clamav ; then |
168 |
runas="clamav:clamav" |
169 |
fi |
170 |
einfo "The dansguardian daemon will run by default as ${runas}" |
171 |
|
172 |
if [ -d "${ROOT}/var/log/dansguardian" ] ; then |
173 |
chown -R ${runas} "${ROOT}/var/log/dansguardian" |
174 |
chmod o-rwx "${ROOT}/var/log/dansguardian" |
175 |
fi |
176 |
} |
177 |
|
178 |
|
179 |
|
180 |
-- |
181 |
gentoo-commits@g.o mailing list |