import ports/net/p5-Net-SMTP-TLS-ButMaintained, ok jasper@

Net::SMTP::TLS::ButMaintained is a TLS and AUTH capable SMTP client
which offers an interface that users will find familiar from Net::SMTP.

Net::SMTP::TLS::ButMaintained implements a subset of the methods
provided by that module, but certainly not (yet) a complete mirror
image of that API.

It is forked from the no-longer-maintained Net::SMTP::TLS.
This commit is contained in:
sthen 2012-07-03 11:48:50 +00:00
parent af2006d42f
commit 9513d66c4a
5 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/07/03 11:48:50 sthen Exp $
COMMENT= Perl module for SMTP with TLS/AUTH support
MODULES= cpan
DISTNAME= Net-SMTP-TLS-ButMaintained-0.19
CATEGORIES= net mail
# perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= security/p5-Digest-HMAC \
security/p5-Net_SSLeay \
security/p5-IO-Socket-SSL>=1.75
# For a live test, edit t/config.txt with SMTP server parameters.
MAKE_ENV= TEST_TLS=1
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (Net-SMTP-TLS-ButMaintained-0.19.tar.gz) = NU72AFK/3lsR67QaaiPvkQ==
RMD160 (Net-SMTP-TLS-ButMaintained-0.19.tar.gz) = I3waT/Gao+TaTO+JfJC3fU48nVE=
SHA1 (Net-SMTP-TLS-ButMaintained-0.19.tar.gz) = GX2LytouXsB3JTFlTOJtMASCVVY=
SHA256 (Net-SMTP-TLS-ButMaintained-0.19.tar.gz) = mI/N4VmZL36/lqKaS2znlj3c4VYWUwZuipH3ztL9f4E=
SIZE (Net-SMTP-TLS-ButMaintained-0.19.tar.gz) = 16052

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-lib_Net_SMTP_TLS_ButMaintained_pm,v 1.1.1.1 2012/07/03 11:48:50 sthen Exp $
--- lib/Net/SMTP/TLS/ButMaintained.pm.orig Tue Jul 3 09:53:26 2012
+++ lib/Net/SMTP/TLS/ButMaintained.pm Tue Jul 3 09:54:39 2012
@@ -110,10 +110,7 @@ sub starttls {
if ( not $num == 220 ) {
croak "Invalid response for STARTTLS: $num $txt\n";
}
- if (
- not IO::Socket::SSL::socket_to_SSL( $me->{sock},
- SSL_version => "TLSv1" ) )
- {
+ if ( not IO::Socket::SSL::start_SSL( $me->{sock} )) {
croak "Couldn't start TLS: " . IO::Socket::SSL::errstr . "\n";
}
$me->hello();

View File

@ -0,0 +1,8 @@
Net::SMTP::TLS::ButMaintained is a TLS and AUTH capable SMTP client
which offers an interface that users will find familiar from Net::SMTP.
Net::SMTP::TLS::ButMaintained implements a subset of the methods
provided by that module, but certainly not (yet) a complete mirror
image of that API.
It is forked from the no-longer-maintained Net::SMTP::TLS.

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/07/03 11:48:50 sthen Exp $
${P5SITE}/Net/
${P5SITE}/Net/SMTP/
${P5SITE}/Net/SMTP/TLS/
${P5SITE}/Net/SMTP/TLS/ButMaintained.pm
@man man/man3p/Net::SMTP::TLS::ButMaintained.3p