From root@sucked-in.com  Thu Aug 18 00:49:27 2011
Return-Path: <root@sucked-in.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5197A106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Aug 2011 00:49:27 +0000 (UTC)
	(envelope-from root@sucked-in.com)
Received: from mail.sucked-in.com (love.fat2fit.com.au [IPv6:2001:470:5:2dc::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 2973F8FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Aug 2011 00:49:27 +0000 (UTC)
Received: from got.sucked-in.com (got.sucked-in.com [64.251.22.156])
	by mail.sucked-in.com (Postfix) with ESMTP id 529861CD2E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Aug 2011 10:49:26 +1000 (EST)
Received: from mail.sucked-in.com ([64.251.22.156])
	by got.sucked-in.com (mail.sucked-in.com [64.251.22.156]) (amavisd-new, port 10026)
	with ESMTP id gp-twESUN2U0 for <FreeBSD-gnats-submit@freebsd.org>;
	Thu, 18 Aug 2011 10:49:25 +1000 (EST)
Received: by mail.sucked-in.com (Postfix, from userid 0)
	id 1D1F41CCE3; Thu, 18 Aug 2011 10:49:25 +1000 (EST)
Message-Id: <20110818004925.1D1F41CCE3@mail.sucked-in.com>
Date: Thu, 18 Aug 2011 10:49:25 +1000 (EST)
From: Terry Sposato <tabmow@freenode.net>
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: port update: mail/roundcube
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         159856
>Category:       ports
>Synopsis:       port update: mail/roundcube
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 18 00:50:10 UTC 2011
>Closed-Date:    Thu Aug 18 07:12:52 UTC 2011
>Last-Modified:  Mon Aug 22 09:30:09 UTC 2011
>Originator:     Terry Sposato
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
freenode
>Environment:
System: FreeBSD got.sucked-in.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


>Description:
After an upgrade of roundcube it renders your install unusable until you chown the db config file to your www user.

>How-To-Repeat:

>Fix:
Simple update to fix the issue.

--- port-roundcube.diff begins here ---
diff -Nru roundcube.old/Makefile roundcube/Makefile
--- roundcube.old/Makefile	2011-08-18 10:02:52.000000000 +1000
+++ roundcube/Makefile	2011-08-18 10:44:16.000000000 +1000
@@ -148,6 +148,9 @@
 	@${ECHO_CMD} '@dirrm ${WWWDIR_REL}' >> ${TMPPLIST}
 
 post-install:
+	@if [ -f ${WWWDIR}/config/db.inc.php ]; then \
+		${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/config/db.inc.php ; \
+	fi
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
--- port-roundcube.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Aug 18 00:50:25 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159856 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Thu Aug 18 07:11:35 UTC 2011 
State-Changed-Why:  
Not needed, config file should not be writable under normal conditions. 

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

From: Terry Sposato <tabmow@freenode.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/159856: port update: mail/roundcube
Date: Mon, 22 Aug 2011 19:24:20 +1000

 Hi ale@,
 
 It isn't write access that is needed, it is read access by the www user.
 
 Regards,
 
 Terry
>Unformatted:
