# $NetBSD: INSTALL,v 1.14 2018/12/04 17:01:39 schmonz Exp $ DOCDIR=@DOCDIR@ EGDIR=@EGDIR@ PKGMANDIR=@PKGMANDIR@ QMAILDIR=@QMAILDIR@ QMAIL_QUEUE_DIR=@QMAIL_QUEUE_DIR@ QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@ WC=@WC@ VAR_QMAIL_DIRS="alias bin boot control doc man queue users" is_queue_fs_case_sensitive() { cd ${QMAIL_QUEUE_DIR} ${MKDIR} pkgsrc ${TOUCH} pkgsrc/case-check pkgsrc/case-CHECK count=$(${ECHO} pkgsrc/case-* | ${WC} -w) ${RM} -f pkgsrc/case-* ${RMDIR} pkgsrc if [ ${count} -eq 2 ]; then return 0 else return 1 fi } case ${STAGE} in PRE-INSTALL) for dir in $VAR_QMAIL_DIRS; do if [ -e ${QMAILDIR}/$dir ]; then ${CAT} <&1) if [ -n "${QMAIL_CHECK_OUTPUT}" ]; then ${CAT} < ${i}.tmp && ${MV} ${i}.tmp ${i} done cd ${PKG_SYSCONFDIR} for i in defaultdomain locals me plusdomain rcpthosts; do [ -f control/${i} ] \ || ${CP} .pkgsrc-defaults-do-not-edit/${i} control done cd ${PKG_SYSCONFDIR}/alias for i in mailer-daemon postmaster root ${QMAIL_QUEUE_EXTRA}; do [ -s .qmail-${i} ] \ || ${ECHO} '# pkgsrc says: replace this comment with your config' \ > .qmail-${i} ${CHMOD} 644 .qmail-${i} done ;; esac