summaryrefslogtreecommitdiffstats
path: root/www/horde2/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-03-30 01:50:03 +0000
committeredwin <edwin@FreeBSD.org>2003-03-30 01:50:03 +0000
commit37f3af69b958736e5b7cba9630819b48cde946ea (patch)
treea0c76610f16b15765ae94fefb6aecc35d8d4e131 /www/horde2/Makefile
parent7754e45a990fe233981d20c81644a24331f6b3cf (diff)
downloadFreeBSD-ports-37f3af69b958736e5b7cba9630819b48cde946ea.zip
FreeBSD-ports-37f3af69b958736e5b7cba9630819b48cde946ea.tar.gz
www/horde2: adding support of Apache2
PR: ports/48954 Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'www/horde2/Makefile')
-rw-r--r--www/horde2/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/www/horde2/Makefile b/www/horde2/Makefile
index bce0c91..f43a85c 100644
--- a/www/horde2/Makefile
+++ b/www/horde2/Makefile
@@ -59,10 +59,16 @@ HORDEDIR= ${PREFIX}/${LHORDEDIR}
HORDESBIN= ${PREFIX}/${LHORDESBIN}
CONFDIR= ${HORDEDIR}/config
-APACHE_CNFDIR?= ${LOCALBASE}/etc/apache
APACHE_CONF= ${APACHE_CNFDIR}/httpd.conf
PHP_LIB?= ${LOCALBASE}/lib/php
-PHPSO?= ${LOCALBASE}/libexec/apache/libphp4.so
+.if defined(WITH_APACHE2)
+APACHE_CNFDIR= ${LOCALBASE}/etc/apache2
+MOD_DIR= libexec/apache2
+.else
+APACHE_CNFDIR= ${LOCALBASE}/etc/apache
+MOD_DIR= libexec/apache
+.endif
+PHPSO= ${LOCALBASE}/${MOD_DIR}/libphp4.so
HORDE_INC= ${PREFIX}/etc/horde
LOG_FILE?= /var/log/horde.log
@@ -153,10 +159,8 @@ do-install:
${ECHO_CMD} "# Horde's include directory" >> ${APACHE_CONF} ; \
${ECHO_CMD} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \
fi)
- @${CHOWN} -R www:www ${HORDEDIR}
+ @${CHOWN} -R edwin ${HORDEDIR}
@${CHMOD} -R o-rwx ${CONFDIR}
- @${TOUCH} ${LOG_FILE}
- @${CHOWN} www:www ${LOG_FILE}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
OpenPOWER on IntegriCloud