Patch for cups-base

Matthias Grimm eisofen at eisofen.net
Thu Jul 22 10:44:26 PDT 2004


Hello..

since I need cups I decided to make a patch for cups-base's 
/usr/local/etc/rc.d/cups.sh.sample

just cp -r cups-base from freebsd's ports into dfports, patch the 
Makefile and copy the patch-cups-sh-in into files.

Matthias
--- Makefile.orig	2004-07-22 19:39:39.000000000 +0200
+++ Makefile	2004-07-22 19:29:38.000000000 +0200
@@ -52,7 +52,7 @@
 	${CHMOD} -R g+w ${CUPS_SPOOLDIR}
 	@${CAT} ${PKGMESSAGE}
 
-.include "${.CURDIR}/../../print/cups/Makefile.common"
-.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../../../ports/print/cups/Makefile.common"
+.include <bsd.dfport.pre.mk>
 .include "${FILESDIR}/manpages.mk"
-.include <bsd.port.post.mk>
+.include <bsd.dfport.post.mk>
--- cups.sh.in.orig	2004-07-22 19:17:28.000000000 +0200
+++ cups.sh.in	2004-07-22 19:18:48.000000000 +0200
@@ -57,7 +57,7 @@
 		ECHO_ERROR=:
 		;;
 
-	*BSD*)
+	*BSD* | Dragon*)
         	IS_ON=:
 		ECHO=echo
 		ECHO_OK=:
@@ -145,7 +145,7 @@
 	OSF1*)
 		pid=`ps -e | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
 		;;
-	Linux* | *BSD* | Darwin*)
+	Linux* | *BSD* | Darwin* | Dragon*)
 		pid=`ps ax | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'`
 		;;
 	*)




More information about the Submit mailing list