From owner-svn-ports-all@freebsd.org Sat May 30 00:31:41 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 17C3D2F5629; Sat, 30 May 2020 00:31:41 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Yj6h6xDNz3TQk; Sat, 30 May 2020 00:31:40 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CF531200EC; Sat, 30 May 2020 00:31:40 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 04U0Vehb085797; Sat, 30 May 2020 00:31:40 GMT (envelope-from bofh@FreeBSD.org) Received: (from bofh@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 04U0VdZZ085789; Sat, 30 May 2020 00:31:39 GMT (envelope-from bofh@FreeBSD.org) Message-Id: <202005300031.04U0VdZZ085789@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bofh set sender to bofh@FreeBSD.org using -f From: Muhammad Moinur Rahman Date: Sat, 30 May 2020 00:31:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r537021 - in head/net: . libiscsi libiscsi/files X-SVN-Group: ports-head X-SVN-Commit-Author: bofh X-SVN-Commit-Paths: in head/net: . libiscsi libiscsi/files X-SVN-Commit-Revision: 537021 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 00:31:41 -0000 Author: bofh Date: Sat May 30 00:31:39 2020 New Revision: 537021 URL: https://svnweb.freebsd.org/changeset/ports/537021 Log: [NEW] net/libiscsi: Client-side library to implement the iSCSI protocol 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. WWW: https://github.com/sahlberg/libiscsi PR: 217355 Submitted by: d8zNeCFG@aon.at Added: head/net/libiscsi/ head/net/libiscsi/Makefile (contents, props changed) head/net/libiscsi/distinfo (contents, props changed) head/net/libiscsi/files/ head/net/libiscsi/files/patch-configure.ac (contents, props changed) head/net/libiscsi/files/patch-lib_login.c (contents, props changed) head/net/libiscsi/pkg-descr (contents, props changed) head/net/libiscsi/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sat May 30 00:30:39 2020 (r537020) +++ head/net/Makefile Sat May 30 00:31:39 2020 (r537021) @@ -361,6 +361,7 @@ SUBDIR += libgrss SUBDIR += libgweather SUBDIR += libilbc + SUBDIR += libiscsi SUBDIR += libjson-rpc-cpp SUBDIR += libkgapi SUBDIR += libksieve Added: head/net/libiscsi/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libiscsi/Makefile Sat May 30 00:31:39 2020 (r537021) @@ -0,0 +1,24 @@ +# 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= LGPL21+ GPLv2+ +LICENSE_COMB= multi +LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENCE-LGPL-2.1.txt +LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENCE-GPL-2.txt + +USES= autoreconf libtool pathfix +USE_GITHUB= yes +USE_LDCONFIG= yes + +GH_ACCOUNT= sahlberg + +GNU_CONFIGURE= yes + +.include Added: head/net/libiscsi/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libiscsi/distinfo Sat May 30 00:31:39 2020 (r537021) @@ -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 Added: head/net/libiscsi/files/patch-configure.ac ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libiscsi/files/patch-configure.ac Sat May 30 00:31:39 2020 (r537021) @@ -0,0 +1,12 @@ +--- configure.ac.orig 2019-07-13 22:04:44 UTC ++++ configure.ac +@@ -144,7 +144,8 @@ AC_CACHE_CHECK([for iSER support],libiscsi_cv_HAVE_LIN + 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 Added: head/net/libiscsi/files/patch-lib_login.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libiscsi/files/patch-lib_login.c Sat May 30 00:31:39 2020 (r537021) @@ -0,0 +1,16 @@ +--- lib/login.c.orig 2019-07-13 22:04:44 UTC ++++ lib/login.c +@@ -1242,11 +1242,11 @@ iscsi_process_login_reply(struct iscsi_context *iscsi, + + /* 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); + } + Added: head/net/libiscsi/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libiscsi/pkg-descr Sat May 30 00:31:39 2020 (r537021) @@ -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. + +WWW: https://github.com/sahlberg/libiscsi Added: head/net/libiscsi/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libiscsi/pkg-plist Sat May 30 00:31:39 2020 (r537021) @@ -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