Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2001 13:00:03 -0700 (PDT)
From:      Thierry Thomas <thierry@thomas.as>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/31089: Port www/horde: minor patch to make the configuration easier.
Message-ID:  <200110082000.f98K03978473@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/31089; it has been noted by GNATS.

From: Thierry Thomas <thierry@thomas.as>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: ports/31089: Port www/horde: minor patch to make the configuration easier.
Date: Mon, 8 Oct 2001 21:56:18 +0200

 Le  6 Oct 01 à 23:22:17 +0000, Thierry Thomas écrivait :
 > >Description:
 > 	Trying to make the post-install configuration easier.
 > 	No need to upgrade if you already have Horde running.
 > >How-To-Repeat:
 > 	Apply the included patch.
 
 Please, replace the patch enclosed in PR/31089 with the following one:
 
 
 --- Makefile.orig	Tue Sep 18 21:22:27 2001
 +++ Makefile	Mon Oct  8 21:22:55 2001
 @@ -50,6 +50,8 @@
  APACHE_CONF=	${APACHE_CNFDIR}/httpd.conf
  MIMETYPES=	${APACHE_CNFDIR}/mime.types
  
 +PHP_CNFDIR?=	${LOCALBASE}/etc
 +
  pre-everything::
  .if !defined(WITHOUT_SSL)
  	@${ECHO_MSG} ""
 @@ -89,6 +91,11 @@
  	${CP}     ${HORDEDIR}/config/horde.php3.dist ${HORDEDIR}/config/horde.php3
  	${CHMOD}  444 ${HORDEDIR}/config/horde.php3
  	${CHMOD}  444 ${HORDEDIR}/setup.php3
 +	${PERL} -pi -e "s:/usr/local/apache/php:${PHPLIBDIR}:g" ${PHPLIBDIR}/README
 +	${PERL} -pi -e "s:horde/docs:${DOCSDIR}:g" ${PHPLIBDIR}/README
 +	${PERL} -pi -e "s:/usr/lib:${PHP_CNFDIR}:g" ${PHPLIBDIR}/README
 +	${PERL} -pi -e "s:horde/scripts:${HORDEDIR}/scripts:g" ${PHPLIBDIR}/README
 +	${PERL} -pi -e "s:horde/docs:${DOCSDIR}:g" ${HORDEDIR}/scripts/database/MYSQL
  .if !defined(WITH_PHP3)
  # Enabling execution of .php3, in case you only run php4
  	@(if [ -f ${MIMETYPES} ] ; then \
 @@ -108,13 +115,11 @@
  	@(if [ -f ${APACHE_CONF} ] ; then \
  	    (if [ ! -f ${APACHE_CONF}.beforeHorde ] ; then \
  		${ECHO} "===> Updating httpd.conf..." ; \
 -		${CP} -p ${.CURDIR}/httpd.conf.phplib ${WRKDIR}/httpd.conf.phplib.orig ; \
 +		${CP} -p ${.CURDIR}/httpd.conf.phplib ${WRKDIR}/httpd.conf.phplib ; \
  		${PERL} -pi -e "s:/home/httpd/html/horde:${HORDEDIR}:g" ${WRKDIR}/httpd.conf.phplib ; \
  		${PERL} -pi -e "s:/home/httpd/phplib:${PHPLIBDIR}:g" ${WRKDIR}/httpd.conf.phplib ; \
  		${CP} -p ${APACHE_CONF} ${APACHE_CONF}.beforeHorde ; \
  		${GREP} -qw 'phplib' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.phplib >> ${APACHE_CONF} ; \
 -		${RM} ${.CURDIR}/httpd.conf.phplib ; \
 -		${MV} ${.CURDIR}/httpd.conf.phplib.orig ${.CURDIR}/httpd.conf.phplib ; \
  	    fi) ; \
  	fi)
  .if !defined(NOPORTDOCS)
 
 
 [end of patch]
 There was a mistake when copying httpd.conf.phplib.
 
 Best regards,
 -- 
 Th. Thomas.

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?200110082000.f98K03978473>