2004-08-10 23:46:34 +02:00
|
|
|
# $NetBSD: DEINSTALL,v 1.3 2004/08/10 21:46:34 jlam Exp $
|
2004-07-24 01:01:23 +02:00
|
|
|
|
|
|
|
MAILWRAPPEES="@MAILWRAPPEES@"
|
|
|
|
MAILWRAPPER="${PKG_PREFIX}/sbin/mailwrapper"
|
|
|
|
MAILER_CONF="${PKG_SYSCONFDIR}/mailer.conf"
|
|
|
|
MAILER_CONF_SAMPLE="${PKG_PREFIX}/share/examples/mailwrapper/mailer.conf.sendmail"
|
2004-07-24 11:19:14 +02:00
|
|
|
MW_BACKUP_SFX="@MAILWRAPPER_BACKUP_SFX@"
|
2004-07-24 01:01:23 +02:00
|
|
|
|
|
|
|
ALL_FILES="${ALL_FILES} ${MAILER_CONF_SAMPLE} ${MAILER_CONF}"
|
|
|
|
|
|
|
|
case ${STAGE} in
|
|
|
|
DEINSTALL)
|
|
|
|
for file in ${MAILWRAPPEES}; do
|
2004-08-10 23:46:34 +02:00
|
|
|
if [ -f ${file}${MW_BACKUP_SFX} ]; then
|
2004-07-24 11:19:14 +02:00
|
|
|
${ECHO} "Restoring ${file}${MW_BACKUP_SFX} to ${file}."
|
2004-07-24 01:01:23 +02:00
|
|
|
${RM} -f ${file}
|
2004-07-24 11:19:14 +02:00
|
|
|
${MV} -f ${file}${MW_BACKUP_SFX} ${file}
|
2004-07-24 01:01:23 +02:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
esac
|