summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Gurr <tgurr@gentoo.org>2007-11-05 19:11:14 +0000
committerTimo Gurr <tgurr@gentoo.org>2007-11-05 19:11:14 +0000
commitf12fd515b8ea391d90ef3ccabb69c84236fb94b2 (patch)
tree3a183e8508d5d37be83238ba24319d7f0168d790 /net-print
parentHome Page fix (diff)
downloadhistorical-f12fd515b8ea391d90ef3ccabb69c84236fb94b2.tar.gz
historical-f12fd515b8ea391d90ef3ccabb69c84236fb94b2.tar.bz2
historical-f12fd515b8ea391d90ef3ccabb69c84236fb94b2.zip
Revbump adding the patches to fix CVE-2007-4351, see bug #196736. Also add cups-1.3.4.ebuild and remove old version.
Package-Manager: portage-2.1.3.18
Diffstat (limited to 'net-print')
-rw-r--r--net-print/cups/ChangeLog13
-rw-r--r--net-print/cups/Manifest46
-rw-r--r--net-print/cups/cups-1.1.23-r9.ebuild185
-rw-r--r--net-print/cups/cups-1.2.12-r2.ebuild224
-rw-r--r--net-print/cups/cups-1.3.4.ebuild (renamed from net-print/cups/cups-1.3.3.ebuild)8
-rw-r--r--net-print/cups/files/cups-1.1-str2561-v2.patch152
-rw-r--r--net-print/cups/files/cups-1.2-str2561-v2.patch154
-rw-r--r--net-print/cups/files/digest-cups-1.1.23-r93
-rw-r--r--net-print/cups/files/digest-cups-1.2.12-r23
-rw-r--r--net-print/cups/files/digest-cups-1.3.33
-rw-r--r--net-print/cups/files/digest-cups-1.3.43
11 files changed, 774 insertions, 20 deletions
diff --git a/net-print/cups/ChangeLog b/net-print/cups/ChangeLog
index da360681570a..12da60d1d06a 100644
--- a/net-print/cups/ChangeLog
+++ b/net-print/cups/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for net-print/cups
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.255 2007/10/28 13:36:07 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.256 2007/11/05 19:11:14 tgurr Exp $
+
+*cups-1.3.4 (05 Nov 2007)
+*cups-1.2.12-r2 (05 Nov 2007)
+*cups-1.1.23-r9 (05 Nov 2007)
+
+ 05 Nov 2007; Timo Gurr <tgurr@gentoo.org>
+ +files/cups-1.1-str2561-v2.patch, +files/cups-1.2-str2561-v2.patch,
+ +cups-1.1.23-r9.ebuild, +cups-1.2.12-r2.ebuild, -cups-1.3.3.ebuild,
+ +cups-1.3.4.ebuild:
+ Revbump adding the patches to fix CVE-2007-4351, see bug #196736. Also add
+ cups-1.3.4.ebuild and remove old version.
28 Oct 2007; Markus Rothe <corsair@gentoo.org> cups-1.2.12-r1.ebuild:
Stable on ppc64; bug #195278
diff --git a/net-print/cups/Manifest b/net-print/cups/Manifest
index 76ba2568e905..e5f285e6841b 100644
--- a/net-print/cups/Manifest
+++ b/net-print/cups/Manifest
@@ -1,3 +1,7 @@
+AUX cups-1.1-str2561-v2.patch 4022 RMD160 1fbee9de59911b5bd00ae320135a4d3c3fdcc4a4 SHA1 19bdaa9c0f1a5888d85d2a6ca5065838992c0215 SHA256 adbc2ccfbc7085c8102c2504c5c014d979ed564ef2652f14106ce460dba1b198
+MD5 cfd50762d5def15e0a9690c76d192a50 files/cups-1.1-str2561-v2.patch 4022
+RMD160 1fbee9de59911b5bd00ae320135a4d3c3fdcc4a4 files/cups-1.1-str2561-v2.patch 4022
+SHA256 adbc2ccfbc7085c8102c2504c5c014d979ed564ef2652f14106ce460dba1b198 files/cups-1.1-str2561-v2.patch 4022
AUX cups-1.1.23-bindnow.patch 2087 RMD160 35c18c1bbeb7c79f9207ecbd69c004f2ddf68f80 SHA1 6f3c24500c50016c0bb2f1913b7c3cb6384c6b21 SHA256 fb932b7e9d04dfe7d52bd455f3514818a3bba1eaa3a3342b5c6b840bf957e67b
MD5 b22c12cb42113ddc40988cfbe93e3519 files/cups-1.1.23-bindnow.patch 2087
RMD160 35c18c1bbeb7c79f9207ecbd69c004f2ddf68f80 files/cups-1.1.23-bindnow.patch 2087
@@ -10,6 +14,10 @@ AUX cups-1.1.23-respectldflags.patch 2922 RMD160 a2c9ca06844306556593e6de49b8511
MD5 14726f87ced90b9e00ec6a5026bb901d files/cups-1.1.23-respectldflags.patch 2922
RMD160 a2c9ca06844306556593e6de49b8511c14e99984 files/cups-1.1.23-respectldflags.patch 2922
SHA256 590c8541029fee3aedd85f2b960300f2383d003d73557b83224c21f760f319c1 files/cups-1.1.23-respectldflags.patch 2922
+AUX cups-1.2-str2561-v2.patch 3910 RMD160 461a232b2a0ebc52a83cb729112c0f7d3f3d0ffe SHA1 9b7706a34fd08c32b7911a9f09f02a02c790a77c SHA256 1da64de6358dea65971105530795ffb8d100ddfe5b42c03cdbd815432de219c8
+MD5 5ffb403823adffe5cc5e62082dd08113 files/cups-1.2-str2561-v2.patch 3910
+RMD160 461a232b2a0ebc52a83cb729112c0f7d3f3d0ffe files/cups-1.2-str2561-v2.patch 3910
+SHA256 1da64de6358dea65971105530795ffb8d100ddfe5b42c03cdbd815432de219c8 files/cups-1.2-str2561-v2.patch 3910
AUX cups-1.2.0-bindnow.patch 2178 RMD160 cdf51a6734c7a38fab33f270c7c374445a934321 SHA1 5406422e6b92c571f636d521baee354f84fafc2d SHA256 0fffd86557fdfbf85e32781d1b77f9696e5f0ed7eb30a78fb57ca82cfafdc190
MD5 17610ba395fa28cc46fe4be7d45c0a44 files/cups-1.2.0-bindnow.patch 2178
RMD160 cdf51a6734c7a38fab33f270c7c374445a934321 files/cups-1.2.0-bindnow.patch 2178
@@ -53,11 +61,15 @@ SHA256 aeaca40973d4a4df2212e73820f96272923e23717a69b0bf738896a5fc04df25 files/pd
DIST cups-1.1.23-source.tar.bz2 8705521 RMD160 255ec4c22422b14f2367d69f3ec7e590dc46bea5 SHA1 32d5bfb44c4edc1b54ccb014b5a44499295c6c5c SHA256 87da0f7b1e03236e183045f1e787957132658ead56c4b0f80ac7f86c1574a85e
DIST cups-1.2.10-source.tar.bz2 3618084 RMD160 85b3bbd46a6fc097891c571ffad8e5e46693743f SHA1 241d7a3c52370fb08ed2ffc3fd8f59673d158299 SHA256 601b3b9256c55361477427c3e8db56c9ee4e141762814aea590bcf110a95bb36
DIST cups-1.2.12-source.tar.bz2 3788301 RMD160 598270e37ff8a9b9ff1e667066d6f7e120493e32 SHA1 11a540f76a1d3164b6636bf8ba47928803ad9356 SHA256 b4ff8e934da7db32d5654360ea9068faa0ed5a00fde02161ae53c2052510d00f
-DIST cups-1.3.3-source.tar.bz2 4077262 RMD160 b1c34cdcfb79a5b04ffd3174c35d07beea678cb1 SHA1 9603e9ddba78a6103c48a9f917ea35ebd05ef7e0 SHA256 5e9e5670777055293e309cb0cbb2758df9c1275bf648df70478b7389c2d804de
+DIST cups-1.3.4-source.tar.bz2 4082345 RMD160 30dd2925507a0c83513ee887debecb4bad1ddb53 SHA1 f8b1bf6fc807a2a35f5d2eb0ec0d67398417779c SHA256 91581afc60aa0a6789b1c0373bc204d3b7deec5b608cc3cadc8c07d0ba749154
EBUILD cups-1.1.23-r8.ebuild 5009 RMD160 b1cb7d5c2ede0fb359c96168f53a1518ad459736 SHA1 2730b6d204679da7aa4e70a916432e93cee48411 SHA256 47a824972575230e3f2a19f5919a8dc09f43f0b3df8ab3a1213b91891b6f0d8b
MD5 f2397cdb3da6d12ef0f5f2fb9b70b44a cups-1.1.23-r8.ebuild 5009
RMD160 b1cb7d5c2ede0fb359c96168f53a1518ad459736 cups-1.1.23-r8.ebuild 5009
SHA256 47a824972575230e3f2a19f5919a8dc09f43f0b3df8ab3a1213b91891b6f0d8b cups-1.1.23-r8.ebuild 5009
+EBUILD cups-1.1.23-r9.ebuild 5200 RMD160 ad0da7e22844223567cc01778e395a3ec3836417 SHA1 a258f7d3e31de4fe2d6d3e9d4dcc2b8d19d54a6f SHA256 a26144c4372b2c5cf1371e1b27f7f19a3c966af44ebe39f5a92e3df00ed35759
+MD5 656114655c697b9d71cb525c10ebaf9c cups-1.1.23-r9.ebuild 5200
+RMD160 ad0da7e22844223567cc01778e395a3ec3836417 cups-1.1.23-r9.ebuild 5200
+SHA256 a26144c4372b2c5cf1371e1b27f7f19a3c966af44ebe39f5a92e3df00ed35759 cups-1.1.23-r9.ebuild 5200
EBUILD cups-1.2.10-r1.ebuild 6316 RMD160 396839aec0fe91130450f8c4bdc5df0598a5ae29 SHA1 cd93dc57e11bea80747b9984929f06bd81542ab7 SHA256 b7dc3e71cd9fa05d9f51274e6c9158ccaf4ad5558de57dbf2b34f1c5cc0de95b
MD5 683374c073f1791ca3bfe1a3447b71f8 cups-1.2.10-r1.ebuild 6316
RMD160 396839aec0fe91130450f8c4bdc5df0598a5ae29 cups-1.2.10-r1.ebuild 6316
@@ -66,14 +78,18 @@ EBUILD cups-1.2.12-r1.ebuild 6893 RMD160 588b90b337c6861c67dbbdb9582749c9f489e33
MD5 a8d15bc56f0cb020776d61ae06877c93 cups-1.2.12-r1.ebuild 6893
RMD160 588b90b337c6861c67dbbdb9582749c9f489e331 cups-1.2.12-r1.ebuild 6893
SHA256 a485e5b91d16a68698e70ab1918c16ed47b3cbad579d1ac4d3727959797ca9b3 cups-1.2.12-r1.ebuild 6893
-EBUILD cups-1.3.3.ebuild 7065 RMD160 7dc21c2204f5beabc976cc594601b9b7c34b914d SHA1 3c980bd0581c1e26ac0e4902c6185200d0869a54 SHA256 86ee784e761f91b0da95374e3135c8fbca806a2130c58deaec40286e6f49e192
-MD5 074404a4c77a7c03fd986c7e66ff98b8 cups-1.3.3.ebuild 7065
-RMD160 7dc21c2204f5beabc976cc594601b9b7c34b914d cups-1.3.3.ebuild 7065
-SHA256 86ee784e761f91b0da95374e3135c8fbca806a2130c58deaec40286e6f49e192 cups-1.3.3.ebuild 7065
-MISC ChangeLog 35562 RMD160 6e4c846927d9488299651236ff624286f85c965e SHA1 12d50a041730f714fa6585c2edba1d26cbe073ca SHA256 0efaf611fec90563d99164b27d21da5d5000f5e945278f3fe5275b1818bb2056
-MD5 329a52655db83dffc14b6e3263ef02e8 ChangeLog 35562
-RMD160 6e4c846927d9488299651236ff624286f85c965e ChangeLog 35562
-SHA256 0efaf611fec90563d99164b27d21da5d5000f5e945278f3fe5275b1818bb2056 ChangeLog 35562
+EBUILD cups-1.2.12-r2.ebuild 6992 RMD160 54efbe7a7cd7a6d569044eb36cb15d63f9f19b07 SHA1 e98ed0f83fe58df3dd2cd216659e64e3cf797fd1 SHA256 18cdb2cb04e59cdb751613f861e62ac020aee2a36dd373034fcedd44cba62335
+MD5 d8ccd42586d4dd2e5604014950494a58 cups-1.2.12-r2.ebuild 6992
+RMD160 54efbe7a7cd7a6d569044eb36cb15d63f9f19b07 cups-1.2.12-r2.ebuild 6992
+SHA256 18cdb2cb04e59cdb751613f861e62ac020aee2a36dd373034fcedd44cba62335 cups-1.2.12-r2.ebuild 6992
+EBUILD cups-1.3.4.ebuild 7059 RMD160 3c0eae8e2ffb49dd4443cd6c3e1140dfc0a81188 SHA1 875d8c6fa42ac0859d2f39acc60332ee5678d255 SHA256 114a2263d97ebb462e7e7861019411a83c368d1d91dacf3a2878c0029c0be0dd
+MD5 d040b038f2a1444a32479c6931e6675c cups-1.3.4.ebuild 7059
+RMD160 3c0eae8e2ffb49dd4443cd6c3e1140dfc0a81188 cups-1.3.4.ebuild 7059
+SHA256 114a2263d97ebb462e7e7861019411a83c368d1d91dacf3a2878c0029c0be0dd cups-1.3.4.ebuild 7059
+MISC ChangeLog 35975 RMD160 30538d8b10914fbf4f064435cd0d876e846a282c SHA1 4b1f42fd26e4baa43ea6e236a7c0ef5db36a2e77 SHA256 a6905443baf4cd78f5d50b4941b0dc49ffac9cc987eea17b669b8a1e5a95e7b4
+MD5 d3c22f36a50bc2b9f418462b7bb1d0da ChangeLog 35975
+RMD160 30538d8b10914fbf4f064435cd0d876e846a282c ChangeLog 35975
+SHA256 a6905443baf4cd78f5d50b4941b0dc49ffac9cc987eea17b669b8a1e5a95e7b4 ChangeLog 35975
MISC metadata.xml 161 RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 SHA1 209c6a46e4cdd891980115e42ba419e3799f8088 SHA256 7c85e6739a71f5bb23e8de36c88677d772946e61f7285892f7554e37bd2bca76
MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161
RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 metadata.xml 161
@@ -81,12 +97,18 @@ SHA256 7c85e6739a71f5bb23e8de36c88677d772946e61f7285892f7554e37bd2bca76 metadata
MD5 abdc9df96d571ef4acff9bba51363e05 files/digest-cups-1.1.23-r8 262
RMD160 d874b0af63ed920fb5c6f2ebf457c319b6e2f752 files/digest-cups-1.1.23-r8 262
SHA256 ac20d82dc48e47fa2124e971108c121a1e0600ae2215e4be38c138332b4c3415 files/digest-cups-1.1.23-r8 262
+MD5 abdc9df96d571ef4acff9bba51363e05 files/digest-cups-1.1.23-r9 262
+RMD160 d874b0af63ed920fb5c6f2ebf457c319b6e2f752 files/digest-cups-1.1.23-r9 262
+SHA256 ac20d82dc48e47fa2124e971108c121a1e0600ae2215e4be38c138332b4c3415 files/digest-cups-1.1.23-r9 262
MD5 126e6284164bd1c1cc5fc98f1b3f1089 files/digest-cups-1.2.10-r1 262
RMD160 73673bf65cd75f7e5b15918308b45477ce244a5e files/digest-cups-1.2.10-r1 262
SHA256 66f16eee78c2442511803e6de89563a1f32ff0150e604904a123b2b222f0e3b3 files/digest-cups-1.2.10-r1 262
MD5 422be1a8808e7fb306fcc6872c874a9b files/digest-cups-1.2.12-r1 262
RMD160 af6b2363980a1e6323b89c87f8a25598b7730897 files/digest-cups-1.2.12-r1 262
SHA256 1ed8553b6b83c34074f536128d9794fdbd11070a6091353722bb0cc5d4e625df files/digest-cups-1.2.12-r1 262
-MD5 38e377d61f8024d0e2bb12ef22276f7d files/digest-cups-1.3.3 259
-RMD160 88c379a5b7e3f0b95d8006c9e2b8caf09c49595b files/digest-cups-1.3.3 259
-SHA256 e8be44eb403e98a8993e178f9a3aa8ef0b32ce69a436404c53613318e4e67df3 files/digest-cups-1.3.3 259
+MD5 422be1a8808e7fb306fcc6872c874a9b files/digest-cups-1.2.12-r2 262
+RMD160 af6b2363980a1e6323b89c87f8a25598b7730897 files/digest-cups-1.2.12-r2 262
+SHA256 1ed8553b6b83c34074f536128d9794fdbd11070a6091353722bb0cc5d4e625df files/digest-cups-1.2.12-r2 262
+MD5 77aecc8383995af24a8b9f15a4402f54 files/digest-cups-1.3.4 259
+RMD160 b001cfa2371621a0f315bab77bb8c78976f0c150 files/digest-cups-1.3.4 259
+SHA256 a330b10cc5bfd0ba11fab682de999eccf42232d850e0b8d996cb2abecbc0f8e0 files/digest-cups-1.3.4 259
diff --git a/net-print/cups/cups-1.1.23-r9.ebuild b/net-print/cups/cups-1.1.23-r9.ebuild
new file mode 100644
index 000000000000..354f2d9ece62
--- /dev/null
+++ b/net-print/cups/cups-1.1.23-r9.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r9.ebuild,v 1.1 2007/11/05 19:11:14 tgurr Exp $
+
+WANT_AUTOMAKE=latest
+
+inherit eutils flag-o-matic pam autotools
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Common Unix Printing System"
+HOMEPAGE="http://www.cups.org/"
+SRC_URI="ftp://ftp2.easysw.com/pub/cups/test/${MY_P}-source.tar.bz2
+ftp://ftp.easysw.com/pub/cups/test/${MY_P}-source.tar.bz2
+ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/test/${MY_P}-source.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="ssl slp pam samba nls gnutls"
+
+DEP="pam? ( virtual/pam )
+ ssl? (
+ !gnutls? ( >=dev-libs/openssl-0.9.6b )
+ gnutls? ( net-libs/gnutls )
+ )
+ slp? ( >=net-libs/openslp-1.0.4 )
+ >=media-libs/libpng-1.2.10
+ >=media-libs/tiff-3.5.5
+ >=media-libs/jpeg-6b"
+DEPEND="${DEP}
+ nls? ( sys-devel/gettext )"
+RDEPEND="${DEP}
+ nls? ( virtual/libintl )
+ !virtual/lpr
+ >=app-text/poppler-0.4.3-r1"
+PDEPEND="samba? ( >=net-fs/samba-3.0.8 )"
+PROVIDE="virtual/lpr"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewgroup lp
+ enewuser lp -1 -1 -1 lp
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/disable-strip.patch
+ epatch "${FILESDIR}"/cups-gcc4-amd64.patch #79791
+ epatch "${FILESDIR}"/cups-gentooalt.patch
+ epatch "${FILESDIR}"/${P}-bindnow.patch
+ epatch "${FILESDIR}"/cupsaddsmb.patch
+ epatch "${FILESDIR}"/${P}-respectldflags.patch
+ # CVE-2007-4351 security patch, bug #196736
+ epatch "${FILESDIR}"/${PN}-1.1-str2561-v2.patch
+ eautoconf
+
+ # 1.2.10 compat thanks to kojiro in bug 136346
+ epatch "${FILESDIR}"/${P}-image-png.patch
+
+ # disable builtin xpdf
+ sed -i -e "s:pdftops::" Makefile
+}
+
+src_compile() {
+
+ local myconf
+ use amd64 && replace-flags -Os -O2
+
+ use ssl && \
+ myconf="${myconf} $(use_enable gnutls) $(use_enable !gnutls openssl)"
+
+ econf \
+ --with-cups-user=lp \
+ --with-cups-group=lp \
+ --localstatedir=/var \
+ --with-bindnow=$(bindnow-flags) \
+ $(use_enable pam) \
+ $(use_enable ssl) \
+ $(use_enable slp) \
+ $(use_enable nls) \
+ ${myconf} \
+ || die "econf failed"
+
+ emake || die "compile problem"
+}
+
+src_test() {
+ # upstream includes an interactive test which is a nono for gentoo.
+ # therefore, since the printing herd has bigger fish to fry, for now,
+ # we just leave it out, even if FEATURES=test
+ true
+}
+
+src_install() {
+ dodir /var/spool /var/log/cups /etc/cups
+
+ make \
+ LOCALEDIR="${D}"/usr/share/locale \
+ DOCDIR="${D}"/usr/share/cups/docs \
+ REQUESTS="${D}"/var/spool/cups \
+ SERVERBIN="${D}"/usr/$(get_libdir)/cups \
+ DATADIR="${D}"/usr/share/cups \
+ INCLUDEDIR="${D}"/usr/include \
+ AMANDIR="${D}"/usr/share/man \
+ PMANDIR="${D}"/usr/share/man \
+ MANDIR="${D}"/usr/share/man \
+ SERVERROOT="${D}"/etc/cups \
+ LOGDIR="${D}"/var/log/cups \
+ SBINDIR="${D}"/usr/sbin \
+ PAMDIR="${D}"/etc/pam.d \
+ EXEC_PREFIX="${D}"/usr \
+ LIBDIR="${D}"/usr/$(get_libdir) \
+ BINDIR="${D}"/usr/bin \
+ bindir="${D}"/usr/bin \
+ INITDIR="${D}"/etc \
+ PREFIX="${D}" \
+ install || die "install problem"
+
+ dodoc {CHANGES,CREDITS,ENCRYPTION,LICENSE,README}.txt
+ dosym /usr/share/cups/docs /usr/share/doc/${PF}/html
+
+ # cleanups
+ rm -rf "${D}"/etc/init.d "${D}"/etc/pam.d "${D}"/etc/rc* "${D}"/usr/share/man/cat* \
+ "${D}"/etc/cups/{certs,interfaces,ppd} "${D}"/var
+
+ sed -i -e "s:^#\(DocumentRoot\).*:\1 /usr/share/cups/docs:" \
+ -e "s:^#\(SystemGroup\).*:\1 lp:" \
+ -e "s:^#\(User\).*:\1 lp:" \
+ -e "s:^#\(Group\).*:\1 lp:" \
+ -e "/^Port/s|Port 631|Port localhost:631|" \
+ "${D}"/etc/cups/cupsd.conf
+
+ pamd_mimic_system cups auth account
+
+ newinitd "${FILESDIR}"/cupsd.init cupsd
+ insinto /etc/xinetd.d ; newins "${FILESDIR}"/cups.xinetd cups-lpd
+
+ # allow raw printing
+ dosed "s:#application/octet-stream:application/octet-stream:" /etc/cups/mime.types /etc/cups/mime.convs
+
+ # install pdftops filter
+ exeinto /usr/lib/cups/filter/
+ newexe "${FILESDIR}"/pdftops.pl pdftops
+ dosed "s:/usr/local:/usr:" /usr/lib/cups/filter/pdftops
+
+ # allow lppasswd, #107306
+ fowners root /usr/bin/lppasswd
+}
+
+pkg_preinst() {
+ # cleanups
+ [ -n "${PN}" ] && rm -fR /usr/share/doc/${PN}-*
+}
+
+pkg_postinst() {
+ install -d -m0755 "${ROOT}"/var/log/cups
+ install -d -m0755 "${ROOT}"/var/spool
+ install -m0700 -o lp -d "${ROOT}"/var/spool/cups
+ install -m1700 -o lp -d "${ROOT}"/var/spool/cups/tmp
+ install -m0711 -o lp -d "${ROOT}"/etc/cups/certs
+ install -d -m0755 "${ROOT}"/etc/cups/{interfaces,ppd}
+
+ einfo "If you're using a USB printer, \"emerge coldplug; rc-update add"
+ einfo "coldplug boot\" is something you should probably do. This"
+ einfo "will allow any USB kernel modules (if present) to be loaded"
+ einfo "automatically at boot."
+ einfo
+ einfo "For more information about installing a printer take a look at:"
+ einfo "http://www.gentoo.org/doc/en/printing-howto.xml."
+
+ local good_gs=false
+ for x in app-text/ghostscript-gpl app-text/ghostscript-gnu app-text/ghostscript-esp; do
+ if has_version ${x} && built_with_use ${x} cups; then
+ good_gs=true
+ break
+ fi
+ done;
+ if ! ${good_gs}; then
+ ewarn
+ ewarn "You need to emerge ghostscript with the cups-USEflag turned on"
+ fi
+}
diff --git a/net-print/cups/cups-1.2.12-r2.ebuild b/net-print/cups/cups-1.2.12-r2.ebuild
new file mode 100644
index 000000000000..f1bbd8ba6376
--- /dev/null
+++ b/net-print/cups/cups-1.2.12-r2.ebuild
@@ -0,0 +1,224 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.2.12-r2.ebuild,v 1.1 2007/11/05 19:11:14 tgurr Exp $
+
+WANT_AUTOMAKE=latest
+
+inherit autotools eutils flag-o-matic multilib pam
+
+MY_P=${P/_}
+
+DESCRIPTION="The Common Unix Printing System"
+HOMEPAGE="http://www.cups.org/"
+SRC_URI="mirror://sourceforge/cups/${MY_P}-source.tar.bz2"
+#http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${PV}/${MY_P}-source.tar.bz2"
+#ESVN_REPO_URI="http://svn.easysw.com/public/cups/trunk"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="ldap ssl slp pam php samba nls dbus tiff png ppds jpeg X"
+
+DEP="pam? ( virtual/pam )
+ ssl? ( net-libs/gnutls )
+ slp? ( >=net-libs/openslp-1.0.4 )
+ ldap? ( net-nds/openldap )
+ dbus? ( sys-apps/dbus )
+ png? ( >=media-libs/libpng-1.2.1 )
+ tiff? ( >=media-libs/tiff-3.5.5 )
+ jpeg? ( >=media-libs/jpeg-6b )
+ php? ( dev-lang/php )
+ app-text/libpaper"
+DEPEND="${DEP}
+ !<net-print/foomatic-filters-ppds-20070501
+ !<net-print/hplip-1.7.4a-r1
+ nls? ( sys-devel/gettext )"
+RDEPEND="${DEP}
+ nls? ( virtual/libintl )
+ !virtual/lpr
+ >=app-text/poppler-0.4.3-r1
+ X? ( x11-misc/xdg-utils )"
+
+PDEPEND="
+ ppds? ( || (
+ (
+ net-print/foomatic-filters-ppds
+ net-print/foomatic-db-ppds
+ )
+ net-print/foomatic-filters-ppds
+ net-print/foomatic-db-ppds
+ net-print/hplip
+ media-gfx/gimp-print
+ net-print/foo2zjs
+ net-print/cups-pdf
+ ) )
+ samba? ( >=net-fs/samba-3.0.8 )
+ virtual/ghostscript"
+PROVIDE="virtual/lpr"
+
+# upstream includes an interactive test which is a nono for gentoo.
+# therefore, since the printing herd has bigger fish to fry, for now,
+# we just leave it out, even if FEATURES=test
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use x86 && [ -d "/usr/lib64" ]
+ then
+ eerror "You are running an x86 system, but /usr/lib64 exists, cups will install all library objects into this directory!"
+ eerror "You should remove /usr/lib64, but before you do, you should check for existing objects, and re-compile all affected packages."
+ eerror "You can use qfile (emerge portage-utils to install qfile) to get a list of the affected ebuilds:"
+ eerror "# qfile -qC /usr/lib64"
+ die "lib64 on x86 detected"
+ fi
+
+ enewgroup lp
+ enewuser lp -1 -1 -1 lp
+
+ enewgroup lpadmin 106
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # upstream does not acknowledge bindnow as a solution
+ epatch "${FILESDIR}"/cups-1.2.0-bindnow.patch
+
+ # CVE-2007-4351 security patch, bug #196736
+ epatch "${FILESDIR}"/${PN}-1.2-str2561-v2.patch
+
+ # cups does not use autotools "the usual way" and ship a static config.h.in
+ eaclocal
+ eautoconf
+}
+
+src_compile() {
+ export DSOFLAGS="${LDFLAGS}"
+ econf \
+ --with-cups-user=lp \
+ --with-cups-group=lp \
+ --with-system-groups=lpadmin \
+ --localstatedir=/var \
+ --with-docdir=/usr/share/cups/html \
+ --with-bindnow=$(bindnow-flags) \
+ $(use_enable pam) \
+ $(use_enable ssl) \
+ --enable-gnutls \
+ $(use_enable slp) \
+ $(use_enable nls) \
+ $(use_enable dbus) \
+ $(use_enable png) \
+ $(use_enable jpeg) \
+ $(use_enable tiff) \
+ $(use_with php) \
+ $(use_enable ldap) \
+ --enable-libpaper \
+ --enable-threads \
+ --enable-static \
+ --disable-pdftops \
+ || die "econf failed"
+
+ # Install in /usr/libexec always, instead of using /usr/lib/cups, as that
+ # makes more sense when facing multilib support.
+ sed -i -e 's:SERVERBIN.*:SERVERBIN = $(BUILDROOT)/usr/libexec/cups:' Makedefs
+ sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h
+ sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake BUILDROOT="${D}" install || die "emake install failed"
+ dodoc {CHANGES{,-1.{0,1}},CREDITS,LICENSE,README}.txt
+
+ # clean out cups init scripts
+ rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
+ # install our init scripts
+ newinitd "${FILESDIR}"/cupsd.init cupsd
+ # install our pam script
+ pamd_mimic_system cups auth account
+
+ # correct path
+ sed -i -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" "${D}"/etc/xinetd.d/cups-lpd
+ # it is safer to disable this by default, bug 137130
+ grep -w 'disable' "${D}"/etc/xinetd.d/cups-lpd || \
+ sed -i -e "s:}:\tdisable = yes\n}:" "${D}"/etc/xinetd.d/cups-lpd
+
+ # install pdftops filter
+ exeinto /usr/libexec/cups/filter/
+ newexe "${FILESDIR}"/pdftops.pl pdftops
+
+ # only for gs-esp this is correct, see bug 163897
+ if has_version app-text/ghostscript-gpl || has_version app-text/ghostscript-gnu; then
+ sed -i -e "s:#application/vnd.cups-postscript:application/vnd.cups-postscript:" "${D}"/etc/cups/mime.convs
+ fi
+
+ keepdir /usr/share/cups/profiles /usr/libexec/cups/driver /var/log/cups \
+ /var/run/cups/certs /var/cache/cups /var/spool/cups/tmp /etc/cups/ssl
+
+ # .desktop handling. X useflag. xdg-open from freedesktop is preferred
+ if use X; then
+ sed -i -e "s:htmlview:xdg-open:" "${D}"/usr/share/applications/cups.desktop
+ else
+ rm -r "${D}"/usr/share/applications
+ fi
+
+ # Fix a symlink collision, see bug #172341
+ dodir /usr/share/ppd
+ dosym /usr/share/ppd /usr/share/cups/model/foomatic-ppds
+}
+
+pkg_preinst() {
+ # cleanups
+ [ -n "${PN}" ] && rm -fR "${ROOT}"/usr/share/doc/${PN}-*
+}
+
+pkg_postinst() {
+ einfo "Remote printing: change "
+ einfo "Listen localhost:631"
+ einfo "to"
+ einfo "Listen *:631"
+ einfo "in /etc/cups/cupsd.conf"
+ einfo
+ einfo "For more information about installing a printer take a look at:"
+ einfo "http://www.gentoo.org/doc/en/printing-howto.xml."
+
+ local good_gs=false
+ for x in app-text/ghostscript-gpl app-text/ghostscript-gnu app-text/ghostscript-esp; do
+ if has_version ${x} && built_with_use ${x} cups; then
+ good_gs=true
+ break
+ fi
+ done;
+ if ! ${good_gs}; then
+ ewarn
+ ewarn "You need to emerge ghostscript with the \"cups\" USE flag turned on"
+ fi
+ if has_version =net-print/cups-1.1*; then
+ ewarn
+ ewarn "The configuration changed with cups-1.2, you may want to save the old"
+ ewarn "one and start from scratch:"
+ ewarn "# mv /etc/cups /etc/cups.orig; emerge -va1 cups"
+ ewarn
+ ewarn "You need to rebuild kdelibs for kdeprinter to work with cups-1.2"
+ fi
+ if [ -e "${ROOT}"/usr/lib/cups ]; then
+ ewarn
+ ewarn "/usr/lib/cups exists - You need to remerge every ebuild that"
+ ewarn "installed into /usr/lib/cups and /etc/cups, qfile is in portage-utils:"
+ ewarn "# FEATURES=-collision-protect emerge -va1 \$(qfile -qC /usr/lib/cups /etc/cups | sed \"s:net-print/cups$::\")"
+ ewarn
+ ewarn "FEATURES=-collision-protect is needed to overwrite the compatibility"
+ ewarn "symlinks installed by this package, it wont be needed on later merges."
+ ewarn "You should also run revdep-rebuild"
+
+ # place symlinks to make the update smoothless
+ for i in "${ROOT}"/usr/lib/cups/{backend,filter}/*; do
+ if [ "${i/\*}" == "${i}" ] && ! [ -e ${i/lib/libexec} ]; then
+ ln -s ${i} ${i/lib/libexec}
+ fi
+ done
+ fi
+}
diff --git a/net-print/cups/cups-1.3.3.ebuild b/net-print/cups/cups-1.3.4.ebuild
index 8aa2ee031647..7f6d01f5068b 100644
--- a/net-print/cups/cups-1.3.3.ebuild
+++ b/net-print/cups/cups-1.3.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.3.3.ebuild,v 1.1 2007/10/10 21:07:17 tgurr Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.3.4.ebuild,v 1.1 2007/11/05 19:11:14 tgurr Exp $
inherit autotools eutils flag-o-matic multilib pam
@@ -13,10 +13,10 @@ SRC_URI="mirror://sourceforge/cups/${MY_P}-source.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="acl bonjour bluetooth dbus java jpeg kerberos ldap nls pam perl php png ppds python samba slp ssl static tiff X"
+IUSE="acl avahi bluetooth dbus java jpeg kerberos ldap nls pam perl php png ppds python samba slp ssl static tiff X"
COMMON_DEPEND="acl? ( kernel_linux? ( sys-apps/acl sys-apps/attr ) )
- bonjour? ( || ( net-misc/mDNSResponder net-dns/avahi ) )
+ avahi? ( || ( net-misc/mDNSResponder net-dns/avahi ) )
dbus? ( sys-apps/dbus )
java? ( >=virtual/jre-1.4 )
jpeg? ( >=media-libs/jpeg-6b )
@@ -117,7 +117,7 @@ src_compile() {
--with-languages=${LINGUAS} \
--with-system-groups=lpadmin \
$(use_enable acl) \
- $(use_enable bonjour dnssd) \
+ $(use_enable avahi dnssd) \
$(use_enable dbus) \
$(use_enable jpeg) \
$(use_enable kerberos gssapi) \
diff --git a/net-print/cups/files/cups-1.1-str2561-v2.patch b/net-print/cups/files/cups-1.1-str2561-v2.patch
new file mode 100644
index 000000000000..3db85798f542
--- /dev/null
+++ b/net-print/cups/files/cups-1.1-str2561-v2.patch
@@ -0,0 +1,152 @@
+Index: ipp.c
+===================================================================
+--- cups-1.1.23.orig/cups/ipp.c (revision 7023)
++++ cups-1.1.23/cups/ipp.c (working copy)
+@@ -1,5 +1,5 @@
+ /*
+- * "$Id: cups-1.1-str2561-v2.patch,v 1.1 2007/11/05 19:11:14 tgurr Exp $"
++ * "$Id: cups-1.1-str2561-v2.patch,v 1.1 2007/11/05 19:11:14 tgurr Exp $"
+ *
+ * Internet Printing Protocol support functions for the Common UNIX
+ * Printing System (CUPS).
+@@ -1119,6 +1119,12 @@
+ {
+ case IPP_TAG_INTEGER :
+ case IPP_TAG_ENUM :
++ if (n != 4)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 4) < 4)
+ {
+ DEBUG_puts("ippReadIO: Unable to read integer value!");
+@@ -1131,6 +1137,12 @@
+ value->integer = n;
+ break;
+ case IPP_TAG_BOOLEAN :
++ if (n != 1)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 1) < 1)
+ {
+ DEBUG_puts("ippReadIO: Unable to read boolean value!");
+@@ -1148,6 +1160,12 @@
+ case IPP_TAG_CHARSET :
+ case IPP_TAG_LANGUAGE :
+ case IPP_TAG_MIMETYPE :
++ if (n >= sizeof(buffer))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ value->string.text = calloc(n + 1, 1);
+
+ if ((*cb)(src, (ipp_uchar_t *)value->string.text, n) < n)
+@@ -1160,6 +1178,12 @@
+ value->string.text));
+ break;
+ case IPP_TAG_DATE :
++ if (n != 11)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, value->date, 11) < 11)
+ {
+ DEBUG_puts("ippReadIO: Unable to date integer value!");
+@@ -1167,6 +1191,12 @@
+ }
+ break;
+ case IPP_TAG_RESOLUTION :
++ if (n != 9)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 9) < 9)
+ {
+ DEBUG_puts("ippReadIO: Unable to read resolution value!");
+@@ -1183,6 +1213,12 @@
+ (ipp_res_t)buffer[8];
+ break;
+ case IPP_TAG_RANGE :
++ if (n != 8)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 8) < 8)
+ {
+ DEBUG_puts("ippReadIO: Unable to read range value!");
+@@ -1198,7 +1234,7 @@
+ break;
+ case IPP_TAG_TEXTLANG :
+ case IPP_TAG_NAMELANG :
+- if (n > sizeof(buffer) || n < 4)
++ if (n >= sizeof(buffer) || n < 4)
+ {
+ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
+ return (IPP_ERROR);
+@@ -1224,18 +1260,28 @@
+
+ n = (bufptr[0] << 8) | bufptr[1];
+
++ if ((bufptr + 2 + n) >= (buffer + sizeof(buffer)))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ value->string.charset = calloc(n + 1, 1);
+
+- memcpy(value->string.charset,
+- bufptr + 2, n);
++ memcpy(value->string.charset, bufptr + 2, n);
+
+ bufptr += 2 + n;
+ n = (bufptr[0] << 8) | bufptr[1];
+
++ if ((bufptr + 2 + n) >= (buffer + sizeof(buffer)))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ value->string.text = calloc(n + 1, 1);
+
+- memcpy(value->string.text,
+- bufptr + 2, n);
++ memcpy(value->string.text, bufptr + 2, n);
+ break;
+
+ case IPP_TAG_BEGIN_COLLECTION :
+@@ -1287,6 +1333,12 @@
+ break;
+
+ default : /* Other unsupported values */
++ if (n > sizeof(buffer))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ value->unknown.length = n;
+ if (n > 0)
+ {
+@@ -2557,5 +2609,5 @@
+
+
+ /*
+- * End of "$Id: cups-1.1-str2561-v2.patch,v 1.1 2007/11/05 19:11:14 tgurr Exp $".
++ * End of "$Id: cups-1.1-str2561-v2.patch,v 1.1 2007/11/05 19:11:14 tgurr Exp $".
+ */
+
diff --git a/net-print/cups/files/cups-1.2-str2561-v2.patch b/net-print/cups/files/cups-1.2-str2561-v2.patch
new file mode 100644
index 000000000000..5cd70e0a3abe
--- /dev/null
+++ b/net-print/cups/files/cups-1.2-str2561-v2.patch
@@ -0,0 +1,154 @@
+Index: ipp.c
+===================================================================
+--- cups-1.2.12.orig/cups/ipp.c (revision 7023)
++++ cups-1.2.12./cups/ipp.c (working copy)
+@@ -1315,6 +1315,12 @@
+ {
+ case IPP_TAG_INTEGER :
+ case IPP_TAG_ENUM :
++ if (n != 4)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 4) < 4)
+ {
+ DEBUG_puts("ippReadIO: Unable to read integer value!");
+@@ -1327,6 +1333,12 @@
+ value->integer = n;
+ break;
+ case IPP_TAG_BOOLEAN :
++ if (n != 1)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 1) < 1)
+ {
+ DEBUG_puts("ippReadIO: Unable to read boolean value!");
+@@ -1344,6 +1356,12 @@
+ case IPP_TAG_CHARSET :
+ case IPP_TAG_LANGUAGE :
+ case IPP_TAG_MIMETYPE :
++ if (n >= sizeof(buffer))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, n) < n)
+ {
+ DEBUG_puts("ippReadIO: unable to read name!");
+@@ -1356,6 +1374,12 @@
+ value->string.text));
+ break;
+ case IPP_TAG_DATE :
++ if (n != 11)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, value->date, 11) < 11)
+ {
+ DEBUG_puts("ippReadIO: Unable to date integer value!");
+@@ -1363,6 +1387,12 @@
+ }
+ break;
+ case IPP_TAG_RESOLUTION :
++ if (n != 9)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 9) < 9)
+ {
+ DEBUG_puts("ippReadIO: Unable to read resolution value!");
+@@ -1379,6 +1409,12 @@
+ (ipp_res_t)buffer[8];
+ break;
+ case IPP_TAG_RANGE :
++ if (n != 8)
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, 8) < 8)
+ {
+ DEBUG_puts("ippReadIO: Unable to read range value!");
+@@ -1394,7 +1430,7 @@
+ break;
+ case IPP_TAG_TEXTLANG :
+ case IPP_TAG_NAMELANG :
+- if (n > sizeof(buffer) || n < 4)
++ if (n >= sizeof(buffer) || n < 4)
+ {
+ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
+ return (IPP_ERROR);
+@@ -1420,22 +1456,27 @@
+
+ n = (bufptr[0] << 8) | bufptr[1];
+
+- if (n >= sizeof(string))
++ if ((bufptr + 2 + n) >= (buffer + sizeof(buffer)) ||
++ n >= sizeof(string))
+ {
+- memcpy(string, bufptr + 2, sizeof(string) - 1);
+- string[sizeof(string) - 1] = '\0';
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
+ }
+- else
+- {
+- memcpy(string, bufptr + 2, n);
+- string[n] = '\0';
+- }
+
++ memcpy(string, bufptr + 2, n);
++ string[n] = '\0';
++
+ value->string.charset = _cupsStrAlloc((char *)string);
+
+ bufptr += 2 + n;
+ n = (bufptr[0] << 8) | bufptr[1];
+
++ if ((bufptr + 2 + n) >= (buffer + sizeof(buffer)))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ bufptr[2 + n] = '\0';
+ value->string.text = _cupsStrAlloc((char *)bufptr + 2);
+ break;
+@@ -1477,6 +1518,12 @@
+ * we need to carry over...
+ */
+
++ if (n >= sizeof(buffer))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ if ((*cb)(src, buffer, n) < n)
+ {
+ DEBUG_puts("ippReadIO: Unable to read member name value!");
+@@ -1498,6 +1545,12 @@
+ break;
+
+ default : /* Other unsupported values */
++ if (n > sizeof(buffer))
++ {
++ DEBUG_printf(("ippReadIO: bad value length %d!\n", n));
++ return (IPP_ERROR);
++ }
++
+ value->unknown.length = n;
+ if (n > 0)
+ {
+
diff --git a/net-print/cups/files/digest-cups-1.1.23-r9 b/net-print/cups/files/digest-cups-1.1.23-r9
new file mode 100644
index 000000000000..368d38b252b6
--- /dev/null
+++ b/net-print/cups/files/digest-cups-1.1.23-r9
@@ -0,0 +1,3 @@
+MD5 4ce09b1dce09b6b9398af0daae9adf63 cups-1.1.23-source.tar.bz2 8705521
+RMD160 255ec4c22422b14f2367d69f3ec7e590dc46bea5 cups-1.1.23-source.tar.bz2 8705521
+SHA256 87da0f7b1e03236e183045f1e787957132658ead56c4b0f80ac7f86c1574a85e cups-1.1.23-source.tar.bz2 8705521
diff --git a/net-print/cups/files/digest-cups-1.2.12-r2 b/net-print/cups/files/digest-cups-1.2.12-r2
new file mode 100644
index 000000000000..8073a9a92cbd
--- /dev/null
+++ b/net-print/cups/files/digest-cups-1.2.12-r2
@@ -0,0 +1,3 @@
+MD5 d410658468384b5ba5d04a808f6157fe cups-1.2.12-source.tar.bz2 3788301
+RMD160 598270e37ff8a9b9ff1e667066d6f7e120493e32 cups-1.2.12-source.tar.bz2 3788301
+SHA256 b4ff8e934da7db32d5654360ea9068faa0ed5a00fde02161ae53c2052510d00f cups-1.2.12-source.tar.bz2 3788301
diff --git a/net-print/cups/files/digest-cups-1.3.3 b/net-print/cups/files/digest-cups-1.3.3
deleted file mode 100644
index 98548d9fa278..000000000000
--- a/net-print/cups/files/digest-cups-1.3.3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 d4911e68b6979d16bc7a55f68d16cc53 cups-1.3.3-source.tar.bz2 4077262
-RMD160 b1c34cdcfb79a5b04ffd3174c35d07beea678cb1 cups-1.3.3-source.tar.bz2 4077262
-SHA256 5e9e5670777055293e309cb0cbb2758df9c1275bf648df70478b7389c2d804de cups-1.3.3-source.tar.bz2 4077262
diff --git a/net-print/cups/files/digest-cups-1.3.4 b/net-print/cups/files/digest-cups-1.3.4
new file mode 100644
index 000000000000..991c8b77ff2e
--- /dev/null
+++ b/net-print/cups/files/digest-cups-1.3.4
@@ -0,0 +1,3 @@
+MD5 4bd20d69bb083b42632346a383b6aefb cups-1.3.4-source.tar.bz2 4082345
+RMD160 30dd2925507a0c83513ee887debecb4bad1ddb53 cups-1.3.4-source.tar.bz2 4082345
+SHA256 91581afc60aa0a6789b1c0373bc204d3b7deec5b608cc3cadc8c07d0ba749154 cups-1.3.4-source.tar.bz2 4082345