summaryrefslogtreecommitdiff
path: root/mail/ssmtp
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-06-19 20:39:09 +0000
committerjlam <jlam@pkgsrc.org>2003-06-19 20:39:09 +0000
commit37b114ba72018b6668b2056423b838b8b7430ea0 (patch)
tree2a6a7b050bc17185255402a6f119002ed8c0adab /mail/ssmtp
parent2383f8e3be8af3aeb3d1ee420d2ae968d84c288a (diff)
downloadpkgsrc-37b114ba72018b6668b2056423b838b8b7430ea0.tar.gz
Initial import of mail/ssmtp, an extremely simple MTA that forwards mail
to a mail hub. Originally from pkgsrc-wip; created by Toru TAKAMIZU <pkg at pop dot 707 dot to>. A secure, effective and simple way of getting mail off a system to your mail hub. It contains no suid-binaries or other dangerous things - no mail spool to poke around in, and no daemons running in the background. Mail is simply forwarded to the configured mailhost. Extremely easy configuration. WARNING: the above is all it does; it does not receive mail, expand aliases or manage a queue. That belongs on a mail hub with a system administrator. This program is especially recommended for mutt users who send emails via ISP's smtp server.
Diffstat (limited to 'mail/ssmtp')
-rw-r--r--mail/ssmtp/DESCR10
-rw-r--r--mail/ssmtp/MESSAGE10
-rw-r--r--mail/ssmtp/Makefile55
-rw-r--r--mail/ssmtp/PLIST6
-rw-r--r--mail/ssmtp/distinfo9
-rw-r--r--mail/ssmtp/patches/patch-aa13
-rw-r--r--mail/ssmtp/patches/patch-ab12
-rw-r--r--mail/ssmtp/patches/patch-ac15
-rw-r--r--mail/ssmtp/patches/patch-ad13
-rw-r--r--mail/ssmtp/patches/patch-ae17
10 files changed, 160 insertions, 0 deletions
diff --git a/mail/ssmtp/DESCR b/mail/ssmtp/DESCR
new file mode 100644
index 00000000000..5ec5e45f1e2
--- /dev/null
+++ b/mail/ssmtp/DESCR
@@ -0,0 +1,10 @@
+A secure, effective and simple way of getting mail off a system to your
+mail hub. It contains no suid-binaries or other dangerous things - no mail
+spool to poke around in, and no daemons running in the background. Mail is
+simply forwarded to the configured mailhost. Extremely easy configuration.
+
+WARNING: the above is all it does; it does not receive mail, expand aliases
+or manage a queue. That belongs on a mail hub with a system administrator.
+
+This program is especially recommended for mutt users who send emails via
+ISP's smtp server.
diff --git a/mail/ssmtp/MESSAGE b/mail/ssmtp/MESSAGE
new file mode 100644
index 00000000000..df28550d511
--- /dev/null
+++ b/mail/ssmtp/MESSAGE
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2003/06/19 20:39:10 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.
+===========================================================================
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile
new file mode 100644
index 00000000000..3d805cb14ba
--- /dev/null
+++ b/mail/ssmtp/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/19 20:39:10 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,
+# and preferably info about your system.
+#
+# pkg@pop.707.to
+# Toru TAKAMIZU
+
+DISTNAME= ssmtp_2.60.3
+PKGNAME= ssmtp-2.60.3
+WRKSRC= ${WRKDIR}/${PKGBASE}-${PKGVERSION:C/([0-9]+.[0-9]+)(.[0-9]+)$/\1/}
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/s/ssmtp/}
+
+MAINTAINER= pkg@pop.707.to
+HOMEPAGE= http://packages.debian.org/testing/mail/ssmtp.html
+COMMENT= Extremely simple MTA to forward mail to a mail hub
+
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS+= --enable-ssl --enable-inet6
+
+PKG_SYSCONFSUBDIR= ${PKGBASE}
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+CONF_FILES= ${EGDIR}/ssmtp.conf ${PKG_SYSCONFDIR}/ssmtp.conf
+CONF_FILES+= ${EGDIR}/revaliases ${PKG_SYSCONFDIR}/revaliases
+
+post-extract:
+ ${RM} -rf ${WRKSRC}/RCS
+
+post-patch:
+ for f in ${WRKSRC}/ssmtp.c ${WRKSRC}/ssmtp.conf ; do \
+ ${MV} -f $$f $$f.orig ; \
+ ${SED} "s,/etc/ssl/certs/,${PKG_SYSCONFDIR}/,g" \
+ $${f}.orig > $${f} ; \
+ ${RM} -f $$f.orig ; \
+ done
+ for f in ${WRKSRC}/ssmtp.8 ; do \
+ ${MV} -f $$f $$f.orig ; \
+ ${SED} "s,/etc/ssmtp/,${PKG_SYSCONFDIR}/,g" \
+ $$f.orig > $$f ; \
+ ${RM} -f $$f.orig ; \
+ done
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/revaliases ${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
new file mode 100644
index 00000000000..5981d24b589
--- /dev/null
+++ b/mail/ssmtp/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+man/man8/ssmtp.8
+sbin/ssmtp
+share/examples/ssmtp/revaliases
+share/examples/ssmtp/ssmtp.conf
+@dirrm share/examples/ssmtp
diff --git a/mail/ssmtp/distinfo b/mail/ssmtp/distinfo
new file mode 100644
index 00000000000..b00702c76cb
--- /dev/null
+++ b/mail/ssmtp/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+
+SHA1 (ssmtp_2.60.3.tar.gz) = 09aad88a61f3ee014b52e0daa3e8749d612ceaef
+Size (ssmtp_2.60.3.tar.gz) = 159289 bytes
+SHA1 (patch-aa) = 73681fd5585fe520fb9620e2f8358c41ad42cfd8
+SHA1 (patch-ab) = 76b2669443ff3ac488c18f3c7877cf621f7b3708
+SHA1 (patch-ac) = 1eaf754bffa3c1612ebde8cd58810d3ae1ee6ce4
+SHA1 (patch-ad) = 92c666b84e8fa20103103f6d24f887a587d57a4c
+SHA1 (patch-ae) = ef626358229731e6afff2e194928780e5fc908a3
diff --git a/mail/ssmtp/patches/patch-aa b/mail/ssmtp/patches/patch-aa
new file mode 100644
index 00000000000..45d156b4da5
--- /dev/null
+++ b/mail/ssmtp/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+
+--- arpadate.c.orig Sun Dec 8 18:30:13 2002
++++ arpadate.c Mon Apr 7 01:17:58 2003
+@@ -79,7 +79,7 @@
+ time_t now;
+
+ /* RFC822 format string borrowed from GNU shellutils date.c */
+- const char *format = "%a, %_d %b %Y %H:%M:%S %z";
++ const char *format = "%a, %e %b %Y %H:%M:%S %z";
+
+ now = time(NULL);
+
diff --git a/mail/ssmtp/patches/patch-ab b/mail/ssmtp/patches/patch-ab
new file mode 100644
index 00000000000..4cfec55cc05
--- /dev/null
+++ b/mail/ssmtp/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+
+--- ssmtp.c.orig Sun Dec 8 18:26:20 2002
++++ ssmtp.c Mon Apr 7 01:24:52 2003
+@@ -14,6 +14,7 @@
+ */
+ #define VERSION "2.60.1"
+
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <sys/param.h>
diff --git a/mail/ssmtp/patches/patch-ac b/mail/ssmtp/patches/patch-ac
new file mode 100644
index 00000000000..da1d2d4ecd0
--- /dev/null
+++ b/mail/ssmtp/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+
+--- Makefile.in.orig Thu Jun 5 17:57:07 2003
++++ Makefile.in Thu Jun 5 17:59:27 2003
+@@ -50,8 +50,8 @@
+ $(INSTALL) -d -m 755 $(mandir)
+ $(INSTALL) -m 644 $(srcdir)/ssmtp.8 $(mandir)/ssmtp.8
+ $(INSTALL) -d -m 755 $(SSMTPCONFDIR)
+- $(INSTALL) -m 644 $(srcdir)/revaliases $(INSTALLED_REVALIASES_FILE)
+- $(GEN_CONFIG) $(INSTALLED_CONFIGURATION_FILE)
++# $(INSTALL) -m 644 $(srcdir)/revaliases $(INSTALLED_REVALIASES_FILE)
++# $(GEN_CONFIG) $(INSTALLED_CONFIGURATION_FILE)
+
+
+ .PHONY: install-sendmail
diff --git a/mail/ssmtp/patches/patch-ad b/mail/ssmtp/patches/patch-ad
new file mode 100644
index 00000000000..9993ae1102b
--- /dev/null
+++ b/mail/ssmtp/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+
+--- configure.orig Fri Sep 27 14:47:52 2002
++++ configure Mon Apr 7 01:03:46 2003
+@@ -1340,7 +1340,7 @@
+ #define HAVE_SSL 1
+ EOF
+
+- LIBS="$LIBS -lssl"
++ LIBS="$LIBS -lssl -lcrypto"
+ fi
+ enableval=""
+
diff --git a/mail/ssmtp/patches/patch-ae b/mail/ssmtp/patches/patch-ae
new file mode 100644
index 00000000000..71b1222d8c2
--- /dev/null
+++ b/mail/ssmtp/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/06/19 20:39:10 jlam Exp $
+
+--- ssmtp.8.orig Fri Sep 27 05:48:59 2002
++++ ssmtp.8 Thu Jun 19 13:12:40 2003
+@@ -1,11 +1,8 @@
+ .TH SSMTP 8 "Last change: 5 February 2000"
+ .SH NAME
+-ssmtp, sendmail \- send a message using smtp
++ssmtp \- send a message using smtp
+ .SH SYNOPSIS
+ .B ssmtp
+-.RI "[ " flags " ] [ " address " " ... " ]"
+-.br
+-.B /usr/lib/sendmail
+ .RI "[ " flags " ] [ " address " " ... " ]"
+ .br
+ .SH DESCRIPTION