Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2002 00:00:59 +0200 (CEST)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38431: deskutils/kronolith: fix deinstall-time trouble.
Message-ID:  <20020522220059.B9CA67528@graf.pompo.net>

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

>Number:         38431
>Category:       ports
>Synopsis:       deskutils/kronolith: 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:
	deskutils/kronolith modifies horde's registry, which couldn't
	be completely deinstalled.

>How-To-Repeat:
	Install Kronolith, deinstall it; then deinstall mail/imp3,
	mail/turba and www/horde2.

>Fix:

	Remark: this PR bumps PORTREVISION, not for this fix, but for the upgrade
		to RC3 (forgotten in previous PR).

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



diff -urN /usr/ports/deskutils/kronolith.orig/Makefile /usr/ports/deskutils/kronolith/Makefile
--- /usr/ports/deskutils/kronolith.orig/Makefile	Mon May 20 19:43:12 2002
+++ /usr/ports/deskutils/kronolith/Makefile	Wed May 22 23:35:29 2002
@@ -7,6 +7,7 @@
 
 PORTNAME=	kronolith
 PORTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	deskutils www
 MASTER_SITES=	ftp://ftp.horde.org/pub/kronolith/tarballs/
 DISTNAME=	${PORTNAME}-${PORTVERSION}-RC3
@@ -61,8 +62,12 @@
 	@${CP} -p ${FILESDIR}/httpd.conf.kronolith ${HORDE_INC}
 	@${PERL} -pi -e "s:/home/httpd/html/horde/kronolith:${KRONOLITHDIR}:g" \
 		${HORDE_INC}/httpd.conf.kronolith
+	@${CP} -p ${HORDEDIR}/config/registry.php		\
+		${HORDEDIR}/config/registry.php.beforeKronolith
 	@${PERL} -pi -e "s://UNCOMMENTWHENINSTKRONOLITH::" \
 		${HORDEDIR}/config/registry.php
+	@${CP} -p ${HORDEDIR}/config/registry.php		\
+		${HORDEDIR}/config/registry.php.afterKronolith
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 .for FILE in ${DOCS}
diff -urN /usr/ports/deskutils/kronolith.orig/pkg-plist /usr/ports/deskutils/kronolith/pkg-plist
--- /usr/ports/deskutils/kronolith.orig/pkg-plist	Mon May 20 19:55:27 2002
+++ /usr/ports/deskutils/kronolith/pkg-plist	Wed May 22 23:36:38 2002
@@ -177,3 +177,4 @@
 @dirrm %%KRONOLITHDIR%%
 etc/horde/httpd.conf.kronolith
 %%PORTDOCS%%@dirrm share/doc/kronolith
+@unexec if cmp -s %D/www/horde/config/registry.php %D/www/horde/config/registry.php.afterKronolith; then rm -f %D/www/horde/config/registry.php.afterKronolith; mv %D/www/horde/config/registry.php.beforeKronolith %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?20020522220059.B9CA67528>