aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-05-23 19:55:50 +0800
committersobomax <sobomax@FreeBSD.org>2002-05-23 19:55:50 +0800
commit842c5654948abf38baf27b30bf958da575ea7478 (patch)
tree55451383b2af3f40687de9dfeb84f5677466452f /mail
parent2d02d70961247442dfd96c05fff77f7b950317d5 (diff)
downloadfreebsd-ports-graphics-842c5654948abf38baf27b30bf958da575ea7478.tar.gz
freebsd-ports-graphics-842c5654948abf38baf27b30bf958da575ea7478.tar.zst
freebsd-ports-graphics-842c5654948abf38baf27b30bf958da575ea7478.zip
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 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