From 95ab4b7ebb0d156213d2fc88704c1608b0c634ed Mon Sep 17 00:00:00 2001 From: Stefan Schweizer Date: Fri, 17 Nov 2006 17:31:31 +0000 Subject: [PATCH] version bump Package-Manager: portage-2.1.2_rc1-r7 --- net-print/cups/ChangeLog | 7 +- net-print/cups/Manifest | 16 +- net-print/cups/cups-1.2.7.ebuild | 198 +++++++++++++++++++++++++ net-print/cups/files/digest-cups-1.2.7 | 3 + 4 files changed, 219 insertions(+), 5 deletions(-) create mode 100644 net-print/cups/cups-1.2.7.ebuild create mode 100644 net-print/cups/files/digest-cups-1.2.7 diff --git a/net-print/cups/ChangeLog b/net-print/cups/ChangeLog index 858fd08bdd14..42b2a80cb159 100644 --- a/net-print/cups/ChangeLog +++ b/net-print/cups/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-print/cups # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.214 2006/11/08 07:31:41 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.215 2006/11/17 17:31:31 genstef Exp $ + +*cups-1.2.7 (17 Nov 2006) + + 17 Nov 2006; Stefan Schweizer +cups-1.2.7.ebuild: + version bump 08 Nov 2006; Stefan Schweizer -cups-1.2.5.ebuild: fix digest diff --git a/net-print/cups/Manifest b/net-print/cups/Manifest index e7ac02b8f609..be0dd219cc60 100644 --- a/net-print/cups/Manifest +++ b/net-print/cups/Manifest @@ -52,6 +52,7 @@ RMD160 17b481f70cb47acff4272ec143261e920459d0bd files/pdftops.pl 5624 SHA256 60fc863f11c5b114b5bfd8bbba905abca5526c92581f7a5b5570e8723a4aeebc files/pdftops.pl 5624 DIST cups-1.1.23-source.tar.bz2 8705521 RMD160 255ec4c22422b14f2367d69f3ec7e590dc46bea5 SHA1 32d5bfb44c4edc1b54ccb014b5a44499295c6c5c SHA256 87da0f7b1e03236e183045f1e787957132658ead56c4b0f80ac7f86c1574a85e DIST cups-1.2.6-source.tar.bz2 3566806 RMD160 a239738f711168cb82c11ee20a7aa92b070e5811 SHA1 1e12d2db23c6a46ae8960b9b765be0f1b829bbac SHA256 cdad0e2e461121257e740b8cb1111c7266cea434dd532a8bcc69c69adffe8aa8 +DIST cups-1.2.7-source.tar.bz2 3585758 RMD160 323bad80f9af3c53eec20a89c44afe26675424fa SHA1 1024f1d4995d8f765dc79ce507eac2be8e0ccd45 SHA256 e7485d6b3dcbd338a2361aff66c516f8dfafc1c81ea5b01396f6ee5f365c4eb3 EBUILD cups-1.1.23-r8.ebuild 5010 RMD160 dcfafdd38cb6d6ae4457a3d01e320e2ab14c05fd SHA1 db0d26316516da0a744f242e4ca53adaa6160efd SHA256 7affefc610bbef90b5024664f692ecec599eba5c3fa7b76266b51f5f972b5a04 MD5 2443fd46170a523bf9722e0684ddb257 cups-1.1.23-r8.ebuild 5010 RMD160 dcfafdd38cb6d6ae4457a3d01e320e2ab14c05fd cups-1.1.23-r8.ebuild 5010 @@ -60,10 +61,14 @@ EBUILD cups-1.2.6.ebuild 5782 RMD160 9446529319af3c526d2057110bc92cbbcdc6cd1f SH MD5 5e48095635363bea6bceb42e21a71f33 cups-1.2.6.ebuild 5782 RMD160 9446529319af3c526d2057110bc92cbbcdc6cd1f cups-1.2.6.ebuild 5782 SHA256 1a8bd92800a44808134547471406d0b32f22722c15fdc1d0f152191a969782f5 cups-1.2.6.ebuild 5782 -MISC ChangeLog 30538 RMD160 ef8475a7267025fdfcd942ecbba5876b360bc640 SHA1 2327373d84d9a60972fd9f0ca7f92e3417f2e102 SHA256 f9b2c671e625f9cfb6c5fc87f282ed099b7c325a581ec0ba57e2552c71de7d96 -MD5 233a72e6e112137156c1387a2764564f ChangeLog 30538 -RMD160 ef8475a7267025fdfcd942ecbba5876b360bc640 ChangeLog 30538 -SHA256 f9b2c671e625f9cfb6c5fc87f282ed099b7c325a581ec0ba57e2552c71de7d96 ChangeLog 30538 +EBUILD cups-1.2.7.ebuild 5804 RMD160 62bd8a9956c9ef7bbd733936e2cf715eecbe49aa SHA1 135b032e96d94026a676aefcf5ffc1fc889957e4 SHA256 4f43cbcdd75ef3853d4a63b0eec23c90515d1d91233d2525e485b127bc29c818 +MD5 b1cd15b9d23cba69c9e48ec9076f00b3 cups-1.2.7.ebuild 5804 +RMD160 62bd8a9956c9ef7bbd733936e2cf715eecbe49aa cups-1.2.7.ebuild 5804 +SHA256 4f43cbcdd75ef3853d4a63b0eec23c90515d1d91233d2525e485b127bc29c818 cups-1.2.7.ebuild 5804 +MISC ChangeLog 30654 RMD160 7a2ae1b352da04e47cd57a89f223dd48741f006a SHA1 6a246936bb5faedd82ed66a76fbb60dadeedd8c1 SHA256 0c32e7c7bd6ebfad29998a7efda1187970277ce84b7f7c2b2462a30b5d5762d0 +MD5 83cb19ff5aa505048c4d3f7c428752fe ChangeLog 30654 +RMD160 7a2ae1b352da04e47cd57a89f223dd48741f006a ChangeLog 30654 +SHA256 0c32e7c7bd6ebfad29998a7efda1187970277ce84b7f7c2b2462a30b5d5762d0 ChangeLog 30654 MISC metadata.xml 161 RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 SHA1 209c6a46e4cdd891980115e42ba419e3799f8088 SHA256 7c85e6739a71f5bb23e8de36c88677d772946e61f7285892f7554e37bd2bca76 MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161 RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 metadata.xml 161 @@ -74,3 +79,6 @@ SHA256 ac20d82dc48e47fa2124e971108c121a1e0600ae2215e4be38c138332b4c3415 files/di MD5 5b3f9aec328891f1e9bded2d2577bd98 files/digest-cups-1.2.6 259 RMD160 d5f75c2671a926c71c6698fc3100d9acb106fedd files/digest-cups-1.2.6 259 SHA256 3f7f97c3ff4a6096c1b2209892b447540a6dca6b1e53d03232340d5e74cdc60a files/digest-cups-1.2.6 259 +MD5 c1386f5c1290c35314c41cf8600fbae1 files/digest-cups-1.2.7 259 +RMD160 7edcb0f5504aa572d0493a43e31aa696a1d95470 files/digest-cups-1.2.7 259 +SHA256 64b0ad8d15b34845d9191c0b960a2fd6f9f1a96ba62f67634bc53e17d9214e94 files/digest-cups-1.2.7 259 diff --git a/net-print/cups/cups-1.2.7.ebuild b/net-print/cups/cups-1.2.7.ebuild new file mode 100644 index 000000000000..c46c53571e37 --- /dev/null +++ b/net-print/cups/cups-1.2.7.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.2.7.ebuild,v 1.1 2006/11/17 17:31:31 genstef 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="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/${PV}/${MY_P}-source.tar.bz2" +#ESVN_REPO_URI="http://svn.easysw.com/public/cups/trunk" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="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 ) + 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} + 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() { + 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 + + # 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) \ + --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 + + keepdir /usr/share/cups/profiles /usr/libexec/cups/driver /var/log/cups \ + /var/run/cups/certs /var/cache/cups /var/spool/cups/tmp + + # .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 +} + +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/files/digest-cups-1.2.7 b/net-print/cups/files/digest-cups-1.2.7 new file mode 100644 index 000000000000..dcca11469a01 --- /dev/null +++ b/net-print/cups/files/digest-cups-1.2.7 @@ -0,0 +1,3 @@ +MD5 bf44783d9b46130bee9f2995e6055470 cups-1.2.7-source.tar.bz2 3585758 +RMD160 323bad80f9af3c53eec20a89c44afe26675424fa cups-1.2.7-source.tar.bz2 3585758 +SHA256 e7485d6b3dcbd338a2361aff66c516f8dfafc1c81ea5b01396f6ee5f365c4eb3 cups-1.2.7-source.tar.bz2 3585758 -- 2.26.2