diff options
author | Donny Davies <woodchip@gentoo.org> | 2002-02-17 01:39:07 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2002-02-17 01:39:07 +0000 |
commit | d0c265c3869ffe3ef401f1a6a5873906bdbd94f6 (patch) | |
tree | 43f633379baad3ac788cf62aaccf235fc62d8e1e /net-print/cups | |
parent | updated for cups to start *after* samba (diff) | |
download | gentoo-2-d0c265c3869ffe3ef401f1a6a5873906bdbd94f6.tar.gz gentoo-2-d0c265c3869ffe3ef401f1a6a5873906bdbd94f6.tar.bz2 gentoo-2-d0c265c3869ffe3ef401f1a6a5873906bdbd94f6.zip |
update to latest release, which includes security fixes. small
cosmetic fixies.
Diffstat (limited to 'net-print/cups')
-rw-r--r-- | net-print/cups/ChangeLog | 8 | ||||
-rw-r--r-- | net-print/cups/cups-1.1.14.ebuild | 106 | ||||
-rw-r--r-- | net-print/cups/files/digest-cups-1.1.14 | 1 |
3 files changed, 114 insertions, 1 deletions
diff --git a/net-print/cups/ChangeLog b/net-print/cups/ChangeLog index bdc167babf3b..13a4b79921ea 100644 --- a/net-print/cups/ChangeLog +++ b/net-print/cups/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-print/cups # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.5 2002/02/17 01:24:45 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.6 2002/02/17 01:39:07 woodchip Exp $ + +*cups-1.1.14 (16 Feb 2002) + + 16 Feb 2002; Donny Davies <woodchip@gentoo.org>: Update to latest release. + See http://www.cups.org/news.php?V66 for the changes. Security fixes in + this one, upgrade reccomended. 17 Feb 2002; Martin Schlemmer <azarah@gentoo.org>: added samba to the 'use' dependancy type of cups. Modified files/cupsd.rc6 diff --git a/net-print/cups/cups-1.1.14.ebuild b/net-print/cups/cups-1.1.14.ebuild new file mode 100644 index 000000000000..4b92b220426d --- /dev/null +++ b/net-print/cups/cups-1.1.14.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author: Donny Davies <woodchip@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.14.ebuild,v 1.1 2002/02/17 01:39:07 woodchip Exp $ + +DESCRIPTION="The Common Unix Printing System" +HOMEPAGE="http://www.cups.org" + +S=${WORKDIR}/${P} +SRC_URI="ftp://ftp.easysw.com/pub/cups/${PV}/${P}-source.tar.bz2" +PROVIDE="virtual/lpr" + +DEPEND="virtual/glibc + pam? ( >=sys-libs/pam-0.75 ) + ssl? ( >=dev-libs/openssl-0.9.6b ) + slp? ( >=net-libs/openslp-1.0.4 ) + >=media-libs/libpng-1.0.12 + >=media-libs/tiff-3.5.5 + >=media-libs/jpeg-6b" +RDEPEND="${DEPEND} !virtual/lpr" + +src_unpack() { + unpack ${A} ; cd ${S} + # make sure libcupsimage gets linked with libjpeg + patch -p0 < ${FILESDIR}/configure-jpeg-buildfix.diff || die +} + +src_compile() { + local myconf + use pam || myconf="${myconf} --disable-pam" + use ssl || myconf="${myconf} --disable-ssl" + use slp || myconf="${myconf} --disable-slp" + + ./configure \ + --with-cups-user=lp \ + --with-cups-group=lp \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + make || die "compile problem" +} + +src_install() { + # set these up now or make install will.. and that aint pretty! + diropts -m 755 ; dodir /var/spool + diropts -m 755 ; dodir /var/log/cups + diropts -m 755 ; dodir /etc/cups + + make \ + LOCALEDIR=${D}/usr/share/locale \ + DOCDIR=${D}/usr/share/cups/docs \ + REQUESTS=${D}/var/spool/cups \ + SERVERBIN=${D}/usr/lib/cups \ + DATADIR=${D}/usr/share/cups \ + INCLUDEDIR=${D}/usr/include \ + AMANDIR=${D}/usr/share/man \ + PMANDIR=${D}/usr/share/man \ + MANDIR=${D}/usr/share/man \ + SERVERROOT=${D}/etc/cups \ + LOGDIR=${D}/var/log/cups \ + SBINDIR=${D}/usr/sbin \ + PAMDIR=${D}/etc/pam.d \ + EXEC_PREFIX=${D}/usr \ + LIBDIR=${D}/usr/lib \ + BINDIR=${D}/usr/bin \ + bindir=${D}/usr/bin \ + INITDIR=${D}/etc \ + PREFIX=${D} \ + install || die "install problem" + + dodoc {CHANGES,CREDITS,ENCRYPTION,LICENSE,README}.txt LICENSE.html + + # cleanups and fixups + rm -rf ${D}/etc/init.d + rm -rf ${D}/etc/pam.d + rm -rf ${D}/etc/rc* + rm -rf ${D}/usr/share/man/cat* + dosed "s:#DocumentRoot /usr/share/doc/cups:DocumentRoot /usr/share/cups/docs:" /etc/cups/cupsd.conf + dosed "s:#SystemGroup sys:SystemGroup lp:" /etc/cups/cupsd.conf + dosed "s:#User lp:User lp:" /etc/cups/cupsd.conf + dosed "s:#Group sys:Group lp:" /etc/cups/cupsd.conf + + # sanity checks + chown lp.root ${D}/usr/bin/lppasswd ; chmod 4755 ${D}/usr/bin/lppasswd + chown lp.root ${D}/etc/cups/certs ; chmod 711 ${D}/etc/cups/certs + chown lp.root ${D}/var/spool/cups ; chmod 0700 ${D}/var/spool/cups + chown lp.root ${D}/var/spool/cups/tmp ; chmod 01700 ${D}/var/spool/cups/tmp + + # gentoo config stuff + insinto /etc/pam.d ; newins ${FILESDIR}/cups.pam cups + exeinto /etc/init.d ; newexe ${FILESDIR}/cupsd.rc6 cupsd + insinto /etc/xinetd.d ; newins ${FILESDIR}/cups.xinetd cups-lpd + + # we need to recreate these dirs outside in pkg_postinst() since they're + # empty and will get zapped on upgrade otherwise. + rm -rf ${D}/etc/cups/{certs,interfaces,ppd} + rm -rf ${D}/var +} + +pkg_postinst() { + install -d ${ROOT}/var/log/cups + install -d ${ROOT}/var/spool + install -m0700 -o lp -d ${ROOT}/var/spool/cups + install -m1700 -o lp -d ${ROOT}/var/spool/cups/tmp + install -m0711 -o lp -d ${ROOT}/etc/cups/certs + install -d -m0755 ${ROOT}/etc/cups/{interfaces,ppd} +} diff --git a/net-print/cups/files/digest-cups-1.1.14 b/net-print/cups/files/digest-cups-1.1.14 new file mode 100644 index 000000000000..b2cf7e05bf18 --- /dev/null +++ b/net-print/cups/files/digest-cups-1.1.14 @@ -0,0 +1 @@ +MD5 7cc9725d94568b24f5ade78fb7e26480 cups-1.1.14-source.tar.bz2 5408714 |