summaryrefslogtreecommitdiff
path: root/mail/swaks
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2017-01-08 20:35:55 +0000
committerschmonz <schmonz@pkgsrc.org>2017-01-08 20:35:55 +0000
commit2cc89b5db1a917d8b3c9ee37db0c5db91220e5a7 (patch)
tree3911b438a638c24d5b722024c6bf3be0c874a68a /mail/swaks
parentb7ce8098df072048b6752a482183af5a79c76924 (diff)
downloadpkgsrc-2cc89b5db1a917d8b3c9ee37db0c5db91220e5a7.tar.gz
Initial import of swaks.
swaks' primary design goal is to be a flexible, scriptable, transaction- oriented SMTP test tool. It handles SMTP features and extensions such as TLS, authentication, and pipelining; multiple version of the SMTP protocol including SMTP, ESMTP, and LMTP; and multiple transport methods including unix-domain sockets, internet-domain sockets, and pipes to spawned processes. Options can be specified in environment variables, configuration files, and the command line allowing maximum configurability and ease of use for operators and scripters.
Diffstat (limited to 'mail/swaks')
-rw-r--r--mail/swaks/DESCR8
-rw-r--r--mail/swaks/Makefile33
-rw-r--r--mail/swaks/PLIST2
-rw-r--r--mail/swaks/distinfo6
-rw-r--r--mail/swaks/options.mk14
5 files changed, 63 insertions, 0 deletions
diff --git a/mail/swaks/DESCR b/mail/swaks/DESCR
new file mode 100644
index 00000000000..d2fece710ad
--- /dev/null
+++ b/mail/swaks/DESCR
@@ -0,0 +1,8 @@
+swaks' primary design goal is to be a flexible, scriptable, transaction-
+oriented SMTP test tool. It handles SMTP features and extensions such as
+TLS, authentication, and pipelining; multiple version of the SMTP
+protocol including SMTP, ESMTP, and LMTP; and multiple transport methods
+including unix-domain sockets, internet-domain sockets, and pipes to
+spawned processes. Options can be specified in environment variables,
+configuration files, and the command line allowing maximum
+configurability and ease of use for operators and scripters.
diff --git a/mail/swaks/Makefile b/mail/swaks/Makefile
new file mode 100644
index 00000000000..8e085a336c3
--- /dev/null
+++ b/mail/swaks/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2017/01/08 20:35:55 schmonz Exp $
+
+DISTNAME= swaks-20170101.0
+CATEGORIES= mail
+MASTER_SITES= ${HOMEPAGE}files/
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://www.jetmore.org/john/code/swaks/
+COMMENT= Featureful, flexible, scriptable SMTP test tool
+LICENSE= gnu-gpl-v2
+
+DEPENDS+= p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64
+DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
+DEPENDS+= p5-Digest-SHA-[0-9]*:../../security/p5-Digest-SHA
+#DEPENDS+= p5-Authen-NTLM (not in pkgsrc)
+DEPENDS+= p5-Authen-SASL-[0-9]*:../../security/p5-Authen-SASL
+DEPENDS+= p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS
+DEPENDS+= p5-Time-Local-[0-9]*:../../time/p5-Time-Local
+
+USE_TOOLS+= perl:run
+USE_LANGUAGES= # none
+REPLACE_PERL= ${PKGBASE}
+
+NO_BUILD= yes
+
+INSTALLATION_DIRS= bin
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PKGBASE} ${DESTDIR}${PREFIX}/bin/${PKGBASE}
+
+.include "options.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/swaks/PLIST b/mail/swaks/PLIST
new file mode 100644
index 00000000000..63253f43caa
--- /dev/null
+++ b/mail/swaks/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2017/01/08 20:35:55 schmonz Exp $
+bin/swaks
diff --git a/mail/swaks/distinfo b/mail/swaks/distinfo
new file mode 100644
index 00000000000..fbb056eced7
--- /dev/null
+++ b/mail/swaks/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/01/08 20:35:55 schmonz Exp $
+
+SHA1 (swaks-20170101.0.tar.gz) = f535df35c96a239d1517feb2dddcd931c24b0f98
+RMD160 (swaks-20170101.0.tar.gz) = 26fe06e1704ffde7143f42cafb36c39654ae23ad
+SHA512 (swaks-20170101.0.tar.gz) = f4fa04d0fdea3c91958341107c74b9afb2df8bfb00b6a7e018c34c9ccd501092037360266bda21f38bf558efe15095d677b1397031151707bc1fe7b4d8b8478b
+Size (swaks-20170101.0.tar.gz) = 109084 bytes
diff --git a/mail/swaks/options.mk b/mail/swaks/options.mk
new file mode 100644
index 00000000000..5c2eaf1d6ec
--- /dev/null
+++ b/mail/swaks/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2017/01/08 20:35:55 schmonz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.swaks
+PKG_SUPPORTED_OPTIONS= inet6 ssl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+DEPENDS+= p5-IO-Socket-INET6-[0-9]*:../../net/p5-IO-Socket-INET6
+.endif
+
+.if !empty(PKG_OPTIONS:Mssl)
+DEPENDS+= p5-Net-SSLeay-[0-9]*:../../security/p5-Net-SSLeay
+.endif