New "mailwrapper" package inspired by PR pkg/7158 by Greg A. Woods:

NetBSD 1.4's wrapper to support arbitrary Mail Transport Agents
This commit is contained in:
tron 1999-04-12 21:19:32 +00:00
parent 72ae85fcb4
commit 24f39bf15c
5 changed files with 69 additions and 0 deletions

34
mail/mailwrapper/Makefile Normal file
View file

@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.1.1.1 1999/04/12 21:19:32 tron Exp $
DISTNAME= mailwrapper-19990412
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= tron@netbsd.org
MIRROR_DISTFILE= no
NO_CONFIGURE= yes
NO_PATCH= yes
.if exists(/usr/sbin/mailwrapper)
IGNORE= "is part of your NetBSD distribution"
.endif
MANCOMPRESSED= 1
WRKSRC= ${WRKDIR}/mailwrapper
MAILER_CONF= /etc/mailer.conf
LIBEXECDIR= /usr/libexec/sendmail
SENDMAIL= /usr/sbin/sendmail
post-install:
${INSTALL_DATA} ${WRKSRC}/mailer.conf ${PREFIX}/etc/mailer.conf.default
${TEST} -e ${MAILER_CONF} || \
${LN} -s ${PREFIX}/etc/mailer.conf.default /etc/mailer.conf
${MKDIR} ${LIBEXECDIR}
${MV} ${SENDMAIL} ${LIBEXECDIR}
${LN} -fs ${PREFIX}/sbin/mailwrapper /usr/bin/mailq
${LN} -fs ${PREFIX}/sbin/mailwrapper /usr/bin/newaliases
${LN} -fs ${PREFIX}/sbin/mailwrapper ${SENDMAIL}
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,3 @@
$NetBSD: md5,v 1.1.1.1 1999/04/12 21:19:32 tron Exp $
MD5 (mailwrapper-19990412.tar.gz) = c493d489f2efea36ea8bc51b42c439c9

View file

@ -0,0 +1 @@
NetBSD 1.4's wrapper to support arbitrary Mail Transport Agents

View file

@ -0,0 +1,13 @@
At one time, the only Mail Transfer Agent (MTA) software easily available
was sendmail(8). As a result of this, most Mail User Agents (MUAs) such
as mail(1) had the path and calling conventions expected by sendmail(8)
compiled in.
Times have changed, however. On a modern NetBSD system, the administra-
tor may wish to use one of several available MTAs.
It would be difficult to modify all MUA software typically available on a
system, so most of the authors of alternative MTAs have written their
front end message submission programs so that they use the same calling
conventions as sendmail(8) and may be put into place instead of
sendmail(8) in /usr/sbin/sendmail.

View file

@ -0,0 +1,18 @@
@comment $NetBSD: PLIST,v 1.1.1.1 1999/04/12 21:19:32 tron Exp $
etc/mailer.conf.default
@exec test -e /etc/mailer.conf || ln -sf %F /etc/mailer.conf
man/cat5/mailer.conf.0.gz
man/cat8/mailwrapper.0.gz
man/man5/mailer.conf.5.gz
man/man8/mailwrapper.8.gz
sbin/mailwrapper
@exec mkdir -p /usr/libexec/sendmail
@exec mv /usr/sbin/sendmail /usr/libexec/sendmail
@exec ln -fs %D/sbin/mailwrapper /usr/bin/mailq
@exec ln -fs %D/sbin/mailwrapper /usr/bin/newaliases
@exec ln -fs %D/sbin/mailwrapper /usr/sbin/sendmail
@unexec rm /usr/bin/mailq /usr/bin/newaliases /usr/sbin/sendmail
@unexec mv /usr/libexec/sendmail/sendmail /usr/sbin/sendmail
@unexec ln /usr/sbin/sendmail /usr/bin/mailq
@unexec ln /usr/sbin/sendmail /usr/bin/newaliases
@unexec rmdir /usr/libexec/sendmail