From thierry@pompo.net  Sun Feb 17 07:38:45 2002
Return-Path: <thierry@pompo.net>
Received: from postfix2-2.free.fr (postfix2-2.free.fr [213.228.0.140])
	by hub.freebsd.org (Postfix) with ESMTP id E8ACB37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Feb 2002 07:38:44 -0800 (PST)
Received: from graf.pompo.net (lyon-1-a7-19-227.dial.proxad.net [62.147.19.227])
	by postfix2-2.free.fr (Postfix) with ESMTP id 1F3965F89D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Feb 2002 16:38:43 +0100 (CET)
Received: by graf.pompo.net (Postfix, from userid 1001)
	id 8E85B7523; Sun, 17 Feb 2002 16:36:54 +0100 (CET)
Message-Id: <20020217153654.8E85B7523@graf.pompo.net>
Date: Sun, 17 Feb 2002 16:36:54 +0100 (CET)
From: Thierry Thomas <thierry@pompo.net>
Reply-To: Thierry Thomas <thierry@pompo.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mail/imp: update php.ini to permit attachments
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35046
>Category:       ports
>Synopsis:       mail/imp: update php.ini to permit attachments
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 17 07:40:02 PST 2002
>Closed-Date:    Mon Apr 01 05:50:46 PST 2002
>Last-Modified:  Mon Apr 01 05:50:46 PST 2002
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Sun Feb 3 16:21:08 CET 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	upload_dir is not configured by default, but it is required by imp to
	upload attachments.

>How-To-Repeat:
	Try to attach a document when sending a mail.

>Fix:

	Apply the following patch:

--- /usr/ports/www/horde/Makefile.ori	Tue Jan 29 22:13:15 2002
+++ /usr/ports/www/horde/Makefile	Sat Feb 16 16:29:49 2002
@@ -46,9 +46,16 @@
 HORDESBIN=	${PREFIX}/${LHORDESBIN}
 
 APACHE_CNFDIR?=	${LOCALBASE}/etc/apache
+PHP_DIR?=	${LOCALBASE}/etc
 APACHE_CONF=	${APACHE_CNFDIR}/httpd.conf
 MIMETYPES=	${APACHE_CNFDIR}/mime.types
 
+.if defined(WITH_PHP3)
+PHP_INI=	${PHP_DIR}/php3.ini
+.else
+PHP_INI=	${PHP_DIR}/php.ini
+.endif
+
 pre-everything::
 .if !defined(WITHOUT_SSL)
 	@${ECHO_MSG} ""
@@ -124,6 +131,15 @@
 		${GREP} -qw 'phplib' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.phplib >> ${APACHE_CONF} ; \
 	    fi) ; \
 	fi)
+	@if [ ! -f ${PHP_INI} ]; then \
+		${ECHO_MSG} "===> Creating ${PHP_INI} for PHP" ; \
+		${CP} ${PHP_INI}-dist ${PHP_INI} ; \
+	fi
+	@if ! ${GREP} -q -e '^upload_tmp_dir' ${PHP_INI} ; then \
+		${ECHO_MSG} "===> Configuring ${PHP_INI} for imp" ; \
+		${CP} -p ${PHP_INI} ${PHP_INI}.beforeHorde1 ; \
+		${PERL} -pi -e 's!;upload_tmp_dir =!upload_tmp_dir = /tmp!' ${PHP_INI} ; \
+	fi
 	${CHOWN} -R www:www ${HORDEDIR}
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Mon Apr 1 05:50:20 PST 2002 
State-Changed-Why:  
committed, thanks 

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