ports/99498: [MAINTAINER] print/cups-pdf: Fix for CUPS 1.2.0

Simon Olofsson simon at olofsson.de
Mon Jun 26 19:30:20 UTC 2006


>Number:         99498
>Category:       ports
>Synopsis:       [MAINTAINER] print/cups-pdf: Fix for CUPS 1.2.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 26 19:30:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Simon Olofsson
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD gul.lan.gath3n.de 6.1-STABLE FreeBSD 6.1-STABLE #25: Thu Jun 15 14:44:59 CEST 2006
>Description:
- Starting with version 1.2.0 CUPS implements the "RunAsOption" no longer.
In order to ensure CUPS-PDF is running with the required root privileges
you have to make 'root' the owner of the cups-pdf backend and set the
file permissions of the backend to 0700 (root only).

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- cups-pdf-2.4.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/print/cups-pdf/Makefile /usr/home/simon/src/ports/print/cups-pdf/Makefile
--- /usr/ports/print/cups-pdf/Makefile	Sat Jun 17 12:46:25 2006
+++ /usr/home/simon/src/ports/print/cups-pdf/Makefile	Mon Jun 26 21:26:26 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	cups-pdf
 PORTVERSION=	2.4.1
+PORTREVISION=	1
 CATEGORIES=	print
 MASTER_SITES=	http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/ \
 		http://olofsson.de/mirror/distfiles/
@@ -83,7 +84,7 @@
 	cd ${WRKSRC}/src; ${CC} ${CFLAGS} -o cups-pdf cups-pdf.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/src/cups-pdf ${LOCALBASE}/libexec/cups/backend
+	${INSTALL} -o root -g wheel -m 0700 ${WRKSRC}/src/cups-pdf ${LOCALBASE}/libexec/cups/backend
 	${INSTALL_DATA} ${WRKSRC}/extra/PostscriptColor_rev3b.ppd.gz \
 	${LOCALBASE}/share/cups/model/PostscriptColor.ppd.gz
 .if !defined(NOPORTDOCS)
--- cups-pdf-2.4.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list