From 842c5654948abf38baf27b30bf958da575ea7478 Mon Sep 17 00:00:00 2001 From: sobomax Date: Thu, 23 May 2002 11:55:50 +0000 Subject: Ensure clean removal. PR: 38392 Submitted by: maintainer --- mail/imp3/Makefile | 7 +++++++ mail/imp3/pkg-plist | 3 +++ 2 files changed, 10 insertions(+) (limited to 'mail') diff --git a/mail/imp3/Makefile b/mail/imp3/Makefile index 797dbaa8c93..bbe9129ec3f 100644 --- a/mail/imp3/Makefile +++ b/mail/imp3/Makefile @@ -238,6 +238,9 @@ do-install: ${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}':" \ @@ -300,6 +303,10 @@ do-install: .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 --git a/mail/imp3/pkg-plist b/mail/imp3/pkg-plist index d30b6ac0699..a4233d4e2dd 100644 --- a/mail/imp3/pkg-plist +++ b/mail/imp3/pkg-plist @@ -331,3 +331,6 @@ etc/horde/httpd.conf.imp @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 -- cgit