Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2002 00:07:49 +0200 (CEST)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38432: devel/chora: fix deinstall-time trouble.
Message-ID:  <20020522220749.9B6A6752F@graf.pompo.net>

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

>Number:         38432
>Category:       ports
>Synopsis:       devel/chora: fix deinstall-time trouble.
>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:   Wed May 22 15:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Sat May 4 07:26:38 CEST 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	devel/chora modifies /usr/local/www/horde/config/registry.php
	and mime_drivers.php, and www/horde2 couldn't be completely
	deinstalled.

>How-To-Repeat:
	Install Chora, deinstall it; then deinstall www/horde2.

>Fix:

	Pre-requisite: PR ports/38280 must be committed;
	then apply this patch:



diff -urN /usr/ports/devel/chora.orig/Makefile /usr/ports/devel/chora/Makefile
--- /usr/ports/devel/chora.orig/Makefile	Sun May 19 09:29:53 2002
+++ /usr/ports/devel/chora/Makefile	Wed May 22 23:00:25 2002
@@ -79,12 +79,20 @@
 	@${CP} -p ${FILESDIR}/httpd.conf.chora ${HORDE_INC}
 	@${PERL} -pi -e "s:/home/httpd/html/horde/chora:${CHORADIR}:g" \
 		${HORDE_INC}/httpd.conf.chora
+	@${CP} -p ${HORDEDIR}/config/registry.php		\
+		${HORDEDIR}/config/registry.php.beforeChora
+	@${CP} -p ${HORDEDIR}/config/mime_drivers.php		\
+		${HORDEDIR}/config/mime_drivers.php.beforeChora
 	@${PERL} -pi -e "s://UNCOMMENTWHENINSTCHORA::" \
 		${HORDEDIR}/config/registry.php
 .if !defined(WITHOUT_ENSCRIPT)
 	@${PERL} -pi -e "s://UNCOMMENTWHENINSTCHORA::" \
 		${HORDEDIR}/config/mime_drivers.php
 .endif
+	@${CP} -p ${HORDEDIR}/config/registry.php		\
+		${HORDEDIR}/config/registry.php.afterChora
+	@${CP} -p ${HORDEDIR}/config/mime_drivers.php		\
+		${HORDEDIR}/config/mime_drivers.php.afterChora
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 .for FILE in ${DOCS}
diff -urN /usr/ports/devel/chora.orig/pkg-plist /usr/ports/devel/chora/pkg-plist
--- /usr/ports/devel/chora.orig/pkg-plist	Sun May 19 09:32:54 2002
+++ /usr/ports/devel/chora/pkg-plist	Wed May 22 23:03:40 2002
@@ -147,3 +147,5 @@
 @dirrm %%CHORADIR%%/templates/log
 @dirrm %%CHORADIR%%/templates
 @dirrm %%CHORADIR%%
+@unexec if cmp -s %D/www/horde/config/mime_drivers.php %D/www/horde/config/mime_drivers.php.afterChora; then rm -f %D/www/horde/config/mime_drivers.php.afterChora; mv %D/www/horde/config/mime_drivers.php.beforeChora %D/www/horde/config/mime_drivers.php; fi
+@unexec if cmp -s %D/www/horde/config/registry.php %D/www/horde/config/registry.php.afterChora; then rm -f %D/www/horde/config/registry.php.afterChora; mv %D/www/horde/config/registry.php.beforeChora %D/www/horde/config/registry.php; fi
>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?20020522220749.9B6A6752F>