Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/ufdbguard: ufdbguard-1.29.ebuild ChangeLog
Date: Wed, 29 Aug 2012 22:30:37
Message-Id: 20120829223016.9D71E20BB6@flycatcher.gentoo.org
1 flameeyes 12/08/29 22:30:16
2
3 Modified: ChangeLog
4 Added: ufdbguard-1.29.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.27 net-proxy/ufdbguard/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ChangeLog?rev=1.27&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ChangeLog?rev=1.27&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ChangeLog?r1=1.26&r2=1.27
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v
20 retrieving revision 1.26
21 retrieving revision 1.27
22 diff -u -r1.26 -r1.27
23 --- ChangeLog 18 Mar 2012 19:25:31 -0000 1.26
24 +++ ChangeLog 29 Aug 2012 22:30:16 -0000 1.27
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-proxy/ufdbguard
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.26 2012/03/18 19:25:31 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.27 2012/08/29 22:30:16 flameeyes Exp $
30 +
31 +*ufdbguard-1.29 (29 Aug 2012)
32 +
33 + 29 Aug 2012; Diego E. Pettenò <flameeyes@g.o>
34 + +files/ufdbguard-1.29-parallel-make.patch, +ufdbguard-1.29.ebuild:
35 + Version bump.
36
37 18 Mar 2012; Pacho Ramos <pacho@g.o> metadata.xml:
38 Drop maintainer due retirement, bug #391429.
39
40
41
42 1.1 net-proxy/ufdbguard/ufdbguard-1.29.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.29.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.29.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ufdbguard-1.29.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.29.ebuild,v 1.1 2012/08/29 22:30:16 flameeyes Exp $
52
53 EAPI="4"
54
55 inherit eutils flag-o-matic
56
57 MY_P="ufdbGuard-${PV}"
58
59 DESCRIPTION="ufdbGuard is a redirector for the Squid internet proxy."
60 HOMEPAGE="http://www.urlfilterdb.com/en/products/ufdbguard.html"
61 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
62 doc? ( mirror://sourceforge/${PN}/ReferenceManual_v${PV/\./_}.pdf -> ${P}-manual.pdf )"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="+httpd doc"
68
69 RDEPEND="dev-libs/openssl
70 app-arch/bzip2
71 net-misc/wget"
72
73 DEPEND="${RDEPEND}
74 sys-devel/bison
75 sys-devel/flex"
76
77 RDEPEND="${RDEPEND}
78 sys-apps/openrc"
79
80 S="${WORKDIR}/${MY_P}"
81
82 pkg_setup() {
83 # create the squid user exactly as done by net-proxy/squid-3.1.9
84 enewgroup squid 31
85 enewuser squid 31 -1 /var/cache/squid squid
86 }
87
88 src_prepare() {
89 epatch "${FILESDIR}"/${PN}-1.29-parallel-make.patch
90 epatch "${FILESDIR}"/${PN}-1.24-gentoo.patch
91
92 egrep -r -e '/var/tmp/ufdb(guard|http)d.pid' "${S}" -lZ | xargs -0 \
93 sed -i -e 's:/var/tmp/ufdb\(guard\|http\)d.pid:/var/run/ufdbguard/ufdb\1d.pid:' \
94 || die
95
96 # directory where ufdbhttpd is to be found
97 sed -i -e 's:DEFAULT_BINDIR.*:DEFAULT_BINDIR "/usr/libexec/ufdbguard":' \
98 src/ufdb.h.in || die
99 }
100
101 src_configure() {
102 # better safe than sorry, the code has a number of possible
103 # breakage, and at least one certain breakage.
104 append-flags -fno-strict-aliasing
105
106 econf \
107 --with-ufdb-user=squid \
108 --with-ufdb-config=/etc \
109 --with-ufdb-logdir=/var/log/ufdbguard \
110 --with-ufdb-dbhome=/usr/share/ufdbguard/blacklists \
111 --with-ufdb-images_dir=/usr/share/ufdbguard/images
112 }
113
114 src_install() {
115 dodoc CHANGELOG INSTALL README src/sampleufdbGuard.conf
116 doman doc/*.1
117
118 dobin src/ufdbAnalyse src/ufdbGenTable src/ufdbGrab \
119 src/ufdbConvertDB
120 dosbin src/ufdbUpdate
121
122 exeinto /usr/libexec/ufdbguard
123 doexe src/mtserver/ufdbguardd src/mtserver/ufdbgclient
124
125 if use httpd; then
126 exeinto /usr/libexec/ufdbguard
127 doexe src/ufdbhttpd
128 fi
129
130 keepdir /usr/share/ufdbguard/blacklists
131
132 insinto /etc
133 doins src/ufdbGuard.conf
134
135 insinto /usr/share/ufdbguard/images
136 doins src/images/*
137
138 newconfd "${FILESDIR}"/ufdb.confd ufdb
139 newinitd "${FILESDIR}"/ufdb.initd.2 ufdb
140
141 exeinto /etc/cron.daily
142 newexe "${FILESDIR}"/ufdbUpdate.cron ufdbUpdate
143
144 if use doc; then
145 insinto /usr/share/doc/${PF}
146 newins "${DISTDIR}"/${P}-manual.pdf ReferenceManual.pdf
147 fi
148 }
149
150 pkg_postinst() {
151 elog "The default location for the blacklist database has been"
152 elog "moved to /usr/share/ufdbguard/blacklists."
153 elog ""
154 elog "The configuration file is no longer configurable in the"
155 elog "service file, and now resides at /etc/ufdbGuard.conf ."
156 elog ""
157 elog "The service script has been renamed from ufdbguad to simply"
158 elog "/etc/init.d/ufdb, to follow the official documentation, and"
159 elog "it gained a reload option with a reconfig alias."
160 elog ""
161 elog "You can configure the username and password parameters for"
162 elog "ufdbUpdate, to fetch the blacklist database provided by"
163 elog "URLfilterDB, directly in /etc/conf.d/ufdb without touching"
164 elog "the script itself."
165 elog ""
166 elog "To enable ufdbguard in squid, you should add this to your"
167 elog "squid.conf:"
168 elog ""
169 elog " url_rewrite_program /usr/libexec/ufdbguard/ufdbgclient -l /var/log/ufdbguard"
170 elog " url_rewrite_children 64"
171 elog ""
172 if ! use httpd; then
173 elog "You chose to not install the lightweight http daemon that"
174 elog "comes with ufdbguard."
175 else
176 elog "The ufdb service will start both the ufdbguardd daemon and"
177 elog "the ufdbhttpd http daemon to provide a local redirect CGI."
178 elog "If you don't want this to happen, disable the httpd USE flag."
179 fi
180 if use doc; then
181 elog ""
182 elog "The reference manual has been installed as"
183 elog " /usr/share/doc/${PF}/ReferenceManual.pdf"
184 fi
185 }