summaryrefslogtreecommitdiffstats
path: root/mail/imp3
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-05-23 11:55:50 +0000
committersobomax <sobomax@FreeBSD.org>2002-05-23 11:55:50 +0000
commit842c5654948abf38baf27b30bf958da575ea7478 (patch)
tree55451383b2af3f40687de9dfeb84f5677466452f /mail/imp3
parent2d02d70961247442dfd96c05fff77f7b950317d5 (diff)
downloadFreeBSD-ports-842c5654948abf38baf27b30bf958da575ea7478.zip
FreeBSD-ports-842c5654948abf38baf27b30bf958da575ea7478.tar.gz
Ensure clean removal.
PR: 38392 Submitted by: maintainer
Diffstat (limited to 'mail/imp3')
-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 797dbaa..bbe9129 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 d30b6ac..a4233d4 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
OpenPOWER on IntegriCloud