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