1 |
jer 11/01/31 05:37:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ufdbguard-1.23-r1.ebuild |
5 |
Removed: ufdbguard-1.23.ebuild |
6 |
Log: |
7 |
/etc/cron.daily/ufdbUpdate: line 10: return: can only `return\' from a function or sourced script. |
8 |
|
9 |
(Portage version: 2.2.0_alpha19/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.11 net-proxy/ufdbguard/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ChangeLog?rev=1.11&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ChangeLog?rev=1.11&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ChangeLog?r1=1.10&r2=1.11 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v |
21 |
retrieving revision 1.10 |
22 |
retrieving revision 1.11 |
23 |
diff -u -r1.10 -r1.11 |
24 |
--- ChangeLog 7 Dec 2010 09:11:50 -0000 1.10 |
25 |
+++ ChangeLog 31 Jan 2011 05:37:32 -0000 1.11 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for net-proxy/ufdbguard |
28 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.10 2010/12/07 09:11:50 flameeyes Exp $ |
30 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.11 2011/01/31 05:37:32 jer Exp $ |
32 |
+ |
33 |
+*ufdbguard-1.23-r1 (31 Jan 2011) |
34 |
+ |
35 |
+ 31 Jan 2011; Jeroen Roovers <jer@g.o> -ufdbguard-1.23.ebuild, |
36 |
+ +ufdbguard-1.23-r1.ebuild, files/ufdbUpdate.cron: |
37 |
+ /etc/cron.daily/ufdbUpdate: line 10: return: can only `return\' from a |
38 |
+ function or sourced script. |
39 |
|
40 |
*ufdbguard-1.23 (07 Dec 2010) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-proxy/ufdbguard/ufdbguard-1.23-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.23-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.23-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: ufdbguard-1.23-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.23-r1.ebuild,v 1.1 2011/01/31 05:37:32 jer Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
inherit eutils |
59 |
|
60 |
MY_P="ufdbGuard-${PV}" |
61 |
|
62 |
DESCRIPTION="ufdbGuard is a redirector for the Squid internet proxy." |
63 |
HOMEPAGE="http://www.urlfilterdb.com/en/products/ufdbguard.html" |
64 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz |
65 |
doc? ( mirror://sourceforge/${PN}/ReferenceManual_v${PV/\./_}.pdf -> ${P}-manual.pdf )" |
66 |
|
67 |
LICENSE="GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
IUSE="+httpd doc" |
71 |
|
72 |
RDEPEND="dev-libs/openssl |
73 |
app-arch/bzip2 |
74 |
net-misc/wget" |
75 |
|
76 |
DEPEND="${RDEPEND} |
77 |
sys-devel/bison |
78 |
sys-devel/flex" |
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}"/${P}-parallel-make.patch |
90 |
epatch "${FILESDIR}"/${P}-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 |
econf \ |
103 |
--with-ufdb-user=squid \ |
104 |
--with-ufdb-config=/etc \ |
105 |
--with-ufdb-logdir=/var/log/ufdbguard \ |
106 |
--with-ufdb-dbhome=/usr/share/ufdbguard/blacklists \ |
107 |
--with-ufdb-images_dir=/usr/share/ufdbguard/images |
108 |
} |
109 |
|
110 |
src_install() { |
111 |
dodoc CHANGELOG INSTALL README src/sampleufdbGuard.conf || die |
112 |
doman doc/*.1 || die |
113 |
|
114 |
dobin src/ufdbAnalyse src/ufdbGenTable src/ufdbGrab \ |
115 |
src/ufdbConvertDB || die |
116 |
dosbin src/ufdbUpdate || die |
117 |
|
118 |
exeinto /usr/libexec/ufdbguard |
119 |
doexe src/mtserver/ufdbguardd src/mtserver/ufdbgclient || die |
120 |
|
121 |
if use httpd; then |
122 |
exeinto /usr/libexec/ufdbguard |
123 |
doexe src/ufdbhttpd || die |
124 |
fi |
125 |
|
126 |
keepdir /usr/share/ufdbguard/blacklists |
127 |
|
128 |
insinto /etc |
129 |
doins src/ufdbGuard.conf || die |
130 |
|
131 |
insinto /usr/share/ufdbguard/images |
132 |
doins src/images/* || die |
133 |
|
134 |
newconfd "${FILESDIR}"/ufdb.confd ufdb || die |
135 |
newinitd "${FILESDIR}"/ufdb.initd ufdb || die |
136 |
|
137 |
exeinto /etc/cron.daily |
138 |
newexe "${FILESDIR}"/ufdbUpdate.cron ufdbUpdate || die |
139 |
|
140 |
if use doc; then |
141 |
insinto /usr/share/doc/${PF} |
142 |
newins "${DISTDIR}"/${P}-manual.pdf ReferenceManual.pdf || die |
143 |
fi |
144 |
} |
145 |
|
146 |
pkg_postinst() { |
147 |
elog "The default location for the blacklist database has been" |
148 |
elog "moved to /usr/share/ufdbguard/blacklists." |
149 |
elog "" |
150 |
elog "The configuration file is no longer configurable in the" |
151 |
elog "service file, and now resides at /etc/ufdbGuard.conf ." |
152 |
elog "" |
153 |
elog "The service script has been renamed from ufdbguad to simply" |
154 |
elog "/etc/init.d/ufdb, to follow the official documentation, and" |
155 |
elog "it gained a reload option with a reconfig alias." |
156 |
elog "" |
157 |
elog "You can configure the username and password parameters for" |
158 |
elog "ufdbUpdate, to fetch the blacklist database provided by" |
159 |
elog "URLfilterDB, directly in /etc/conf.d/ufdb without touching" |
160 |
elog "the script itself." |
161 |
elog "" |
162 |
elog "To enable ufdbguard in squid, you should add this to your" |
163 |
elog "squid.conf:" |
164 |
elog "" |
165 |
elog " url_rewrite_program /usr/libexec/ufdbguard/ufdbgclient -l /var/log/ufdbguard" |
166 |
elog " url_rewrite_children 64" |
167 |
elog "" |
168 |
if ! use httpd; then |
169 |
elog "You chose to not install the lightweight http daemon that" |
170 |
elog "comes with ufdbguard." |
171 |
else |
172 |
elog "The ufdb service will start both the ufdbguardd daemon and" |
173 |
elog "the ufdbhttpd http daemon to provide a local redirect CGI." |
174 |
elog "If you don't want this to happen, disable the httpd USE flag." |
175 |
fi |
176 |
if use doc; then |
177 |
elog "" |
178 |
elog "The reference manual has been installed as" |
179 |
elog " /usr/share/doc/${PF}/ReferenceManual.pdf" |
180 |
fi |
181 |
} |