summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hüttel <dilfridge@gentoo.org>2012-01-15 17:47:00 +0000
committerAndreas Hüttel <dilfridge@gentoo.org>2012-01-15 17:47:00 +0000
commit0bfabe63711f0905731a9770b641192317854d6c (patch)
tree52af45978e5619c439574c437729cb46754603a1 /net-print/cups
parentalpha/ia64/sparc stable wrt #396959 (diff)
downloadhistorical-0bfabe63711f0905731a9770b641192317854d6c.tar.gz
historical-0bfabe63711f0905731a9770b641192317854d6c.tar.bz2
historical-0bfabe63711f0905731a9770b641192317854d6c.zip
Remove old
Package-Manager: portage-2.1.10.44/cvs/Linux x86_64
Diffstat (limited to 'net-print/cups')
-rw-r--r--net-print/cups/ChangeLog14
-rw-r--r--net-print/cups/Manifest34
-rw-r--r--net-print/cups/cups-1.3.11-r4.ebuild283
-rw-r--r--net-print/cups/cups-1.4.6-r2.ebuild267
-rw-r--r--net-print/cups/cups-1.4.8-r21.ebuild295
-rw-r--r--net-print/cups/cups-1.5.0-r1.ebuild297
-rw-r--r--net-print/cups/files/cups-1.3.0-configure.patch18
-rw-r--r--net-print/cups/files/cups-1.3.10-str3178.patch19
-rw-r--r--net-print/cups/files/cups-1.3.11-pdf-m4.patch52
-rw-r--r--net-print/cups/files/cups-1.3.11-str3200.patch39
-rw-r--r--net-print/cups/files/cups-1.3.11-str3367-security-1.3v2.patch435
-rw-r--r--net-print/cups/files/cups-1.3.11-str3401-security-1.3v2-regression.patch27
-rw-r--r--net-print/cups/files/cups-1.3.7-backend-https.patch11
-rw-r--r--net-print/cups/files/cups-1.4.6-web-hang.patch54
14 files changed, 27 insertions, 1818 deletions
diff --git a/net-print/cups/ChangeLog b/net-print/cups/ChangeLog
index 30858eda50e2..cdec6f3744c4 100644
--- a/net-print/cups/ChangeLog
+++ b/net-print/cups/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-print/cups
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.437 2011/11/13 11:36:59 jlec Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.438 2012/01/15 17:47:00 dilfridge Exp $
+
+ 15 Jan 2012; Andreas K. Huettel <dilfridge@gentoo.org>
+ -files/cups-1.3.0-configure.patch, -files/cups-1.3.7-backend-https.patch,
+ -files/cups-1.3.10-str3178.patch, -cups-1.3.11-r4.ebuild,
+ -files/cups-1.3.11-pdf-m4.patch, -files/cups-1.3.11-str3200.patch,
+ -files/cups-1.3.11-str3367-security-1.3v2.patch,
+ -files/cups-1.3.11-str3401-security-1.3v2-regression.patch,
+ -cups-1.4.6-r2.ebuild, -files/cups-1.4.6-web-hang.patch,
+ -cups-1.4.8-r21.ebuild, -cups-1.5.0-r1.ebuild:
+ Remove old
13 Nov 2011; Justin Lecher <jlec@gentoo.org> cups-1.3.11-r4.ebuild,
cups-1.4.6-r2.ebuild, cups-1.4.8-r1.ebuild, cups-1.4.8-r21.ebuild,
diff --git a/net-print/cups/Manifest b/net-print/cups/Manifest
index 190f240395ef..dd028f90aa8b 100644
--- a/net-print/cups/Manifest
+++ b/net-print/cups/Manifest
@@ -1,13 +1,6 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
-AUX cups-1.3.0-configure.patch 651 RMD160 e4c7f45d7ddc28157433bf025c7f946c7e3b6d6a SHA1 101bf1893b56640d9fa82078e29319fbbd1449c7 SHA256 d6e5e60a982a3c093c0d0f89cf865e2b4c36290f5b1e188b7bf305d210070736
-AUX cups-1.3.10-str3178.patch 888 RMD160 ff061fc3500960f441c59896cdfe421d5f47f386 SHA1 fac5361b1172aba167d48988f874faa6faf1554a SHA256 e6550fad17017ac6897e6e9c70a4aafaaec5473c05a19e9e50277293cdc6aac6
-AUX cups-1.3.11-pdf-m4.patch 1476 RMD160 be4d4ed2b699625282c9725faee08e01edca9b7a SHA1 a8b092b9c155c161c781319a94cb1bb7de734c3f SHA256 191b0c41c142ed31718fc01f55fcefc6c26735fa56165c23450fd7a454818b01
-AUX cups-1.3.11-str3200.patch 1782 RMD160 6c9134d1bc90650b882e167a5ae118d0f239b7ae SHA1 adb5b0ef222ad5beb2424bcb93a3c891af6a744e SHA256 2ae6d48ce7071051120740d654787be1bba0258752f4844f55a18f8e03e062e6
-AUX cups-1.3.11-str3367-security-1.3v2.patch 12834 RMD160 e770139528cbdf918f5c9073fbea8b31f30cac0f SHA1 81825028af8021aff2e67a36d8e9aa71cbbb42f4 SHA256 d4d770ce17855293348059451909fecbcc9e968d6731ac73b8d81927e2afe134
-AUX cups-1.3.11-str3401-security-1.3v2-regression.patch 871 RMD160 bb08b55e8d61341e9eeecc8fe99ba743d38500dd SHA1 33a919f4ef5de3c780f6f35e68d096ccf8371718 SHA256 ab9f24c05a422995b9ee274f36ffa0a9a6dca4d55fde4830a31201d1e61bd756
-AUX cups-1.3.7-backend-https.patch 450 RMD160 9a1ad48d2be40c89510ccc512649f0a2eb5543b0 SHA1 d3dd55fcdee47855d6b7c1443adb6c2b3d8c9cdb SHA256 060f929ae3eae5dc411ce6352a0d50c3296b013974f034fc2ad8d6bb0c81b45a
AUX cups-1.4.0-backend-https.patch 483 RMD160 b338f67ebf0719b5e12eaa8490affbd7a1bb8c0e SHA1 bfeadba67792203d654a64bdec16f3d2a31aeca6 SHA256 9060a5d848d6655db4629822d01fd772a3fbe1a5107109c50cb0ecb4de7a9526
AUX cups-1.4.2-str3200.patch 1654 RMD160 cc40d26f7e9dbe5a12d9426535d09de10254da26 SHA1 b330108bcfb8ca3ab5d6dd3b48dc3d2937c7bca1 SHA256 8a64f5c72d64ecd95d330fd90630eb02a67865c07921ecb0c010e84b49b537e0
AUX cups-1.4.4-dont-compress-manpages.patch 580 RMD160 cbc2bf11025c1f27286bd7f2ece7ba76be6aa7ee SHA1 d7b2447263724eeb092b8cfc8ce54553ad1e5e11 SHA256 cdefd273dcdc78aa5fe14bb0246e25572da7d28a91de5c7ac8be2a0bdd915860
@@ -17,28 +10,31 @@ AUX cups-1.4.4-perl-includes.patch 637 RMD160 88d4f170ed5c9392860462f140adf9f860
AUX cups-1.4.4-php-destdir.patch 679 RMD160 1b15d42373a952a608a01cb8c97efbbd3c78ac77 SHA1 e312bbae57224dead45284f9c62942b1a25282fc SHA256 d5126c5e917d8c41c7a4da1477800edd4aa752aaa4c6a67a73adbe1e3b050110
AUX cups-1.4.6-force-gnutls.patch 3319 RMD160 c6cc024a702305eb81661d5cdadd9857e9a6778e SHA1 5ac62ed3ca20bc7a4541c990c676c433299b2177 SHA256 beb4014eac5218d9f424b81946ac1e209625026bf20a7f4820758e5ee1fe5b66
AUX cups-1.4.6-serialize-gnutls.patch 3625 RMD160 873b2806cfec732c4a4f3f2981f666a958dd5b0e SHA1 aae046121d0139fbba1cb9147c8742f73b2f1fa0 SHA256 6bc9e16fc6865b2f3e0ee2d1947bdde691e41f90fce32b9839b3661dcea4a827
-AUX cups-1.4.6-web-hang.patch 1749 RMD160 ff8d4cfa10a5de5a911c8672313904f50b13fd0f SHA1 f37a3fb7d71a6d56bbb3e5e7a8cf74ca8cb19276 SHA256 f49cef2ce1f2eecdd8ee07d85f306a19375f6d48510763aa51e96a0c54ad27c5
AUX cups-1.4.8-CVE-2011-3170.patch 1045 RMD160 9a27eb1ec34ced57da5bbe7c55261d8aa35b01c0 SHA1 6155d7c4b34ff6447a93aa56fa4b5958eb943202 SHA256 c94d49c3ff980b830874dae4158768554f87f429ae400838a605505aae350af6
AUX cups-1.4.8-largeimage.patch 572 RMD160 62e0a92fb1dc62adff43bcdc22f201da426d8916 SHA1 1528f2b1f67e7c532418dd7f495db1788ae7d2d4 SHA256 364a3ed3e161ad75836e6bc56746c25207680ab6f44563219c93146f0cf74541
AUX cupsd.init.d 293 RMD160 19fbef21cee7e472e7028f3101b680baa0089c54 SHA1 e6b27b2638fec258fe2f55c926c2530e909ca3d2 SHA256 b4268a6bae95e96b6af21c3716ecc905073736ce7dc33be1489d574a447f3c48
AUX pdftops-1.20.gentoo 10412 RMD160 16e229662c47e03af1d1f4cb5764a76d17a66642 SHA1 6afb8a655b6ff013a2c8c8cbfb615ba1e561503b SHA256 ac5fa01ca776d75bd7cef62eef9f6b0c3945ee87e8950b40ca9f9f3ff46a16c1
-DIST cups-1.3.11-source.tar.bz2 3799393 RMD160 a0646f2ba29fbd39d211ea5c3fdbd24a00f66a78 SHA1 df5cfb64fb608fc128acadde670dc30af49bdb18 SHA256 5e310fd324a15fae1e1c9721879f5c948d788e04735a5263a40c6146fff607b8
-DIST cups-1.4.6-source.tar.bz2 4517061 RMD160 94c9921e03f5ec52d9c16947435622365f53aef6 SHA1 42fb1ca00ee7291561564d3072716eb2045f05d1 SHA256 f08711702a77b52c7150f96fe1f45482f6151cb95ef601268c528607fe6ad514
DIST cups-1.4.8-source.tar.bz2 4547162 RMD160 ee80e8d0b56dc0e2edf2a9aa9a43c4b92619f741 SHA1 9167f556e78e0bc075f1eb2f695d79cc1f334007 SHA256 6bd27e1213c139ed0bbadc5c29f97cf1e8f7f8f5b0bb29b227ecaff32aafa9a6
DIST cups-1.5.0-source.tar.bz2 4090210 RMD160 e7be9b6b44428561609c59abaea8fa31a11aefff SHA1 628f549867751e373fc20c7558fec422f9eb942b SHA256 c6f99b68a558f4d626e9a5076d664f38e9925715dc541b07f0328c9aeb02ec33
-EBUILD cups-1.3.11-r4.ebuild 8156 RMD160 0dc0586773e1013e131958722659fa8e295a61ad SHA1 fbc26e25dfcaf4e2d60fc9c881620b315299446f SHA256 b47eba9e1374585f1fb27cf5ee7bb39dd2b937fefacb514312a2036e34b1104c
-EBUILD cups-1.4.6-r2.ebuild 7233 RMD160 d38eaef281327c19dfb4ae714c0719861c7f835f SHA1 53122b5426bf207a351f60cb8136444cc720aa6b SHA256 c47cc53f83fa35301bc823c5f8273e9a2200339a00b8216fbeae60145d39bbca
EBUILD cups-1.4.8-r1.ebuild 7192 RMD160 43c67440f0b0b8770feec13af5ab051b5d2412e6 SHA1 9c27bcd87594fda8f828e95bae9b42760b2710a3 SHA256 c2561794a4711d8f58b46a9deed774f82bee57cb8f5a6ab341cfb116597de18b
-EBUILD cups-1.4.8-r21.ebuild 8442 RMD160 1d8c91e2145c2484f9324d15656320ee519273c0 SHA1 163ead6b0eb3301e5a71670974a11a35229b090c SHA256 aef663bb901775bbba44585dd50ecc6d31540685d4245e6430b7d4bc9dbb3309
EBUILD cups-1.4.8-r22.ebuild 8493 RMD160 39b39b32ddc4bead92546180f11f377b9bdbca01 SHA1 6e5397d498b9ae8e66e74d9a1253b44ac79d77e1 SHA256 5eae14cd692f2639a69c518bbd381b04cc7fdfdca067c944bd90181212c5b387
-EBUILD cups-1.5.0-r1.ebuild 8298 RMD160 e3ac65ddbcabf3a2e1d9a9a5d77b9446cf90310d SHA1 cb2acd45a24faaae625febfd1224ecc8bb3e99d8 SHA256 4875c5607b541b3d34c257a145e2efcfc5806257aef1066e82f432b0f80afcba
EBUILD cups-1.5.0-r2.ebuild 6501 RMD160 0137c7b531696e83d0ce536f0681321d6f9d4726 SHA1 46e87de85a2d705428ff75d2063cc274e48e753d SHA256 64bdb26eea84190d450f9d0228b46581b2024a9a9af4c061f96821bb9aec43f4
-MISC ChangeLog 65934 RMD160 f23150d7ee0fc8267ed4008320f25aacbd1009a4 SHA1 96f82c1208226a07557cf98f935538e4b6a907c1 SHA256 30fc0992534f37a825510f5c26d199ccdc23d1d277fc50535729ba86ac23bf22
+MISC ChangeLog 66436 RMD160 4e6c1e188a52f55e3402d23e4c16d0db3dd062be SHA1 bff3d231f44752b1c32f3698d16e6cec38cb97cb SHA256 8bc63b71fd9fc4d32a4e95a92d3b7ce8788d702b0b4205c4015587810a68535a
MISC metadata.xml 586 RMD160 73a1f1c0096d5035dfa53207b00c125894f6822a SHA1 123501263490cab57af2b99f2336fb70c094d9b0 SHA256 3b729c497ee38452b1ca051b759f43b5f9e117f9c36c0f3b660e4bd8ab7c295b
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEAREKAAYFAk6/q+oACgkQgAnW8HDreRYy6ACgp8z6YNWuEcZOBADCv5LK8UB6
-SH8An0RgDhPD64iTf5qNFb3TmyT39jKX
-=O+W9
+iQIcBAEBCgAGBQJPExFYAAoJENwGBM22xffeBZAP/jMV2O/mzjRfn4qQjULXj5gN
+cYZqvgxBdgb1UF2mPgIqpA+CHC5UsFwdLT3Al44AvV+SLMR6A5c2QNiaioHh/Hod
+WXtvOWCMmYU2TJSQuEwLQDzbI441s/yWmWMxuh7C0Oy9ISCP7KNe1ECHeDuuTaKM
+OapSs3N+q4slr4PMrcj5M8eo5dbZOPKpBrjt96rMk58cKbPcvLHh997zVxzgWEig
+Ig31GhtCMwJobJCgMxWxgz9cRPYCdovhSO0qhkOQJ0I2QBL3k+kHLe8WmrlwgIjg
+7kwkFjjUnz/s1KbZbLjQKftS5YzRzrH5jG5ptfyAimGbFNauUo20hHWODu/JJmTT
+sKHdAR3mgcqr6Fpl+gkJbN6DLlVG2P2neOQtuDSKZzWfYvZKurbMvzkW2tvuzcFG
+M/deVf5L15o3keFOWQSXfj80YFhVtVfmp7HgaJ9B8GANrHN840s/URAUxR0QpXLv
+Ae1Gf30HSC9Yr0ZrMWg9+gHhhzYw50Q1G4lynUiDzCAj48hB6Q9T/UpJe64IPq7f
+HLDgLPKWSY2Z52moMyxGFuI/XXbiESHbLJpGACSimhg8VfyHaw7W/eo/eNl8LSOd
+81f50+jKmmvisLurfubl3go9trkyGaKyUy2I6SuadgPjwmFBKUJafB5Ea3cUJMh9
+3DKCnhMTqbN/7lLl1MMR
+=payy
-----END PGP SIGNATURE-----
diff --git a/net-print/cups/cups-1.3.11-r4.ebuild b/net-print/cups/cups-1.3.11-r4.ebuild
deleted file mode 100644
index 43ad1510878f..000000000000
--- a/net-print/cups/cups-1.3.11-r4.ebuild
+++ /dev/null
@@ -1,283 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.3.11-r4.ebuild,v 1.6 2011/11/13 11:36:59 jlec Exp $
-
-EAPI=2
-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://easysw/${PN}/${PV}/${MY_P}-source.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="acl avahi dbus gnutls java jpeg kerberos ldap pam perl php png ppds python samba slp ssl static tiff X xinetd zeroconf"
-
-COMMON_DEPEND="
- app-text/libpaper
- dev-libs/libgcrypt
- acl? (
- kernel_linux? (
- sys-apps/acl
- sys-apps/attr
- )
- )
- avahi? ( net-dns/avahi[mdnsresponder-compat] )
- dbus? ( sys-apps/dbus )
- gnutls? ( net-libs/gnutls )
- java? ( >=virtual/jre-1.4 )
- jpeg? ( virtual/jpeg )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- pam? ( virtual/pam )
- perl? ( dev-lang/perl )
- php? ( dev-lang/php )
- png? ( >=media-libs/libpng-1.2.1:0 )
- python? ( dev-lang/python )
- slp? ( >=net-libs/openslp-1.0.4 )
- ssl? (
- !gnutls? ( >=dev-libs/openssl-0.9.8g )
- )
- tiff? ( >=media-libs/tiff-3.5.5:0 )
- xinetd? ( sys-apps/xinetd )
- zeroconf? (
- !avahi? ( net-misc/mDNSResponder )
- )
-"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
- !<net-print/foomatic-filters-ppds-20070501
- !<net-print/hplip-1.7.4a-r1
- X? ( x11-misc/xdg-utils )
-"
-PDEPEND="
- app-text/ghostscript-gpl[cups]
- >=app-text/poppler-0.12.3-r3[utils]
- ppds? (
- || (
- (
- net-print/foomatic-filters-ppds
- net-print/foomatic-db-ppds
- )
- net-print/foomatic-filters-ppds
- net-print/foomatic-db-ppds
- net-print/hplip
- net-print/gutenprint
- net-print/foo2zjs
- net-print/cups-pdf
- )
- )
- samba? ( >=net-fs/samba-3.0.8 )
-"
-
-# 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}"
-
-LANGS="de en es et fr he id it ja pl sv zh_TW"
-for X in ${LANGS} ; do
- IUSE="${IUSE} linguas_${X}"
-done
-
-pkg_setup() {
- enewgroup lp
- enewuser lp -1 -1 -1 lp
-
- enewgroup lpadmin 106
-}
-
-src_prepare() {
- # disable configure automagic for acl/attr, upstream bug STR #2723
- epatch "${FILESDIR}/${PN}-1.3.0-configure.patch"
-
- # create a missing symlink to allow https printing via IPP, bug #217293
- epatch "${FILESDIR}/${PN}-1.3.7-backend-https.patch"
-
- # detect recent libgnutls versions, upstream bug STR #3178
- epatch "${FILESDIR}/${PN}-1.3.10-str3178.patch"
-
- # CVE-2009-2820: Several XSS flaws in forms processed by CUPS web interface
- # upstream bug STR #3178 and STR #3401
- epatch "${FILESDIR}/${PN}-1.3.11-str3367-security-1.3v2.patch"
- epatch "${FILESDIR}/${PN}-1.3.11-str3401-security-1.3v2-regression.patch"
- # CVE-2009-3553: Use-after-free (crash) due improper reference counting in abstract file descriptors handling interface
- # upstream bug STR #3200
- epatch "${FILESDIR}/${PN}-1.3.11-str3200.patch"
- # Fix failing if poppler is not around
- epatch "${FILESDIR}/${PN}-1.3.11-pdf-m4.patch"
-
- # cups does not use autotools "the usual way" and ship a static config.h.in
- eaclocal
- eautoconf
-}
-
-src_configure() {
- # Fails to compile on SH
- use sh && replace-flags -O? -O0
-
- # needed to prevent ghostscript compile failures
- use kerberos && strip-flags
-
- # locale support
- strip-linguas ${LANGS}
-
- if [ -z "${LINGUAS}" ] ; then
- export LINGUAS=all
- fi
-
- export DSOFLAGS="${LDFLAGS}"
-
- if use ldap ; then
- append-flags -DLDAP_DEPRECATED
- fi
-
- local myconf
-
- if use avahi || use zeroconf ; then
- myconf="${myconf} --enable-dnssd"
- else
- myconf="${myconf} --disable-dnssd"
- fi
-
- if use ssl || use gnutls ; then
- myconf="${myconf} \
- $(use_enable gnutls) \
- $(use_enable !gnutls openssl)"
- else
- myconf="${myconf} \
- --disable-gnutls \
- --disable-openssl"
- fi
-
- econf \
- --libdir=/usr/$(get_libdir) \
- --localstatedir=/var \
- --with-cups-user=lp \
- --with-cups-group=lp \
- --with-docdir=/usr/share/cups/html \
- --with-languages=${LINGUAS} \
- --with-pdftops=/usr/bin/pdftops \
- --with-system-groups=lpadmin \
- --with-xinetd=/etc/xinetd.d \
- $(use_enable acl) \
- $(use_enable dbus) \
- $(use_enable jpeg) \
- $(use_enable kerberos gssapi) \
- $(use_enable ldap) \
- $(use_enable pam) \
- $(use_enable png) \
- $(use_enable slp) \
- $(use_enable static) \
- $(use_enable tiff) \
- $(use_with java) \
- $(use_with perl) \
- $(use_with php) \
- $(use_with python) \
- --enable-libpaper \
- --enable-threads \
- --with-optim="${CFLAGS}" \
- ${myconf}
-
- # 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
-}
-
-src_install() {
- emake BUILDROOT="${D}" install || die "emake install failed"
- dodoc {CHANGES{,-1.{0,1}},CREDITS,README}.txt || die "dodoc install failed"
-
- # clean out cups init scripts
- rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
-
- # install our init script
- local neededservices
- use avahi && neededservices="$neededservices avahi-daemon"
- use dbus && neededservices="$neededservices dbus"
- use zeroconf && ! use avahi && neededservices="$neededservices mDNSResponderPosix"
- [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
- sed -e "s/@neededservices@/$neededservices/" "${FILESDIR}"/cupsd.init.d > "${T}"/cupsd
- doinitd "${T}"/cupsd
-
- # install our pam script
- pamd_mimic_system cups auth account
-
- if use xinetd ; then
- # 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
- else
- rm -rf "${D}"/etc/xinetd.d
- 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, upstream bug STR #2724.
- 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
-
- # create RSS feed directory
- diropts -m 0740 -o lp -g lp
- dodir /var/cache/cups/rss
-
- # create /etc/cups/client.conf, bug #196967 and #266678
- echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf
-}
-
-pkg_preinst() {
- # cleanups
- [ -n "${PN}" ] && rm -fR "${ROOT}"/usr/share/doc/"${PN}"-*
- has_version "=${CATEGORY}/${PN}-1.2*"
- upgrade_from_1_2=$?
-}
-
-pkg_postinst() {
- echo
- elog "For information about installing a printer and general cups setup"
- elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
- echo
-
- if [[ $upgrade_from_1_2 = 0 ]] ; then
- echo
- ewarn "You have upgraded from an older cups version. Please make sure"
- ewarn "to run \"etc-update\" and \"revdep-rebuild\" NOW."
- echo
- fi
-
- if [ -e "${ROOT}"/usr/lib/cups ] ; then
- echo
- 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 -e \"s:net-print/cups$::\")"
- echo
- ewarn "FEATURES=-collision-protect is needed to overwrite the compatibility"
- ewarn "symlinks installed by this package, it won't be needed on later merges."
- ewarn "You should also run revdep-rebuild"
- echo
-
- # 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.4.6-r2.ebuild b/net-print/cups/cups-1.4.6-r2.ebuild
deleted file mode 100644
index de69b7454be5..000000000000
--- a/net-print/cups/cups-1.4.6-r2.ebuild
+++ /dev/null
@@ -1,267 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.4.6-r2.ebuild,v 1.11 2011/11/13 11:36:59 jlec Exp $
-
-EAPI=3
-
-PYTHON_DEPEND="python? 2:2.5"
-
-inherit autotools eutils flag-o-matic linux-info multilib pam perl-module python versionator java-pkg-opt-2
-
-MY_P=${P/_}
-
-DESCRIPTION="The Common Unix Printing System"
-HOMEPAGE="http://www.cups.org/"
-SRC_URI="mirror://easysw/${PN}/${PV}/${MY_P}-source.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="acl dbus debug gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static-libs +threads +tiff X xinetd"
-
-LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW"
-for X in ${LANGS} ; do
- IUSE="${IUSE} linguas_${X}"
-done
-
-RDEPEND="
- app-text/libpaper
- acl? (
- kernel_linux? (
- sys-apps/acl
- sys-apps/attr
- )
- )
- dbus? ( sys-apps/dbus )
- java? ( >=virtual/jre-1.6 )
- jpeg? ( virtual/jpeg:0 )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap[ssl?,gnutls?] )
- pam? ( virtual/pam )
- perl? ( dev-lang/perl )
- php? ( dev-lang/php )
- png? ( >=media-libs/libpng-1.4.3:0 )
- slp? ( >=net-libs/openslp-1.0.4 )
- ssl? (
- gnutls? (
- dev-libs/libgcrypt
- net-libs/gnutls
- )
- !gnutls? ( >=dev-libs/openssl-0.9.8g )
- )
- tiff? ( >=media-libs/tiff-3.5.5:0 )
- X? ( x11-misc/xdg-utils )
- xinetd? ( sys-apps/xinetd )
- !net-print/cupsddk
-"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
-"
-
-PDEPEND="
- app-text/ghostscript-gpl[cups]
- >=app-text/poppler-0.12.3-r3[utils]
-"
-
-# upstream includes an interactive test which is a nono for gentoo.
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- enewgroup lp
- enewuser lp -1 -1 -1 lp
- enewgroup lpadmin 106
-
- # python 3 is no-go
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-
- linux-info_pkg_setup
- if ! linux_config_exists; then
- ewarn "Can't check the linux kernel configuration."
- ewarn "You might have some incompatible options enabled."
- else
- #here we should warn user that he should enable it so he can print
- if ! linux_chkconfig_present USB_PRINTER; then
- ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
- ewarn "support in your kernel."
- ewarn "Please enable it:"
- ewarn " CONFIG_USB_PRINTER=y"
- ewarn "in /usr/src/linux/.config or"
- ewarn " Device Drivers --->"
- ewarn " USB support --->"
- ewarn " [*] USB Printer support"
- fi
- fi
-}
-
-src_prepare() {
- # create a missing symlink to allow https printing via IPP, bug #217293
- epatch "${FILESDIR}/${PN}-1.4.0-backend-https.patch"
- # various build time fixes
- epatch "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-fix-install-perms.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch"
- epatch "${FILESDIR}/${PN}-1.4.6-force-gnutls.patch"
- epatch "${FILESDIR}/${PN}-1.4.6-serialize-gnutls.patch"
- # interface hangs using some browsers, bug #325871
- epatch "${FILESDIR}/${PN}-1.4.6-web-hang.patch"
-
- AT_M4DIR=config-scripts eaclocal
- eautoconf
-}
-
-src_configure() {
- export DSOFLAGS="${LDFLAGS}"
-
- # locale support
- strip-linguas ${LANGS}
- if [ -z "${LINGUAS}" ] ; then
- export LINGUAS=none
- fi
-
- local myconf
- if use ssl || use gnutls ; then
- myconf+="
- $(use_enable gnutls)
- $(use_enable !gnutls openssl)
- "
- else
- myconf+="
- --disable-gnutls
- --disable-openssl
- "
- fi
-
- # bug 352252, recheck for later versions if still necessary....
- if use gnutls && ! use threads ; then
- ewarn "The useflag gnutls requires also threads enabled. Switching on threads."
- fi
- if use gnutls || use threads ; then
- myconf+=" --enable-threads "
- else
- myconf+=" --disable-threads "
- fi
-
- econf \
- --libdir=/usr/$(get_libdir) \
- --localstatedir=/var \
- --with-cups-user=lp \
- --with-cups-group=lp \
- --with-docdir=/usr/share/cups/html \
- --with-languages="${LINGUAS}" \
- --with-pdftops=/usr/bin/pdftops \
- --with-system-groups=lpadmin \
- $(use_enable acl) \
- $(use_enable dbus) \
- $(use_enable debug) \
- $(use_enable debug debug-guards) \
- $(use_enable jpeg) \
- $(use_enable kerberos gssapi) \
- $(use_enable ldap) \
- $(use_enable pam) \
- $(use_enable png) \
- $(use_enable slp) \
- $(use_enable static-libs static) \
- $(use_enable tiff) \
- --disable-libusb \
- $(use_with java) \
- $(use_with perl) \
- $(use_with php) \
- $(use_with python) \
- $(use_with xinetd xinetd /etc/xinetd.d) \
- --enable-libpaper \
- --disable-dnssd \
- ${myconf}
-
- # 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 || die
- sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die
- sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use perl ; then
- cd "${S}"/scripting/perl
- perl-module_src_prep
- perl-module_src_compile
- fi
-
- if use php ; then
- cd "${S}"/scripting/php
- emake || die "emake php failed"
- fi
-}
-
-src_install() {
- emake BUILDROOT="${D}" install || die "emake install failed"
- dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed"
-
- if use perl ; then
- cd "${S}"/scripting/perl
- perl-module_src_install
- fixlocalpod
- fi
-
- if use php ; then
- cd "${S}"/scripting/php
- emake DESTDIR="${D}" install || die "emake install for php bindings failed"
- fi
-
- # clean out cups init scripts
- rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
-
- # install our init script
- local neededservices
- use dbus && neededservices+=" dbus"
- [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
- cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die
- sed -i \
- -e "s/@neededservices@/$neededservices/" \
- "${T}"/cupsd || die
- doinitd "${T}"/cupsd || die "doinitd failed"
-
- # install our pam script
- pamd_mimic_system cups auth account
-
- if use xinetd ; then
- # correct path
- sed -i \
- -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
- "${D}"/etc/xinetd.d/cups-lpd || die
- # 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 || die ; }
- # write permission for file owner (root), bug #296221
- fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
- else
- rm -rf "${D}"/etc/xinetd.d
- fi
-
- keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
- /var/cache/cups /var/cache/cups/rss /var/log/cups /var/run/cups/certs \
- /var/spool/cups/tmp
-
- keepdir /etc/cups/{interfaces,ppd,ssl}
-
- use X || rm -r "${D}"/usr/share/applications
-
- # create /etc/cups/client.conf, bug #196967 and #266678
- echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf
-}
-
-pkg_postinst() {
- echo
- elog "For information about installing a printer and general cups setup"
- elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
- echo
-}
diff --git a/net-print/cups/cups-1.4.8-r21.ebuild b/net-print/cups/cups-1.4.8-r21.ebuild
deleted file mode 100644
index 9d2398361f8d..000000000000
--- a/net-print/cups/cups-1.4.8-r21.ebuild
+++ /dev/null
@@ -1,295 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.4.8-r21.ebuild,v 1.3 2011/11/13 11:36:59 jlec Exp $
-
-EAPI=3
-
-PYTHON_DEPEND="python? 2:2.5"
-
-inherit autotools eutils flag-o-matic linux-info multilib pam perl-module python versionator java-pkg-opt-2
-
-MY_P=${P/_}
-
-DESCRIPTION="The Common Unix Printing System"
-HOMEPAGE="http://www.cups.org/"
-SRC_URI="mirror://easysw/${PN}/${PV}/${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 dbus debug gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static-libs +threads +tiff usb X xinetd"
-
-LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW"
-for X in ${LANGS} ; do
- IUSE="${IUSE} linguas_${X}"
-done
-
-RDEPEND="
- app-text/libpaper
- acl? (
- kernel_linux? (
- sys-apps/acl
- sys-apps/attr
- )
- )
- dbus? ( sys-apps/dbus )
- java? ( >=virtual/jre-1.6 )
- jpeg? ( virtual/jpeg:0 )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap[ssl?,gnutls?] )
- pam? ( virtual/pam )
- perl? ( dev-lang/perl )
- php? ( dev-lang/php )
- png? ( >=media-libs/libpng-1.4.3:0 )
- slp? ( >=net-libs/openslp-1.0.4 )
- ssl? (
- gnutls? (
- dev-libs/libgcrypt
- net-libs/gnutls
- )
- !gnutls? ( >=dev-libs/openssl-0.9.8g )
- )
- tiff? ( >=media-libs/tiff-3.5.5:0 )
- usb? ( virtual/libusb:0 )
- X? ( x11-misc/xdg-utils )
- xinetd? ( sys-apps/xinetd )
- !net-print/cupsddk
-"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
-"
-
-PDEPEND="
- app-text/ghostscript-gpl[cups]
- >=app-text/poppler-0.12.3-r3[utils]
-"
-
-# upstream includes an interactive test which is a nono for gentoo.
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- enewgroup lp
- enewuser lp -1 -1 -1 lp
- enewgroup lpadmin 106
-
- # python 3 is no-go
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-
- if use usb; then
- elog "You are going to use new libusb backed to access your usb printer."
- elog "This interface has quite few known issues and does not report all"
- elog "issues and just refuses to print."
- elog "Please consider disabling usb useflag if you are having issues."
- elog
- elog "Please note that if you disable the usb useflag your device will be"
- elog "still working using kernel usblp interface instead of libusb."
- echo
- fi
-
- linux-info_pkg_setup
- if ! linux_config_exists; then
- ewarn "Can't check the linux kernel configuration."
- ewarn "You might have some incompatible options enabled."
- else
- # recheck that we don't have usblp to collide with libusb
- if use usb; then
- if linux_chkconfig_present USB_PRINTER; then
- eerror "Your usb printers will be managed via libusb which collides with kernel module."
- eerror "${P} requires the USB_PRINTER support disabled."
- eerror "Please disable it:"
- eerror " CONFIG_USB_PRINTER=n"
- eerror "in /usr/src/linux/.config or"
- eerror " Device Drivers --->"
- eerror " USB support --->"
- eerror " [ ] USB Printer support"
- eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
- fi
- else
- #here we should warn user that he should enable it so he can print
- if ! linux_chkconfig_present USB_PRINTER; then
- ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
- ewarn "support in your kernel."
- ewarn "Please enable it:"
- ewarn " CONFIG_USB_PRINTER=y"
- ewarn "in /usr/src/linux/.config or"
- ewarn " Device Drivers --->"
- ewarn " USB support --->"
- ewarn " [*] USB Printer support"
- ewarn "Alternatively, enable the usb useflag for cups and use the new, less-tested libusb code."
- fi
- fi
- fi
-}
-
-src_prepare() {
- # create a missing symlink to allow https printing via IPP, bug #217293
- epatch "${FILESDIR}/${PN}-1.4.0-backend-https.patch"
- # various build time fixes
- epatch "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-fix-install-perms.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch"
- epatch "${FILESDIR}/${PN}-1.4.6-force-gnutls.patch"
- epatch "${FILESDIR}/${PN}-1.4.6-serialize-gnutls.patch"
- # security fixes
- epatch "${FILESDIR}/${PN}-1.4.8-CVE-2011-3170.patch"
-
- AT_M4DIR=config-scripts eaclocal
- eautoconf
-}
-
-src_configure() {
- export DSOFLAGS="${LDFLAGS}"
-
- # locale support
- strip-linguas ${LANGS}
- if [ -z "${LINGUAS}" ] ; then
- export LINGUAS=none
- fi
-
- local myconf
- if use ssl || use gnutls ; then
- myconf+="
- $(use_enable gnutls)
- $(use_enable !gnutls openssl)
- "
- else
- myconf+="
- --disable-gnutls
- --disable-openssl
- "
- fi
-
- # bug 352252, recheck for later versions if still necessary....
- if use gnutls && ! use threads ; then
- ewarn "The useflag gnutls requires also threads enabled. Switching on threads."
- fi
- if use gnutls || use threads ; then
- myconf+=" --enable-threads "
- else
- myconf+=" --disable-threads "
- fi
-
- econf \
- --libdir=/usr/$(get_libdir) \
- --localstatedir=/var \
- --with-cups-user=lp \
- --with-cups-group=lp \
- --with-docdir=/usr/share/cups/html \
- --with-languages="${LINGUAS}" \
- --with-pdftops=/usr/bin/pdftops \
- --with-system-groups=lpadmin \
- $(use_enable acl) \
- $(use_enable dbus) \
- $(use_enable debug) \
- $(use_enable debug debug-guards) \
- $(use_enable jpeg) \
- $(use_enable kerberos gssapi) \
- $(use_enable ldap) \
- $(use_enable pam) \
- $(use_enable png) \
- $(use_enable slp) \
- $(use_enable static-libs static) \
- $(use_enable tiff) \
- $(use_enable usb libusb) \
- $(use_with java) \
- $(use_with perl) \
- $(use_with php) \
- $(use_with python) \
- $(use_with xinetd xinetd /etc/xinetd.d) \
- --enable-libpaper \
- --disable-dnssd \
- ${myconf}
-
- # 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 || die
- sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die
- sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use perl ; then
- cd "${S}"/scripting/perl
- perl-module_src_prep
- perl-module_src_compile
- fi
-
- if use php ; then
- cd "${S}"/scripting/php
- emake || die "emake php failed"
- fi
-}
-
-src_install() {
- emake BUILDROOT="${D}" install || die "emake install failed"
- dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed"
-
- if use perl ; then
- cd "${S}"/scripting/perl
- perl-module_src_install
- fixlocalpod
- fi
-
- if use php ; then
- cd "${S}"/scripting/php
- emake DESTDIR="${D}" install || die "emake install for php bindings failed"
- fi
-
- # clean out cups init scripts
- rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
-
- # install our init script
- local neededservices
- use dbus && neededservices+=" dbus"
- [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
- cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die
- sed -i \
- -e "s/@neededservices@/$neededservices/" \
- "${T}"/cupsd || die
- doinitd "${T}"/cupsd || die "doinitd failed"
-
- # install our pam script
- pamd_mimic_system cups auth account
-
- if use xinetd ; then
- # correct path
- sed -i \
- -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
- "${D}"/etc/xinetd.d/cups-lpd || die
- # 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 || die ; }
- # write permission for file owner (root), bug #296221
- fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
- else
- rm -rf "${D}"/etc/xinetd.d
- fi
-
- keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
- /var/cache/cups /var/cache/cups/rss /var/log/cups /var/run/cups/certs \
- /var/spool/cups/tmp
-
- keepdir /etc/cups/{interfaces,ppd,ssl}
-
- use X || rm -r "${D}"/usr/share/applications
-
- # create /etc/cups/client.conf, bug #196967 and #266678
- echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf
-}
-
-pkg_postinst() {
- echo
- elog "For information about installing a printer and general cups setup"
- elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
- echo
-}
diff --git a/net-print/cups/cups-1.5.0-r1.ebuild b/net-print/cups/cups-1.5.0-r1.ebuild
deleted file mode 100644
index 65f10fcb7080..000000000000
--- a/net-print/cups/cups-1.5.0-r1.ebuild
+++ /dev/null
@@ -1,297 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.5.0-r1.ebuild,v 1.3 2011/11/13 11:36:59 jlec Exp $
-
-#
-# See http://git.overlays.gentoo.org/gitweb/?p=dev/dilfridge.git;a=blob;f=net-print/cups/notes.txt;hb=HEAD
-# for some notes about the ongoing work here
-#
-
-EAPI=3
-
-PYTHON_DEPEND="python? 2:2.5"
-
-inherit autotools eutils flag-o-matic linux-info multilib pam perl-module python versionator java-pkg-opt-2
-
-MY_P=${P/_}
-MY_PV=${PV/_}
-
-DESCRIPTION="The Common Unix Printing System"
-HOMEPAGE="http://www.cups.org/"
-SRC_URI="mirror://easysw/${PN}/${MY_PV}/${MY_P}-source.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="acl dbus debug gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static-libs +threads +tiff usb X xinetd"
-
-LANGS="da de es eu fi fr id it ja ko nl no pl pt pt_BR ru sv zh zh_TW"
-for X in ${LANGS} ; do
- IUSE="${IUSE} linguas_${X}"
-done
-
-RDEPEND="
- app-text/libpaper
- acl? (
- kernel_linux? (
- sys-apps/acl
- sys-apps/attr
- )
- )
- dbus? ( sys-apps/dbus )
- java? ( >=virtual/jre-1.6 )
- jpeg? ( virtual/jpeg:0 )
- kerberos? ( virtual/krb5 )
- ldap? ( net-nds/openldap[ssl?,gnutls?] )
- pam? ( virtual/pam )
- perl? ( dev-lang/perl )
- php? ( dev-lang/php )
- png? ( >=media-libs/libpng-1.4.3:0 )
- slp? ( >=net-libs/openslp-1.0.4 )
- ssl? (
- gnutls? (
- dev-libs/libgcrypt
- >=net-libs/gnutls-2.11
- )
- !gnutls? ( >=dev-libs/openssl-0.9.8g )
- )
- tiff? ( >=media-libs/tiff-3.5.5:0 )
- usb? ( virtual/libusb:0 )
- X? ( x11-misc/xdg-utils )
- xinetd? ( sys-apps/xinetd )
- !net-print/cupsddk
-"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
-"
-
-PDEPEND="
- app-text/ghostscript-gpl[cups]
- >=app-text/poppler-0.12.3-r3[utils]
-"
-
-# upstream includes an interactive test which is a nono for gentoo.
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- enewgroup lp
- enewuser lp -1 -1 -1 lp
- enewgroup lpadmin 106
-
- # python 3 is no-go
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-
- if use usb; then
- elog "You are going to use new libusb backed to access your usb printer."
- elog "This interface has quite few known issues and does not report all"
- elog "issues and just refuses to print."
- elog "Please consider disabling usb useflag if you are having issues."
- elog
- elog "Please note that if you disable the usb useflag your device will be"
- elog "still working using kernel usblp interface instead of libusb."
- echo
- fi
-
- linux-info_pkg_setup
- if ! linux_config_exists; then
- ewarn "Can't check the linux kernel configuration."
- ewarn "You might have some incompatible options enabled."
- else
- # recheck that we don't have usblp to collide with libusb
- if use usb; then
- if linux_chkconfig_present USB_PRINTER; then
- eerror "Your usb printers will be managed via libusb which collides with kernel module."
- eerror "${P} requires the USB_PRINTER support disabled."
- eerror "Please disable it:"
- eerror " CONFIG_USB_PRINTER=n"
- eerror "in /usr/src/linux/.config or"
- eerror " Device Drivers --->"
- eerror " USB support --->"
- eerror " [ ] USB Printer support"
- eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)."
- fi
- else
- #here we should warn user that he should enable it so he can print
- if ! linux_chkconfig_present USB_PRINTER; then
- ewarn "If you plan to use USB printers you should enable the USB_PRINTER"
- ewarn "support in your kernel."
- ewarn "Please enable it:"
- ewarn " CONFIG_USB_PRINTER=y"
- ewarn "in /usr/src/linux/.config or"
- ewarn " Device Drivers --->"
- ewarn " USB support --->"
- ewarn " [*] USB Printer support"
- ewarn "Alternatively, enable the usb useflag for cups and use the new, less-tested libusb code."
- fi
- fi
- fi
-}
-
-src_prepare() {
- # various build time fixes
- epatch "${FILESDIR}/${PN}-1.4.4-dont-compress-manpages.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-fix-install-perms.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-nostrip.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch"
- epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch"
- # security fixes
- epatch "${FILESDIR}/${PN}-1.4.8-CVE-2011-3170.patch"
-
- AT_M4DIR=config-scripts eaclocal
- eautoconf
-}
-
-src_configure() {
- export DSOFLAGS="${LDFLAGS}"
-
- # locale support
- strip-linguas ${LANGS}
- if [ -z "${LINGUAS}" ] ; then
- export LINGUAS=none
- fi
-
- local myconf
- if use ssl || use gnutls ; then
- myconf+="
- $(use_enable gnutls)
- $(use_enable !gnutls openssl)
- "
- else
- myconf+="
- --disable-gnutls
- --disable-openssl
- "
- fi
-
- # bug 352252, recheck for later versions if still necessary....
- if use gnutls && ! use threads ; then
- ewarn "The useflag gnutls requires also threads enabled. Switching on threads."
- fi
- if use gnutls || use threads ; then
- myconf+=" --enable-threads "
- else
- myconf+=" --disable-threads "
- fi
-
- econf \
- --libdir=/usr/$(get_libdir) \
- --localstatedir=/var \
- --with-cups-user=lp \
- --with-cups-group=lp \
- --with-docdir=/usr/share/cups/html \
- --with-languages="${LINGUAS}" \
- --with-pdftops=/usr/bin/pdftops \
- --with-system-groups=lpadmin \
- $(use_enable acl) \
- $(use_enable dbus) \
- $(use_enable debug) \
- $(use_enable debug debug-guards) \
- $(use_enable jpeg) \
- $(use_enable kerberos gssapi) \
- $(use_enable ldap) \
- $(use_enable pam) \
- $(use_enable png) \
- $(use_enable slp) \
- $(use_enable static-libs static) \
- $(use_enable tiff) \
- $(use_enable usb libusb) \
- $(use_with java) \
- $(use_with perl) \
- $(use_with php) \
- $(use_with python) \
- $(use_with xinetd xinetd /etc/xinetd.d) \
- --enable-libpaper \
- --disable-dnssd \
- ${myconf}
-
- # 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 || die
- sed -i -e 's:#define CUPS_SERVERBIN.*:#define CUPS_SERVERBIN "/usr/libexec/cups":' config.h || die
- sed -i -e 's:cups_serverbin=.*:cups_serverbin=/usr/libexec/cups:' cups-config || die
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use perl ; then
- cd "${S}"/scripting/perl
- perl-module_src_prep
- perl-module_src_compile
- fi
-
- if use php ; then
- cd "${S}"/scripting/php
- emake || die "emake php failed"
- fi
-}
-
-src_install() {
- emake BUILDROOT="${D}" install || die "emake install failed"
- dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed"
-
- if use perl ; then
- cd "${S}"/scripting/perl
- perl-module_src_install
- fixlocalpod
- fi
-
- if use php ; then
- cd "${S}"/scripting/php
- emake DESTDIR="${D}" install || die "emake install for php bindings failed"
- fi
-
- # clean out cups init scripts
- rm -rf "${D}"/etc/{init.d/cups,rc*,pam.d/cups}
-
- # install our init script
- local neededservices
- use dbus && neededservices+=" dbus"
- [[ -n ${neededservices} ]] && neededservices="need${neededservices}"
- cp "${FILESDIR}"/cupsd.init.d "${T}"/cupsd || die
- sed -i \
- -e "s/@neededservices@/$neededservices/" \
- "${T}"/cupsd || die
- doinitd "${T}"/cupsd || die "doinitd failed"
-
- # install our pam script
- pamd_mimic_system cups auth account
-
- if use xinetd ; then
- # correct path
- sed -i \
- -e "s:server = .*:server = /usr/libexec/cups/daemon/cups-lpd:" \
- "${D}"/etc/xinetd.d/cups-lpd || die
- # 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 || die ; }
- # write permission for file owner (root), bug #296221
- fperms u+w /etc/xinetd.d/cups-lpd || die "fperms failed"
- else
- rm -rf "${D}"/etc/xinetd.d
- fi
-
- keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
- /var/cache/cups /var/cache/cups/rss /var/log/cups /var/run/cups/certs \
- /var/spool/cups/tmp
-
- keepdir /etc/cups/{interfaces,ppd,ssl}
-
- use X || rm -r "${D}"/usr/share/applications
-
- # create /etc/cups/client.conf, bug #196967 and #266678
- echo "ServerName /var/run/cups/cups.sock" >> "${D}"/etc/cups/client.conf
-}
-
-pkg_postinst() {
- echo
- elog "For information about installing a printer and general cups setup"
- elog "take a look at: http://www.gentoo.org/doc/en/printing-howto.xml"
- echo
-}
diff --git a/net-print/cups/files/cups-1.3.0-configure.patch b/net-print/cups/files/cups-1.3.0-configure.patch
deleted file mode 100644
index f248dfeb0298..000000000000
--- a/net-print/cups/files/cups-1.3.0-configure.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -Naur cups-1.3.3/config-scripts/cups-common.m4 cups-1.3.3.new/config-scripts/cups-common.m4
---- cups-1.3.3/config-scripts/cups-common.m4 2007-09-28 22:40:03.000000000 +0200
-+++ cups-1.3.3.new/config-scripts/cups-common.m4 2007-10-04 14:40:49.414154416 +0200
-@@ -270,7 +270,12 @@
- dnl See if we have POSIX ACL support...
- SAVELIBS="$LIBS"
- LIBS=""
--AC_SEARCH_LIBS(acl_init, acl, AC_DEFINE(HAVE_ACL_INIT))
-+
-+AC_ARG_ENABLE(acl, [ --enable-acl enable POSIX ACL support, default=auto])
-+if test "x$enable_acl" != xno; then
-+ AC_SEARCH_LIBS(acl_init, acl, AC_DEFINE(HAVE_ACL_INIT))
-+fi
-+
- CUPSDLIBS="$CUPSDLIBS $LIBS"
- LIBS="$SAVELIBS"
-
-
diff --git a/net-print/cups/files/cups-1.3.10-str3178.patch b/net-print/cups/files/cups-1.3.10-str3178.patch
deleted file mode 100644
index 5336e23c802c..000000000000
--- a/net-print/cups/files/cups-1.3.10-str3178.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -Naur cups-1.3.10/config-scripts/cups-ssl.m4 cups-1.3.10.new/config-scripts/cups-ssl.m4
---- cups-1.3.10/config-scripts/cups-ssl.m4 2007-07-11 23:46:42.000000000 +0200
-+++ cups-1.3.10.new/config-scripts/cups-ssl.m4 2009-05-29 02:38:27.444267250 +0200
-@@ -64,11 +64,11 @@
- fi
-
- dnl Then look for GNU TLS...
-- if test "x${SSLLIBS}" = "x" -a "x${enable_gnutls}" != "xno"; then
-+ if test "x${SSLLIBS}" = "x" -a "x${enable_gnutls}" != "xno" -a "x$PKGCONFIG" != x; then
- AC_PATH_PROG(LIBGNUTLSCONFIG,libgnutls-config)
-- if test "x$LIBGNUTLSCONFIG" != x; then
-- SSLLIBS=`$LIBGNUTLSCONFIG --libs`
-- SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
-+ if $PKGCONFIG --exists gnutls; then
-+ SSLLIBS=`$PKGCONFIG --libs gnutls`
-+ SSLFLAGS=`$PKGCONFIG --cflags gnutls`
- ENCRYPTION_REQUIRED=" Encryption Required"
- AC_DEFINE(HAVE_SSL)
- AC_DEFINE(HAVE_GNUTLS)
diff --git a/net-print/cups/files/cups-1.3.11-pdf-m4.patch b/net-print/cups/files/cups-1.3.11-pdf-m4.patch
deleted file mode 100644
index 830ecfb97c15..000000000000
--- a/net-print/cups/files/cups-1.3.11-pdf-m4.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-# This patch is taken from cups 1.4.5 and fixes annoying requirement to have poppler around during build-time
-
---- cups-1.3.11/config-scripts/cups-pdf.m4 2009-03-12 22:34:21.000000000 +0100
-+++ cups-1.4.5/config-scripts/cups-pdf.m4 2009-08-08 00:30:30.000000000 +0200
-@@ -13,12 +13,7 @@
- dnl file is missing or damaged, see the license at "http://www.cups.org/".
- dnl
-
--AC_ARG_ENABLE(pdftops, [ --enable-pdftops build pdftops filter, default=auto ])
--AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,pdftops,none), default=pdftops ])
--
--if test "x$enable_pdftops" = xno -a "x$with_pdftops" = x; then
-- with_pdftops=no
--fi
-+AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops ])
-
- PDFTOPS=""
- CUPS_PDFTOPS=""
-@@ -52,6 +47,12 @@
- fi
- ;;
-
-+ x/*/gs) # Use /path/to/gs without any check:
-+ CUPS_GHOSTSCRIPT="$with_pdftops"
-+ AC_DEFINE(HAVE_GHOSTSCRIPT)
-+ PDFTOPS="pdftops"
-+ ;;
-+
- xpdftops)
- AC_PATH_PROG(CUPS_PDFTOPS, pdftops)
- if test "x$CUPS_PDFTOPS" != x; then
-@@ -62,6 +63,20 @@
- exit 1
- fi
- ;;
-+
-+ x/*/pdftops) # Use /path/to/pdftops without any check:
-+ CUPS_PDFTOPS="$with_pdftops"
-+ AC_DEFINE(HAVE_PDFTOPS)
-+ PDFTOPS="pdftops"
-+ ;;
-+
-+ xnone) # Make no pdftops filter if with_pdftops=none:
-+ ;;
-+
-+ *) # Invalid with_pdftops value:
-+ AC_MSG_ERROR(Invalid with_pdftops value!)
-+ exit 1
-+ ;;
- esac
-
- AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
diff --git a/net-print/cups/files/cups-1.3.11-str3200.patch b/net-print/cups/files/cups-1.3.11-str3200.patch
deleted file mode 100644
index 84cdbd26299f..000000000000
--- a/net-print/cups/files/cups-1.3.11-str3200.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff -up cups-1.3.7/scheduler/select.c.CVE-2009-3553 cups-1.3.7/scheduler/select.c
---- cups-1.3.7/scheduler/select.c.CVE-2009-3553 2007-11-30 19:29:50.000000000 +0000
-+++ cups-1.3.7/scheduler/select.c 2009-11-11 16:36:07.223893886 +0000
-@@ -477,7 +477,7 @@ cupsdDoSelect(long timeout) /* I - Time
- (*(fdptr->read_cb))(fdptr->data);
- }
-
-- if (fdptr->write_cb && event->filter == EVFILT_WRITE)
-+ if (fdptr->use > 1 && fdptr->write_cb && event->filter == EVFILT_WRITE)
- {
- cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDoSelect: Write on fd %d...",
- fdptr->fd);
-@@ -537,7 +537,7 @@ cupsdDoSelect(long timeout) /* I - Time
- (*(fdptr->read_cb))(fdptr->data);
- }
-
-- if (fdptr->write_cb && (event->events & (EPOLLOUT | EPOLLERR | EPOLLHUP)))
-+ if (fdptr->use > 1 && fdptr->write_cb && (event->events & (EPOLLOUT | EPOLLERR | EPOLLHUP)))
- {
- cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDoSelect: Write on fd %d...",
- fdptr->fd);
-@@ -649,7 +649,7 @@ cupsdDoSelect(long timeout) /* I - Time
- (*(fdptr->read_cb))(fdptr->data);
- }
-
-- if (fdptr->write_cb && (pfd->revents & (POLLOUT | POLLERR | POLLHUP)))
-+ if (fdptr->use > 1 && fdptr->write_cb && (pfd->revents & (POLLOUT | POLLERR | POLLHUP)))
- {
- cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDoSelect: Write on fd %d...",
- fdptr->fd);
-@@ -719,7 +719,7 @@ cupsdDoSelect(long timeout) /* I - Time
- (*(fdptr->read_cb))(fdptr->data);
- }
-
-- if (fdptr->write_cb && FD_ISSET(fdptr->fd, &cupsd_current_output))
-+ if (fdptr->use > 1 && fdptr->write_cb && FD_ISSET(fdptr->fd, &cupsd_current_output))
- {
- cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDoSelect: Write on fd %d...",
- fdptr->fd);
diff --git a/net-print/cups/files/cups-1.3.11-str3367-security-1.3v2.patch b/net-print/cups/files/cups-1.3.11-str3367-security-1.3v2.patch
deleted file mode 100644
index 8fe6b17e979e..000000000000
--- a/net-print/cups/files/cups-1.3.11-str3367-security-1.3v2.patch
+++ /dev/null
@@ -1,435 +0,0 @@
-Index: cgi-bin/printers.c
-===================================================================
---- cgi-bin/printers.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/printers.c (.../branches/leopard/cups) (revision 1707)
-@@ -72,6 +72,7 @@
- */
-
- cgiSetVariable("SECTION", "printers");
-+ cgiSetVariable("REFRESH_PAGE", "");
-
- /*
- * See if we are displaying a printer or all printers...
-Index: cgi-bin/cgi.h
-===================================================================
---- cgi-bin/cgi.h (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/cgi.h (.../branches/leopard/cups) (revision 1707)
-@@ -54,6 +54,7 @@
- extern void cgiAbort(const char *title, const char *stylesheet,
- const char *format, ...);
- extern int cgiCheckVariables(const char *names);
-+extern void cgiClearVariables(void);
- extern void *cgiCompileSearch(const char *query);
- extern void cgiCopyTemplateFile(FILE *out, const char *tmpl);
- extern void cgiCopyTemplateLang(const char *tmpl);
-Index: cgi-bin/template.c
-===================================================================
---- cgi-bin/template.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/template.c (.../branches/leopard/cups) (revision 1707)
-@@ -639,6 +639,8 @@
- fputs("&gt;", out);
- else if (*s == '\"')
- fputs("&quot;", out);
-+ else if (*s == '\'')
-+ fputs("&#39;", out);
- else if (*s == '&')
- fputs("&amp;", out);
- else
-@@ -659,7 +661,7 @@
- {
- while (*s)
- {
-- if (strchr("%&+ <>#=", *s) || *s & 128)
-+ if (strchr("%@&+ <>#=", *s) || *s < ' ' || *s & 128)
- fprintf(out, "%%%02X", *s & 255);
- else
- putc(*s, out);
-Index: cgi-bin/ipp-var.c
-===================================================================
---- cgi-bin/ipp-var.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/ipp-var.c (.../branches/leopard/cups) (revision 1707)
-@@ -1220,7 +1220,9 @@
- int ascending, /* Order of jobs (0 = descending) */
- first, /* First job to show */
- count; /* Number of jobs */
-- const char *var; /* Form variable */
-+ const char *var, /* Form variable */
-+ *query, /* Query string */
-+ *section; /* Section in web interface */
- void *search; /* Search data */
- char url[1024], /* URL for prev/next/this */
- *urlptr, /* Position in URL */
-@@ -1265,10 +1267,13 @@
- * Get a list of matching job objects.
- */
-
-- if ((var = cgiGetVariable("QUERY")) != NULL)
-- search = cgiCompileSearch(var);
-+ if ((query = cgiGetVariable("QUERY")) != NULL)
-+ search = cgiCompileSearch(query);
- else
-+ {
-+ query = NULL;
- search = NULL;
-+ }
-
- jobs = cgiGetIPPObjects(response, search);
- count = cupsArrayCount(jobs);
-@@ -1293,17 +1298,28 @@
- if (first < 0)
- first = 0;
-
-- sprintf(url, "%d", count);
-- cgiSetVariable("TOTAL", url);
--
- if ((var = cgiGetVariable("ORDER")) != NULL)
- ascending = !strcasecmp(var, "asc");
- else
-- {
- ascending = !which_jobs || !strcasecmp(which_jobs, "not-completed");
-- cgiSetVariable("ORDER", ascending ? "asc" : "dec");
-- }
-
-+ section = cgiGetVariable("SECTION");
-+
-+ cgiClearVariables();
-+
-+ if (query)
-+ cgiSetVariable("QUERY", query);
-+
-+ cgiSetVariable("ORDER", ascending ? "asc" : "dec");
-+
-+ cgiSetVariable("SECTION", section);
-+
-+ sprintf(url, "%d", count);
-+ cgiSetVariable("TOTAL", url);
-+
-+ if (which_jobs)
-+ cgiSetVariable("WHICH_JOBS", which_jobs);
-+
- if (ascending)
- {
- for (i = 0, job = (ipp_attribute_t *)cupsArrayIndex(jobs, first);
-@@ -1325,11 +1341,10 @@
-
- urlend = url + sizeof(url);
-
-- if ((var = cgiGetVariable("QUERY")) != NULL)
-+ if (query != NULL)
- {
- if (dest)
-- snprintf(url, sizeof(url), "/%s/%s?QUERY=", cgiGetVariable("SECTION"),
-- dest);
-+ snprintf(url, sizeof(url), "/%s/%s?QUERY=", section, dest);
- else
- strlcpy(url, "/jobs/?QUERY=", sizeof(url));
-
-@@ -1344,7 +1359,7 @@
- else
- {
- if (dest)
-- snprintf(url, sizeof(url), "/%s/%s?", cgiGetVariable("SECTION"), dest);
-+ snprintf(url, sizeof(url), "/%s/%s?", section, dest);
- else
- strlcpy(url, "/jobs/?", sizeof(url));
-
-Index: cgi-bin/admin.c
-===================================================================
---- cgi-bin/admin.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/admin.c (.../branches/leopard/cups) (revision 1707)
-@@ -104,6 +104,7 @@
- */
-
- cgiSetVariable("SECTION", "admin");
-+ cgiSetVariable("REFRESH_PAGE", "");
-
- /*
- * See if we have form data...
-@@ -134,16 +135,61 @@
-
-
- if (getenv("HTTPS"))
-- snprintf(prefix, sizeof(prefix), "https://%s:%s",
-- getenv("SERVER_NAME"), getenv("SERVER_PORT"));
-+ snprintf(prefix, sizeof(prefix), "https://%s:%s",
-+ getenv("SERVER_NAME"), getenv("SERVER_PORT"));
- else
-- snprintf(prefix, sizeof(prefix), "http://%s:%s",
-- getenv("SERVER_NAME"), getenv("SERVER_PORT"));
-+ snprintf(prefix, sizeof(prefix), "http://%s:%s",
-+ getenv("SERVER_NAME"), getenv("SERVER_PORT"));
-
-+ fprintf(stderr, "DEBUG: redirecting with prefix %s!\n", prefix);
-+
- if ((url = cgiGetVariable("URL")) != NULL)
-- printf("Location: %s%s\n\n", prefix, url);
-+ {
-+ char encoded[1024], /* Encoded URL string */
-+ *ptr; /* Pointer into encoded string */
-+
-+
-+ ptr = encoded;
-+ if (*url != '/')
-+ *ptr++ = '/';
-+
-+ for (; *url && ptr < (encoded + sizeof(encoded) - 4); url ++)
-+ {
-+ if (strchr("%@&+ <>#=", *url) || *url < ' ' || *url & 128)
-+ {
-+ /*
-+ * Percent-encode this character; safe because we have at least 4
-+ * bytes left in the array...
-+ */
-+
-+ sprintf(ptr, "%%%02X", *url & 255);
-+ ptr += 3;
-+ }
-+ else
-+ *ptr++ = *url;
-+ }
-+
-+ *ptr = '\0';
-+
-+ if (*url)
-+ {
-+ /*
-+ * URL was too long, just redirect to the admin page...
-+ */
-+
-+ printf("Location: %s/admin\n\n", prefix);
-+ }
-+ else
-+ {
-+ /*
-+ * URL is OK, redirect there...
-+ */
-+
-+ printf("Location: %s%s\n\n", prefix, encoded);
-+ }
-+ }
- else
-- printf("Location: %s/admin\n\n", prefix);
-+ printf("Location: %s/admin\n\n", prefix);
- }
- else if (!strcmp(op, "start-printer"))
- do_printer_op(http, IPP_RESUME_PRINTER, cgiText(_("Start Printer")));
-@@ -293,6 +339,31 @@
- * and classes and (re)show the add page...
- */
-
-+ if (cgiGetVariable("EVENT_JOB_CREATED"))
-+ cgiSetVariable("EVENT_JOB_CREATED", "CHECKED");
-+ if (cgiGetVariable("EVENT_JOB_COMPLETED"))
-+ cgiSetVariable("EVENT_JOB_COMPLETED", "CHECKED");
-+ if (cgiGetVariable("EVENT_JOB_STOPPED"))
-+ cgiSetVariable("EVENT_JOB_STOPPED", "CHECKED");
-+ if (cgiGetVariable("EVENT_JOB_CONFIG_CHANGED"))
-+ cgiSetVariable("EVENT_JOB_CONFIG_CHANGED", "CHECKED");
-+ if (cgiGetVariable("EVENT_PRINTER_STOPPED"))
-+ cgiSetVariable("EVENT_PRINTER_STOPPED", "CHECKED");
-+ if (cgiGetVariable("EVENT_PRINTER_ADDED"))
-+ cgiSetVariable("EVENT_PRINTER_ADDED", "CHECKED");
-+ if (cgiGetVariable("EVENT_PRINTER_MODIFIED"))
-+ cgiSetVariable("EVENT_PRINTER_MODIFIED", "CHECKED");
-+ if (cgiGetVariable("EVENT_PRINTER_DELETED"))
-+ cgiSetVariable("EVENT_PRINTER_DELETED", "CHECKED");
-+ if (cgiGetVariable("EVENT_SERVER_STARTED"))
-+ cgiSetVariable("EVENT_SERVER_STARTED", "CHECKED");
-+ if (cgiGetVariable("EVENT_SERVER_STOPPED"))
-+ cgiSetVariable("EVENT_SERVER_STOPPED", "CHECKED");
-+ if (cgiGetVariable("EVENT_SERVER_RESTARTED"))
-+ cgiSetVariable("EVENT_SERVER_RESTARTED", "CHECKED");
-+ if (cgiGetVariable("EVENT_SERVER_AUDIT"))
-+ cgiSetVariable("EVENT_SERVER_AUDIT", "CHECKED");
-+
- request = ippNewRequest(CUPS_GET_PRINTERS);
- response = cupsDoRequest(http, request, "/");
-
-@@ -450,6 +521,10 @@
- * Do the request and get back a response...
- */
-
-+ cgiClearVariables();
-+ if (name)
-+ cgiSetVariable("PRINTER_NAME", name);
-+
- if ((response = cupsDoRequest(http, request, "/")) != NULL)
- {
- /*
-@@ -2336,7 +2411,9 @@
- if ((val = cupsGetOption("DefaultAuthType", num_settings,
- settings)) != NULL && !strcasecmp(val, "Negotiate"))
- cgiSetVariable("KERBEROS", "CHECKED");
-+ else
- #endif /* HAVE_GSSAPI */
-+ cgiSetVariable("KERBEROS", "");
-
- cupsFreeOptions(num_settings, settings);
-
-Index: cgi-bin/help.c
-===================================================================
---- cgi-bin/help.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/help.c (.../branches/leopard/cups) (revision 1707)
-@@ -63,6 +63,7 @@
- */
-
- cgiSetVariable("SECTION", "help");
-+ cgiSetVariable("REFRESH_PAGE", "");
-
- /*
- * Load the help index...
-@@ -102,7 +103,7 @@
- */
-
- for (i = 0; i < argc; i ++)
-- fprintf(stderr, "argv[%d]=\"%s\"\n", i, argv[i]);
-+ fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]);
-
- if ((helpfile = getenv("PATH_INFO")) != NULL)
- {
-@@ -179,6 +180,12 @@
- topic = cgiGetVariable("TOPIC");
- si = helpSearchIndex(hi, query, topic, helpfile);
-
-+ cgiClearVariables();
-+ if (query)
-+ cgiSetVariable("QUERY", query);
-+ if (topic)
-+ cgiSetVariable("TOPIC", topic);
-+
- fprintf(stderr, "DEBUG: query=\"%s\", topic=\"%s\"\n",
- query ? query : "(null)", topic ? topic : "(null)");
-
-Index: cgi-bin/var.c
-===================================================================
---- cgi-bin/var.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/var.c (.../branches/leopard/cups) (revision 1707)
-@@ -15,6 +15,7 @@
- * Contents:
- *
- * cgiCheckVariables() - Check for the presence of "required" variables.
-+ * cgiClearVariables() - Clear all form variables.
- * cgiGetArray() - Get an element from a form array...
- * cgiGetFile() - Get the file (if any) that was submitted in the form.
- * cgiGetSize() - Get the size of a form array value.
-@@ -135,6 +136,31 @@
-
-
- /*
-+ * 'cgiClearVariables()' - Clear all form variables.
-+ */
-+
-+void
-+cgiClearVariables(void)
-+{
-+ int i, j; /* Looping vars */
-+ _cgi_var_t *v; /* Current variable */
-+
-+
-+ for (v = form_vars, i = form_count; i > 0; v ++, i --)
-+ {
-+ _cupsStrFree(v->name);
-+ for (j = 0; j < v->nvalues; j ++)
-+ if (v->values[j])
-+ _cupsStrFree(v->values[j]);
-+ }
-+
-+ form_count = 0;
-+
-+ cgi_unlink_file();
-+}
-+
-+
-+/*
- * 'cgiGetArray()' - Get an element from a form array...
- */
-
-@@ -154,7 +180,7 @@
- if (element < 0 || element >= var->nvalues)
- return (NULL);
-
-- return (var->values[element]);
-+ return (_cupsStrAlloc(var->values[element]));
- }
-
-
-@@ -209,7 +235,7 @@
- var->values[var->nvalues - 1]);
- #endif /* DEBUG */
-
-- return ((var == NULL) ? NULL : var->values[var->nvalues - 1]);
-+ return ((var == NULL) ? NULL : _cupsStrAlloc(var->values[var->nvalues - 1]));
- }
-
-
-@@ -341,9 +367,9 @@
- var->nvalues = element + 1;
- }
- else if (var->values[element])
-- free((char *)var->values[element]);
-+ _cupsStrFree((char *)var->values[element]);
-
-- var->values[element] = strdup(value);
-+ var->values[element] = _cupsStrAlloc(value);
- }
- }
-
-@@ -388,7 +414,7 @@
- {
- for (i = size; i < var->nvalues; i ++)
- if (var->values[i])
-- free((void *)(var->values[i]));
-+ _cupsStrFree((void *)(var->values[i]));
- }
-
- var->nvalues = size;
-@@ -421,9 +447,9 @@
- {
- for (i = 0; i < var->nvalues; i ++)
- if (var->values[i])
-- free((char *)var->values[i]);
-+ _cupsStrFree((char *)var->values[i]);
-
-- var->values[0] = strdup(value);
-+ var->values[0] = _cupsStrAlloc(value);
- var->nvalues = 1;
- }
- }
-@@ -470,10 +496,10 @@
- if ((var->values = calloc(element + 1, sizeof(char *))) == NULL)
- return;
-
-- var->name = strdup(name);
-+ var->name = _cupsStrAlloc(name);
- var->nvalues = element + 1;
- var->avalues = element + 1;
-- var->values[element] = strdup(value);
-+ var->values[element] = _cupsStrAlloc(value);
-
- form_count ++;
- }
-Index: cgi-bin/jobs.c
-===================================================================
---- cgi-bin/jobs.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/jobs.c (.../branches/leopard/cups) (revision 1707)
-@@ -57,6 +57,7 @@
- */
-
- cgiSetVariable("SECTION", "jobs");
-+ cgiSetVariable("REFRESH_PAGE", "");
-
- /*
- * Connect to the HTTP server...
-Index: cgi-bin/classes.c
-===================================================================
---- cgi-bin/classes.c (.../easysw/current-1.3.x) (revision 1707)
-+++ cgi-bin/classes.c (.../branches/leopard/cups) (revision 1707)
-@@ -69,6 +69,7 @@
- */
-
- cgiSetVariable("SECTION", "classes");
-+ cgiSetVariable("REFRESH_PAGE", "");
-
- /*
- * See if we are displaying a printer or all classes...
-
diff --git a/net-print/cups/files/cups-1.3.11-str3401-security-1.3v2-regression.patch b/net-print/cups/files/cups-1.3.11-str3401-security-1.3v2-regression.patch
deleted file mode 100644
index 5f57175d6691..000000000000
--- a/net-print/cups/files/cups-1.3.11-str3401-security-1.3v2-regression.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- cgi-bin/admin.c.ori 2009-10-30 14:07:13.000000000 -0400
-+++ cgi-bin/admin.c 2009-10-30 14:06:54.000000000 -0400
-@@ -536,6 +536,7 @@
- ipp_attribute_t *attr; /* member-uris attribute */
- char uri[HTTP_MAX_URI]; /* Device or printer URI */
- const char *name, /* Pointer to class name */
-+ *op, /* Operation name */
- *ptr; /* Pointer to CGI variable */
- const char *title; /* Title of page */
- static const char * const pattrs[] = /* Requested printer attributes */
-@@ -547,6 +548,7 @@
-
-
- title = cgiText(modify ? _("Modify Class") : _("Add Class"));
-+ op = cgiGetVariable("OP");
- name = cgiGetVariable("PRINTER_NAME");
-
- if (cgiGetVariable("PRINTER_LOCATION") == NULL)
-@@ -572,6 +574,8 @@
- */
-
- cgiClearVariables();
-+ if (op)
-+ cgiSetVariable("OP", op);
- if (name)
- cgiSetVariable("PRINTER_NAME", name);
-
diff --git a/net-print/cups/files/cups-1.3.7-backend-https.patch b/net-print/cups/files/cups-1.3.7-backend-https.patch
deleted file mode 100644
index 44706b3e4a24..000000000000
--- a/net-print/cups/files/cups-1.3.7-backend-https.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Naur cups-1.3.7/backend/Makefile cups-1.3.7.new/backend/Makefile
---- cups-1.3.7/backend/Makefile 2007-08-08 21:27:51.000000000 +0200
-+++ cups-1.3.7.new/backend/Makefile 2008-04-14 16:42:18.106785330 +0200
-@@ -62,6 +62,7 @@
- done
- $(RM) $(SERVERBIN)/backend/http
- $(LN) ipp $(SERVERBIN)/backend/http
-+ $(LN) ipp $(SERVERBIN)/backend/https
- if test "x$(SYMROOT)" != "x"; then \
- $(INSTALL_DIR) $(SYMROOT); \
- for file in $(TARGETS); do \
diff --git a/net-print/cups/files/cups-1.4.6-web-hang.patch b/net-print/cups/files/cups-1.4.6-web-hang.patch
deleted file mode 100644
index 6ccf05ab1718..000000000000
--- a/net-print/cups/files/cups-1.4.6-web-hang.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-Index: cgi-bin/html.c
-===================================================================
---- cgi-bin/html.c (revision 9428)
-+++ cgi-bin/html.c (working copy)
-@@ -1,9 +1,9 @@
- /*
- * "$Id: cups-1.4.6-web-hang.patch,v 1.1 2011/04/30 15:39:45 scarabeus Exp $"
- *
-- * HTML support functions for the Common UNIX Printing System (CUPS).
-+ * HTML support functions for CUPS.
- *
-- * Copyright 2007-2009 by Apple Inc.
-+ * Copyright 2007-2011 by Apple Inc.
- * Copyright 1997-2006 by Easy Software Products.
- *
- * These coded instructions, statements, and computer programs are the
-@@ -208,31 +208,13 @@
- int /* O - 1 if multi-part supported, 0 otherwise */
- cgiSupportsMultipart(void)
- {
-- const char *user_agent; /* User-Agent string */
-- static int supports_multipart = -1;/* Cached value */
-+ /*
-+ * Too many bug reports for browsers that don't support it, and too much pain
-+ * to whitelist known-good browsers, so for now we just punt on multi-part
-+ * support... :(
-+ */
-
--
-- if (supports_multipart < 0)
-- {
-- /*
-- * CUPS STR #3049: Apparently some browsers don't support multi-part
-- * documents, which makes them useless for many web sites. Rather than
-- * abandoning those users, we'll offer a degraded single-part mode...
-- *
-- * Currently we know that anything based on Gecko, MSIE, and Safari all
-- * work. We'll add more as they are reported/tested.
-- */
--
-- if ((user_agent = getenv("HTTP_USER_AGENT")) != NULL &&
-- (strstr(user_agent, " Gecko/") != NULL ||
-- strstr(user_agent, " MSIE ") != NULL ||
-- strstr(user_agent, " Safari/") != NULL))
-- supports_multipart = 1;
-- else
-- supports_multipart = 0;
-- }
--
-- return (supports_multipart);
-+ return (0);
- }
-
-