aboutsummaryrefslogtreecommitdiff
path: root/mail/sendmail/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2019-05-02 06:00:12 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2019-05-02 06:00:12 +0000
commitae54d13369b22695df068163b0a3bc6c88b66045 (patch)
tree2e384b4b3b0af9a1958d7cf3fef044365c43f93b /mail/sendmail/Makefile
parent24016448fd88b4cc70d77b9590546fb5e1cd78a0 (diff)
downloadports-ae54d13369b22695df068163b0a3bc6c88b66045.tar.gz
ports-ae54d13369b22695df068163b0a3bc6c88b66045.zip
Notes
Diffstat (limited to 'mail/sendmail/Makefile')
-rw-r--r--mail/sendmail/Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 5a6a23e8eebd..28f181a756ec 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -33,7 +33,7 @@ DOCS= KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES \
sendmail/TRACEFLAGS sendmail/SECURITY sendmail/TUNING
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==} \
MANPREFIX=${MANPREFIX:S=$=/=:S=${PREFIX}==:S=^/==}
-PKGMESSAGE= ${WRKSRC}/pkg-message
+SUB_FILES= pkg-message
WCONF= ${WRKSRC}/devtools/Site
SITE= ${FILESDIR}/site.config.m4.pre4
@@ -157,12 +157,6 @@ SED_SCRIPT= -e "s|\`-O'|\`${CFLAGS}'|" \
SED_SCRIPT+= -e "s;-DNIS ;;"
.endif
-post-patch:
- @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" \
- -e "s=%%LOCALBASE%%=${LOCALBASE}=g" \
- -e "s=%%PORTSDIR%%=${PORTSDIR}=g" \
- ${PKGDIR}/pkg-message > ${WRKSRC}/pkg-message
-
do-configure:
.if ${PORT_OPTIONS:MGDBM}
@(if [ ! -e "${LOCALBASE}/lib/libgdbm_compat.so" ] ; then \
@@ -285,13 +279,8 @@ post-install-DOCS-on:
mailer.base:
@${SED} \
- -e "s=^sendmail[ ]*/.*$$=sendmail ${BASEMAIL}=" \
- -e "s=^send-mail[ ]*/.*$$=send-mail ${BASEMAIL}=" \
- -e "s=^mailq[ ]*/.*$$=mailq ${BASEMAIL}=" \
- -e "s=^newaliases[ ]*/.*$$=newaliases ${BASEMAIL}=" \
- -e "s=^hoststat[ ]*/.*$$=hoststat ${BASEMAIL}=" \
- -e "s=^purgestat[ ]*/.*$$=purgestat ${BASEMAIL}=" \
- ${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
+ -e "s=\([ ]\)/.*$$=\\1${BASEMAIL}=" \
+ ${FILESDIR}/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
${MV} ${DESTDIR}/etc/mail/mailer.conf.new \
${DESTDIR}/etc/mail/mailer.conf
@@ -375,7 +364,7 @@ pre-everything::
@${ECHO_CMD} "#"
@${ECHO_CMD} "# Please install with normal PREFIX"
@${ECHO_CMD} "# and activate the port version with"
- @${ECHO_CMD} "# cd ${PORTSDIR}/mail/sendmail && make mailer.conf"
+ @${ECHO_CMD} "# cd /usr/local/etc/mail && cp mailer.conf.sendmail mailer.conf"
@${ECHO_CMD} "#"
@${FALSE}
.endif