1 |
mrness 08/10/09 20:07:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dansguardian-2.10.ebuild |
5 |
Removed: dansguardian-2.9.9.4_beta.ebuild |
6 |
Log: |
7 |
Version bump (#240686). |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.37 net-proxy/dansguardian/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.37&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.37&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?r1=1.36&r2=1.37 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v |
20 |
retrieving revision 1.36 |
21 |
retrieving revision 1.37 |
22 |
diff -u -r1.36 -r1.37 |
23 |
--- ChangeLog 23 Aug 2008 02:52:42 -0000 1.36 |
24 |
+++ ChangeLog 9 Oct 2008 20:07:27 -0000 1.37 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-proxy/dansguardian |
27 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.36 2008/08/23 02:52:42 cardoe Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.37 2008/10/09 20:07:27 mrness Exp $ |
30 |
+ |
31 |
+*dansguardian-2.10 (09 Oct 2008) |
32 |
+ |
33 |
+ 09 Oct 2008; Alin Năstac <mrness@g.o> |
34 |
+ -files/dansguardian-2.9.9.4-gentoo.patch, |
35 |
+ -dansguardian-2.9.9.4_beta.ebuild, +dansguardian-2.10.ebuild: |
36 |
+ Version bump (#240686). |
37 |
|
38 |
23 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml: |
39 |
add GLEP 56 USE flag desc from use.local.desc |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-proxy/dansguardian/dansguardian-2.10.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.10.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.10.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: dansguardian-2.10.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/dansguardian-2.10.ebuild,v 1.1 2008/10/09 20:07:27 mrness Exp $ |
53 |
|
54 |
DESCRIPTION="Web content filtering via proxy" |
55 |
HOMEPAGE="http://dansguardian.org" |
56 |
SRC_URI="http://dansguardian.org/downloads/2/Stable/${P}.tar.gz" |
57 |
|
58 |
LICENSE="GPL-2" |
59 |
SLOT="0" |
60 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
61 |
IUSE="clamav kaspersky debug ntlm pcre" |
62 |
|
63 |
RDEPEND="sys-libs/zlib |
64 |
pcre? ( dev-libs/libpcre ) |
65 |
clamav? ( >=app-antivirus/clamav-0.93 )" |
66 |
DEPEND="${RDEPEND} |
67 |
dev-util/pkgconfig" |
68 |
|
69 |
pkg_setup() { |
70 |
if has_version "<${CATEGORY}/${PN}-2.9" ; then |
71 |
ewarn "This version introduces brand new USE flags:" |
72 |
ewarn " clamav kaspersky ntlm pcre" |
73 |
echo |
74 |
|
75 |
local f="${ROOT}/etc/dansguardian" |
76 |
f=${f//\/\///} |
77 |
if [ -d "${f}" ] ; then |
78 |
eerror "The structure of ${f} has changed in this version!" |
79 |
eerror "For avoiding confusion, you must either move or delete the old ${f}," |
80 |
eerror "then continue with the upgrade:" |
81 |
eerror " mv '${f}' '${f}.old'" |
82 |
eerror " emerge --resume" |
83 |
die "Obsolete config files detected" |
84 |
fi |
85 |
fi |
86 |
} |
87 |
|
88 |
src_compile() { |
89 |
local myconf="--with-logdir=/var/log/dansguardian |
90 |
--with-piddir=/var/run |
91 |
$(use_enable pcre) |
92 |
$(use_enable ntlm) |
93 |
--enable-fancydm |
94 |
--enable-email" |
95 |
if use clamav; then |
96 |
myconf="${myconf} --enable-clamd --enable-clamav |
97 |
--with-proxyuser=clamav |
98 |
--with-proxygroup=clamav" |
99 |
fi |
100 |
if use kaspersky; then |
101 |
myconf="${myconf} --enable-kavd" |
102 |
fi |
103 |
if use debug; then |
104 |
myconf="${myconf} --with-dgdebug=on" |
105 |
fi |
106 |
|
107 |
econf ${myconf} || die "configure failed" |
108 |
|
109 |
emake OPTIMISE="${CFLAGS}" || die "emake failed" |
110 |
} |
111 |
|
112 |
src_install() { |
113 |
make "DESTDIR=${D}" install || die "make install failed" |
114 |
|
115 |
# Copying init script |
116 |
newinitd "${FILESDIR}/dansguardian.init" dansguardian |
117 |
|
118 |
if use clamav; then |
119 |
sed -r -i -e 's/[ \t]+use dns/& clamd/' "${D}/etc/init.d/dansguardian" |
120 |
sed -r -i -e 's/^#( *contentscanner *=.*clamdscan[.]conf.*)/\1/' "${D}/etc/dansguardian/dansguardian.conf" |
121 |
sed -r -i -e 's/^#( *clamdudsfile *=.*)/\1/' "${D}/etc/dansguardian/contentscanners/clamdscan.conf" |
122 |
elif use kaspersky; then |
123 |
sed -r -i -e 's/^#( *contentscanner *=.*kavdscan[.]conf.*)/\1/' "${D}/etc/dansguardian/dansguardian.conf" |
124 |
fi |
125 |
|
126 |
# Copying logrotation file |
127 |
insinto /etc/logrotate.d |
128 |
newins "${FILESDIR}/dansguardian.logrotate" dansguardian |
129 |
|
130 |
keepdir /var/log/dansguardian |
131 |
fperms o-rwx /var/log/dansguardian |
132 |
} |
133 |
|
134 |
pkg_postinst() { |
135 |
local runas="nobody:nobody" |
136 |
if use clamav ; then |
137 |
runas="clamav:clamav" |
138 |
fi |
139 |
einfo "The dansguardian daemon will run by default as ${runas}" |
140 |
|
141 |
if [ -d "${ROOT}/var/log/dansguardian" ] ; then |
142 |
chown -R ${runas} "${ROOT}/var/log/dansguardian" |
143 |
chmod o-rwx "${ROOT}/var/log/dansguardian" |
144 |
fi |
145 |
} |