summaryrefslogtreecommitdiff
path: root/mail/sendmail
diff options
context:
space:
mode:
authorwiz <wiz>2001-01-29 11:34:21 +0000
committerwiz <wiz>2001-01-29 11:34:21 +0000
commit3ce638ed02adf3649ce7b39076071ccb64529784 (patch)
tree86f14acd24842161759a420487862022044c2b4b /mail/sendmail
parent33d3218590bab0dca7122812c6edc6f6b124689f (diff)
downloadpkgsrc-3ce638ed02adf3649ce7b39076071ccb64529784.tar.gz
Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced, not @VARIABLE@, nor @@VARIABLE@@). By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX, X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST. Clean up some packages while I'm there; add RCS tags to most MESSAGEs. Remove some uninteresting MESSAGEs.
Diffstat (limited to 'mail/sendmail')
-rw-r--r--mail/sendmail/Makefile15
-rw-r--r--mail/sendmail/pkg/MESSAGE8
2 files changed, 12 insertions, 11 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 9661d9bb90d..456bca1b54b 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2001/01/21 05:58:50 itojun Exp $
+# $NetBSD: Makefile,v 1.28 2001/01/29 11:34:31 wiz Exp $
DISTNAME= sendmail.8.11.2
PKGNAME= sendmail-8.11.2
@@ -24,7 +24,6 @@ NO_CONFIGURE= yes
MAKE_ENV+= BSD_BINOWN="${BINOWN}" BSD_BINGRP="${BINGRP}" \
BSD_MANOWN="${MANOWN}" BSD_MANGRP="${MANGRP}"
-MESSAGE_FILE= ${WRKDIR}/MESSAGE
WRKSRC= ${WRKDIR}/${PKGNAME}
SITECONFIG= ${WRKSRC}/devtools/Site/site.config.m4
@@ -38,6 +37,7 @@ USE_DB2?= YES
USE_DB2?= NO
.endif
+MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
DESCR_SRC= ${WRKDIR}/.DESCR_SRC
@@ -86,14 +86,13 @@ do-build:
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}
${CAT} ${PKGDIR}/PLIST.common ${PKGDIR}/PLIST.${LOWER_OPSYS} > ${PLIST_SRC}
+test-build:
+ ${CP} ${PKGDIR}/MESSAGE ${MESSAGE_SRC}
.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\"."
+ ${ECHO} "" >> ${MESSAGE_SRC}
+ ${ECHO} "If you are upgrading from \"sendmail\" 8.8.x don't forget to rebuild all" >> ${MESSAGE_SRC}
+ ${ECHO} "databases with \"${PREFIX}/bin/newaliases\" and \"${PREFIX}/sbin/makemap\"." >> ${MESSAGE_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"
.endif
diff --git a/mail/sendmail/pkg/MESSAGE b/mail/sendmail/pkg/MESSAGE
index a0d6221c0fd..2db816bdbd0 100644
--- a/mail/sendmail/pkg/MESSAGE
+++ b/mail/sendmail/pkg/MESSAGE
@@ -1,5 +1,7 @@
-To use "@@PKGNAME@@" as the system's mail transport agent you have
-to install "@@PREFIX@@/etc/mailer.conf.sendmail" as global mailwrapper
+$NetBSD: MESSAGE,v 1.5 2001/01/29 11:34:32 wiz Exp $
+
+To use "${PKGNAME}" as the system's mail transport agent you have
+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
+ln -fs ${PREFIX}/etc/mailer.conf.sendmail /etc/mailer.conf