summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-06-19 22:01:46 +0000
committerjlam <jlam@pkgsrc.org>2003-06-19 22:01:46 +0000
commiteb217efc27e076681eaf57c6a8e87f67c97fd214 (patch)
treed0cbb1aff4cc2bed09f899ed921a3bf0176b866b
parenteadec76813a2b4d11fdc4248740a0c9b8b939804 (diff)
downloadpkgsrc-eb217efc27e076681eaf57c6a8e87f67c97fd214.tar.gz
Add an example mailer.conf file to show how ssmtp can be used in place of
the system sendmail via mailwrapper. Suggested by Julio Merino (thanks!).
-rw-r--r--mail/ssmtp/MESSAGE9
-rw-r--r--mail/ssmtp/Makefile10
-rw-r--r--mail/ssmtp/PLIST3
-rw-r--r--mail/ssmtp/files/mailer.conf6
4 files changed, 23 insertions, 5 deletions
diff --git a/mail/ssmtp/MESSAGE b/mail/ssmtp/MESSAGE
index df28550d511..d1431776e52 100644
--- a/mail/ssmtp/MESSAGE
+++ b/mail/ssmtp/MESSAGE
@@ -1,10 +1,15 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+$NetBSD: MESSAGE,v 1.2 2003/06/19 22:01:46 jlam Exp $
*BEFORE* using the program, you will need to edit the following files:
${PKG_SYSCONFDIR}/ssmtp.conf
${PKG_SYSCONFDIR}/revaliases
-especially the variables `mailhub' and `hostname' in ssmtp.conf.
+especially the variables `mailhub' and `hostname' in ssmtp.conf. You may
+optionally install:
+
+ ${PREFIX}/share/examples/ssmtp/mailer.conf
+
+as /etc/mailer.conf to use ssmtp in place of the system sendmail.
===========================================================================
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile
index 3d805cb14ba..59014033420 100644
--- a/mail/ssmtp/Makefile
+++ b/mail/ssmtp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2003/06/19 22:01:46 jlam Exp $
# FreeBSD Id: ports/mail/ssmtp/Makefile,v 1.10 2003/04/14 08:41:04 leeym Exp
#
# TLS functionality needs testing. Please let me know the result,
@@ -18,6 +18,8 @@ HOMEPAGE= http://packages.debian.org/testing/mail/ssmtp.html
COMMENT= Extremely simple MTA to forward mail to a mail hub
USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+
USE_GMAKE= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-ssl --enable-inet6
@@ -45,11 +47,15 @@ post-patch:
${RM} -f $$f.orig ; \
done
+post-build:
+ ${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf \
+ > ${WRKDIR}/mailer.conf
+
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/revaliases ${EGDIR}
+ ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EGDIR}
.include "../../security/openssl/buildlink2.mk"
-.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mail/ssmtp/PLIST b/mail/ssmtp/PLIST
index 5981d24b589..716887c7ec4 100644
--- a/mail/ssmtp/PLIST
+++ b/mail/ssmtp/PLIST
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+@comment $NetBSD: PLIST,v 1.2 2003/06/19 22:01:47 jlam Exp $
man/man8/ssmtp.8
sbin/ssmtp
+share/examples/ssmtp/mailer.conf
share/examples/ssmtp/revaliases
share/examples/ssmtp/ssmtp.conf
@dirrm share/examples/ssmtp
diff --git a/mail/ssmtp/files/mailer.conf b/mail/ssmtp/files/mailer.conf
new file mode 100644
index 00000000000..2afd462e9a2
--- /dev/null
+++ b/mail/ssmtp/files/mailer.conf
@@ -0,0 +1,6 @@
+# $NetBSD: mailer.conf,v 1.1 2003/06/19 22:01:47 jlam Exp $
+#
+# Use "ssmtp" as a replacement for "sendmail".
+#
+sendmail @PREFIX@/sbin/ssmtp
+send-mail @PREFIX@/sbin/ssmtp