summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortron <tron>1999-12-01 21:55:12 +0000
committertron <tron>1999-12-01 21:55:12 +0000
commit4b1f01ec721305031b2a6291c8a200d76a185fca (patch)
tree290483076f26a58a0c9cb2432a8126d02aec73ce /mail
parentde23a54ba792bb93717720e10cc0731794192a2a (diff)
downloadpkgsrc-4b1f01ec721305031b2a6291c8a200d76a185fca.tar.gz
Only remind user to rebuild databases if DB 2.x is used.
Diffstat (limited to 'mail')
-rw-r--r--mail/sendmail/Makefile9
-rw-r--r--mail/sendmail/pkg/MESSAGE3
2 files changed, 6 insertions, 6 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 5562cbfe44d..9b81d9179dc 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 1999/12/01 21:32:08 tron Exp $
+# $NetBSD: Makefile,v 1.10 1999/12/01 21:55:12 tron Exp $
DISTNAME= sendmail.8.9.3
PKGNAME= sendmail-8.9.3
@@ -34,12 +34,15 @@ MAKE_ENV+= DB_ENVDEF="" DB_LIBS=""
.endif
post-build:
+ ${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
+ <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.sendmail
${SED} -e 's#@@PKGNAME@@#${PKGNAME}#g' \
-e 's#@@PREFIX@@#${PREFIX}#g' \
<${PKGDIR}/MESSAGE >${MESSAGE_FILE}
- ${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
- <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.sendmail
.if ${USE_DB2} == YES
+ ${ECHO} >>${MESSAGE_FILE} ""
+ ${ECHO} >>${MESSAGE_FILE} "If you are upgrading from \"sendmail\" 8.8.x don't forget to rebuild all"
+ ${ECHO} >>${MESSAGE_FILE} "databases with \"${PREFIX}/bin/newaliases\" and \"${PREFIX}/sbin/makemap\"."
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
${ECHO} >>${PLIST_SRC} "@exec mv -f /usr/sbin/makemap /usr/sbin/makemap.8.8 || true"
${ECHO} >>${PLIST_SRC} "@unexec mv -f /usr/sbin/makemap.8.8 /usr/sbin/makemap || true"
diff --git a/mail/sendmail/pkg/MESSAGE b/mail/sendmail/pkg/MESSAGE
index 3232e1108b6..a0d6221c0fd 100644
--- a/mail/sendmail/pkg/MESSAGE
+++ b/mail/sendmail/pkg/MESSAGE
@@ -3,6 +3,3 @@ to install "@@PREFIX@@/etc/mailer.conf.sendmail" as global mailwrapper
configuration file. The command below will do that for you:
ln -fs @@PREFIX@@/etc/mailer.conf.sendmail /etc/mailer.conf
-
-If you are upgrading from "sendmail" 8.8.x don't forget to rebuild all
-databases with "@@PREFIX@@/bin/newaliases" and "@@PREFIX@@/sbin/makemap".