aboutsummaryrefslogtreecommitdiff
path: root/mail/smtpclient
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-08-25 10:14:13 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-08-25 10:14:13 +0000
commit0e61002d04e343a2cf1763fb32e27bef65ce1073 (patch)
tree7e39a6c21046df1f2eb64d2efff4206f0b48c1e0 /mail/smtpclient
parent5d8b47b83f18ea3580e9cd9bd8c08963ea851e6e (diff)
downloadports-0e61002d04e343a2cf1763fb32e27bef65ce1073.tar.gz
ports-0e61002d04e343a2cf1763fb32e27bef65ce1073.zip
Notes
Diffstat (limited to 'mail/smtpclient')
-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
8 files changed, 82 insertions, 0 deletions
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