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