Gentoo Archives: gentoo-commits

From: "Timo Gurr (tgurr)" <tgurr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/cups: ChangeLog cups-1.2.10-r1.ebuild cups-1.3.6.ebuild cups-1.2.12-r3.ebuild cups-1.2.12-r2.ebuild
Date: Fri, 22 Feb 2008 18:14:02
Message-Id: E1JScPG-000701-L5@stork.gentoo.org
1 tgurr 08/02/22 18:13:58
2
3 Modified: ChangeLog cups-1.2.10-r1.ebuild
4 Added: cups-1.3.6.ebuild
5 Removed: cups-1.2.12-r3.ebuild cups-1.2.12-r2.ebuild
6 Log:
7 Add cups-1.3.6.ebuild, version bump. Also remove bindnow to solve the portage QA warning. Clean up old ebuilds and fix some quoting.
8 (Portage version: 2.1.4.4)
9
10 Revision Changes Path
11 1.281 net-print/cups/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?rev=1.281&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?rev=1.281&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?r1=1.280&r2=1.281
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v
20 retrieving revision 1.280
21 retrieving revision 1.281
22 diff -u -r1.280 -r1.281
23 --- ChangeLog 26 Dec 2007 16:55:59 -0000 1.280
24 +++ ChangeLog 22 Feb 2008 18:13:58 -0000 1.281
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-print/cups
27 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.280 2007/12/26 16:55:59 cardoe Exp $
29 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.281 2008/02/22 18:13:58 tgurr Exp $
31 +
32 +*cups-1.3.6 (22 Feb 2008)
33 +
34 + 22 Feb 2008; Timo Gurr <tgurr@g.o> cups-1.2.10-r1.ebuild,
35 + -cups-1.2.12-r2.ebuild, -cups-1.2.12-r3.ebuild, +cups-1.3.6.ebuild:
36 + Add cups-1.3.6.ebuild, version bump. Also remove bindnow to solve the
37 + portage QA warning. Clean up old ebuilds and fix some quoting.
38
39 26 Dec 2007; Doug Klima <cardoe@g.o> cups-1.2.12-r2.ebuild,
40 cups-1.2.12-r3.ebuild, cups-1.2.12-r4.ebuild, cups-1.3.5.ebuild:
41
42
43
44 1.13 net-print/cups/cups-1.2.10-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.2.10-r1.ebuild?rev=1.13&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.2.10-r1.ebuild?rev=1.13&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.2.10-r1.ebuild?r1=1.12&r2=1.13
49
50 Index: cups-1.2.10-r1.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.2.10-r1.ebuild,v
53 retrieving revision 1.12
54 retrieving revision 1.13
55 diff -u -r1.12 -r1.13
56 --- cups-1.2.10-r1.ebuild 7 Aug 2007 11:59:35 -0000 1.12
57 +++ cups-1.2.10-r1.ebuild 22 Feb 2008 18:13:58 -0000 1.13
58 @@ -1,6 +1,6 @@
59 -# Copyright 1999-2007 Gentoo Foundation
60 +# Copyright 1999-2008 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.2.10-r1.ebuild,v 1.12 2007/08/07 11:59:35 armin76 Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.2.10-r1.ebuild,v 1.13 2008/02/22 18:13:58 tgurr Exp $
64
65 WANT_AUTOMAKE=latest
66
67 @@ -60,7 +60,7 @@
68 # we just leave it out, even if FEATURES=test
69 RESTRICT="test"
70
71 -S=${WORKDIR}/${MY_P}
72 +S="${WORKDIR}/${MY_P}"
73
74 pkg_setup() {
75 enewgroup lp
76 @@ -71,10 +71,10 @@
77
78 src_unpack() {
79 unpack ${A}
80 - cd ${S}
81 + cd "${S}"
82
83 # upstream does not acknowledge bindnow as a solution
84 - epatch ${FILESDIR}/cups-1.2.0-bindnow.patch
85 + epatch "${FILESDIR}"/cups-1.2.0-bindnow.patch
86
87 # cups does not use autotools "the usual way" and ship a static config.h.in
88 eaclocal
89 @@ -117,29 +117,29 @@
90 }
91
92 src_install() {
93 - emake BUILDROOT=${D} install || die "emake install failed"
94 + emake BUILDROOT="${D}" install || die "emake install failed"
95 dodoc {CHANGES{,-1.{0,1}},CREDITS,LICENSE,README}.txt
96
97 # clean out cups init scripts
98 - rm -rf ${D}/etc/{init.d/cups,rc*,pam.d/cups}
99 + rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
100 # install our init scripts
101 - newinitd ${FILESDIR}/cupsd.init cupsd
102 + newinitd "${FILESDIR}"/cupsd.init cupsd
103 # install our pam script
104 pamd_mimic_system cups auth account
105
106 # correct path
107 - sed -i -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" ${D}/etc/xinetd.d/cups-lpd
108 + sed -i -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" "${D}"/etc/xinetd.d/cups-lpd
109 # it is safer to disable this by default, bug 137130
110 - grep -w 'disable' ${D}/etc/xinetd.d/cups-lpd || \
111 - sed -i -e "s:}:\tdisable = yes\n}:" ${D}/etc/xinetd.d/cups-lpd
112 + grep -w 'disable' "${D}"/etc/xinetd.d/cups-lpd || \
113 + sed -i -e "s:}:\tdisable = yes\n}:" "${D}"/etc/xinetd.d/cups-lpd
114
115 # install pdftops filter
116 exeinto /usr/libexec/cups/filter/
117 - newexe ${FILESDIR}/pdftops.pl pdftops
118 + newexe "${FILESDIR}"/pdftops.pl pdftops
119
120 # only for gs-esp this is correct, see bug 163897
121 if has_version app-text/ghostscript-gpl || has_version app-text/ghostscript-gnu; then
122 - sed -i -e "s:#application/vnd.cups-postscript:application/vnd.cups-postscript:" ${D}/etc/cups/mime.convs
123 + sed -i -e "s:#application/vnd.cups-postscript:application/vnd.cups-postscript:" "${D}"/etc/cups/mime.convs
124 fi
125
126 keepdir /usr/share/cups/profiles /usr/libexec/cups/driver /var/log/cups \
127 @@ -147,9 +147,9 @@
128
129 # .desktop handling. X useflag. xdg-open from freedesktop is preferred
130 if use X; then
131 - sed -i -e "s:htmlview:xdg-open:" ${D}/usr/share/applications/cups.desktop
132 + sed -i -e "s:htmlview:xdg-open:" "${D}"/usr/share/applications/cups.desktop
133 else
134 - rm -r ${D}/usr/share/applications
135 + rm -r "${D}"/usr/share/applications
136 fi
137
138 # Fix a symlink collision, see bug #172341
139 @@ -159,7 +159,7 @@
140
141 pkg_preinst() {
142 # cleanups
143 - [ -n "${PN}" ] && rm -fR ${ROOT}/usr/share/doc/${PN}-*
144 + [ -n "${PN}" ] && rm -fR "${ROOT}"/usr/share/doc/"${PN}"-*
145 }
146
147 pkg_postinst() {
148 @@ -191,7 +191,7 @@
149 ewarn
150 ewarn "You need to rebuild kdelibs for kdeprinter to work with cups-1.2"
151 fi
152 - if [ -e ${ROOT}/usr/lib/cups ]; then
153 + if [ -e "${ROOT}"/usr/lib/cups ]; then
154 ewarn
155 ewarn "/usr/lib/cups exists - You need to remerge every ebuild that"
156 ewarn "installed into /usr/lib/cups and /etc/cups, qfile is in portage-utils:"
157 @@ -202,7 +202,7 @@
158 ewarn "You should also run revdep-rebuild"
159
160 # place symlinks to make the update smoothless
161 - for i in ${ROOT}/usr/lib/cups/{backend,filter}/*; do
162 + for i in "${ROOT}"/usr/lib/cups/{backend,filter}/*; do
163 if [ "${i/\*}" == "${i}" ] && ! [ -e ${i/lib/libexec} ]; then
164 ln -s ${i} ${i/lib/libexec}
165 fi
166
167
168
169 1.1 net-print/cups/cups-1.3.6.ebuild
170
171 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.3.6.ebuild?rev=1.1&view=markup
172 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.3.6.ebuild?rev=1.1&content-type=text/plain
173
174 Index: cups-1.3.6.ebuild
175 ===================================================================
176 # Copyright 1999-2008 Gentoo Foundation
177 # Distributed under the terms of the GNU General Public License v2
178 # $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.3.6.ebuild,v 1.1 2008/02/22 18:13:58 tgurr Exp $
179
180 inherit autotools eutils flag-o-matic multilib pam
181
182 MY_P=${P/_}
183
184 DESCRIPTION="The Common Unix Printing System"
185 HOMEPAGE="http://www.cups.org/"
186 SRC_URI="mirror://sourceforge/cups/${MY_P}-source.tar.bz2"
187
188 LICENSE="GPL-2"
189 SLOT="0"
190 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
191 IUSE="acl avahi dbus java jpeg kerberos ldap nls pam perl php png ppds python samba slp ssl static tiff X zeroconf"
192
193 COMMON_DEPEND="acl? ( kernel_linux? ( sys-apps/acl sys-apps/attr ) )
194 avahi? ( net-dns/avahi )
195 dbus? ( sys-apps/dbus )
196 java? ( >=virtual/jre-1.4 )
197 jpeg? ( >=media-libs/jpeg-6b )
198 kerberos? ( virtual/krb5 )
199 ldap? ( net-nds/openldap )
200 pam? ( virtual/pam )
201 perl? ( dev-lang/perl )
202 php? ( dev-lang/php )
203 png? ( >=media-libs/libpng-1.2.1 )
204 python? ( dev-lang/python )
205 slp? ( >=net-libs/openslp-1.0.4 )
206 ssl? ( net-libs/gnutls )
207 tiff? ( >=media-libs/tiff-3.5.5 )
208 zeroconf? ( !avahi? ( net-misc/mDNSResponder ) )
209 app-text/libpaper
210 dev-libs/libgcrypt"
211
212 DEPEND="${COMMON_DEPEND}
213 !<net-print/foomatic-filters-ppds-20070501
214 !<net-print/hplip-1.7.4a-r1
215 nls? ( sys-devel/gettext )"
216
217 RDEPEND="${COMMON_DEPEND}
218 !virtual/lpr
219 nls? ( virtual/libintl )
220 X? ( x11-misc/xdg-utils )
221 >=app-text/poppler-0.4.3-r1"
222
223 PDEPEND="
224 ppds? ( || (
225 (
226 net-print/foomatic-filters-ppds
227 net-print/foomatic-db-ppds
228 )
229 net-print/foomatic-filters-ppds
230 net-print/foomatic-db-ppds
231 net-print/hplip
232 media-gfx/gimp-print
233 net-print/foo2zjs
234 net-print/cups-pdf
235 ) )
236 samba? ( >=net-fs/samba-3.0.8 )
237 virtual/ghostscript"
238
239 PROVIDE="virtual/lpr"
240
241 # upstream includes an interactive test which is a nono for gentoo.
242 # therefore, since the printing herd has bigger fish to fry, for now,
243 # we just leave it out, even if FEATURES=test
244 RESTRICT="test"
245
246 S="${WORKDIR}/${MY_P}"
247
248 LANGS="de en es et fr he it ja pl sv zh_TW"
249 for X in ${LANGS} ; do
250 IUSE="${IUSE} linguas_${X}"
251 done
252
253 pkg_setup() {
254 if use avahi && ! built_with_use net-dns/avahi mdnsresponder-compat ; then
255 echo
256 eerror "In order to have cups working with avahi zeroconf support, you need"
257 eerror "to have net-dns/avahi emerged with 'mdnsresponder-compat' in your USE"
258 eerror "flag. Please add that flag, re-emerge avahi, and then emerge cups again."
259 die "net-dns/avahi is missing the mdnsresponder-compat feature."
260 fi
261
262 enewgroup lp
263 enewuser lp -1 -1 -1 lp
264
265 enewgroup lpadmin 106
266 }
267
268 src_unpack() {
269 unpack ${A}
270 cd "${S}"
271
272 # disable configure automagic for acl/attr
273 epatch "${FILESDIR}/${PN}-1.3.0-configure.patch"
274
275 # CVE-2007-4045 security patch, bug #199195
276 epatch "${FILESDIR}/${PN}-1.3.4-CVE-2007-4045.patch"
277
278 # cups does not use autotools "the usual way" and ship a static config.h.in
279 eaclocal
280 eautoconf
281 }
282
283 src_compile() {
284
285 # locale support
286 strip-linguas ${LANGS}
287
288 if [ -z "${LINGUAS}" ] ; then
289 export LINGUAS=all
290 fi
291
292 export DSOFLAGS="${LDFLAGS}"
293
294 if use ldap ; then
295 append-flags -DLDAP_DEPRECATED
296 fi
297
298 local myconf
299
300 if use avahi || use zeroconf ; then
301 myconf="${myconf} --enable-dnssd"
302 else
303 myconf="${myconf} --disable-dnssd"
304 fi
305
306 econf \
307 --libdir=/usr/$(get_libdir) \
308 --localstatedir=/var \
309 --with-cups-user=lp \
310 --with-cups-group=lp \
311 --with-docdir=/usr/share/cups/html \
312 --with-languages=${LINGUAS} \
313 --with-system-groups=lpadmin \
314 $(use_enable acl) \
315 $(use_enable dbus) \
316 $(use_enable jpeg) \
317 $(use_enable kerberos gssapi) \
318 $(use_enable ldap) \
319 $(use_enable nls) \
320 $(use_enable pam) \
321 $(use_enable png) \
322 $(use_enable slp) \
323 $(use_enable ssl) \
324 $(use_enable static) \
325 $(use_enable tiff) \
326 $(use_with java) \
327 $(use_with perl) \
328 $(use_with php) \
329 $(use_with python) \
330 --enable-gnutls \
331 --enable-libpaper \
332 --enable-threads \
333 --disable-pdftops \
334 ${myconf} \
335 || die "econf failed"
336
337 # install in /usr/libexec always, instead of using /usr/lib/cups, as that
338 # makes more sense when facing multilib support.
339 sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs
340 sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h
341 sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config
342
343 emake || die "emake failed"
344 }
345
346 src_install() {
347 emake BUILDROOT="${D}" install || die "emake install failed"
348 dodoc {CHANGES{,-1.{0,1}},CREDITS,README}.txt || die "dodoc install failed"
349
350 # clean out cups init scripts
351 rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
352
353 # install our init script
354 local neededservices
355 use avahi && neededservices="$neededservices avahi-daemon"
356 use dbus && neededservices="$neededservices dbus"
357 use zeroconf && ! use avahi && neededservices="$neededservices mDNSResponderPosix"
358 [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
359 sed -e "s/@neededservices@/$neededservices/" "${FILESDIR}"/cupsd.init.d > "${T}"/cupsd
360 doinitd "${T}"/cupsd
361
362 # install our pam script
363 pamd_mimic_system cups auth account
364
365 # correct path
366 sed -i -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" "${D}"/etc/xinetd.d/cups-lpd
367 # it is safer to disable this by default, bug 137130
368 grep -w 'disable' "${D}"/etc/xinetd.d/cups-lpd || \
369 sed -i -e "s:}:\tdisable = yes\n}:" "${D}"/etc/xinetd.d/cups-lpd
370
371 # install pdftops filter
372 exeinto /usr/libexec/cups/filter/
373 newexe "${FILESDIR}"/pdftops-1.20.gentoo pdftops
374
375 # only for gs-esp this is correct, see bug 163897
376 if has_version app-text/ghostscript-gpl || has_version app-text/ghostscript-gnu ; then
377 sed -i -e "s:#application/vnd.cups-postscript:application/vnd.cups-postscript:" "${D}"/etc/cups/mime.convs
378 fi
379
380 keepdir /usr/share/cups/profiles /usr/libexec/cups/driver /var/log/cups \
381 /var/run/cups/certs /var/cache/cups /var/spool/cups/tmp /etc/cups/ssl
382
383 # .desktop handling. X useflag. xdg-open from freedesktop is preferred
384 if use X ; then
385 sed -i -e "s:htmlview:xdg-open:" "${D}"/usr/share/applications/cups.desktop
386 else
387 rm -r "${D}"/usr/share/applications
388 fi
389
390 # fix a symlink collision, see bug #172341
391 dodir /usr/share/ppd
392 dosym /usr/share/ppd /usr/share/cups/model/foomatic-ppds
393
394 # create RSS feed directory
395 diropts -m 0740 -o lp -g lp
396 dodir /var/cache/cups/rss
397 }
398
399 pkg_preinst() {
400 # cleanups
401 [ -n "${PN}" ] && rm -fR "${ROOT}"/usr/share/doc/"${PN}"-*
402 }
403
404 pkg_postinst() {
405 echo
406 elog "For information about installing a printer and general cups setup"
407 elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
408 echo
409
410 local good_gs=false
411 for x in app-text/ghostscript-gpl app-text/ghostscript-gnu app-text/ghostscript-esp ; do
412 if has_version ${x} && built_with_use ${x} cups ; then
413 good_gs=true
414 break
415 fi
416 done;
417 if ! ${good_gs}; then
418 echo
419 ewarn "You need to emerge ghostscript with the \"cups\" USE flag turned on"
420 echo
421 fi
422
423 if has_version =net-print/cups-1.1* ; then
424 echo
425 ewarn "The configuration changed with cups-1.3, you may want to save the old"
426 ewarn "one and start from scratch:"
427 ewarn "# mv /etc/cups /etc/cups.orig; emerge -va1 cups"
428 echo
429 ewarn "You need to rebuild kdelibs for kdeprinter to work with cups-1.3"
430 echo
431 fi
432
433 if [ -e "${ROOT}"/usr/lib/cups ] ; then
434 echo
435 ewarn "/usr/lib/cups exists - You need to remerge every ebuild that"
436 ewarn "installed into /usr/lib/cups and /etc/cups, qfile is in portage-utils:"
437 ewarn "# FEATURES=-collision-protect emerge -va1 \$(qfile -qC /usr/lib/cups /etc/cups | sed \"s:net-print/cups$::\")"
438 echo
439 ewarn "FEATURES=-collision-protect is needed to overwrite the compatibility"
440 ewarn "symlinks installed by this package, it won't be needed on later merges."
441 ewarn "You should also run revdep-rebuild"
442 echo
443
444 # place symlinks to make the update smoothless
445 for i in "${ROOT}"/usr/lib/cups/{backend,filter}/* ; do
446 if [ "${i/\*}" == "${i}" ] && ! [ -e ${i/lib/libexec} ] ; then
447 ln -s ${i} ${i/lib/libexec}
448 fi
449 done
450 fi
451 }
452
453
454
455 --
456 gentoo-commits@l.g.o mailing list