3557e4ae46
config files and aliases. Bump PKGREVISION.
32 lines
803 B
Text
32 lines
803 B
Text
# $NetBSD: DEINSTALL,v 1.7 2018/12/04 17:01:39 schmonz Exp $
|
|
|
|
QMAILDIR=@QMAILDIR@
|
|
QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@
|
|
|
|
VAR_QMAIL_DIRS="alias bin boot control doc man queue users"
|
|
|
|
case "${STAGE}" in
|
|
|
|
DEINSTALL)
|
|
cd ${PKG_SYSCONFDIR}
|
|
for i in mailer-daemon postmaster root ${QMAIL_QUEUE_EXTRA}; do
|
|
contents=$(${CAT} alias/.qmail-${i})
|
|
if [ "${contents}" = '# pkgsrc says: replace this comment with your config' ] \
|
|
|| [ "${contents}" = '' ]; then
|
|
${RM} -f alias/.qmail-${i}
|
|
fi
|
|
done
|
|
for i in defaultdomain locals me plusdomain rcpthosts; do
|
|
${CMP} -s control/${i} .pkgsrc-defaults-do-not-edit/${i} \
|
|
&& ${RM} -f control/${i}
|
|
${RM} -f .pkgsrc-defaults-do-not-edit/${i}
|
|
done
|
|
|
|
cd ${QMAILDIR}
|
|
for dir in ${VAR_QMAIL_DIRS}; do
|
|
[ -h ${dir} ] \
|
|
&& ${RM} -f ${dir}
|
|
done
|
|
|
|
;;
|
|
esac
|