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