1 |
tgurr 10/03/31 23:01:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cups-1.4.3.ebuild |
5 |
Removed: cups-1.4.2-r1.ebuild |
6 |
Log: |
7 |
Version bump, fixing bug #284771 and #295369. |
8 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.381 net-print/cups/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?rev=1.381&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?rev=1.381&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?r1=1.380&r2=1.381 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v |
20 |
retrieving revision 1.380 |
21 |
retrieving revision 1.381 |
22 |
diff -u -r1.380 -r1.381 |
23 |
--- ChangeLog 8 Mar 2010 22:20:59 -0000 1.380 |
24 |
+++ ChangeLog 31 Mar 2010 23:01:18 -0000 1.381 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-print/cups |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.380 2010/03/08 22:20:59 reavertm Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.381 2010/03/31 23:01:18 tgurr Exp $ |
30 |
+ |
31 |
+*cups-1.4.3 (31 Mar 2010) |
32 |
+ |
33 |
+ 31 Mar 2010; Timo Gurr <tgurr@g.o> -cups-1.4.2-r1.ebuild, |
34 |
+ +cups-1.4.3.ebuild: |
35 |
+ Version bump, fixing bug #284771 and #295369. |
36 |
|
37 |
08 Mar 2010; Maciej Mrozowski <reavertm@g.o> cups-1.3.11-r1.ebuild, |
38 |
cups-1.3.11-r2.ebuild, cups-1.4.2-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-print/cups/cups-1.4.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.4.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.4.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: cups-1.4.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 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.4.3.ebuild,v 1.1 2010/03/31 23:01:18 tgurr Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
inherit autotools eutils flag-o-matic multilib pam versionator |
56 |
|
57 |
MY_P=${P/_} |
58 |
|
59 |
DESCRIPTION="The Common Unix Printing System." |
60 |
HOMEPAGE="http://www.cups.org/" |
61 |
SRC_URI="mirror://easysw/${PN}/${PV}/${MY_P}-source.tar.bz2" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
66 |
IUSE="acl dbus debug gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static +tiff +usb X xinetd" |
67 |
|
68 |
COMMON_DEPEND=" |
69 |
app-text/libpaper |
70 |
dev-libs/libgcrypt |
71 |
acl? ( |
72 |
kernel_linux? ( |
73 |
sys-apps/acl |
74 |
sys-apps/attr |
75 |
) |
76 |
) |
77 |
dbus? ( sys-apps/dbus ) |
78 |
gnutls? ( net-libs/gnutls ) |
79 |
java? ( >=virtual/jre-1.4 ) |
80 |
jpeg? ( >=media-libs/jpeg-6b:0 ) |
81 |
kerberos? ( virtual/krb5 ) |
82 |
ldap? ( net-nds/openldap ) |
83 |
pam? ( virtual/pam ) |
84 |
perl? ( dev-lang/perl ) |
85 |
php? ( dev-lang/php ) |
86 |
png? ( >=media-libs/libpng-1.2.1 ) |
87 |
python? ( dev-lang/python ) |
88 |
slp? ( >=net-libs/openslp-1.0.4 ) |
89 |
ssl? ( |
90 |
!gnutls? ( >=dev-libs/openssl-0.9.8g ) |
91 |
) |
92 |
tiff? ( >=media-libs/tiff-3.5.5 ) |
93 |
usb? ( dev-libs/libusb ) |
94 |
xinetd? ( sys-apps/xinetd ) |
95 |
" |
96 |
DEPEND="${COMMON_DEPEND}" |
97 |
|
98 |
RDEPEND="${COMMON_DEPEND} |
99 |
!net-print/cupsddk |
100 |
!virtual/lpr |
101 |
X? ( x11-misc/xdg-utils ) |
102 |
" |
103 |
PDEPEND=" |
104 |
app-text/ghostscript-gpl[cups] |
105 |
>=app-text/poppler-0.12.3-r3[utils] |
106 |
" |
107 |
|
108 |
PROVIDE="virtual/lpr" |
109 |
|
110 |
# upstream includes an interactive test which is a nono for gentoo. |
111 |
# therefore, since the printing herd has bigger fish to fry, for now, |
112 |
# we just leave it out, even if FEATURES=test |
113 |
RESTRICT="test" |
114 |
|
115 |
S="${WORKDIR}/${MY_P}" |
116 |
|
117 |
LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW" |
118 |
for X in ${LANGS} ; do |
119 |
IUSE="${IUSE} linguas_${X}" |
120 |
done |
121 |
|
122 |
pkg_setup() { |
123 |
enewgroup lp |
124 |
enewuser lp -1 -1 -1 lp |
125 |
enewgroup lpadmin 106 |
126 |
} |
127 |
|
128 |
src_prepare() { |
129 |
# remove default optimizations and do not strip by default |
130 |
sed -e 's:OPTIM="-Os -g":OPTIM="":' \ |
131 |
-e 's:INSTALL_STRIP="-s":INSTALL_STRIP="":' \ |
132 |
-i config-scripts/cups-compiler.m4 |
133 |
|
134 |
# create a missing symlink to allow https printing via IPP, bug #217293 |
135 |
epatch "${FILESDIR}/${PN}-1.4.0-backend-https.patch" |
136 |
|
137 |
AT_M4DIR=config-scripts eaclocal |
138 |
eautoconf |
139 |
} |
140 |
|
141 |
src_configure() { |
142 |
# locale support |
143 |
strip-linguas ${LANGS} |
144 |
if [ -z "${LINGUAS}" ] ; then |
145 |
export LINGUAS=none |
146 |
fi |
147 |
|
148 |
local myconf |
149 |
if use ssl || use gnutls ; then |
150 |
myconf="${myconf} \ |
151 |
$(use_enable gnutls) \ |
152 |
$(use_enable !gnutls openssl)" |
153 |
else |
154 |
myconf="${myconf} \ |
155 |
--disable-gnutls \ |
156 |
--disable-openssl" |
157 |
fi |
158 |
|
159 |
econf \ |
160 |
--libdir=/usr/$(get_libdir) \ |
161 |
--localstatedir=/var \ |
162 |
--with-cups-user=lp \ |
163 |
--with-cups-group=lp \ |
164 |
--with-docdir=/usr/share/cups/html \ |
165 |
--with-languages="${LINGUAS}" \ |
166 |
--with-pdftops=/usr/bin/pdftops \ |
167 |
--with-system-groups=lpadmin \ |
168 |
$(use_enable acl) \ |
169 |
$(use_enable dbus) \ |
170 |
$(use_enable debug) \ |
171 |
$(use_enable debug debug-guards) \ |
172 |
$(use_enable jpeg) \ |
173 |
$(use_enable kerberos gssapi) \ |
174 |
$(use_enable ldap) \ |
175 |
$(use_enable pam) \ |
176 |
$(use_enable png) \ |
177 |
$(use_enable slp) \ |
178 |
$(use_enable static) \ |
179 |
$(use_enable tiff) \ |
180 |
$(use_enable usb libusb) \ |
181 |
$(use_with java) \ |
182 |
$(use_with perl) \ |
183 |
$(use_with php) \ |
184 |
$(use_with python) \ |
185 |
$(use_with xinetd xinetd /etc/xinetd.d) \ |
186 |
--enable-libpaper \ |
187 |
--enable-threads \ |
188 |
--disable-dnssd \ |
189 |
${myconf} |
190 |
|
191 |
# install in /usr/libexec always, instead of using /usr/lib/cups, as that |
192 |
# makes more sense when facing multilib support. |
193 |
sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs |
194 |
sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h |
195 |
sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config |
196 |
} |
197 |
|
198 |
src_install() { |
199 |
emake BUILDROOT="${D}" install || die "emake install failed" |
200 |
dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed" |
201 |
|
202 |
# clean out cups init scripts |
203 |
rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups} |
204 |
|
205 |
# install our init script |
206 |
local neededservices |
207 |
use dbus && neededservices="$neededservices dbus" |
208 |
[[ -n ${neededservices} ]] && neededservices="need${neededservices}" |
209 |
sed -e "s/@neededservices@/$neededservices/" "${FILESDIR}"/cupsd.init.d > "${T}"/cupsd |
210 |
doinitd "${T}"/cupsd || die "doinitd failed" |
211 |
|
212 |
# install our pam script |
213 |
pamd_mimic_system cups auth account |
214 |
|
215 |
if use xinetd ; then |
216 |
# correct path |
217 |
sed -i -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" "${D}"/etc/xinetd.d/cups-lpd |
218 |
# it is safer to disable this by default, bug #137130 |
219 |
grep -w 'disable' "${D}"/etc/xinetd.d/cups-lpd || \ |
220 |
sed -i -e "s:}:\tdisable = yes\n}:" "${D}"/etc/xinetd.d/cups-lpd |
221 |
else |
222 |
rm -rf "${D}"/etc/xinetd.d |
223 |
fi |
224 |
|
225 |
keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \ |
226 |
/var/cache/cups /var/cache/cups/rss /var/log/cups /var/run/cups/certs \ |
227 |
/var/spool/cups/tmp |
228 |
|
229 |
keepdir /etc/cups/{interfaces,ppd,ssl} |
230 |
|
231 |
use X || rm -r "${D}"/usr/share/applications |
232 |
|
233 |
# create /etc/cups/client.conf, bug #196967 and #266678 |
234 |
echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf |
235 |
} |
236 |
|
237 |
pkg_postinst() { |
238 |
echo |
239 |
elog "For information about installing a printer and general cups setup" |
240 |
elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml" |
241 |
echo |
242 |
} |