diff options
author | scheidell <scheidell@FreeBSD.org> | 2012-06-17 07:00:12 +0800 |
---|---|---|
committer | scheidell <scheidell@FreeBSD.org> | 2012-06-17 07:00:12 +0800 |
commit | cc4599da745d75597f6a9a4a0cd128e5a346f956 (patch) | |
tree | 9f9c27fc6342f1e35bf508a0463fba9b892d0bc6 | |
parent | 70473c4f1a67e29908c4fcf445f1a20d885f49da (diff) | |
download | freebsd-ports-gnome-cc4599da745d75597f6a9a4a0cd128e5a346f956.tar.gz freebsd-ports-gnome-cc4599da745d75597f6a9a4a0cd128e5a346f956.tar.zst freebsd-ports-gnome-cc4599da745d75597f6a9a4a0cd128e5a346f956.zip |
- Fix for IO-Socket-SSL > 1.70 (upstream needs to be fixed also)
- Make p5-IO-Socket-INET6 optional (Honor WITHOUT_IPV6)
PR: ports/168381
Reported by: Imil <charlz_klug@mail.ru>
Submitted by: scheidell@ (me)
Approved by: Frank Wall <fw@moov.de> (maintainer)
-rw-r--r-- | mail/smtp-cli/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mail/smtp-cli/Makefile b/mail/smtp-cli/Makefile index 1e8cb5d9f70e..e97eddf1093c 100644 --- a/mail/smtp-cli/Makefile +++ b/mail/smtp-cli/Makefile @@ -7,6 +7,7 @@ PORTNAME= smtp PORTVERSION= 3.0 +PORTREVISION= 1 CATEGORIES= mail perl5 MASTER_SITES= http://www.logix.cz/michal/devel/smtp-cli/ PKGNAMESUFFIX= -cli @@ -18,22 +19,28 @@ COMMENT= A powerful SMTP command line client RUN_DEPENDS= p5-Digest-HMAC>0:${PORTSDIR}/security/p5-Digest-HMAC \ p5-File-Type>0:${PORTSDIR}/devel/p5-File-Type \ - p5-IO-Socket-INET6>0:${PORTSDIR}/net/p5-IO-Socket-INET6 \ p5-IO-Socket-SSL>0:${PORTSDIR}/security/p5-IO-Socket-SSL \ p5-MIME-Lite>0:${PORTSDIR}/mail/p5-MIME-Lite \ p5-Term-ReadKey>0:${PORTSDIR}/devel/p5-Term-ReadKey +.if !defined(WITHOUT_IPV6) +RUN_DEPENDS+= p5-IO-Socket-INET6>0:${PORTSDIR}/net/p5-IO-Socket-INET6 +# won't be needed if p5-IO-Socket-SSL > 1.74_1 +.endif + NO_BUILD= yes WRKSRC= ${WRKDIR} PLIST_FILES= bin/smtp-cli do-extract: - ${MKDIR} ${WRKSRC}/ - ${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}/${DISTNAME} + @${MKDIR} ${WRKSRC}/ + @${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}/${DISTNAME} post-patch: @${REINPLACE_CMD} -e '1 s|#!/usr/bin/perl|#!${PERL}|' ${WRKSRC}/${DISTNAME} +# pr ports/168381, io-socket-ssl > 1.70 rejects 'SSLv3 TLSv1' param. + @${REINPLACE_CMD} -e '/SSL_version/s|SSLv3 TLSv1|SSLv23:!SSLv2|' ${WRKSRC}/${DISTNAME} do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin/ |