summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-04-01 13:50:19 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-04-01 13:50:19 +0000
commit98ea529c38a9b79f06aa51a3321b3d09cae044ab (patch)
tree1616e1e589500369d557ce911e0831f69811f9c1
parentAdd smokeping UID and GID if not exist and use them to be invoked as. (diff)
update php.ini to permit attachments
PR: 35046 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=57138
-rw-r--r--www/horde-base/Makefile16
-rw-r--r--www/horde/Makefile16
-rw-r--r--www/horde4-base/Makefile16
3 files changed, 48 insertions, 0 deletions
diff --git a/www/horde-base/Makefile b/www/horde-base/Makefile
index c56982de084c..10aca4f46e2b 100644
--- a/www/horde-base/Makefile
+++ b/www/horde-base/Makefile
@@ -46,9 +46,16 @@ PHPLIBDIR= ${PREFIX}/${LPHPLIBDIR}
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 @@ do-install:
${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}
diff --git a/www/horde/Makefile b/www/horde/Makefile
index c56982de084c..10aca4f46e2b 100644
--- a/www/horde/Makefile
+++ b/www/horde/Makefile
@@ -46,9 +46,16 @@ PHPLIBDIR= ${PREFIX}/${LPHPLIBDIR}
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 @@ do-install:
${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}
diff --git a/www/horde4-base/Makefile b/www/horde4-base/Makefile
index c56982de084c..10aca4f46e2b 100644
--- a/www/horde4-base/Makefile
+++ b/www/horde4-base/Makefile
@@ -46,9 +46,16 @@ PHPLIBDIR= ${PREFIX}/${LPHPLIBDIR}
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 @@ do-install:
${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}