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