Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2020 00:31:39 +0000 (UTC)
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
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
Message-ID:  <202005300031.04U0VdZZ085789@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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 <infiniband/verbs.h>
+ #include <rdma/rdma_cma.h>
+-#include <rdma/rdma_verbs.h>],
++#include <rdma/rdma_verbs.h>
++#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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005300031.04U0VdZZ085789>