On 2023/06/07 12:47, Allan Streib wrote: > On Wed, Jun 7, 2023, at 12:37, Vlad Meșco wrote: > > > You can do what I did: grab the ports tree, update net/curl/Makefile to > > configure --with-libssh (and add libssh as a dependency), make package > > and make install. > > Yes, that's fine, I can do that. I guess I assumed there might be some > other (breaking) reason that it was disabled. Thanks!
I don't recommend that. It affects the library too, which is used by many programs in ports. There are other ways to do this, including lftp: $ yes | head -500 | lftp sftp://hostname -e 'put /dev/stdin -o /tmp/file' and rclone (which works with a wide variety of object storage methods, not just sftp): $ rclone config <...go through the interactive "add host config" setup...> $ cat .config/rclone/rclone.conf [somehost] type = sftp host = somehost $ yes | head -500 | rclone rcat somehost:/tmp/rcattest It would be helpful if there was something to do this natively in openssh; it's very handy for streaming backups to a remote sftp-only account without using an intermediate file. It can only work with the SFTP protocol (not SCP which requires knowing the file size in advance). If you have some other requirement that needs a special build of curl, consider installing the curl binary+library in a different dir. You'll need to set LD_LIBRARY_PATH so that it can find the special version of the library. In theory you could use a curl binary that statically links to the curl library, but building that on OpenBSD seems problematic. (I once tried to write a "curl-jumbo" port doing this, but gave up and found a different method to do what I needed).