summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-05-23 11:55:50 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-05-23 11:55:50 +0000
commit587d8733f4e7abf932e748cf1906ade34ae29473 (patch)
tree4e8d3dc1f3a3c9a00b3429b19589c50ca12f6f9c /mail
parentAdditional patches from maintainer. (diff)
Ensure clean removal.
PR: 38392 Submitted by: maintainer
Diffstat (limited to 'mail')
-rw-r--r--mail/imp3/Makefile7
-rw-r--r--mail/imp3/pkg-plist3
2 files changed, 10 insertions, 0 deletions
diff --git a/mail/imp3/Makefile b/mail/imp3/Makefile
index 797dbaa8c932..bbe9129ec3fd 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 d30b6ac06997..a4233d4e2ddc 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