From simon@olofsson.de  Mon Jun 26 19:29:55 2006
Return-Path: <simon@olofsson.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0FD7A16A401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jun 2006 19:29:54 +0000 (UTC)
	(envelope-from simon@olofsson.de)
Received: from mail-in-01.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 21EDE46521
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jun 2006 19:29:49 +0000 (GMT)
	(envelope-from simon@olofsson.de)
Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20])
	by mail-in-01.arcor-online.net (Postfix) with ESMTP id C3F651561E0
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jun 2006 21:29:48 +0200 (CEST)
Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49])
	by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id B2E295463D
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jun 2006 21:29:48 +0200 (CEST)
Received: from gul.lan.gath3n.de (dslb-084-060-165-055.pools.arcor-ip.net [84.60.165.55])
	by mail-in-09.arcor-online.net (Postfix) with SMTP id 3E49C33C307
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jun 2006 21:29:48 +0200 (CEST)
Received: by gul.lan.gath3n.de (sSMTP sendmail emulation); Mon, 26 Jun 2006 21:29:47 +0200
Message-Id: <20060626192948.3E49C33C307@mail-in-09.arcor-online.net>
Date: Mon, 26 Jun 2006 21:29:47 +0200
From: "Simon Olofsson" <simon@olofsson.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] print/cups-pdf: Fix for CUPS 1.2.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         99498
>Category:       ports
>Synopsis:       [MAINTAINER] print/cups-pdf: Fix for CUPS 1.2.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 26 19:30:18 GMT 2006
>Closed-Date:    Wed Jun 28 21:14:28 GMT 2006
>Last-Modified:  Wed Jun 28 21:14:28 GMT 2006
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Mon Jun 26 20:42:47 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99498 
State-Changed-From-To: open->feedback 
State-Changed-By: itetcu 
State-Changed-When: Tue Jun 27 11:48:41 UTC 2006 
State-Changed-Why:  
Isn't there a btter way for this except running as root  Do the authors 
recommend this ? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99498 

From: "Simon Olofsson" <simon@olofsson.de>
To: bug-followup@FreeBSD.org
Cc: itetcu@FreeBSD.org
Subject: Re: ports/99498: [MAINTAINER] print/cups-pdf: Fix for CUPS 1.2.0
Date: Tue, 27 Jun 2006 21:30:57 +0200

 Hi,
 
 here is a quote from the Authors website:
 "CUPS-PDF requires root privileges since it has to modify file
 ownerships."
 He recommends to change the file permissions:
 http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/documentation.shtml
 
 On Tue, Jun 27, 2006 at 11:48:43AM +0000, Ion-Mihai Tetcu wrote:
 > Isn't there a btter way for this except running as root  Do the authors
 > recommend this ?
 
 -- 
 Mit freundlichem Gru,
 With best regards,
 
 Simon Olofsson
 http://olofsson.de
State-Changed-From-To: feedback->closed 
State-Changed-By: itetcu 
State-Changed-When: Wed Jun 28 21:14:26 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99498 
>Unformatted:
