From owner-freebsd-ports Sun Feb 17 7:40:20 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B0DD337B41B for ; Sun, 17 Feb 2002 07:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1HFe2S64075; Sun, 17 Feb 2002 07:40:02 -0800 (PST) (envelope-from gnats) Received: from postfix2-2.free.fr (postfix2-2.free.fr [213.228.0.140]) by hub.freebsd.org (Postfix) with ESMTP id E8ACB37B400 for ; 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 ; 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 Reply-To: Thierry Thomas To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/35046: mail/imp: update php.ini to permit attachments Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35046 >Category: ports >Synopsis: mail/imp: update php.ini to permit attachments >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Feb 17 07:40:02 PST 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message