View | Details | Raw Unified | Return to bug 35046
Collapse All | Expand All

(-)/usr/ports/www/horde/Makefile (+16 lines)
Lines 46-54 Link Here
46
HORDESBIN=	${PREFIX}/${LHORDESBIN}
46
HORDESBIN=	${PREFIX}/${LHORDESBIN}
47
47
48
APACHE_CNFDIR?=	${LOCALBASE}/etc/apache
48
APACHE_CNFDIR?=	${LOCALBASE}/etc/apache
49
PHP_DIR?=	${LOCALBASE}/etc
49
APACHE_CONF=	${APACHE_CNFDIR}/httpd.conf
50
APACHE_CONF=	${APACHE_CNFDIR}/httpd.conf
50
MIMETYPES=	${APACHE_CNFDIR}/mime.types
51
MIMETYPES=	${APACHE_CNFDIR}/mime.types
51
52
53
.if defined(WITH_PHP3)
54
PHP_INI=	${PHP_DIR}/php3.ini
55
.else
56
PHP_INI=	${PHP_DIR}/php.ini
57
.endif
58
52
pre-everything::
59
pre-everything::
53
.if !defined(WITHOUT_SSL)
60
.if !defined(WITHOUT_SSL)
54
	@${ECHO_MSG} ""
61
	@${ECHO_MSG} ""
Lines 124-129 Link Here
124
		${GREP} -qw 'phplib' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.phplib >> ${APACHE_CONF} ; \
131
		${GREP} -qw 'phplib' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.phplib >> ${APACHE_CONF} ; \
125
	    fi) ; \
132
	    fi) ; \
126
	fi)
133
	fi)
134
	@if [ ! -f ${PHP_INI} ]; then \
135
		${ECHO_MSG} "===> Creating ${PHP_INI} for PHP" ; \
136
		${CP} ${PHP_INI}-dist ${PHP_INI} ; \
137
	fi
138
	@if ! ${GREP} -q -e '^upload_tmp_dir' ${PHP_INI} ; then \
139
		${ECHO_MSG} "===> Configuring ${PHP_INI} for imp" ; \
140
		${CP} -p ${PHP_INI} ${PHP_INI}.beforeHorde1 ; \
141
		${PERL} -pi -e 's!;upload_tmp_dir =!upload_tmp_dir = /tmp!' ${PHP_INI} ; \
142
	fi
127
	${CHOWN} -R www:www ${HORDEDIR}
143
	${CHOWN} -R www:www ${HORDEDIR}
128
.if !defined(NOPORTDOCS)
144
.if !defined(NOPORTDOCS)
129
	${MKDIR} ${DOCSDIR}
145
	${MKDIR} ${DOCSDIR}

Return to bug 35046