1 |
billie 11/01/26 20:45:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hplip-3.11.1-r1.ebuild |
5 |
Removed: hplip-3.11.1.ebuild |
6 |
Log: |
7 |
Revision bump to fix bug #345725. Thanks to Ben Sagal for reporting. |
8 |
|
9 |
(Portage version: 2.1.9.25/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.179 net-print/hplip/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.179&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.179&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?r1=1.178&r2=1.179 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v |
21 |
retrieving revision 1.178 |
22 |
retrieving revision 1.179 |
23 |
diff -u -r1.178 -r1.179 |
24 |
--- ChangeLog 24 Jan 2011 20:51:55 -0000 1.178 |
25 |
+++ ChangeLog 26 Jan 2011 20:45:23 -0000 1.179 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-print/hplip |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.178 2011/01/24 20:51:55 billie Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.179 2011/01/26 20:45:23 billie Exp $ |
31 |
+ |
32 |
+*hplip-3.11.1-r1 (26 Jan 2011) |
33 |
+ |
34 |
+ 26 Jan 2011; Daniel Pielmeier <billie@g.o> -hplip-3.11.1.ebuild, |
35 |
+ +hplip-3.11.1-r1.ebuild: |
36 |
+ Revision bump to fix bug #345725. Thanks to Ben Sagal for reporting. |
37 |
|
38 |
*hplip-3.11.1 (24 Jan 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-print/hplip/hplip-3.11.1-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.11.1-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.11.1-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: hplip-3.11.1-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.11.1-r1.ebuild,v 1.1 2011/01/26 20:45:24 billie Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
|
56 |
PYTHON_DEPEND="!minimal? 2" |
57 |
PYTHON_USE_WITH="threads xml" |
58 |
PYTHON_USE_WITH_OPT="!minimal" |
59 |
|
60 |
inherit fdo-mime linux-info python autotools |
61 |
|
62 |
DESCRIPTION="HP Linux Imaging and Printing System. Includes printer, scanner, fax drivers and service tools." |
63 |
HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
64 |
SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
69 |
|
70 |
# zeroconf does not work properly with >=cups-1.4. thus support for it is also disabled in hplip. |
71 |
IUSE="doc fax +hpcups hpijs kde libnotify minimal parport policykit qt4 scanner snmp static-ppds -udev-acl X" |
72 |
|
73 |
COMMON_DEPEND=" |
74 |
virtual/jpeg |
75 |
hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) |
76 |
udev-acl? ( >=sys-fs/udev-145[extras] ) |
77 |
snmp? ( |
78 |
net-analyzer/net-snmp |
79 |
dev-libs/openssl |
80 |
) |
81 |
!minimal? ( |
82 |
net-print/cups |
83 |
virtual/libusb:0 |
84 |
scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) |
85 |
fax? ( sys-apps/dbus ) |
86 |
)" |
87 |
|
88 |
DEPEND="${COMMON_DEPEND} |
89 |
dev-util/pkgconfig" |
90 |
|
91 |
RDEPEND="${COMMON_DEPEND} |
92 |
>=app-text/ghostscript-gpl-8.71-r3 |
93 |
!static-ppds? ( || ( >=net-print/cups-1.4.0 net-print/cupsddk ) ) |
94 |
!minimal? ( |
95 |
dev-python/pygobject |
96 |
kernel_linux? ( >=sys-fs/udev-114 ) |
97 |
scanner? ( |
98 |
dev-python/imaging |
99 |
X? ( || ( |
100 |
kde? ( kde-misc/skanlite ) |
101 |
media-gfx/xsane |
102 |
media-gfx/sane-frontends |
103 |
) ) |
104 |
) |
105 |
fax? ( |
106 |
dev-python/reportlab |
107 |
dev-python/dbus-python |
108 |
) |
109 |
qt4? ( |
110 |
dev-python/PyQt4[dbus,X] |
111 |
libnotify? ( |
112 |
dev-python/notify-python |
113 |
) |
114 |
policykit? ( |
115 |
sys-auth/polkit |
116 |
) |
117 |
) |
118 |
)" |
119 |
|
120 |
CONFIG_CHECK="~PARPORT ~PPDEV" |
121 |
ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (PARPORT and PPDEV)." |
122 |
|
123 |
pkg_setup() { |
124 |
if ! use minimal; then |
125 |
python_set_active_version 2 |
126 |
python_pkg_setup |
127 |
fi |
128 |
|
129 |
! use qt4 && ewarn "You need USE=qt4 for the hplip GUI." |
130 |
|
131 |
use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
132 |
|
133 |
if ! use hpcups && ! use hpijs ; then |
134 |
ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
135 |
ewarn "which is probably not what you want." |
136 |
ewarn "You will almost certainly not be able to print." |
137 |
ewarn "Recommended USE flags: USE=\"hpcups -hpijs\")." |
138 |
fi |
139 |
|
140 |
if use minimal ; then |
141 |
ewarn "Installing driver portions only, make sure you know what you are doing." |
142 |
ewarn "Depending on the USE flags set for hpcups and/or hpijs the appropiate" |
143 |
ewarn "drivers are installed." |
144 |
else |
145 |
use parport && linux-info_pkg_setup |
146 |
fi |
147 |
} |
148 |
|
149 |
src_prepare() { |
150 |
python_convert_shebangs -q -r 2 . |
151 |
|
152 |
# Fix for Gentoo bug #345725 |
153 |
sed -i -e "s|/etc/udev/rules.d|/$(get_libdir)/udev/rules.d|" \ |
154 |
$(find ./ -type f -exec grep -l '/etc/udev/rules.d' '{}' '+') \ |
155 |
|| die "sed udev rules" |
156 |
|
157 |
# Do not install desktop files if there is no gui |
158 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/452113 |
159 |
epatch "${FILESDIR}"/${P}-desktop.patch |
160 |
|
161 |
# Browser detection through xdg-open |
162 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/482674 |
163 |
epatch "${FILESDIR}"/${PN}-3.9.10-browser.patch |
164 |
|
165 |
# Use cups-config when checking for cupsddk |
166 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/483136 |
167 |
epatch "${FILESDIR}"/${PN}-3.9.12-cupsddk.patch |
168 |
|
169 |
# Htmldocs are not installed under docdir/html so enable htmldir configure switch |
170 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/483217 |
171 |
epatch "${FILESDIR}"/${P}-htmldir.patch |
172 |
|
173 |
# Increase systray check timeout for slower machines |
174 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/335662 |
175 |
epatch "${FILESDIR}"/${PN}-3.9.12-systray.patch |
176 |
|
177 |
# SYSFS deprecated but kept upstream for compatibility reasons |
178 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/346390 |
179 |
epatch "${FILESDIR}"/${P}-udev-attrs.patch |
180 |
|
181 |
# CVE-2010-4267 SNMP Response Processing Buffer Overflow Vulnerability |
182 |
# http://secunia.com/advisories/42956/ |
183 |
# https://bugzilla.redhat.com/show_bug.cgi?id=662740 |
184 |
epatch "${FILESDIR}"/${PN}-3.10.9-cve-2010-4267.patch |
185 |
|
186 |
# Force recognition of Gentoo distro by hp-check |
187 |
sed -i \ |
188 |
-e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
189 |
installer/core_install.py || die |
190 |
|
191 |
# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
192 |
# The hpcups driver does not use foomatic-rip |
193 |
local i |
194 |
for i in ppd/hpijs/*.ppd.gz |
195 |
do |
196 |
rm -f ${i}.temp |
197 |
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die |
198 |
mv ${i}.temp ${i} |
199 |
done |
200 |
|
201 |
eautoreconf |
202 |
} |
203 |
|
204 |
src_configure() { |
205 |
local gui_build myconf drv_build minimal_build |
206 |
|
207 |
if use qt4 ; then |
208 |
gui_build="--enable-gui-build --enable-qt4 --disable-qt3" |
209 |
if use policykit ; then |
210 |
myconf="--enable-policykit" |
211 |
else |
212 |
myconf="--disable-policykit" |
213 |
fi |
214 |
else |
215 |
gui_build="--disable-gui-build --disable-qt3 --disable-qt4" |
216 |
fi |
217 |
|
218 |
if use fax || use qt4 ; then |
219 |
myconf="${myconf} --enable-dbus-build" |
220 |
else |
221 |
myconf="${myconf} --disable-dbus-build" |
222 |
fi |
223 |
|
224 |
if use hpcups ; then |
225 |
drv_build="$(use_enable hpcups hpcups-install)" |
226 |
if use static-ppds ; then |
227 |
drv_build="${drv_build} --enable-cups-ppd-install" |
228 |
drv_build="${drv_build} --disable-cups-drv-install" |
229 |
else |
230 |
drv_build="${drv_build} --enable-cups-drv-install" |
231 |
drv_build="${drv_build} --disable-cups-ppd-install" |
232 |
fi |
233 |
else |
234 |
drv_build="--disable-hpcups-install --disable-cups-drv-install" |
235 |
drv_build="${drv_build} --disable-cups-ppd-install" |
236 |
fi |
237 |
|
238 |
if use hpijs ; then |
239 |
drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
240 |
if use static-ppds ; then |
241 |
drv_build="${drv_build} --enable-foomatic-ppd-install" |
242 |
drv_build="${drv_build} --disable-foomatic-drv-install" |
243 |
else |
244 |
drv_build="${drv_build} --enable-foomatic-drv-install" |
245 |
drv_build="${drv_build} --disable-foomatic-ppd-install" |
246 |
fi |
247 |
else |
248 |
drv_build="${drv_build} --disable-hpijs-install" |
249 |
drv_build="${drv_build} --disable-foomatic-drv-install" |
250 |
drv_build="${drv_build} --disable-foomatic-ppd-install" |
251 |
fi |
252 |
|
253 |
if use minimal ; then |
254 |
if use hpijs ; then |
255 |
minimal_build="--enable-hpijs-only-build" |
256 |
else |
257 |
minimal_build="--disable-hpijs-only-build" |
258 |
fi |
259 |
if use hpcups ; then |
260 |
minimal_build="${minimal_build} --enable-hpcups-only-build" |
261 |
else |
262 |
minimal_build="${minimal_build} --disable-hpcups-only-build" |
263 |
fi |
264 |
fi |
265 |
|
266 |
econf \ |
267 |
--disable-dependency-tracking \ |
268 |
--disable-cups11-build \ |
269 |
--disable-lite-build \ |
270 |
--disable-foomatic-rip-hplip-install \ |
271 |
--disable-shadow-build \ |
272 |
--with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
273 |
--with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
274 |
--with-docdir=/usr/share/doc/${PF} \ |
275 |
--with-htmldir=/usr/share/doc/${PF}/html \ |
276 |
${gui_build} \ |
277 |
${myconf} \ |
278 |
${drv_build} \ |
279 |
${minimal_build} \ |
280 |
$(use_enable doc doc-build) \ |
281 |
$(use_enable fax fax-build) \ |
282 |
$(use_enable parport pp-build) \ |
283 |
$(use_enable scanner scan-build) \ |
284 |
$(use_enable snmp network-build) \ |
285 |
$(use_enable udev-acl udev-acl-rules) |
286 |
} |
287 |
|
288 |
src_install() { |
289 |
emake DESTDIR="${D}" install || die |
290 |
|
291 |
# Installed by sane-backends |
292 |
# Gentoo Bug: #201023 |
293 |
rm -f "${D}"/etc/sane.d/dll.conf || die |
294 |
} |
295 |
|
296 |
pkg_postinst() { |
297 |
use !minimal && python_mod_optimize /usr/share/${PN} |
298 |
fdo-mime_desktop_database_update |
299 |
|
300 |
elog "You should run hp-setup as root if you are installing hplip for the first time," |
301 |
elog "and may also need to run it if you are upgrading from an earlier version." |
302 |
elog |
303 |
elog "If your device is connected using USB, users will need to be in the lp group to" |
304 |
elog "access it." |
305 |
elog |
306 |
elog "Starting with versions of hplip >=3.9.8 mDNS is the default network search" |
307 |
elog "mechanism. To make use of it you need to activate the zeroconf flag on cups." |
308 |
elog "If you prefer the SLP method you have to choose this when configuring the" |
309 |
elog "device." |
310 |
elog "Note: For cups-1.4.x SLP is the only supported method as mDNS (zeroconf) is not" |
311 |
elog "available here." |
312 |
|
313 |
} |
314 |
|
315 |
pkg_postrm() { |
316 |
use !minimal && python_mod_cleanup /usr/share/${PN} |
317 |
fdo-mime_desktop_database_update |
318 |
} |