Gentoo Archives: gentoo-commits

From: "Stefan Schweizer (genstef)" <genstef@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/cups: ChangeLog cups-1.1.23-r8.ebuild cups-1.1.23-r9.ebuild
Date: Mon, 05 Nov 2007 19:42:46
Message-Id: E1Ip7qK-0006Ke-99@stork.gentoo.org
1 genstef 07/11/05 19:42:40
2
3 Modified: ChangeLog cups-1.1.23-r8.ebuild
4 Removed: cups-1.1.23-r9.ebuild
5 Log:
6 Change the cups-1.1 ebuild to be only a pointer to newer ebuilds. We cannot remove it because the mips stable tree would break then
7 (Portage version: 2.1.3.17)
8
9 Revision Changes Path
10 1.257 net-print/cups/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?rev=1.257&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?rev=1.257&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/ChangeLog?r1=1.256&r2=1.257
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v
19 retrieving revision 1.256
20 retrieving revision 1.257
21 diff -u -r1.256 -r1.257
22 --- ChangeLog 5 Nov 2007 19:11:14 -0000 1.256
23 +++ ChangeLog 5 Nov 2007 19:42:39 -0000 1.257
24 @@ -1,6 +1,15 @@
25 # ChangeLog for net-print/cups
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.256 2007/11/05 19:11:14 tgurr Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.257 2007/11/05 19:42:39 genstef Exp $
29 +
30 + 05 Nov 2007; Stefan Schweizer <genstef@g.o>
31 + -files/cups-1.1.23-image-png.patch, -files/cups-1.1-str2561-v2.patch,
32 + -files/cups-1.1.23-bindnow.patch, -files/cups-1.1.23-respectldflags.patch,
33 + -files/cups.xinetd, -files/cups-gcc4-amd64.patch,
34 + -files/cups-gentooalt.patch, -files/cupsaddsmb.patch,
35 + -files/disable-strip.patch, cups-1.1.23-r8.ebuild, -cups-1.1.23-r9.ebuild:
36 + Change the cups-1.1 ebuild to be only a pointer to newer ebuilds. We cannot
37 + remove it because the mips stable tree would break then
38
39 *cups-1.3.4 (05 Nov 2007)
40 *cups-1.2.12-r2 (05 Nov 2007)
41
42
43
44 1.9 net-print/cups/cups-1.1.23-r8.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.1.23-r8.ebuild?rev=1.9&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.1.23-r8.ebuild?rev=1.9&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/cups/cups-1.1.23-r8.ebuild?r1=1.8&r2=1.9
49
50 Index: cups-1.1.23-r8.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r8.ebuild,v
53 retrieving revision 1.8
54 retrieving revision 1.9
55 diff -u -r1.8 -r1.9
56 --- cups-1.1.23-r8.ebuild 1 May 2007 12:20:07 -0000 1.8
57 +++ cups-1.1.23-r8.ebuild 5 Nov 2007 19:42:39 -0000 1.9
58 @@ -1,183 +1,32 @@
59 # Copyright 1999-2007 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r8.ebuild,v 1.8 2007/05/01 12:20:07 calchan Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r8.ebuild,v 1.9 2007/11/05 19:42:39 genstef Exp $
63
64 -WANT_AUTOMAKE=latest
65 +# This ebuild is just kept here to not break the tree for mips stable
66
67 -inherit eutils flag-o-matic pam autotools
68 -
69 -MY_P=${P/_/}
70 +# UNMAINTAINED
71 +# UNMAINTAINED
72 +# _ _ _ _ _ _ ____ _ _ _ ___ ____ _ _ _ ____ ___
73 +# | | |\ | |\/| |__| | |\ | | |__| | |\ | |___ | \
74 +# |__| | \| | | | | | | \| | | | | | \| |___ |__/
75 +# UNMAINTAINED
76 +# UNMAINTAINED
77
78 DESCRIPTION="The Common Unix Printing System"
79 HOMEPAGE="http://www.cups.org/"
80 -SRC_URI="ftp://ftp2.easysw.com/pub/cups/test/${MY_P}-source.tar.bz2
81 -ftp://ftp.easysw.com/pub/cups/test/${MY_P}-source.tar.bz2
82 -ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/test/${MY_P}-source.tar.bz2"
83 +SRC_URI=""
84
85 LICENSE="GPL-2"
86 SLOT="0"
87 -KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
88 -IUSE="ssl slp pam samba nls gnutls"
89 -
90 -DEP="pam? ( virtual/pam )
91 - ssl? (
92 - !gnutls? ( >=dev-libs/openssl-0.9.6b )
93 - gnutls? ( net-libs/gnutls )
94 - )
95 - slp? ( >=net-libs/openslp-1.0.4 )
96 - >=media-libs/libpng-1.2.10
97 - >=media-libs/tiff-3.5.5
98 - >=media-libs/jpeg-6b"
99 -DEPEND="${DEP}
100 - nls? ( sys-devel/gettext )"
101 -RDEPEND="${DEP}
102 - nls? ( virtual/libintl )
103 - !virtual/lpr
104 - >=app-text/poppler-0.4.3-r1"
105 -PDEPEND="samba? ( >=net-fs/samba-3.0.8 )"
106 -PROVIDE="virtual/lpr"
107 +KEYWORDS="mips"
108 +IUSE=""
109
110 S=${WORKDIR}/${MY_P}
111
112 pkg_setup() {
113 - enewgroup lp
114 - enewuser lp -1 -1 -1 lp
115 -}
116 -
117 -src_unpack() {
118 - unpack ${A}
119 - cd ${S}
120 - epatch ${FILESDIR}/disable-strip.patch
121 - epatch ${FILESDIR}/cups-gcc4-amd64.patch #79791
122 - epatch ${FILESDIR}/cups-gentooalt.patch
123 - epatch ${FILESDIR}/${P}-bindnow.patch
124 - epatch ${FILESDIR}/cupsaddsmb.patch
125 - epatch ${FILESDIR}/${P}-respectldflags.patch
126 - eautoconf
127 -
128 - # 1.2.10 compat thanks to kojiro in bug 136346
129 - epatch ${FILESDIR}/${P}-image-png.patch
130 -
131 - # disable builtin xpdf
132 - sed -i -e "s:pdftops::" Makefile
133 -}
134 -
135 -src_compile() {
136 -
137 - local myconf
138 - use amd64 && replace-flags -Os -O2
139 -
140 - use ssl && \
141 - myconf="${myconf} $(use_enable gnutls) $(use_enable !gnutls openssl)"
142 -
143 - econf \
144 - --with-cups-user=lp \
145 - --with-cups-group=lp \
146 - --localstatedir=/var \
147 - --with-bindnow=$(bindnow-flags) \
148 - $(use_enable pam) \
149 - $(use_enable ssl) \
150 - $(use_enable slp) \
151 - $(use_enable nls) \
152 - ${myconf} \
153 - || die "econf failed"
154 -
155 - emake || die "compile problem"
156 -}
157 -
158 -src_test() {
159 - # upstream includes an interactive test which is a nono for gentoo.
160 - # therefore, since the printing herd has bigger fish to fry, for now,
161 - # we just leave it out, even if FEATURES=test
162 - true
163 -}
164 -
165 -src_install() {
166 - dodir /var/spool /var/log/cups /etc/cups
167 -
168 - make \
169 - LOCALEDIR=${D}/usr/share/locale \
170 - DOCDIR=${D}/usr/share/cups/docs \
171 - REQUESTS=${D}/var/spool/cups \
172 - SERVERBIN=${D}/usr/$(get_libdir)/cups \
173 - DATADIR=${D}/usr/share/cups \
174 - INCLUDEDIR=${D}/usr/include \
175 - AMANDIR=${D}/usr/share/man \
176 - PMANDIR=${D}/usr/share/man \
177 - MANDIR=${D}/usr/share/man \
178 - SERVERROOT=${D}/etc/cups \
179 - LOGDIR=${D}/var/log/cups \
180 - SBINDIR=${D}/usr/sbin \
181 - PAMDIR=${D}/etc/pam.d \
182 - EXEC_PREFIX=${D}/usr \
183 - LIBDIR=${D}/usr/$(get_libdir) \
184 - BINDIR=${D}/usr/bin \
185 - bindir=${D}/usr/bin \
186 - INITDIR=${D}/etc \
187 - PREFIX=${D} \
188 - install || die "install problem"
189 -
190 - dodoc {CHANGES,CREDITS,ENCRYPTION,LICENSE,README}.txt
191 - dosym /usr/share/cups/docs /usr/share/doc/${PF}/html
192 -
193 - # cleanups
194 - rm -rf ${D}/etc/init.d ${D}/etc/pam.d ${D}/etc/rc* ${D}/usr/share/man/cat* \
195 - ${D}/etc/cups/{certs,interfaces,ppd} ${D}/var
196 -
197 - sed -i -e "s:^#\(DocumentRoot\).*:\1 /usr/share/cups/docs:" \
198 - -e "s:^#\(SystemGroup\).*:\1 lp:" \
199 - -e "s:^#\(User\).*:\1 lp:" \
200 - -e "s:^#\(Group\).*:\1 lp:" \
201 - -e "/^Port/s|Port 631|Port localhost:631|" \
202 - ${D}/etc/cups/cupsd.conf
203 -
204 - pamd_mimic_system cups auth account
205 -
206 - newinitd ${FILESDIR}/cupsd.init cupsd
207 - insinto /etc/xinetd.d ; newins ${FILESDIR}/cups.xinetd cups-lpd
208 -
209 - # allow raw printing
210 - dosed "s:#application/octet-stream:application/octet-stream:" /etc/cups/mime.types /etc/cups/mime.convs
211 -
212 - # install pdftops filter
213 - exeinto /usr/lib/cups/filter/
214 - newexe ${FILESDIR}/pdftops.pl pdftops
215 - dosed "s:/usr/local:/usr:" /usr/lib/cups/filter/pdftops
216 -
217 - # allow lppasswd, #107306
218 - fowners root /usr/bin/lppasswd
219 -}
220 -
221 -pkg_preinst() {
222 - # cleanups
223 - [ -n "${PN}" ] && rm -fR /usr/share/doc/${PN}-*
224 -}
225 -
226 -pkg_postinst() {
227 - install -d -m0755 ${ROOT}/var/log/cups
228 - install -d -m0755 ${ROOT}/var/spool
229 - install -m0700 -o lp -d ${ROOT}/var/spool/cups
230 - install -m1700 -o lp -d ${ROOT}/var/spool/cups/tmp
231 - install -m0711 -o lp -d ${ROOT}/etc/cups/certs
232 - install -d -m0755 ${ROOT}/etc/cups/{interfaces,ppd}
233 -
234 - einfo "If you're using a USB printer, \"emerge coldplug; rc-update add"
235 - einfo "coldplug boot\" is something you should probably do. This"
236 - einfo "will allow any USB kernel modules (if present) to be loaded"
237 - einfo "automatically at boot."
238 - einfo
239 - einfo "For more information about installing a printer take a look at:"
240 - einfo "http://www.gentoo.org/doc/en/printing-howto.xml."
241 -
242 - local good_gs=false
243 - for x in app-text/ghostscript-gpl app-text/ghostscript-gnu app-text/ghostscript-esp; do
244 - if has_version ${x} && built_with_use ${x} cups; then
245 - good_gs=true
246 - break
247 - fi
248 - done;
249 - if ! ${good_gs}; then
250 - ewarn
251 - ewarn "You need to emerge ghostscript with the cups-USEflag turned on"
252 - fi
253 + eerror
254 + eerror "this version is unmaintained, old, and has many bugs - not only security bugs"
255 + eerror
256 + eerror "It does not work, please use a newer version"
257 + die "Please use newer version"
258 }
259
260
261
262 --
263 gentoo-commits@g.o mailing list