diff options
author | tron <tron@pkgsrc.org> | 1999-04-12 21:19:32 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-04-12 21:19:32 +0000 |
commit | 24f39bf15c7f9fc0eea940019415ed26537fe3ed (patch) | |
tree | bdece1b5cb0af36014c41eccdb55bcd80a86c828 /mail/mailwrapper | |
parent | 72ae85fcb412c297e1135f34676a29fe1e6e2786 (diff) | |
download | pkgsrc-24f39bf15c7f9fc0eea940019415ed26537fe3ed.tar.gz |
New "mailwrapper" package inspired by PR pkg/7158 by Greg A. Woods:
NetBSD 1.4's wrapper to support arbitrary Mail Transport Agents
Diffstat (limited to 'mail/mailwrapper')
-rw-r--r-- | mail/mailwrapper/Makefile | 34 | ||||
-rw-r--r-- | mail/mailwrapper/files/md5 | 3 | ||||
-rw-r--r-- | mail/mailwrapper/pkg/COMMENT | 1 | ||||
-rw-r--r-- | mail/mailwrapper/pkg/DESCR | 13 | ||||
-rw-r--r-- | mail/mailwrapper/pkg/PLIST | 18 |
5 files changed, 69 insertions, 0 deletions
diff --git a/mail/mailwrapper/Makefile b/mail/mailwrapper/Makefile new file mode 100644 index 00000000000..dbdac757b8b --- /dev/null +++ b/mail/mailwrapper/Makefile @@ -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" diff --git a/mail/mailwrapper/files/md5 b/mail/mailwrapper/files/md5 new file mode 100644 index 00000000000..78001e3efac --- /dev/null +++ b/mail/mailwrapper/files/md5 @@ -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 diff --git a/mail/mailwrapper/pkg/COMMENT b/mail/mailwrapper/pkg/COMMENT new file mode 100644 index 00000000000..b381b0f644f --- /dev/null +++ b/mail/mailwrapper/pkg/COMMENT @@ -0,0 +1 @@ +NetBSD 1.4's wrapper to support arbitrary Mail Transport Agents diff --git a/mail/mailwrapper/pkg/DESCR b/mail/mailwrapper/pkg/DESCR new file mode 100644 index 00000000000..04260bdddab --- /dev/null +++ b/mail/mailwrapper/pkg/DESCR @@ -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. diff --git a/mail/mailwrapper/pkg/PLIST b/mail/mailwrapper/pkg/PLIST new file mode 100644 index 00000000000..35b5f969259 --- /dev/null +++ b/mail/mailwrapper/pkg/PLIST @@ -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 |