Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  6 Oct 2001 23:22:17 +0200 (CEST)
From:      Thierry Thomas <thierry@thomas.as>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31089: Port www/horde: minor patch to make the configuration easier.
Message-ID:  <20011006212217.00CC67676@graf.pompo.net>

next in thread | raw e-mail | index | archive | help

>Number:         31089
>Category:       ports
>Synopsis:       Port www/horde: minor patch to make the configuration easier.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 06 14:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Sep 22 10:41:40 CEST 2001 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>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.
>Fix:

	
--- Makefile.orig	Tue Sep 18 21:22:27 2001
+++ Makefile	Sat Oct  6 23:20:18 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 \
@@ -109,12 +116,11 @@
 	    (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)
>Release-Note:
>Audit-Trail:
>Unformatted:

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?20011006212217.00CC67676>