summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2018-12-04 17:01:39 +0000
committerschmonz <schmonz@pkgsrc.org>2018-12-04 17:01:39 +0000
commit5c53f69c57bcad6a4ee259f21d76a191da5b40e2 (patch)
treedb49f6b1d5a92a56914277782f2f0fe184649173 /mail
parent48544083e8d265e6ffbbadd3275493bfb7efd255 (diff)
downloadpkgsrc-5c53f69c57bcad6a4ee259f21d76a191da5b40e2.tar.gz
Take responsibility from qmail-run for creating and removing the basic
config files and aliases. Bump PKGREVISION.
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail/DEINSTALL12
-rw-r--r--mail/qmail/INSTALL29
-rw-r--r--mail/qmail/Makefile4
3 files changed, 29 insertions, 16 deletions
diff --git a/mail/qmail/DEINSTALL b/mail/qmail/DEINSTALL
index d98dee7630e..f5e851262ea 100644
--- a/mail/qmail/DEINSTALL
+++ b/mail/qmail/DEINSTALL
@@ -1,6 +1,7 @@
-# $NetBSD: DEINSTALL,v 1.6 2018/11/14 16:43:17 schmonz Exp $
+# $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"
@@ -8,9 +9,12 @@ case "${STAGE}" in
DEINSTALL)
cd ${PKG_SYSCONFDIR}
- for i in postmaster mailer-daemon root; do
- [ -s alias/.qmail-${i} ] \
- || ${RM} -f alias/.qmail-${i}
+ 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} \
diff --git a/mail/qmail/INSTALL b/mail/qmail/INSTALL
index 3bdd7a1d5bf..20f670a4436 100644
--- a/mail/qmail/INSTALL
+++ b/mail/qmail/INSTALL
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.13 2018/11/25 16:15:53 schmonz Exp $
+# $NetBSD: INSTALL,v 1.14 2018/12/04 17:01:39 schmonz Exp $
DOCDIR=@DOCDIR@
EGDIR=@EGDIR@
@@ -109,17 +109,26 @@ EOF
exit 1
fi
- if ! [ -z ${QMAIL_QUEUE_EXTRA} ]; then
- ${CAT} <<EOF
-===========================================================================
+ cd ${PREFIX}/share/qmail/setup && ./config-fast-pkgsrc `./hostname`
-NOTE: Before using qmail, create a .qmail file corresponding with the local
-user or alias "${QMAIL_QUEUE_EXTRA}" that meets the requirements for
-QUEUE_EXTRA.
+ cd ${PKG_SYSCONFDIR}/.pkgsrc-defaults-do-not-edit
+ for i in locals rcpthosts; do
+ ${SORT} -u ${i} > ${i}.tmp && ${MV} ${i}.tmp ${i}
+ done
-===========================================================================
-EOF
- fi
+ 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
;;
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index 185c9fefef2..2600cca1bbf 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.103 2018/11/14 16:43:17 schmonz Exp $
+# $NetBSD: Makefile,v 1.104 2018/12/04 17:01:39 schmonz Exp $
#
DISTNAME= netqmail-1.06
PKGNAME= qmail-1.03
-PKGREVISION= 41
+PKGREVISION= 42
CATEGORIES= mail
MASTER_SITES= http://qmail.org/