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