1 # $NetBSD: INSTALL,v 1.4 2004/12/21 05:32:56 schmonz Exp $
7 QMAIL_QUEUE_DIR=@QMAIL_QUEUE_DIR@
8 QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@
9 VIRUSCAN_SIGS_SRCFILE=@VIRUSCAN_SIGS_SRCFILE@
11 VAR_QMAIL_DIRS="alias bin boot control doc man queue users"
16 for dir in $VAR_QMAIL_DIRS; do
17 if [ -e ${QMAILDIR}/$dir ]; then
19 ===========================================================================
21 ERROR: ${QMAILDIR} exists and is non-empty.
23 Please remove or rename it, then try again.
25 ===========================================================================
31 if ${ECHO} ${QMAIL_QUEUE_DIR} | ${GREP} -q "^${QMAILDIR}/"; then
33 ===========================================================================
35 ERROR: QMAIL_QUEUE_DIR must not be under ${QMAILDIR}.
37 Please adjust your definition of QMAIL_QUEUE_DIR, then try again.
39 ===========================================================================
44 # keep in sync with Makefile:pre-install
45 ${LN} -s ${PKG_SYSCONFDIR}/alias ${QMAILDIR}/alias
46 ${LN} -s ${PREFIX}/bin ${QMAILDIR}/bin
47 ${LN} -s ${EGDIR}/boot ${QMAILDIR}/boot
48 ${LN} -s ${PKG_SYSCONFDIR}/control ${QMAILDIR}/control
49 ${LN} -s ${DOCDIR} ${QMAILDIR}/doc
50 ${LN} -s ${PREFIX}/${PKGMANDIR} ${QMAILDIR}/man
51 ${LN} -s ${QMAIL_QUEUE_DIR} ${QMAILDIR}/queue
52 ${LN} -s ${PKG_SYSCONFDIR}/users ${QMAILDIR}/users
57 if ! [ -z ${QMAIL_QUEUE_EXTRA} ]; then
59 ===========================================================================
61 NOTE: Before using qmail, create a .qmail file corresponding with the local
62 user or alias "${QMAIL_QUEUE_EXTRA}" that meets the requirements for
65 ===========================================================================
68 if ! [ -z ${VIRUSCAN_SIGS_SRCFILE} ] && \
69 ! [ -s ${PKG_SYSCONFDIR}/control/signatures ]; then
70 ${SED} -e '1,15d' -e '34,$d' \
71 < ${VIRUSCAN_SIGS_SRCFILE} \
72 > ${PKG_SYSCONFDIR}/control/signatures
73 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/signatures