mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
[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
This commit is contained in:
parent
dfae25e5d9
commit
d00b3ccfa3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=537021
@ -361,6 +361,7 @@
|
||||
SUBDIR += libgrss
|
||||
SUBDIR += libgweather
|
||||
SUBDIR += libilbc
|
||||
SUBDIR += libiscsi
|
||||
SUBDIR += libjson-rpc-cpp
|
||||
SUBDIR += libkgapi
|
||||
SUBDIR += libksieve
|
||||
|
24
net/libiscsi/Makefile
Normal file
24
net/libiscsi/Makefile
Normal file
@ -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>
|
3
net/libiscsi/distinfo
Normal file
3
net/libiscsi/distinfo
Normal file
@ -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
|
12
net/libiscsi/files/patch-configure.ac
Normal file
12
net/libiscsi/files/patch-configure.ac
Normal file
@ -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
|
16
net/libiscsi/files/patch-lib_login.c
Normal file
16
net/libiscsi/files/patch-lib_login.c
Normal file
@ -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);
|
||||
}
|
||||
|
8
net/libiscsi/pkg-descr
Normal file
8
net/libiscsi/pkg-descr
Normal file
@ -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
|
16
net/libiscsi/pkg-plist
Normal file
16
net/libiscsi/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user