1 |
scarabeus 10/12/01 12:34:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cups-1.4.5.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha6/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.401 net-print/cups/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.401&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.401&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?r1=1.400&r2=1.401 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v |
20 |
retrieving revision 1.400 |
21 |
retrieving revision 1.401 |
22 |
diff -u -r1.400 -r1.401 |
23 |
--- ChangeLog 12 Nov 2010 17:52:31 -0000 1.400 |
24 |
+++ ChangeLog 1 Dec 2010 12:34:34 -0000 1.401 |
25 |
@@ -1,6 +1,11 @@ |
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.400 2010/11/12 17:52:31 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.401 2010/12/01 12:34:34 scarabeus Exp $ |
30 |
+ |
31 |
+*cups-1.4.5 (01 Dec 2010) |
32 |
+ |
33 |
+ 01 Dec 2010; Tomáš Chvátal <scarabeus@g.o> +cups-1.4.5.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
*cups-1.3.11-r3 (12 Nov 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-print/cups/cups-1.4.5.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.4.5.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.4.5.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: cups-1.4.5.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.4.5.ebuild,v 1.1 2010/12/01 12:34:34 scarabeus Exp $ |
51 |
|
52 |
EAPI=3 |
53 |
|
54 |
PYTHON_DEPEND="python? 2:2.5" |
55 |
|
56 |
inherit autotools eutils flag-o-matic multilib pam perl-module python versionator java-pkg-opt-2 |
57 |
|
58 |
MY_P=${P/_} |
59 |
|
60 |
DESCRIPTION="The Common Unix Printing System" |
61 |
HOMEPAGE="http://www.cups.org/" |
62 |
SRC_URI="mirror://easysw/${PN}/${PV}/${MY_P}-source.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
67 |
IUSE="acl dbus debug gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static-libs +threads +tiff +usb X xinetd" |
68 |
|
69 |
LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW" |
70 |
for X in ${LANGS} ; do |
71 |
IUSE="${IUSE} linguas_${X}" |
72 |
done |
73 |
|
74 |
RDEPEND=" |
75 |
app-text/libpaper |
76 |
dev-libs/libgcrypt |
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 ) |
92 |
slp? ( >=net-libs/openslp-1.0.4 ) |
93 |
ssl? ( |
94 |
gnutls? ( net-libs/gnutls ) |
95 |
!gnutls? ( >=dev-libs/openssl-0.9.8g ) |
96 |
) |
97 |
tiff? ( >=media-libs/tiff-3.5.5 ) |
98 |
usb? ( virtual/libusb:0 ) |
99 |
X? ( x11-misc/xdg-utils ) |
100 |
xinetd? ( sys-apps/xinetd ) |
101 |
!net-print/cupsddk |
102 |
" |
103 |
|
104 |
DEPEND="${RDEPEND} |
105 |
dev-util/pkgconfig |
106 |
" |
107 |
|
108 |
PDEPEND=" |
109 |
app-text/ghostscript-gpl[cups] |
110 |
>=app-text/poppler-0.12.3-r3[utils] |
111 |
" |
112 |
|
113 |
PROVIDE="virtual/lpr" |
114 |
|
115 |
# upstream includes an interactive test which is a nono for gentoo. |
116 |
RESTRICT="test" |
117 |
|
118 |
S="${WORKDIR}/${MY_P}" |
119 |
|
120 |
pkg_setup() { |
121 |
enewgroup lp |
122 |
enewuser lp -1 -1 -1 lp |
123 |
enewgroup lpadmin 106 |
124 |
|
125 |
# python 3 is no-go |
126 |
python_set_active_version 2 |
127 |
python_pkg_setup |
128 |
} |
129 |
|
130 |
src_prepare() { |
131 |
# create a missing symlink to allow https printing via IPP, bug #217293 |
132 |
epatch "${FILESDIR}/${PN}-1.4.0-backend-https.patch" |
133 |
# various build time fixes |
134 |
epatch "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch" |
135 |
epatch "${FILESDIR}/${PN}-1.4.4-fix-install-perms.patch" |
136 |
epatch "${FILESDIR}/${PN}-1.4.4-nostrip.patch" |
137 |
epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch" |
138 |
epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch" |
139 |
|
140 |
AT_M4DIR=config-scripts eaclocal |
141 |
eautoconf |
142 |
} |
143 |
|
144 |
src_configure() { |
145 |
export DSOFLAGS="${LDFLAGS}" |
146 |
|
147 |
# locale support |
148 |
strip-linguas ${LANGS} |
149 |
if [ -z "${LINGUAS}" ] ; then |
150 |
export LINGUAS=none |
151 |
fi |
152 |
|
153 |
local myconf |
154 |
if use ssl || use gnutls ; then |
155 |
myconf+=" |
156 |
$(use_enable gnutls) |
157 |
$(use_enable !gnutls openssl) |
158 |
" |
159 |
else |
160 |
myconf+=" |
161 |
--disable-gnutls |
162 |
--disable-openssl |
163 |
" |
164 |
fi |
165 |
|
166 |
econf \ |
167 |
--libdir=/usr/$(get_libdir) \ |
168 |
--localstatedir=/var \ |
169 |
--with-cups-user=lp \ |
170 |
--with-cups-group=lp \ |
171 |
--with-docdir=/usr/share/cups/html \ |
172 |
--with-languages="${LINGUAS}" \ |
173 |
--with-pdftops=/usr/bin/pdftops \ |
174 |
--with-system-groups=lpadmin \ |
175 |
$(use_enable acl) \ |
176 |
$(use_enable dbus) \ |
177 |
$(use_enable debug) \ |
178 |
$(use_enable debug debug-guards) \ |
179 |
$(use_enable jpeg) \ |
180 |
$(use_enable kerberos gssapi) \ |
181 |
$(use_enable ldap) \ |
182 |
$(use_enable pam) \ |
183 |
$(use_enable png) \ |
184 |
$(use_enable slp) \ |
185 |
$(use_enable static-libs static) \ |
186 |
$(use_enable threads) \ |
187 |
$(use_enable tiff) \ |
188 |
$(use_enable usb libusb) \ |
189 |
$(use_with java) \ |
190 |
$(use_with perl) \ |
191 |
$(use_with php) \ |
192 |
$(use_with python) \ |
193 |
$(use_with xinetd xinetd /etc/xinetd.d) \ |
194 |
--enable-libpaper \ |
195 |
--disable-dnssd \ |
196 |
${myconf} |
197 |
|
198 |
# install in /usr/libexec always, instead of using /usr/lib/cups, as that |
199 |
# makes more sense when facing multilib support. |
200 |
sed -i -e 's:SERVERBIN.*:SERVERBIN = "$(BUILDROOT)"/usr/libexec/cups:' Makedefs || die |
201 |
sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die |
202 |
sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die |
203 |
} |
204 |
|
205 |
src_compile() { |
206 |
emake || die "emake failed" |
207 |
|
208 |
if use perl ; then |
209 |
cd "${S}"/scripting/perl |
210 |
perl-module_src_prep |
211 |
perl-module_src_compile |
212 |
fi |
213 |
|
214 |
if use php ; then |
215 |
cd "${S}"/scripting/php |
216 |
emake || die "emake php failed" |
217 |
fi |
218 |
} |
219 |
|
220 |
src_install() { |
221 |
emake BUILDROOT="${D}" install || die "emake install failed" |
222 |
dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed" |
223 |
|
224 |
if use perl ; then |
225 |
cd "${S}"/scripting/perl |
226 |
perl-module_src_install |
227 |
fixlocalpod |
228 |
fi |
229 |
|
230 |
if use php ; then |
231 |
cd "${S}"/scripting/php |
232 |
emake DESTDIR="${D}" install || die "emake install for php bindings failed" |
233 |
fi |
234 |
|
235 |
# clean out cups init scripts |
236 |
rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups} |
237 |
|
238 |
# install our init script |
239 |
local neededservices |
240 |
use dbus && neededservices+=" dbus" |
241 |
[[ -n ${neededservices} ]] && neededservices="need${neededservices}" |
242 |
cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die |
243 |
sed -i \ |
244 |
-e "s/@neededservices@/$neededservices/" \ |
245 |
"${T}"/cupsd || die |
246 |
doinitd "${T}"/cupsd || die "doinitd failed" |
247 |
|
248 |
# install our pam script |
249 |
pamd_mimic_system cups auth account |
250 |
|
251 |
if use xinetd ; then |
252 |
# correct path |
253 |
sed -i \ |
254 |
-e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \ |
255 |
"${D}"/etc/xinetd.d/cups-lpd || die |
256 |
# it is safer to disable this by default, bug #137130 |
257 |
grep -w 'disable' "${D}"/etc/xinetd.d/cups-lpd || \ |
258 |
{ sed -i -e "s:}:\tdisable = yes\n}:" "${D}"/etc/xinetd.d/cups-lpd || die ; } |
259 |
# write permission for file owner (root), bug #296221 |
260 |
fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed" |
261 |
else |
262 |
rm -rf "${D}"/etc/xinetd.d |
263 |
fi |
264 |
|
265 |
keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \ |
266 |
/var/cache/cups /var/cache/cups/rss /var/log/cups /var/run/cups/certs \ |
267 |
/var/spool/cups/tmp |
268 |
|
269 |
keepdir /etc/cups/{interfaces,ppd,ssl} |
270 |
|
271 |
use X || rm -r "${D}"/usr/share/applications |
272 |
|
273 |
# create /etc/cups/client.conf, bug #196967 and #266678 |
274 |
echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf |
275 |
} |
276 |
|
277 |
pkg_postinst() { |
278 |
echo |
279 |
elog "For information about installing a printer and general cups setup" |
280 |
elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml" |
281 |
echo |
282 |
} |