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.10-r2.ebuild
Date: Mon, 01 Dec 2008 21:08:03
Message-Id: E1L7Fzt-00075u-N5@stork.gentoo.org
1 mrness 08/12/01 21:08:01
2
3 Modified: ChangeLog
4 Added: dansguardian-2.10-r2.ebuild
5 Log:
6 Fix broken build when compiled using uclibc++, thanks to Natanael Copa <natanael dot copa at gmail dot com> (#247547).
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.42 net-proxy/dansguardian/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.42&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.42&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/ChangeLog?r1=1.41&r2=1.42
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v
19 retrieving revision 1.41
20 retrieving revision 1.42
21 diff -u -r1.41 -r1.42
22 --- ChangeLog 13 Nov 2008 00:42:14 -0000 1.41
23 +++ ChangeLog 1 Dec 2008 21:08:01 -0000 1.42
24 @@ -1,6 +1,13 @@
25 # ChangeLog for net-proxy/dansguardian
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.41 2008/11/13 00:42:14 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.42 2008/12/01 21:08:01 mrness Exp $
29 +
30 +*dansguardian-2.10-r2 (01 Dec 2008)
31 +
32 + 01 Dec 2008; Alin Năstac <mrness@g.o>
33 + +files/dansguardian-2.10-uclibc++.patch, +dansguardian-2.10-r2.ebuild:
34 + Fix broken build when compiled using uclibc++, thanks to Natanael Copa
35 + <natanael dot copa at gmail dot com> (#247547).
36
37 13 Nov 2008; Brent Baude <ranger@g.o> dansguardian-2.10-r1.ebuild:
38 stable ppc64, bug 245680
39
40
41
42 1.1 net-proxy/dansguardian/dansguardian-2.10-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.10-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/dansguardian/dansguardian-2.10-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dansguardian-2.10-r2.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-r2.ebuild,v 1.1 2008/12/01 21:08:01 mrness Exp $
52
53 inherit eutils
54
55 DESCRIPTION="Web content filtering via proxy"
56 HOMEPAGE="http://dansguardian.org"
57 SRC_URI="http://dansguardian.org/downloads/2/Stable/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
62 IUSE="clamav kaspersky debug ntlm pcre"
63
64 RDEPEND="sys-libs/zlib
65 pcre? ( dev-libs/libpcre )
66 clamav? ( >=app-antivirus/clamav-0.93 )"
67 DEPEND="${RDEPEND}
68 dev-util/pkgconfig"
69
70 pkg_setup() {
71 if has_version "<${CATEGORY}/${PN}-2.9" ; then
72 ewarn "This version introduces brand new USE flags:"
73 ewarn " clamav kaspersky ntlm pcre"
74 echo
75
76 local f="${ROOT}/etc/dansguardian"
77 f=${f//\/\///}
78 if [ -d "${f}" ] ; then
79 eerror "The structure of ${f} has changed in this version!"
80 eerror "For avoiding confusion, you must either move or delete the old ${f},"
81 eerror "then continue with the upgrade:"
82 eerror " mv '${f}' '${f}.old'"
83 eerror " emerge --resume"
84 die "Obsolete config files detected"
85 fi
86 fi
87 }
88
89 src_unpack() {
90 unpack ${A}
91
92 epatch "${FILESDIR}"/${P}-uclibc++.patch
93 }
94
95 src_compile() {
96 local myconf="--with-logdir=/var/log/dansguardian
97 --with-piddir=/var/run
98 --docdir=/usr/share/doc/${PF}
99 --htmldir=/usr/share/doc/${PF}/html
100 $(use_enable pcre)
101 $(use_enable ntlm)
102 --enable-fancydm
103 --enable-email"
104 if use clamav; then
105 myconf="${myconf} --enable-clamd --enable-clamav
106 --with-proxyuser=clamav
107 --with-proxygroup=clamav"
108 fi
109 if use kaspersky; then
110 myconf="${myconf} --enable-kavd"
111 fi
112 if use debug; then
113 myconf="${myconf} --with-dgdebug=on"
114 fi
115
116 econf ${myconf} || die "configure failed"
117
118 emake OPTIMISE="${CFLAGS}" || die "emake failed"
119 }
120
121 src_install() {
122 make "DESTDIR=${D}" install || die "make install failed"
123
124 # Move html documents to html dir
125 mkdir "${D}"/usr/share/doc/${PF}/html \
126 && mv "${D}"/usr/share/doc/${PF}/*.html "${D}"/usr/share/doc/${PF}/html \
127 || die "no html docs found in docdir"
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
148 pkg_postinst() {
149 local runas="nobody:nobody"
150 if use clamav ; then
151 runas="clamav:clamav"
152 fi
153 einfo "The dansguardian daemon will run by default as ${runas}"
154
155 if [ -d "${ROOT}/var/log/dansguardian" ] ; then
156 chown -R ${runas} "${ROOT}/var/log/dansguardian"
157 chmod o-rwx "${ROOT}/var/log/dansguardian"
158 fi
159 }