From 0cd1aecd058bac23c5f391a4d77a256d1e6a05d1 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 30 Mar 2003 01:50:03 +0000 Subject: www/horde2: adding support of Apache2 PR: ports/48954 Submitted by: Thierry Thomas --- www/horde2/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'www/horde2') diff --git a/www/horde2/Makefile b/www/horde2/Makefile index bce0c91bb26e..f43a85c3be4d 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} -- cgit v1.2.3