Date: Sun, 17 Feb 2002 16:36:54 +0100 (CET) From: Thierry Thomas <thierry@pompo.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/35046: mail/imp: update php.ini to permit attachments Message-ID: <20020217153654.8E85B7523@graf.pompo.net>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020217153654.8E85B7523>