pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/qmail Take responsibility from qmail-run for crea...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/17a2e6eda0c7
branches:  trunk
changeset: 388372:17a2e6eda0c7
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Tue Dec 04 17:01:39 2018 +0000

description:
Take responsibility from qmail-run for creating and removing the basic
config files and aliases. Bump PKGREVISION.

diffstat:

 mail/qmail/DEINSTALL |  12 ++++++++----
 mail/qmail/INSTALL   |  29 +++++++++++++++++++----------
 mail/qmail/Makefile  |   4 ++--
 3 files changed, 29 insertions(+), 16 deletions(-)

diffs (88 lines):

diff -r c2a898f0392e -r 17a2e6eda0c7 mail/qmail/DEINSTALL
--- a/mail/qmail/DEINSTALL      Tue Dec 04 17:00:59 2018 +0000
+++ b/mail/qmail/DEINSTALL      Tue Dec 04 17:01:39 2018 +0000
@@ -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 @@
 
 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 -r c2a898f0392e -r 17a2e6eda0c7 mail/qmail/INSTALL
--- a/mail/qmail/INSTALL        Tue Dec 04 17:00:59 2018 +0000
+++ b/mail/qmail/INSTALL        Tue Dec 04 17:01:39 2018 +0000
@@ -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 @@
                exit 1
        fi
 
-       if ! [ -z ${QMAIL_QUEUE_EXTRA} ]; then
-               ${CAT} <<EOF
-===========================================================================
+       cd ${PREFIX}/share/qmail/setup && ./config-fast-pkgsrc `./hostname`
+
+       cd ${PKG_SYSCONFDIR}/.pkgsrc-defaults-do-not-edit
+       for i in locals rcpthosts; do
+               ${SORT} -u ${i} > ${i}.tmp && ${MV} ${i}.tmp ${i}
+       done
 
-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}
+       for i in defaultdomain locals me plusdomain rcpthosts; do
+               [ -f control/${i} ] \
+                       || ${CP} .pkgsrc-defaults-do-not-edit/${i} control
+       done
 
-===========================================================================
-EOF
-       fi
+       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 -r c2a898f0392e -r 17a2e6eda0c7 mail/qmail/Makefile
--- a/mail/qmail/Makefile       Tue Dec 04 17:00:59 2018 +0000
+++ b/mail/qmail/Makefile       Tue Dec 04 17:01:39 2018 +0000
@@ -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/
 



Home | Main Index | Thread Index | Old Index