Add /etc/cups/ssl, thanks to Philipp Rosenberger <philipp@iluminat23.org> and Joe...
authorStefan Schweizer <genstef@gentoo.org>
Thu, 22 Jun 2006 07:04:36 +0000 (07:04 +0000)
committerStefan Schweizer <genstef@gentoo.org>
Thu, 22 Jun 2006 07:04:36 +0000 (07:04 +0000)
Package-Manager: portage-2.1.1_pre1-r1

net-print/cups/ChangeLog
net-print/cups/cups-1.1.23-r1.ebuild
net-print/cups/cups-1.1.23-r7.ebuild
net-print/cups/cups-1.2.1-r1.ebuild
net-print/cups/files/cups-1.2.1-ssldir.patch [new file with mode: 0644]
net-print/cups/files/cupsd.init [new file with mode: 0644]

index e2a5973fa89657703613111dd4e330a9fd5424fa..2184d602ea461c5e699d743dfc5d296575979dde 100644 (file)
@@ -1,6 +1,12 @@
 # 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
index 1fe98d10e772e975e479a6e712a6646d402333c8..8040bc59ad089136eb9c8dc893be6659412698b5 100644 (file)
@@ -1,6 +1,6 @@
 # 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
 
@@ -114,7 +114,7 @@ src_install() {
                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
index 19e57eb1fbeafeb785df277cb5f22a33075b7744..625d7678edfd3eadbfc89d7e32b7c381fe3e0694 100644 (file)
@@ -1,6 +1,6 @@
 # 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
 
@@ -128,7 +128,7 @@ src_install() {
 
        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
index 204069b1ae38f74bafd5e0fc4503b2f84f71d0e8..57a23c92059ecba1e6b76a69ccc1aaea52eb60a7 100644 (file)
@@ -1,8 +1,8 @@
 # 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/_/}
 
@@ -55,6 +55,7 @@ src_unpack() {
        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
@@ -103,17 +104,17 @@ src_compile() {
 }
 
 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
 
@@ -121,9 +122,8 @@ src_install() {
        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() {
diff --git a/net-print/cups/files/cups-1.2.1-ssldir.patch b/net-print/cups/files/cups-1.2.1-ssldir.patch
new file mode 100644 (file)
index 0000000..2423951
--- /dev/null
@@ -0,0 +1,12 @@
+--- 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...
diff --git a/net-print/cups/files/cupsd.init b/net-print/cups/files/cupsd.init
new file mode 100644 (file)
index 0000000..20cb793
--- /dev/null
@@ -0,0 +1,21 @@
+#!/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 $?
+}