aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-08-25 18:14:13 +0800
committerkris <kris@FreeBSD.org>2001-08-25 18:14:13 +0800
commit941d45f4cdc730142a6b4ad78d3e4c7ce00f912f (patch)
tree378b21a751804af3a1a72926baf161ca701354bc /mail
parentb88f446fa32fdffb894194dca63b505ac941ac8e (diff)
downloadfreebsd-ports-gnome-941d45f4cdc730142a6b4ad78d3e4c7ce00f912f.tar.gz
freebsd-ports-gnome-941d45f4cdc730142a6b4ad78d3e4c7ce00f912f.tar.zst
freebsd-ports-gnome-941d45f4cdc730142a6b4ad78d3e4c7ce00f912f.zip
Add smtpclient-1.0.0
This program is a minimal SMTP client that takes an email message body and passes it on to a SMTP server (default is the MTA on the local host). Since it is completely self-supporting, it is especially suitable for use in restricted environments. Obtained from: OpenBSD
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/smtpclient/Makefile18
-rw-r--r--mail/smtpclient/Makefile~11
-rw-r--r--mail/smtpclient/distinfo1
-rw-r--r--mail/smtpclient/files/patch-smtpclient_errno_c11
-rw-r--r--mail/smtpclient/files/patch-smtpclient_main_c31
-rw-r--r--mail/smtpclient/pkg-comment1
-rw-r--r--mail/smtpclient/pkg-descr8
-rw-r--r--mail/smtpclient/pkg-plist1
9 files changed, 83 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index b8b70a208770..4a69b35188c9 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -179,6 +179,7 @@
SUBDIR += smail
SUBDIR += smapi
SUBDIR += smtpd
+ SUBDIR += smtpclient
SUBDIR += smtpfeed
SUBDIR += smunge
SUBDIR += solidpop3d
diff --git a/mail/smtpclient/Makefile b/mail/smtpclient/Makefile
new file mode 100644
index 000000000000..db79d36c1309
--- /dev/null
+++ b/mail/smtpclient/Makefile
@@ -0,0 +1,18 @@
+# Ports collection makefile for: smtpclient
+# Date created: 24 Aug 2001
+# Whom: Kris Kennaway <kris@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= smtpclient
+PORTVERSION= 1.0.0
+CATEGORIES= mail
+MASTER_SITES= http://www.engelschall.com/sw/smtpclient/distrib/
+
+MAINTAINER= ports@FreeBSD.org
+
+GNU_CONFIGURE= yes
+MAN1= smtpclient.1
+
+.include <bsd.port.mk>
diff --git a/mail/smtpclient/Makefile~ b/mail/smtpclient/Makefile~
new file mode 100644
index 000000000000..4d095115f256
--- /dev/null
+++ b/mail/smtpclient/Makefile~
@@ -0,0 +1,11 @@
+PORTNAME= smtpclient
+PORTVERSION= 1.0.0
+CATEGORIES= mail
+MASTER_SITES= http://www.engelschall.com/sw/smtpclient/distrib/
+
+MAINTAINER= ports@FreeBSD.org
+
+GNU_CONFIGURE= yes
+MAN1= smtpclient.1
+
+.include <bsd.port.mk>
diff --git a/mail/smtpclient/distinfo b/mail/smtpclient/distinfo
new file mode 100644
index 000000000000..7b8e676d86a1
--- /dev/null
+++ b/mail/smtpclient/distinfo
@@ -0,0 +1 @@
+MD5 (smtpclient-1.0.0.tar.gz) = 8b5d9260572107bb901edf6aacbf3747
diff --git a/mail/smtpclient/files/patch-smtpclient_errno_c b/mail/smtpclient/files/patch-smtpclient_errno_c
new file mode 100644
index 000000000000..75593f94b9eb
--- /dev/null
+++ b/mail/smtpclient/files/patch-smtpclient_errno_c
@@ -0,0 +1,11 @@
+--- smtpclient_errno.c.orig Wed Aug 1 15:09:39 2001
++++ smtpclient_errno.c Wed Aug 1 15:11:36 2001
+@@ -91,7 +91,7 @@ char *errorstr(int errnum)
+ #else
+ static char buffer[50];
+ if (errnum < 0 || errnum >= sys_nerr) {
+- sprintf(buffer, "ERR-UNKNOWN (%d)", errnum);
++ snprintf(buffer, (sizeof(buffer) - 1), "ERR-UNKNOWN (%d)", errnum);
+ return(buffer);
+ }
+ return(sys_errlist[errnum]);
diff --git a/mail/smtpclient/files/patch-smtpclient_main_c b/mail/smtpclient/files/patch-smtpclient_main_c
new file mode 100644
index 000000000000..4d2a7838895a
--- /dev/null
+++ b/mail/smtpclient/files/patch-smtpclient_main_c
@@ -0,0 +1,31 @@
+--- smtpclient_main.c.orig Wed Aug 1 15:25:22 2001
++++ smtpclient_main.c Wed Aug 1 15:33:07 2001
+@@ -86,7 +86,7 @@ void log(char *str, ...)
+ char buf[1024];
+
+ va_start(ap, str);
+- vsprintf(buf, str, ap);
++ vsnprintf(buf, 1024, str, ap);
+ if (usesyslog)
+ syslog(LOG_ERR, "SMTPclient: %s", buf);
+ else
+@@ -395,16 +395,16 @@ int main(int argc, char **argv)
+ log("%s: unknown host\n", my_name);
+ exit(1);
+ }
+- strcpy(my_name, hp->h_name);
++ strlcpy(my_name, hp->h_name, sizeof(my_name));
+
+ /*
+ * Determine from address.
+ */
+ if (from_addr == NULL) {
+ if ((pwd = getpwuid(getuid())) == 0) {
+- sprintf(buf, "userid-%d@%s", getuid(), my_name);
++ snprintf(buf, (sizeof(buf) - 1), "userid-%d@%s", getuid(), my_name);
+ } else {
+- sprintf(buf, "%s@%s", pwd->pw_name, my_name);
++ snprintf(buf, (sizeof(buf) - 1), "%s@%s", pwd->pw_name, my_name);
+ }
+ from_addr = strdup(buf);
+ }
diff --git a/mail/smtpclient/pkg-comment b/mail/smtpclient/pkg-comment
new file mode 100644
index 000000000000..ccaea253f8b7
--- /dev/null
+++ b/mail/smtpclient/pkg-comment
@@ -0,0 +1 @@
+Simple SMTP client
diff --git a/mail/smtpclient/pkg-descr b/mail/smtpclient/pkg-descr
new file mode 100644
index 000000000000..c951708d04e0
--- /dev/null
+++ b/mail/smtpclient/pkg-descr
@@ -0,0 +1,8 @@
+SMTPclient -- simple SMTP client
+
+This program is a minimal SMTP client that takes an email
+message body and passes it on to a SMTP server (default is the
+MTA on the local host). Since it is completely self-supporting,
+it is especially suitable for use in restricted environments.
+
+WWW: http://www.engelschall.com/sw/smtpclient/
diff --git a/mail/smtpclient/pkg-plist b/mail/smtpclient/pkg-plist
new file mode 100644
index 000000000000..4eaf9a85da91
--- /dev/null
+++ b/mail/smtpclient/pkg-plist
@@ -0,0 +1 @@
+bin/smtpclient