--- ./net/libiscsi/distinfo.ORIG 2017-02-25 16:20:19.577422000 +0100 +++ ./net/libiscsi/distinfo 2020-04-30 18:40:00.871565000 +0200 @@ -0,0 +1,3 @@ +TIMESTAMP = 1588264800 +SHA256 (sahlberg-libiscsi-1.19.0_GH0.tar.gz) = c7848ac722c8361d5064654bc6e926c2be61ef11dd3875020a63931836d806df +SIZE (sahlberg-libiscsi-1.19.0_GH0.tar.gz) = 284969 --- ./net/libiscsi/files/XXXpatch-configure.ac.ORIG 2018-12-22 19:16:33.860935000 +0100 +++ ./net/libiscsi/files/patch-configure.ac 2018-12-22 19:16:27.903619000 +0100 @@ -0,0 +1,12 @@ +--- ./configure.ac.ORIG 2016-10-09 20:54:23.000000000 +0200 ++++ ./configure.ac 2018-12-22 19:15:36.197493000 +0100 +@@ -103,7 +103,8 @@ + AC_TRY_COMPILE([ + #include + #include +-#include ], ++#include ++#error not on FreeBSD], + [int ibv = IBV_WC_SEND;], + libiscsi_cv_HAVE_LINUX_ISER=yes,libiscsi_cv_HAVE_LINUX_ISER=no)]) + if test x"$libiscsi_cv_HAVE_LINUX_ISER" = x"yes"; then --- ./net/libiscsi/files/XXXpatch-lib-login.c.ORIG 2020-05-27 22:10:29.893882000 +0200 +++ ./net/libiscsi/files/patch-lib-login.c 2020-05-27 22:10:22.813906000 +0200 @@ -0,0 +1,16 @@ +--- ./lib/login.c.ORIG 2019-07-14 00:04:44.000000000 +0200 ++++ ./lib/login.c 2020-05-27 22:09:19.439618000 +0200 +@@ -1242,11 +1242,11 @@ + + /* iSER specific keys */ + if (!strncmp(ptr, "InitiatorRecvDataSegmentLength=", 31)) { +- iscsi->initiator_max_recv_data_segment_length = MIN(strtol(ptr + 31, NULL, 10), ++ iscsi->initiator_max_recv_data_segment_length = MIN(strtoul(ptr + 31, NULL, 10), + iscsi->initiator_max_recv_data_segment_length); + } + if (!strncmp(ptr, "TargetRecvDataSegmentLength=", 28)) { +- iscsi->target_max_recv_data_segment_length = MIN(strtol(ptr + 28, NULL, 10), ++ iscsi->target_max_recv_data_segment_length = MIN(strtoul(ptr + 28, NULL, 10), + iscsi->target_max_recv_data_segment_length); + } + --- ./net/libiscsi/Makefile.ORIG 2017-02-25 16:20:19.581827000 +0100 +++ ./net/libiscsi/Makefile 2020-05-27 22:14:56.753059000 +0200 @@ -0,0 +1,26 @@ +# Created by: M. Birgmeier +# $FreeBSD$ + +PORTNAME= libiscsi +DISTVERSION= 1.19.0 +CATEGORIES= net + +MAINTAINER= d8zNeCFG@aon.at +COMMENT= Client-side library to implement the iSCSI protocol + +LICENSE_COMB= multi +LICENSE= LGPL21+ GPLv2+ +LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENCE-LGPL-2.1.txt +LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENCE-GPL-2.txt + +USE_GITHUB= yes +GH_ACCOUNT= sahlberg + +USES= autoreconf:build libtool:build pathfix + +GNU_CONFIGURE= yes + +pre-configure: + @(cd ${WRKSRC} && ./autogen.sh) + +.include --- ./net/libiscsi/pkg-descr.ORIG 2017-02-25 16:20:19.586191000 +0100 +++ ./net/libiscsi/pkg-descr 2017-02-25 11:16:06.214226000 +0100 @@ -0,0 +1,8 @@ +Libiscsi is a client-side library to implement the iSCSI protocol +that can be used to access the resources of an iSCSI target. + +The library is fully asynchronous with regards to iSCSI commands +and SCSI tasks, but a synchronous layer is also provided for ease +of use for simpler applications. + +https://github.com/sahlberg/libiscsi --- ./net/libiscsi/pkg-plist.ORIG 2017-02-25 16:20:19.590576000 +0100 +++ ./net/libiscsi/pkg-plist 2020-05-01 08:55:44.339052000 +0200 @@ -0,0 +1,16 @@ +bin/iscsi-inq +bin/iscsi-ls +bin/iscsi-perf +bin/iscsi-readcapacity16 +bin/iscsi-swp +include/iscsi/iscsi.h +include/iscsi/scsi-lowlevel.h +lib/libiscsi.a +lib/libiscsi.so +lib/libiscsi.so.9 +lib/libiscsi.so.9.0.0 +libdata/pkgconfig/libiscsi.pc +man/man1/iscsi-inq.1.gz +man/man1/iscsi-ls.1.gz +man/man1/iscsi-swp.1.gz +man/man1/iscsi-test-cu.1.gz