# 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.182 2006/06/20 17:17:02 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.183 2006/06/22 07:04:36 genstef Exp $
+
+ 22 Jun 2006; Stefan Schweizer <genstef@gentoo.org>
+ +files/cups-1.2.1-ssldir.patch, +files/cupsd.init, -files/cupsd.rc6,
+ cups-1.1.23-r1.ebuild, cups-1.1.23-r7.ebuild, cups-1.2.1-r1.ebuild:
+ Add /etc/cups/ssl, thanks to Philipp Rosenberger <philipp@iluminat23.org>
+ and Joe Kappus <joecool1029@gmail.com> in bug 137444, ebuild cleanups
20 Jun 2006; Markus Rothe <corsair@gentoo.org> cups-1.2.1-r1.ebuild:
Added ~ppc64; bug #136902
# 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.1.23-r1.ebuild,v 1.12 2006/06/15 00:07:10 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r1.ebuild,v 1.13 2006/06/22 07:04:36 genstef Exp $
inherit eutils flag-o-matic
insinto /etc/pam.d ; newins ${FILESDIR}/cups.pam cups
fi
- exeinto /etc/init.d ; newexe ${FILESDIR}/cupsd.rc6 cupsd
+ exeinto /etc/init.d ; newexe ${FILESDIR}/cupsd.init cupsd
insinto /etc/xinetd.d ; newins ${FILESDIR}/cups.xinetd cups-lpd
# allow raw printing
# 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.1.23-r7.ebuild,v 1.17 2006/06/15 00:07:10 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r7.ebuild,v 1.18 2006/06/22 07:04:36 genstef Exp $
inherit eutils flag-o-matic pam autotools
pamd_mimic_system cups auth account
- newinitd ${FILESDIR}/cupsd.rc6 cupsd
+ newinitd ${FILESDIR}/cupsd.init cupsd
insinto /etc/xinetd.d ; newins ${FILESDIR}/cups.xinetd cups-lpd
# allow raw printing
# 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.1-r1.ebuild,v 1.10 2006/06/20 17:17:02 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.2.1-r1.ebuild,v 1.11 2006/06/22 07:04:36 genstef Exp $
-inherit eutils pam flag-o-matic multilib autotools
+inherit eutils flag-o-matic multilib autotools
MY_P=${P/_/}
unpack ${A}
cd ${S}
epatch ${FILESDIR}/cups-1.2.0-bindnow.patch
+ epatch ${FILESDIR}/cups-1.2.1-ssldir.patch
# upstream has refused to fix this for me
sed -i -e "s:#if defined(__linux) && defined(LP_POUTPA):#if 0:" backend/usb-unix.c
}
src_install() {
- make BUILDROOT=${D} install || die "make install failed"
+ emake BUILDROOT=${D} install || die "emake install failed"
+ dodoc {CHANGES{,-1.{0,1}},CREDITS,LICENSE,README}.txt
- # cleanups
- rm -rf ${D}/etc/init.d ${D}/etc/pam.d ${D}/etc/rc* ${D}/usr/share/man/cat*
-
- dodoc {CHANGES,CREDITS,LICENSE,README}.txt
-
- pamd_mimic_system cups auth account
- newinitd ${FILESDIR}/cupsd.rc6 cupsd
+ # clean out cups init scripts
+ rm -rf ${D}/etc/init.d/cups ${D}/etc/rc*
+ # install our init scripts
+ newinitd ${FILESDIR}/cupsd.init cupsd
+ # 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
exeinto /usr/libexec/cups/filter/
newexe ${FILESDIR}/pdftops.pl pdftops
- fowners lp:lp /var/log/cups /var/run/cups/certs /var/cache/cups \
- /var/spool/cups/tmp /var/spool/cups /etc/cups/{,interfaces,ppd}
- keepdir /var/log/cups /var/run/cups/certs /var/cache/cups /var/spool/cups/tmp
+ keepdir /usr/share/cups/profiles /usr/libexec/cups/driver /var/log/cups \
+ /var/run/cups/certs /var/cache/cups /var/spool/cups/tmp
}
pkg_preinst() {
--- /dev/null
+--- cups-1.2.1/scheduler/Makefile.orig 2006-06-22 08:11:44.000000000 +0200
++++ cups-1.2.1/scheduler/Makefile 2006-06-22 08:13:21.000000000 +0200
+@@ -127,6 +127,9 @@
+ echo Creating $(SERVERROOT)/ppd...
+ $(INSTALL_DIR) -m 755 $(SERVERROOT)/ppd
+ -chgrp $(CUPS_GROUP) $(SERVERROOT)/ppd
++ echo Creating $(SERVERROOT)/ssl...
++ $(INSTALL_DIR) -m 755 $(SERVERROOT)/ssl
++ -chgrp $(CUPS_GROUP) $(SERVERROOT)/ssl
+ echo Creating $(STATEDIR)...
+ $(INSTALL_DIR) -m 755 $(STATEDIR)
+ echo Creating $(STATEDIR)/certs...
--- /dev/null
+#!/sbin/runscript
+
+depend() {
+ use net
+ after logger
+ before nfs
+ use hotplug
+ after vmware
+}
+
+start() {
+ ebegin "Starting cupsd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/cupsd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cupsd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd
+ eend $?
+}