diff options
author | Daniel Solano Gómez <gentoo@sattvik.com> | 2012-01-28 07:32:42 -0600 |
---|---|---|
committer | Daniel Solano Gómez <gentoo@sattvik.com> | 2012-01-28 07:32:42 -0600 |
commit | 55402f49ef9649d16b7cea4b1cae0604a2c69beb (patch) | |
tree | 958623cc2f999c31740fb8143785b750eb1c79a5 /net-print | |
parent | Version bump (diff) | |
download | sattvik-55402f49ef9649d16b7cea4b1cae0604a2c69beb.tar.gz sattvik-55402f49ef9649d16b7cea4b1cae0604a2c69beb.tar.bz2 sattvik-55402f49ef9649d16b7cea4b1cae0604a2c69beb.zip |
Sync up with portage
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/cups/ChangeLog | 5 | ||||
-rw-r--r-- | net-print/cups/Manifest | 10 | ||||
-rw-r--r-- | net-print/cups/cups-1.4.8-r1.ebuild | 6 | ||||
-rw-r--r-- | net-print/cups/cups-1.4.8-r22.ebuild | 299 | ||||
-rw-r--r-- | net-print/cups/cups-1.4.8-r23.ebuild | 6 | ||||
-rw-r--r-- | net-print/cups/cups-1.5.0-r2.ebuild | 256 | ||||
-rw-r--r-- | net-print/cups/cups-1.5.0-r3.ebuild | 78 |
7 files changed, 65 insertions, 595 deletions
diff --git a/net-print/cups/ChangeLog b/net-print/cups/ChangeLog index cd355ea..395fc1c 100644 --- a/net-print/cups/ChangeLog +++ b/net-print/cups/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 28 Jan 2012; Daniel Solano Gómez <gentoo@sattvik.com> cups-1.4.8-r1.ebuild, + -cups-1.4.8-r22.ebuild, cups-1.4.8-r23.ebuild, -cups-1.5.0-r2.ebuild, + cups-1.5.0-r3.ebuild: + Sync up with portage. + *cups-1.5.0-r3 (19 Jan 2012) *cups-1.4.8-r23 (19 Jan 2012) diff --git a/net-print/cups/Manifest b/net-print/cups/Manifest index 1a4307a..dd9bb0c 100644 --- a/net-print/cups/Manifest +++ b/net-print/cups/Manifest @@ -15,10 +15,8 @@ AUX cupsd.init.d 402 RMD160 1b132354d01ad2ecebbe5238b09dfa3cb9391d43 SHA1 ea4817 AUX pdftops-1.20.gentoo 10412 RMD160 16e229662c47e03af1d1f4cb5764a76d17a66642 SHA1 6afb8a655b6ff013a2c8c8cbfb615ba1e561503b SHA256 ac5fa01ca776d75bd7cef62eef9f6b0c3945ee87e8950b40ca9f9f3ff46a16c1 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.4.8-r1.ebuild 7317 RMD160 4613c88f64852a61f09c2f0b20736f96b61fdf46 SHA1 69884c35777d63ad57a936d646d898ee94572223 SHA256 39f0c51249722595ad9a0340eb93fd80148f3ff55c46089140cdb033282d1bb0 -EBUILD cups-1.4.8-r22.ebuild 8563 RMD160 99098b75481312bee9e82ca0d5d523bdf86beb71 SHA1 b87099033aaf8b12ab91398ef95bdd21293785c1 SHA256 815539bcbabf560a9b481dffd49beeed8d06d27f2ec4bf985eb22ad7b8278140 -EBUILD cups-1.4.8-r23.ebuild 8928 RMD160 199666537496cf60b59a3701edfcb31e3b8811aa SHA1 79866423ff990a88bb07d21baf8637bea3b75f00 SHA256 7dd60a0320774ecb021b132ce2448f619b7f703699ac52cc759c249637a00c78 -EBUILD cups-1.5.0-r2.ebuild 6571 RMD160 ba38b72c4741bcb9d14684079a5e0aa3b502a5eb SHA1 3abd07514902c4f562fc798fe87bb388c7a4292b SHA256 6ff49fd5b257aa48970541a78033d167a8d2bb5d0150d04600947cc322f5783b -EBUILD cups-1.5.0-r3.ebuild 6936 RMD160 81ffebb0bd7f0dd39b6af36eee950eaf20a3a396 SHA1 5e13d8a34fd6e6e2535e7a4a4da47de71ce325d7 SHA256 ab7ceb93c83b7de87015affa3cfdee33a9575186d28e920eaebf01fbcb303df1 -MISC ChangeLog 4282 RMD160 28ae248a8289aa6694698fed568936cf128d1173 SHA1 ec31f151fc3df0d61e2ecf24752517f7b38d1a3b SHA256 1cadf6213c609d6804104d77f85a3d6c268a6a66c14ee27d088734f2010647d2 +EBUILD cups-1.4.8-r1.ebuild 7312 RMD160 c05be205bbc05df5034bf57880adfaa8c58be907 SHA1 ce80b4276953ed364583762b659b2e52c29645ee SHA256 d9ad745fe8312f307b5b13979a6ae000ac6e10216d8779466af99b14a60a30a9 +EBUILD cups-1.4.8-r23.ebuild 8922 RMD160 1ef9e2c1f6f52a7adb8b30b2d4c43b74e74fcf59 SHA1 a24491edffbc09ab0a2e010593677d22dcc138b7 SHA256 d7c2bdd62e77815a7bfe2aef62107fc03d3bae7fa81cbf6bd1b89268c4db0300 +EBUILD cups-1.5.0-r3.ebuild 7763 RMD160 5170da0d135cc3d64772516bacfc21bf19760e05 SHA1 99033f759654789f0eb9adbd1f7976ca163c6a06 SHA256 54f42b20ed56ab2db8e5d83a7d314d010eec85d18a873d9d5bfd60b6ee472ccd +MISC ChangeLog 4482 RMD160 1a94ea1e86f47db8a2e7baa7e759e25af0729d73 SHA1 03bd3f32989450e73b082eae40af1837d88b2cf8 SHA256 5eeedf94306cb365fe464036763c4c79bc2ebc051a231ebdbfe23d971116dc3a MISC metadata.xml 691 RMD160 2a77a55b3ba142202c16f7c9e5710107cdd7565f SHA1 0fedf6ebd837708cd218a4a03741a20091714950 SHA256 3d89754273130856a7433fb325a132b07b86f7c0391284ab2c7dc8a2fa46fec7 diff --git a/net-print/cups/cups-1.4.8-r1.ebuild b/net-print/cups/cups-1.4.8-r1.ebuild index cb87a51..161e050 100644 --- a/net-print/cups/cups-1.4.8-r1.ebuild +++ b/net-print/cups/cups-1.4.8-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 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-r1.ebuild,v 1.9 2012/01/15 22:41:37 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.4.8-r1.ebuild,v 1.11 2012/01/27 21:30:49 dilfridge Exp $ EAPI=3 @@ -17,7 +17,7 @@ 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 +filters gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static-libs +threads +tiff X xinetd" +IUSE="acl dbus debug +filters gnutls java +jpeg kerberos ldap pam perl php +png python 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 @@ -33,7 +33,6 @@ RDEPEND=" ) ) dbus? ( sys-apps/dbus ) - filters? ( net-print/foomatic-filters ) java? ( >=virtual/jre-1.6 ) jpeg? ( virtual/jpeg:0 ) kerberos? ( virtual/krb5 ) @@ -63,6 +62,7 @@ DEPEND="${RDEPEND} PDEPEND=" app-text/ghostscript-gpl[cups] >=app-text/poppler-0.12.3-r3[utils] + filters? ( net-print/foomatic-filters ) " # upstream includes an interactive test which is a nono for gentoo. diff --git a/net-print/cups/cups-1.4.8-r22.ebuild b/net-print/cups/cups-1.4.8-r22.ebuild deleted file mode 100644 index 73a8e03..0000000 --- a/net-print/cups/cups-1.4.8-r22.ebuild +++ /dev/null @@ -1,299 +0,0 @@ -# Copyright 1999-2012 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-r22.ebuild,v 1.2 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" - epatch "${FILESDIR}/${PN}-1.4.8-largeimage.patch" - # security fixes - epatch "${FILESDIR}/${PN}-1.4.8-CVE-2011-3170.patch" - - # Dan's group fix - epatch "${FILESDIR}/${PN}-1.4.1-group_fix.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.4.8-r23.ebuild b/net-print/cups/cups-1.4.8-r23.ebuild index 96048fc..6998dd8 100644 --- a/net-print/cups/cups-1.4.8-r23.ebuild +++ b/net-print/cups/cups-1.4.8-r23.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 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-r23.ebuild,v 1.3 2012/01/15 22:41:37 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.4.8-r23.ebuild,v 1.5 2012/01/27 21:30:49 dilfridge Exp $ EAPI=3 @@ -17,7 +17,7 @@ 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 +filters gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static-libs +threads +tiff usb X xinetd" +IUSE="acl dbus debug +filters gnutls java +jpeg kerberos ldap pam perl php +png python 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 @@ -33,7 +33,6 @@ RDEPEND=" ) ) dbus? ( sys-apps/dbus ) - filters? ( net-print/foomatic-filters ) java? ( >=virtual/jre-1.6 ) jpeg? ( virtual/jpeg:0 ) kerberos? ( virtual/krb5 ) @@ -64,6 +63,7 @@ DEPEND="${RDEPEND} PDEPEND=" app-text/ghostscript-gpl[cups] >=app-text/poppler-0.12.3-r3[utils] + filters? ( net-print/foomatic-filters ) " # upstream includes an interactive test which is a nono for gentoo. diff --git a/net-print/cups/cups-1.5.0-r2.ebuild b/net-print/cups/cups-1.5.0-r2.ebuild deleted file mode 100644 index bcd4b99..0000000 --- a/net-print/cups/cups-1.5.0-r2.ebuild +++ /dev/null @@ -1,256 +0,0 @@ -# Copyright 1999-2012 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-r2.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 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 -} - -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" - epatch "${FILESDIR}/${PN}-1.4.8-largeimage.patch" - # security fixes - epatch "${FILESDIR}/${PN}-1.4.8-CVE-2011-3170.patch" - - # Dan's group fix - epatch "${FILESDIR}/${PN}-1.5.0-group_fix.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-r3.ebuild b/net-print/cups/cups-1.5.0-r3.ebuild index 64cdf62..e8f2155 100644 --- a/net-print/cups/cups-1.5.0-r3.ebuild +++ b/net-print/cups/cups-1.5.0-r3.ebuild @@ -1,17 +1,12 @@ # Copyright 1999-2012 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-r3.ebuild,v 1.3 2012/01/15 22:41:37 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.5.0-r3.ebuild,v 1.8 2012/01/27 22:18:20 dilfridge 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 +EAPI=4 PYTHON_DEPEND="python? 2:2.5" -inherit autotools eutils fdo-mime gnome2-utils flag-o-matic multilib pam perl-module python versionator java-pkg-opt-2 +inherit autotools eutils fdo-mime gnome2-utils flag-o-matic linux-info multilib pam perl-module python versionator java-pkg-opt-2 MY_P=${P/_} MY_PV=${PV/_} @@ -23,7 +18,7 @@ SRC_URI="mirror://easysw/${PN}/${MY_PV}/${MY_P}-source.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="acl dbus debug +filters gnutls java +jpeg kerberos ldap pam perl php +png python samba slp +ssl static-libs +threads +tiff usb X xinetd" +IUSE="acl dbus debug +filters gnutls java +jpeg kerberos ldap pam perl php +png python 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 @@ -39,7 +34,6 @@ RDEPEND=" ) ) dbus? ( sys-apps/dbus ) - filters? ( net-print/foomatic-filters ) java? ( >=virtual/jre-1.6 ) jpeg? ( virtual/jpeg:0 ) kerberos? ( virtual/krb5 ) @@ -52,7 +46,7 @@ RDEPEND=" ssl? ( gnutls? ( dev-libs/libgcrypt - >=net-libs/gnutls-2.11 + net-libs/gnutls ) !gnutls? ( >=dev-libs/openssl-0.9.8g ) ) @@ -60,7 +54,6 @@ RDEPEND=" usb? ( virtual/libusb:0 ) X? ( x11-misc/xdg-utils ) xinetd? ( sys-apps/xinetd ) - !net-print/cupsddk " DEPEND="${RDEPEND} @@ -70,9 +63,10 @@ DEPEND="${RDEPEND} PDEPEND=" app-text/ghostscript-gpl[cups] >=app-text/poppler-0.12.3-r3[utils] + filters? ( net-print/foomatic-filters ) " -# upstream includes an interactive test which is a nono for gentoo. +# upstream includes an interactive test which is a nono for gentoo RESTRICT="test" S="${WORKDIR}/${MY_P}" @@ -87,6 +81,42 @@ pkg_setup() { python_set_active_version 2 python_pkg_setup fi + + if use kernel_linux; then + 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. In this case, " + 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 libusb code." + fi + fi + fi + fi } src_prepare() { @@ -97,6 +127,7 @@ src_prepare() { epatch "${FILESDIR}/${PN}-1.4.4-php-destdir.patch" epatch "${FILESDIR}/${PN}-1.4.4-perl-includes.patch" epatch "${FILESDIR}/${PN}-1.4.8-largeimage.patch" + # security fixes epatch "${FILESDIR}/${PN}-1.4.8-CVE-2011-3170.patch" @@ -129,16 +160,6 @@ src_configure() { " 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 \ @@ -159,6 +180,7 @@ src_configure() { $(use_enable png) \ $(use_enable slp) \ $(use_enable static-libs static) \ + $(use_enable threads) \ $(use_enable tiff) \ $(use_enable usb libusb) \ $(use_with java) \ @@ -178,7 +200,7 @@ src_configure() { } src_compile() { - emake || die "emake failed" + emake if use perl ; then cd "${S}"/scripting/perl @@ -188,13 +210,13 @@ src_compile() { if use php ; then cd "${S}"/scripting/php - emake || die "emake php failed" + emake fi } src_install() { - emake BUILDROOT="${D}" install || die "emake install failed" - dodoc {CHANGES,CREDITS,README}.txt || die "dodoc install failed" + emake BUILDROOT="${D}" install + dodoc {CHANGES,CREDITS,README}.txt if use perl ; then cd "${S}"/scripting/perl @@ -218,7 +240,7 @@ src_install() { sed -i \ -e "s/@neededservices@/$neededservices/" \ "${T}"/cupsd || die - doinitd "${T}"/cupsd || die "doinitd failed" + doinitd "${T}"/cupsd # install our pam script pamd_mimic_system cups auth account |