Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/cups: ChangeLog cups-1.7.0.ebuild cups-9999.ebuild cups-1.6.3-r2.ebuild cups-1.7_rc1.ebuild
Date: Wed, 30 Oct 2013 21:48:55
Message-Id: 20131030214847.B7B2F20047@flycatcher.gentoo.org
1 dilfridge 13/10/30 21:48:47
2
3 Modified: ChangeLog cups-9999.ebuild
4 Added: cups-1.7.0.ebuild
5 Removed: cups-1.6.3-r2.ebuild cups-1.7_rc1.ebuild
6 Log:
7 Version bump; remove old
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EBE6A336BE19039C!)
10
11 Revision Changes Path
12 1.567 net-print/cups/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.567&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.567&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?r1=1.566&r2=1.567
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v
21 retrieving revision 1.566
22 retrieving revision 1.567
23 diff -u -r1.566 -r1.567
24 --- ChangeLog 22 Oct 2013 16:41:12 -0000 1.566
25 +++ ChangeLog 30 Oct 2013 21:48:47 -0000 1.567
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-print/cups
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.566 2013/10/22 16:41:12 dilfridge Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.567 2013/10/30 21:48:47 dilfridge Exp $
31 +
32 +*cups-1.7.0 (30 Oct 2013)
33 +
34 + 30 Oct 2013; Andreas K. Huettel <dilfridge@g.o> -cups-1.6.3-r2.ebuild,
35 + -cups-1.7_rc1.ebuild, +cups-1.7.0.ebuild, cups-9999.ebuild:
36 + Version bump; remove old
37
38 22 Oct 2013; Andreas K. Huettel <dilfridge@g.o> cups-1.6.2-r5.ebuild:
39 Drop stable keywords on unstable-only arches
40
41
42
43 1.45 net-print/cups/cups-9999.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-9999.ebuild?rev=1.45&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-9999.ebuild?rev=1.45&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-9999.ebuild?r1=1.44&r2=1.45
48
49 Index: cups-9999.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/net-print/cups/cups-9999.ebuild,v
52 retrieving revision 1.44
53 retrieving revision 1.45
54 diff -u -r1.44 -r1.45
55 --- cups-9999.ebuild 21 Oct 2013 15:21:03 -0000 1.44
56 +++ cups-9999.ebuild 30 Oct 2013 21:48:47 -0000 1.45
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2013 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-9999.ebuild,v 1.44 2013/10/21 15:21:03 grobian Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-9999.ebuild,v 1.45 2013/10/30 21:48:47 dilfridge Exp $
62
63 EAPI=5
64
65 @@ -34,7 +34,7 @@
66 IUSE="acl dbus debug +filters gnutls java kerberos lprng-compat pam
67 python selinux +ssl static-libs +threads usb X xinetd zeroconf"
68
69 -LANGS="ca es fr ja ru"
70 +LANGS="ca es fr it ja ru"
71 for X in ${LANGS} ; do
72 IUSE="${IUSE} +linguas_${X}"
73 done
74 @@ -91,7 +91,6 @@
75 "${FILESDIR}/${PN}-1.6.0-fix-install-perms.patch"
76 "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
77 "${FILESDIR}/${PN}-1.5.0-systemd-socket-2.patch" # systemd support
78 - "${FILESDIR}/${PN}-1.6.3-colord-profile.patch"
79 )
80
81 pkg_setup() {
82
83
84
85 1.1 net-print/cups/cups-1.7.0.ebuild
86
87 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.7.0.ebuild?rev=1.1&view=markup
88 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.7.0.ebuild?rev=1.1&content-type=text/plain
89
90 Index: cups-1.7.0.ebuild
91 ===================================================================
92 # Copyright 1999-2013 Gentoo Foundation
93 # Distributed under the terms of the GNU General Public License v2
94 # $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.7.0.ebuild,v 1.1 2013/10/30 21:48:47 dilfridge Exp $
95
96 EAPI=5
97
98 PYTHON_COMPAT=( python{2_6,2_7} )
99
100 inherit autotools base fdo-mime gnome2-utils flag-o-matic linux-info \
101 multilib pam python-single-r1 user versionator java-pkg-opt-2 systemd
102
103 MY_P=${P/_rc/rc}
104 MY_P=${MY_P/_beta/b}
105 MY_PV=${PV/_rc/rc}
106 MY_PV=${MY_PV/_beta/b}
107
108 if [[ ${PV} == *9999 ]]; then
109 inherit git-2
110 EGIT_REPO_URI="http://www.cups.org/cups.git"
111 if [[ ${PV} != 9999 ]]; then
112 EGIT_BRANCH=branch-${PV/.9999}
113 fi
114 KEYWORDS=""
115 else
116 SRC_URI="http://www.cups.org/software/${MY_PV}/${MY_P}-source.tar.bz2"
117 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
118 fi
119
120 DESCRIPTION="The Common Unix Printing System"
121 HOMEPAGE="http://www.cups.org/"
122
123 LICENSE="GPL-2"
124 SLOT="0"
125 IUSE="acl dbus debug +filters gnutls java kerberos lprng-compat pam
126 python selinux +ssl static-libs +threads usb X xinetd zeroconf"
127
128 LANGS="ca es fr it ja ru"
129 for X in ${LANGS} ; do
130 IUSE="${IUSE} +linguas_${X}"
131 done
132
133 RDEPEND="
134 app-text/libpaper
135 acl? (
136 kernel_linux? (
137 sys-apps/acl
138 sys-apps/attr
139 )
140 )
141 dbus? ( sys-apps/dbus )
142 java? ( >=virtual/jre-1.6 )
143 kerberos? ( virtual/krb5 )
144 !lprng-compat? ( !net-print/lprng )
145 pam? ( virtual/pam )
146 python? ( ${PYTHON_DEPS} )
147 selinux? ( sec-policy/selinux-cups )
148 ssl? (
149 gnutls? (
150 dev-libs/libgcrypt
151 net-libs/gnutls
152 )
153 !gnutls? ( >=dev-libs/openssl-0.9.8g )
154 )
155 usb? ( virtual/libusb:1 )
156 X? ( x11-misc/xdg-utils )
157 xinetd? ( sys-apps/xinetd )
158 zeroconf? ( net-dns/avahi )
159 "
160
161 DEPEND="${RDEPEND}
162 virtual/pkgconfig
163 "
164
165 PDEPEND="
166 app-text/ghostscript-gpl[cups]
167 app-text/poppler[utils]
168 >=net-print/cups-filters-1.0.30
169 filters? ( net-print/foomatic-filters )
170 "
171
172 REQUIRED_USE="gnutls? ( ssl )
173 python? ( ${PYTHON_REQUIRED_USE} )"
174
175 # upstream includes an interactive test which is a nono for gentoo
176 RESTRICT="test"
177
178 S="${WORKDIR}/${MY_P}"
179
180 PATCHES=(
181 "${FILESDIR}/${PN}-1.6.0-dont-compress-manpages.patch"
182 "${FILESDIR}/${PN}-1.6.0-fix-install-perms.patch"
183 "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
184 "${FILESDIR}/${PN}-1.5.0-systemd-socket-2.patch" # systemd support
185 )
186
187 pkg_setup() {
188 enewgroup lp
189 enewuser lp -1 -1 -1 lp
190 enewgroup lpadmin 106
191
192 use python && python-single-r1_pkg_setup
193
194 if use kernel_linux; then
195 linux-info_pkg_setup
196 if ! linux_config_exists; then
197 ewarn "Can't check the linux kernel configuration."
198 ewarn "You might have some incompatible options enabled."
199 else
200 # recheck that we don't have usblp to collide with libusb
201 if use usb; then
202 if linux_chkconfig_present USB_PRINTER; then
203 eerror "Your usb printers will be managed via libusb. In this case, "
204 eerror "${P} requires the USB_PRINTER support disabled."
205 eerror "Please disable it:"
206 eerror " CONFIG_USB_PRINTER=n"
207 eerror "in /usr/src/linux/.config or"
208 eerror " Device Drivers --->"
209 eerror " USB support --->"
210 eerror " [ ] USB Printer support"
211 eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
212 fi
213 else
214 #here we should warn user that he should enable it so he can print
215 if ! linux_chkconfig_present USB_PRINTER; then
216 ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
217 ewarn "support in your kernel."
218 ewarn "Please enable it:"
219 ewarn " CONFIG_USB_PRINTER=y"
220 ewarn "in /usr/src/linux/.config or"
221 ewarn " Device Drivers --->"
222 ewarn " USB support --->"
223 ewarn " [*] USB Printer support"
224 ewarn "Alternatively, enable the usb useflag for cups and use the libusb code."
225 fi
226 fi
227 fi
228 fi
229 }
230
231 src_prepare() {
232 base_src_prepare
233 AT_M4DIR=config-scripts eaclocal
234 eautoconf
235 }
236
237 src_configure() {
238 export DSOFLAGS="${LDFLAGS}"
239
240 einfo LANGS=\"${LANGS}\"
241 einfo LINGUAS=\"${LINGUAS}\"
242
243 local myconf
244 if use ssl ; then
245 myconf+="
246 $(use_enable gnutls)
247 $(use_enable !gnutls openssl)
248 "
249 else
250 myconf+="
251 --disable-gnutls
252 --disable-openssl
253 "
254 fi
255
256 econf \
257 --libdir="${EPREFIX}"/usr/$(get_libdir) \
258 --localstatedir="${EPREFIX}"/var \
259 --with-rundir="${EPREFIX}"/run/cups \
260 --with-cups-user=lp \
261 --with-cups-group=lp \
262 --with-docdir="${EPREFIX}"/usr/share/cups/html \
263 --with-languages="${LINGUAS}" \
264 --with-system-groups=lpadmin \
265 $(use_enable acl) \
266 $(use_enable zeroconf avahi) \
267 $(use_enable dbus) \
268 $(use_enable debug) \
269 $(use_enable debug debug-guards) \
270 $(use_enable kerberos gssapi) \
271 $(use_enable pam) \
272 $(use_enable static-libs static) \
273 $(use_enable threads) \
274 $(use_enable usb libusb) \
275 --disable-dnssd \
276 $(use_with java) \
277 --without-perl \
278 --without-php \
279 $(use_with python python "${PYTHON}") \
280 $(use_with xinetd xinetd /etc/xinetd.d) \
281 --enable-libpaper \
282 --with-systemdsystemunitdir="$(systemd_get_unitdir)" \
283 ${myconf}
284
285 # install in /usr/libexec always, instead of using /usr/lib/cups, as that
286 # makes more sense when facing multilib support.
287 sed -i -e "s:SERVERBIN.*:SERVERBIN = \"\$\(BUILDROOT\)${EPREFIX}/usr/libexec/cups\":" Makedefs || die
288 sed -i -e "s:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN \"${EPREFIX}/usr/libexec/cups\":" config.h || die
289 sed -i -e "s:cups_serverbin=.*:cups_serverbin=\"${EPREFIX}/usr/libexec/cups\":" cups-config || die
290 }
291
292 src_install() {
293 # Fix install-sh, posix sh does not have 'function'.
294 sed 's#function gzipcp#gzipcp()#g' -i "${S}/install-sh"
295
296 emake BUILDROOT="${D}" install
297 dodoc {CHANGES,CREDITS,README}.txt
298
299 # move the default config file to docs
300 dodoc "${ED}"/etc/cups/cupsd.conf.default
301 rm -f "${ED}"/etc/cups/cupsd.conf.default
302
303 # clean out cups init scripts
304 rm -rf "${ED}"/etc/{init.d/cups,rc*,pam.d/cups}
305
306 # install our init script
307 local neededservices
308 use zeroconf && neededservices+=" avahi-daemon"
309 use dbus && neededservices+=" dbus"
310 [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
311 cp "${FILESDIR}"/cupsd.init.d-r1 "${T}"/cupsd || die
312 sed -i \
313 -e "s/@neededservices@/$neededservices/" \
314 "${T}"/cupsd || die
315 doinitd "${T}"/cupsd
316
317 # install our pam script
318 pamd_mimic_system cups auth account
319
320 if use xinetd ; then
321 # correct path
322 sed -i \
323 -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
324 "${ED}"/etc/xinetd.d/cups-lpd || die
325 # it is safer to disable this by default, bug #137130
326 grep -w 'disable' "${ED}"/etc/xinetd.d/cups-lpd || \
327 { sed -i -e "s:}:\tdisable = yes\n}:" "${ED}"/etc/xinetd.d/cups-lpd || die ; }
328 # write permission for file owner (root), bug #296221
329 fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
330 else
331 rm -rf "${ED}"/etc/xinetd.d
332 fi
333
334 keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
335 /var/cache/cups /var/cache/cups/rss /var/log/cups \
336 /var/spool/cups/tmp
337
338 keepdir /etc/cups/{interfaces,ppd,ssl}
339
340 use X || rm -r "${ED}"/usr/share/applications
341
342 # create /etc/cups/client.conf, bug #196967 and #266678
343 echo "ServerName ${EPREFIX}/run/cups/cups.sock" >> "${ED}"/etc/cups/client.conf
344
345 # the following files are now provided by cups-filters:
346 rm -r "${ED}"/usr/share/cups/banners || die
347 rm -r "${ED}"/usr/share/cups/data/testprint || die
348
349 # for the special case of running lprng and cups together, bug 467226
350 if use lprng-compat ; then
351 rm -fv "${ED}"/usr/bin/{lp*,cancel}
352 rm -fv "${ED}"/usr/sbin/lp*
353 rm -fv "${ED}"/usr/share/man/man1/{lp*,cancel*}
354 rm -fv "${ED}"/usr/share/man/man8/lp*
355 ewarn "Not installing lp... binaries, since the lprng-compat useflag is set."
356 ewarn "Unless you plan to install an exotic server setup, you most likely"
357 ewarn "do not want this. Disable the useflag then and all will be fine."
358 fi
359 }
360
361 pkg_preinst() {
362 gnome2_icon_savelist
363 }
364
365 pkg_postinst() {
366 # Update desktop file database and gtk icon cache (bug 370059)
367 gnome2_icon_cache_update
368 fdo-mime_desktop_database_update
369
370 # not slotted - at most one value
371 if ! [[ "${REPLACING_VERSIONS}" ]]; then
372 echo
373 elog "For information about installing a printer and general cups setup"
374 elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
375 echo
376 fi
377
378 if [[ "${REPLACING_VERSIONS}" ]] && [[ "${REPLACING_VERSIONS}" < "1.6" ]]; then
379 echo
380 elog "CUPS-1.6 no longer supports automatic remote printers or implicit classes"
381 elog "via the CUPS, LDAP, or SLP protocols, i.e. \"network browsing\"."
382 elog "You will have to find printers using zeroconf/avahi instead, enter"
383 elog "the location manually, or run cups-browsed from net-print/cups-filters"
384 elog "which re-adds that functionality as a separate daemon."
385 echo
386 fi
387
388 if [[ "${REPLACING_VERSIONS}" == "1.6.2-r4" ]]; then
389 ewarn
390 ewarn "You are upgrading from the broken version net-print/cups-1.6.2-r4."
391 ewarn "Please rebuild net-print/cups-filters now to make sure everything is OK."
392 ewarn
393 fi
394 }
395
396 pkg_postrm() {
397 # Update desktop file database and gtk icon cache (bug 370059)
398 gnome2_icon_cache_update
399 fdo-mime_desktop_database_update
400 }