Date: Tue, 21 May 2002 23:40:06 +0200 (CEST) From: Thierry Thomas <thierry@pompo.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: SADA Kenji <sada@FreeBSD.org> Subject: ports/38392: mail/imp3: fix deinstall-time trouble. Message-ID: <20020521214006.CF0927511@graf.pompo.net>
next in thread | raw e-mail | index | archive | help
>Number: 38392 >Category: ports >Synopsis: mail/imp3: 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: Tue May 21 14:50: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: mail/imp3 modifies /usr/local/www/horde/turba/config/conf.php and horde's registry, and mail/turba couldn't be completely deinstalled. [Reported by SADA Kenji] >How-To-Repeat: Install imp3, deinstall it; then deinstall 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/38391 must be committed; then apply this patch: diff -urN /usr/ports/mail/imp3.orig/Makefile /usr/ports/mail/imp3/Makefile --- /usr/ports/mail/imp3.orig/Makefile Sat May 18 23:37:50 2002 +++ /usr/ports/mail/imp3/Makefile Tue May 21 22:55:55 2002 @@ -7,6 +7,7 @@ PORTNAME= imp PORTVERSION= 3.1 +PORTREVISION= 1 CATEGORIES= mail www MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/ DISTNAME= ${PORTNAME}-${PORTVERSION}-RC3 @@ -237,6 +238,9 @@ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ fi .endfor + @${CP} -p ${HCONFDIR}/mime_drivers.php ${HCONFDIR}/mime_drivers.php.beforeIMP + @${CP} -p ${HCONFDIR}/registry.php ${HCONFDIR}/registry.php.beforeIMP + @${CP} -p ${TURBADIR}/config/conf.php ${TURBADIR}/config/conf.php.beforeIMP @${PERL} -pi -e "s:example.com:${HOSTNAME}:g" ${CONFDIR}/servers.php @${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${CONFDIR}/mime_drivers.php @${PERL} -pi -e "s:IMP_VERSION:IMP_VERSION . ' / ${SERVOS}':" \ @@ -299,6 +303,10 @@ .endfor @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." .endif +# Prepare deinstallation + @${CP} -p ${HCONFDIR}/mime_drivers.php ${HCONFDIR}/mime_drivers.php.afterIMP + @${CP} -p ${HCONFDIR}/registry.php ${HCONFDIR}/registry.php.afterIMP + @${CP} -p ${TURBADIR}/config/conf.php ${TURBADIR}/config/conf.php.afterIMP post-install: @${ECHO_MSG} diff -urN /usr/ports/mail/imp3.orig/pkg-plist /usr/ports/mail/imp3/pkg-plist --- /usr/ports/mail/imp3.orig/pkg-plist Sun May 19 00:31:42 2002 +++ /usr/ports/mail/imp3/pkg-plist Tue May 21 23:02:03 2002 @@ -331,3 +331,6 @@ @dirrm %%IMPDIR%%/templates/search @dirrm %%IMPDIR%%/templates @dirrm %%IMPDIR%% +@unexec if cmp -s %D/www/horde/config/mime_drivers.php %D/www/horde/config/mime_drivers.php.afterIMP; then rm -f %D/www/horde/config/mime_drivers.php.afterIMP; mv %D/www/horde/config/mime_drivers.php.beforeIMP %D/www/horde/config/mime_drivers.php; fi +@unexec if cmp -s %D/www/horde/config/registry.php %D/www/horde/config/registry.php.afterIMP; then rm -f %D/www/horde/config/registry.php.afterIMP; mv %D/www/horde/config/registry.php.beforeIMP %D/www/horde/config/registry.php; fi +@unexec if cmp -s %D/www/horde/turba/config/conf.php %D/www/horde/turba/config/conf.php.afterIMP; then rm -f %D/www/horde/turba/config/conf.php.afterIMP; mv %D/www/horde/turba/config/conf.php.beforeIMP %D/www/horde/turba/config/conf.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?20020521214006.CF0927511>