1 |
dilfridge 12/06/02 16:57:16 |
2 |
|
3 |
Modified: ChangeLog cups-9999.ebuild |
4 |
Added: cups-1.6_beta1.ebuild |
5 |
Log: |
6 |
Add 1.6.0 beta1 release |
7 |
|
8 |
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64, RepoMan options: --force) |
9 |
|
10 |
Revision Changes Path |
11 |
1.486 net-print/cups/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.486&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.486&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?r1=1.485&r2=1.486 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v |
20 |
retrieving revision 1.485 |
21 |
retrieving revision 1.486 |
22 |
diff -u -r1.485 -r1.486 |
23 |
--- ChangeLog 1 Jun 2012 04:19:51 -0000 1.485 |
24 |
+++ ChangeLog 2 Jun 2012 16:57:16 -0000 1.486 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-print/cups |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.485 2012/06/01 04:19:51 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.486 2012/06/02 16:57:16 dilfridge Exp $ |
30 |
+ |
31 |
+*cups-1.6_beta1 (02 Jun 2012) |
32 |
+ |
33 |
+ 02 Jun 2012; Andreas K. Huettel <dilfridge@g.o> |
34 |
+ +cups-1.6_beta1.ebuild, files/cups-1.6.0-fix-install-perms.patch, |
35 |
+ cups-9999.ebuild: |
36 |
+ Add 1.6.0 beta1 release |
37 |
|
38 |
01 Jun 2012; Zac Medico <zmedico@g.o> cups-1.4.8-r1.ebuild, |
39 |
cups-1.4.8-r23.ebuild, cups-1.5.2-r21.ebuild, cups-1.5.2-r4.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.8 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.8&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-9999.ebuild?rev=1.8&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-9999.ebuild?r1=1.7&r2=1.8 |
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.7 |
53 |
retrieving revision 1.8 |
54 |
diff -u -r1.7 -r1.8 |
55 |
--- cups-9999.ebuild 1 Jun 2012 04:19:51 -0000 1.7 |
56 |
+++ cups-9999.ebuild 2 Jun 2012 16:57:16 -0000 1.8 |
57 |
@@ -1,6 +1,6 @@ |
58 |
# Copyright 1999-2012 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.7 2012/06/01 04:19:51 zmedico Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-9999.ebuild,v 1.8 2012/06/02 16:57:16 dilfridge Exp $ |
62 |
|
63 |
EAPI=4 |
64 |
|
65 |
@@ -8,8 +8,8 @@ |
66 |
|
67 |
inherit autotools base fdo-mime gnome2-utils flag-o-matic linux-info multilib pam python user versionator java-pkg-opt-2 systemd |
68 |
|
69 |
-MY_P=${P/_} |
70 |
-MY_PV=${PV/_} |
71 |
+MY_P=${P/_beta/b} |
72 |
+MY_PV=${PV/_beta/b} |
73 |
|
74 |
if [[ "${PV}" != "9999" ]]; then |
75 |
SRC_URI="mirror://easysw/${PN}/${MY_PV}/${MY_P}-source.tar.bz2" |
76 |
@@ -57,9 +57,7 @@ |
77 |
usb? ( virtual/libusb:0 ) |
78 |
X? ( x11-misc/xdg-utils ) |
79 |
xinetd? ( sys-apps/xinetd ) |
80 |
- zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] |
81 |
- >=net-misc/mDNSResponder-320.10.80 ) |
82 |
-) |
83 |
+ zeroconf? ( net-dns/avahi[mdnsresponder-compat] ) |
84 |
" |
85 |
|
86 |
DEPEND="${RDEPEND} |
87 |
@@ -170,7 +168,6 @@ |
88 |
--with-cups-group=lp \ |
89 |
--with-docdir=/usr/share/cups/html \ |
90 |
--with-languages="${LINGUAS}" \ |
91 |
- --with-pdftops=/usr/bin/pdftops \ |
92 |
--with-system-groups=lpadmin \ |
93 |
$(use_enable acl) \ |
94 |
$(use_enable avahi) \ |
95 |
|
96 |
|
97 |
|
98 |
1.1 net-print/cups/cups-1.6_beta1.ebuild |
99 |
|
100 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.6_beta1.ebuild?rev=1.1&view=markup |
101 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.6_beta1.ebuild?rev=1.1&content-type=text/plain |
102 |
|
103 |
Index: cups-1.6_beta1.ebuild |
104 |
=================================================================== |
105 |
# Copyright 1999-2012 Gentoo Foundation |
106 |
# Distributed under the terms of the GNU General Public License v2 |
107 |
# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.6_beta1.ebuild,v 1.1 2012/06/02 16:57:16 dilfridge Exp $ |
108 |
|
109 |
EAPI=4 |
110 |
|
111 |
PYTHON_DEPEND="python? 2:2.5" |
112 |
|
113 |
inherit autotools base fdo-mime gnome2-utils flag-o-matic linux-info multilib pam python user versionator java-pkg-opt-2 systemd |
114 |
|
115 |
MY_P=${P/_beta/b} |
116 |
MY_PV=${PV/_beta/b} |
117 |
|
118 |
if [[ "${PV}" != "9999" ]]; then |
119 |
SRC_URI="mirror://easysw/${PN}/${MY_PV}/${MY_P}-source.tar.bz2" |
120 |
KEYWORDS="" |
121 |
else |
122 |
inherit subversion |
123 |
ESVN_REPO_URI="http://svn.easysw.com/public/cups/trunk" |
124 |
KEYWORDS="" |
125 |
fi |
126 |
|
127 |
DESCRIPTION="The Common Unix Printing System" |
128 |
HOMEPAGE="http://www.cups.org/" |
129 |
|
130 |
LICENSE="GPL-2" |
131 |
SLOT="0" |
132 |
IUSE="acl avahi dbus debug +filters gnutls java kerberos pam |
133 |
python +ssl static-libs systemd +threads usb X xinetd zeroconf" |
134 |
|
135 |
LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW" |
136 |
for X in ${LANGS} ; do |
137 |
IUSE="${IUSE} linguas_${X}" |
138 |
done |
139 |
|
140 |
RDEPEND=" |
141 |
app-text/libpaper |
142 |
acl? ( |
143 |
kernel_linux? ( |
144 |
sys-apps/acl |
145 |
sys-apps/attr |
146 |
) |
147 |
) |
148 |
avahi? ( net-dns/avahi ) |
149 |
dbus? ( sys-apps/dbus ) |
150 |
java? ( >=virtual/jre-1.6 ) |
151 |
kerberos? ( virtual/krb5 ) |
152 |
pam? ( virtual/pam ) |
153 |
ssl? ( |
154 |
gnutls? ( |
155 |
dev-libs/libgcrypt |
156 |
net-libs/gnutls |
157 |
) |
158 |
!gnutls? ( >=dev-libs/openssl-0.9.8g ) |
159 |
) |
160 |
systemd? ( sys-apps/systemd ) |
161 |
usb? ( virtual/libusb:0 ) |
162 |
X? ( x11-misc/xdg-utils ) |
163 |
xinetd? ( sys-apps/xinetd ) |
164 |
zeroconf? ( net-dns/avahi[mdnsresponder-compat] ) |
165 |
" |
166 |
|
167 |
DEPEND="${RDEPEND} |
168 |
virtual/pkgconfig |
169 |
" |
170 |
|
171 |
PDEPEND=" |
172 |
app-text/ghostscript-gpl[cups] |
173 |
>=app-text/poppler-0.12.3-r3[utils] |
174 |
filters? ( net-print/foomatic-filters ) |
175 |
" |
176 |
|
177 |
REQUIRED_USE="gnutls? ( ssl )" |
178 |
|
179 |
# upstream includes an interactive test which is a nono for gentoo |
180 |
RESTRICT="test" |
181 |
|
182 |
S="${WORKDIR}/${MY_P}" |
183 |
|
184 |
PATCHES=( |
185 |
"${FILESDIR}/${PN}-1.6.0-dont-compress-manpages.patch" |
186 |
"${FILESDIR}/${PN}-1.6.0-fix-install-perms.patch" |
187 |
"${FILESDIR}/${PN}-1.4.4-nostrip.patch" |
188 |
"${FILESDIR}/${PN}-1.5.0-systemd-socket.patch" # systemd support |
189 |
"${FILESDIR}/${PN}-1.5.2-browsing.patch" # browsing off by default |
190 |
) |
191 |
|
192 |
pkg_setup() { |
193 |
enewgroup lp |
194 |
enewuser lp -1 -1 -1 lp |
195 |
enewgroup lpadmin 106 |
196 |
|
197 |
# python 3 is no-go |
198 |
if use python; then |
199 |
python_set_active_version 2 |
200 |
python_pkg_setup |
201 |
fi |
202 |
|
203 |
if use kernel_linux; then |
204 |
linux-info_pkg_setup |
205 |
if ! linux_config_exists; then |
206 |
ewarn "Can't check the linux kernel configuration." |
207 |
ewarn "You might have some incompatible options enabled." |
208 |
else |
209 |
# recheck that we don't have usblp to collide with libusb |
210 |
if use usb; then |
211 |
if linux_chkconfig_present USB_PRINTER; then |
212 |
eerror "Your usb printers will be managed via libusb. In this case, " |
213 |
eerror "${P} requires the USB_PRINTER support disabled." |
214 |
eerror "Please disable it:" |
215 |
eerror " CONFIG_USB_PRINTER=n" |
216 |
eerror "in /usr/src/linux/.config or" |
217 |
eerror " Device Drivers --->" |
218 |
eerror " USB support --->" |
219 |
eerror " [ ] USB Printer support" |
220 |
eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)." |
221 |
fi |
222 |
else |
223 |
#here we should warn user that he should enable it so he can print |
224 |
if ! linux_chkconfig_present USB_PRINTER; then |
225 |
ewarn "If you plan to use USB printers you should enable the USB_PRINTER" |
226 |
ewarn "support in your kernel." |
227 |
ewarn "Please enable it:" |
228 |
ewarn " CONFIG_USB_PRINTER=y" |
229 |
ewarn "in /usr/src/linux/.config or" |
230 |
ewarn " Device Drivers --->" |
231 |
ewarn " USB support --->" |
232 |
ewarn " [*] USB Printer support" |
233 |
ewarn "Alternatively, enable the usb useflag for cups and use the libusb code." |
234 |
fi |
235 |
fi |
236 |
fi |
237 |
fi |
238 |
} |
239 |
|
240 |
src_prepare() { |
241 |
base_src_prepare |
242 |
AT_M4DIR=config-scripts eaclocal |
243 |
eautoconf |
244 |
} |
245 |
|
246 |
src_configure() { |
247 |
export DSOFLAGS="${LDFLAGS}" |
248 |
|
249 |
# locale support |
250 |
strip-linguas ${LANGS} |
251 |
if [ -z "${LINGUAS}" ] ; then |
252 |
export LINGUAS=none |
253 |
fi |
254 |
|
255 |
local myconf |
256 |
if use ssl ; then |
257 |
myconf+=" |
258 |
$(use_enable gnutls) |
259 |
$(use_enable !gnutls openssl) |
260 |
" |
261 |
else |
262 |
myconf+=" |
263 |
--disable-gnutls |
264 |
--disable-openssl |
265 |
" |
266 |
fi |
267 |
|
268 |
econf \ |
269 |
--libdir=/usr/$(get_libdir) \ |
270 |
--localstatedir=/var \ |
271 |
--with-cups-user=lp \ |
272 |
--with-cups-group=lp \ |
273 |
--with-docdir=/usr/share/cups/html \ |
274 |
--with-languages="${LINGUAS}" \ |
275 |
--with-system-groups=lpadmin \ |
276 |
$(use_enable acl) \ |
277 |
$(use_enable avahi) \ |
278 |
$(use_enable dbus) \ |
279 |
$(use_enable debug) \ |
280 |
$(use_enable debug debug-guards) \ |
281 |
$(use_enable kerberos gssapi) \ |
282 |
$(use_enable pam) \ |
283 |
$(use_enable static-libs static) \ |
284 |
$(use_enable threads) \ |
285 |
$(use_enable usb libusb) \ |
286 |
$(use_enable zeroconf dnssd) \ |
287 |
$(use_with java) \ |
288 |
--without-perl \ |
289 |
--without-php \ |
290 |
$(use_with python) \ |
291 |
$(use_with xinetd xinetd /etc/xinetd.d) \ |
292 |
--enable-libpaper \ |
293 |
$(use_with systemd systemdsystemunitdir "$(systemd_get_unitdir)") \ |
294 |
${myconf} |
295 |
|
296 |
# install in /usr/libexec always, instead of using /usr/lib/cups, as that |
297 |
# makes more sense when facing multilib support. |
298 |
sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs || die |
299 |
sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die |
300 |
sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die |
301 |
} |
302 |
|
303 |
src_install() { |
304 |
emake BUILDROOT="${D}" install |
305 |
dodoc {CHANGES,CREDITS,README}.txt |
306 |
|
307 |
# move the default config file to docs |
308 |
dodoc "${ED}"/etc/cups/cupsd.conf.default |
309 |
rm -f "${ED}"/etc/cups/cupsd.conf.default |
310 |
|
311 |
# clean out cups init scripts |
312 |
rm -rf "${ED}"/etc/{init.d/cups,rc*,pam.d/cups} |
313 |
|
314 |
# install our init script |
315 |
local neededservices |
316 |
use avahi && neededservices+=" avahi-daemon" |
317 |
use dbus && neededservices+=" dbus" |
318 |
[[ -n ${neededservices} ]] && neededservices="need${neededservices}" |
319 |
cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die |
320 |
sed -i \ |
321 |
-e "s/@neededservices@/$neededservices/" \ |
322 |
"${T}"/cupsd || die |
323 |
doinitd "${T}"/cupsd |
324 |
|
325 |
# install our pam script |
326 |
pamd_mimic_system cups auth account |
327 |
|
328 |
if use xinetd ; then |
329 |
# correct path |
330 |
sed -i \ |
331 |
-e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \ |
332 |
"${ED}"/etc/xinetd.d/cups-lpd || die |
333 |
# it is safer to disable this by default, bug #137130 |
334 |
grep -w 'disable' "${ED}"/etc/xinetd.d/cups-lpd || \ |
335 |
{ sed -i -e "s:}:\tdisable = yes\n}:" "${ED}"/etc/xinetd.d/cups-lpd || die ; } |
336 |
# write permission for file owner (root), bug #296221 |
337 |
fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed" |
338 |
else |
339 |
rm -rf "${ED}"/etc/xinetd.d |
340 |
fi |
341 |
|
342 |
keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \ |
343 |
/var/cache/cups /var/cache/cups/rss /var/log/cups \ |
344 |
/var/spool/cups/tmp |
345 |
|
346 |
keepdir /etc/cups/{interfaces,ppd,ssl} |
347 |
|
348 |
use X || rm -r "${ED}"/usr/share/applications |
349 |
|
350 |
# create /etc/cups/client.conf, bug #196967 and #266678 |
351 |
echo "ServerName /var/run/cups/cups.sock" >> "${ED}"/etc/cups/client.conf |
352 |
} |
353 |
|
354 |
pkg_preinst() { |
355 |
gnome2_icon_savelist |
356 |
} |
357 |
|
358 |
pkg_postinst() { |
359 |
# Update desktop file database and gtk icon cache (bug 370059) |
360 |
gnome2_icon_cache_update |
361 |
fdo-mime_desktop_database_update |
362 |
|
363 |
echo |
364 |
elog "For information about installing a printer and general cups setup" |
365 |
elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml" |
366 |
echo |
367 |
elog "Network browsing for printers is now switched off by default in the config file." |
368 |
elog "To (re-)enable it, edit /etc/cups/cupsd.conf and set \"Browsing On\", " |
369 |
elog "afterwards re-start or reload cups." |
370 |
echo |
371 |
} |
372 |
|
373 |
pkg_postrm() { |
374 |
# Update desktop file database and gtk icon cache (bug 370059) |
375 |
gnome2_icon_cache_update |
376 |
fdo-mime_desktop_database_update |
377 |
} |