I'm proposing here an update for Net::SSH2.
What's new upstream (partial, see [1]): - Fix the build with newer Perl version, and many other fixes - Constants generation code has been rewritten - Allow sending files larger than 4GB - Backward incompatible change: "READLINE" had an undocumented hard coded timeout of 250ms which made the method unreliable. That timeout has been removed. What's new in the port: - It's now needed to specify include and lib directories for building. Ironically, it's due to a change in 0.59_01 that helps finding libssh2. Testing: - 'make test' passes on amd64 and macppc - There are no consumers. Comments and feedback are welcome! Charlène. [1] https://metacpan.org/changes/release/SALVA/Net-SSH2-0.69 Index: Makefile =================================================================== RCS file: /cvs/ports/net/p5-Net-SSH2/Makefile,v retrieving revision 1.20 diff -u -p -u -p -r1.20 Makefile --- Makefile 20 Mar 2016 19:56:55 -0000 1.20 +++ Makefile 19 Jan 2019 14:50:07 -0000 @@ -2,7 +2,7 @@ COMMENT = support for the SSH 2 protocol via libssh2 -DISTNAME = Net-SSH2-0.58 +DISTNAME = Net-SSH2-0.69 CATEGORIES = net MODULES = cpan @@ -12,5 +12,8 @@ PERMIT_PACKAGE_CDROM = Yes WANTLIB += c crypto perl ssl z ssh2 LIB_DEPENDS = security/libssh2 + +# Needed to find libssh2 +CONFIGURE_ARGS += lib=${LOCALBASE}/lib inc=${LOCALBASE}/include .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/net/p5-Net-SSH2/distinfo,v retrieving revision 1.7 diff -u -p -u -p -r1.7 distinfo --- distinfo 23 Dec 2015 11:08:56 -0000 1.7 +++ distinfo 19 Jan 2019 14:50:07 -0000 @@ -1,2 +1,2 @@ -SHA256 (Net-SSH2-0.58.tar.gz) = HR9fTN8mfe0MsXrObe8iBPGJH8EnTiSOczLc1I9qGJ4= -SIZE (Net-SSH2-0.58.tar.gz) = 124853 +SHA256 (Net-SSH2-0.69.tar.gz) = L8heFDS4pudxQthePOpaCBynHaXQLEISuZcNOjkkuqY= +SIZE (Net-SSH2-0.69.tar.gz) = 140601 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/net/p5-Net-SSH2/pkg/PLIST,v retrieving revision 1.4 diff -u -p -u -p -r1.4 PLIST --- pkg/PLIST 28 Sep 2015 09:28:42 -0000 1.4 +++ pkg/PLIST 19 Jan 2019 14:50:07 -0000 @@ -4,6 +4,7 @@ ${P5ARCH}/Net/ ${P5ARCH}/Net/SSH2/ ${P5ARCH}/Net/SSH2.pm ${P5ARCH}/Net/SSH2/Channel.pm +${P5ARCH}/Net/SSH2/Constants.pm ${P5ARCH}/Net/SSH2/Dir.pm ${P5ARCH}/Net/SSH2/File.pm ${P5ARCH}/Net/SSH2/KnownHosts.pm @@ -14,7 +15,6 @@ ${P5ARCH}/auto/ ${P5ARCH}/auto/Net/ ${P5ARCH}/auto/Net/SSH2/ ${P5ARCH}/auto/Net/SSH2/SSH2.so -${P5ARCH}/auto/Net/SSH2/autosplit.ix @man man/man3p/Net::SSH2.3p @man man/man3p/Net::SSH2::Channel.3p @man man/man3p/Net::SSH2::Dir.3p