Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/dansguardian: dansguardian-2.12.0.3-r1.ebuild ChangeLog
Date: Mon, 01 Apr 2013 10:28:34
Message-Id: 20130401102830.BDB932171D@flycatcher.gentoo.org
1 tomwij 13/04/01 10:28:30
2
3 Modified: ChangeLog
4 Added: dansguardian-2.12.0.3-r1.ebuild
5 Log:
6 Revision bump. Package was forcing debug on everyone, resolved by only passing debug parameter to econf when USE="debug". Reported by Tomas Mozen. Fixes bug #463978.
7
8 (Portage version: 2.1.11.59/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.55 net-proxy/dansguardian/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.55&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/dansguardian/ChangeLog?rev=1.55&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/dansguardian/ChangeLog?r1=1.54&r2=1.55
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v
20 retrieving revision 1.54
21 retrieving revision 1.55
22 diff -u -r1.54 -r1.55
23 --- ChangeLog 4 Mar 2013 12:13:11 -0000 1.54
24 +++ ChangeLog 1 Apr 2013 10:28:30 -0000 1.55
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-proxy/dansguardian
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.54 2013/03/04 12:13:11 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian/ChangeLog,v 1.55 2013/04/01 10:28:30 tomwij Exp $
30 +
31 +*dansguardian-2.12.0.3-r1 (01 Apr 2013)
32 +
33 + 01 Apr 2013; Tom Wijsman <TomWij@g.o> +dansguardian-2.12.0.3-r1.ebuild:
34 + Revision bump. Package was forcing debug on everyone, resolved by only passing
35 + debug parameter to econf when USE="debug". Reported by Tomas Mozen. Fixes bug
36 + #463978.
37
38 *dansguardian-2.12.0.3 (04 Mar 2013)
39
40
41
42
43 1.1 net-proxy/dansguardian/dansguardian-2.12.0.3-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/dansguardian/dansguardian-2.12.0.3-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/dansguardian/dansguardian-2.12.0.3-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: dansguardian-2.12.0.3-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 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.12.0.3-r1.ebuild,v 1.1 2013/04/01 10:28:30 tomwij Exp $
53
54 EAPI="5"
55
56 inherit eutils
57
58 DESCRIPTION="Web content filtering via proxy"
59 HOMEPAGE="http://www.${PN}.org"
60 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
65 IUSE="avast backtrace clamav commandline debug email +fancydm icap kaspersky +lfs logrotate ntlm orig-ip +pcre static-libs trickledm"
66
67 RDEPEND="sys-libs/zlib
68 clamav? ( app-antivirus/clamav )
69 logrotate? ( app-admin/logrotate )
70 ntlm? ( virtual/libiconv )
71 pcre? ( dev-libs/libpcre )"
72 DEPEND="${RDEPEND}
73 virtual/pkgconfig"
74
75 WIKI="http://contentfilter.futuragts.com/wiki/doku.php"
76
77 pkg_setup() {
78 enewgroup ${PN}
79 enewuser ${PN} -1 -1 /dev/null ${PN}
80 }
81
82 src_configure() {
83 local debug
84 if use debug ; then
85 debug="$(use_with debug dgdebug)"
86 fi
87
88 econf \
89 $(use_enable avast avastd) \
90 $(use_enable backtrace segv-backtrace) \
91 $(use_enable clamav clamd) \
92 $(use_enable commandline) \
93 ${debug} \
94 $(use_enable email) \
95 $(use_enable fancydm) \
96 $(use_enable icap) \
97 $(use_enable kaspersky kavd) \
98 $(use_enable lfs) \
99 --with-logdir=/var/log/${PN} \
100 $(use_enable ntlm) \
101 $(use_enable orig-ip) \
102 $(use_enable pcre) \
103 --with-piddir=/var/run \
104 --with-proxygroup=${PN} \
105 --with-proxyuser=${PN} \
106 $(use_enable static-libs static-zlib) \
107 $(use_enable trickledm)
108 }
109
110 src_install() {
111 default
112
113 # Edit config files for virus scanners chosen based on USE flags.
114 if use avast; then
115 sed -r -i -e 's/^#( *contentscanner *=.*avastdscan[.]conf.*)/\1/' "${D}/etc/${PN}/${PN}.conf"
116 fi
117
118 if use clamav; then
119 sed -r -i -e 's/[ \t]+use dns/& clamd/' "${D}/etc/init.d/${PN}"
120 sed -r -i -e 's/^#( *contentscanner *=.*clamdscan[.]conf.*)/\1/' "${D}/etc/${PN}/${PN}.conf"
121 fi
122
123 if use commandline; then
124 sed -r -i -e 's/^#( *contentscanner *=.*commandlinescan[.]conf.*)/\1/' "${D}/etc/${PN}/${PN}.conf"
125 fi
126
127 if use icap; then
128 sed -r -i -e 's/^#( *contentscanner *=.*icapscan[.]conf.*)/\1/' "${D}/etc/${PN}/${PN}.conf"
129 fi
130
131 if use kaspersky; then
132 sed -r -i -e 's/^#( *contentscanner *=.*kavdscan[.]conf.*)/\1/' "${D}/etc/${PN}/${PN}.conf"
133 fi
134
135 # Install Gentoo init script
136 newinitd "${FILESDIR}/${PN}.init" ${PN}
137
138 # Install log rotation file.
139 if use logrotate; then
140 insinto /etc/logrotate.d
141 newins "${FILESDIR}/${PN}.logrotate" ${PN}
142 else
143 exeinto /etc/cron.weekly
144 newexe data/scripts/logrotation ${PN}.cron
145 fi
146
147 keepdir /var/log/${PN}
148 fperms o-rwx /var/log/${PN}
149 }
150
151 pkg_postinst() {
152 local runas="${PN}:${PN}"
153
154 if [ -d "${ROOT}/var/log/${PN}" ] ; then
155 chown -R ${runas} "${ROOT}/var/log/${PN}"
156 chmod o-rwx "${ROOT}/var/log/${PN}"
157 fi
158
159 einfo "For assistance configuring ${PN}, visit the wiki at ${WIKI}"
160 }