summaryrefslogtreecommitdiff
path: root/mail/mailwrapper/DEINSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mailwrapper/DEINSTALL')
-rw-r--r--mail/mailwrapper/DEINSTALL20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/mailwrapper/DEINSTALL b/mail/mailwrapper/DEINSTALL
new file mode 100644
index 00000000000..e66231467d1
--- /dev/null
+++ b/mail/mailwrapper/DEINSTALL
@@ -0,0 +1,20 @@
+# $NetBSD: DEINSTALL,v 1.1 2004/07/23 23:01:23 jlam Exp $
+
+MAILWRAPPEES="@MAILWRAPPEES@"
+MAILWRAPPER="${PKG_PREFIX}/sbin/mailwrapper"
+MAILER_CONF="${PKG_SYSCONFDIR}/mailer.conf"
+MAILER_CONF_SAMPLE="${PKG_PREFIX}/share/examples/mailwrapper/mailer.conf.sendmail"
+
+ALL_FILES="${ALL_FILES} ${MAILER_CONF_SAMPLE} ${MAILER_CONF}"
+
+case ${STAGE} in
+DEINSTALL)
+ for file in ${MAILWRAPPEES}; do
+ if [ -f ${file}.mailwrappee ]; then
+ ${ECHO} "Restoring ${file}.mailwrappee to ${file}."
+ ${RM} -f ${file}
+ ${MV} -f ${file}.mailwrappee ${file}
+ fi
+ done
+ ;;
+esac