package/open-iscsi: new package

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
TIAN Yuanhao 2022-10-09 04:14:23 -07:00 committed by Thomas Petazzoni
parent e5a83df8da
commit 2a571acddd
5 changed files with 52 additions and 0 deletions

View File

@ -2791,6 +2791,7 @@ F: package/most/
N: TIAN Yuanhao <tianyuanhao3@163.com>
F: package/cli11/
F: package/libsolv/
F: package/open-iscsi/
F: package/open-isns/
F: package/reproc/
F: package/termcolor/

View File

@ -2408,6 +2408,7 @@ endif
source "package/odhcp6c/Config.in"
source "package/odhcploc/Config.in"
source "package/olsr/Config.in"
source "package/open-iscsi/Config.in"
source "package/open-lldp/Config.in"
source "package/open-plc-utils/Config.in"
source "package/openntpd/Config.in"

View File

@ -0,0 +1,18 @@
config BR2_PACKAGE_OPEN_ISCSI
bool "open-iscsi"
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
depends on !BR2_STATIC_LIBS # kmod
select BR2_PACKAGE_KMOD
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_OPEN_ISNS
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
help
iSCSI tools for Linux.
https://www.open-iscsi.com
comment "open-iscsi needs a toolchain w/ threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 9565bdf6b68b223e1e0d455d9a04d7536724a3f5b5a254e9398d06b2a0c6b6d2 open-iscsi-2.1.8.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING

View File

@ -0,0 +1,29 @@
################################################################################
#
# open-iscsi
#
################################################################################
OPEN_ISCSI_VERSION = 2.1.8
OPEN_ISCSI_SITE = $(call github,open-iscsi,open-iscsi,$(OPEN_ISCSI_VERSION))
# The COPYING file says GPL-2.0, but there is some GPL-3.0+ code as
# well. See https://github.com/open-iscsi/open-iscsi/issues/379
OPEN_ISCSI_LICENSE = GPL-2.0+, GPL-3.0+
OPEN_ISCSI_LICENSE_FILES = COPYING
OPEN_ISCSI_DEPENDENCIES = kmod open-isns openssl util-linux
OPEN_ISCSI_CONF_OPTS = -Ddbroot=/var/lib/iscsi
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
OPEN_ISCSI_DEPENDENCIES += systemd
OPEN_ISCSI_CONF_OPTS += -Dno_systemd=false
else
OPEN_ISCSI_CONF_OPTS += -Dno_systemd=true
endif
define OPEN_ISCSI_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_SCSI_LOWLEVEL)
$(call KCONFIG_ENABLE_OPT,CONFIG_ISCSI_TCP)
endef
$(eval $(meson-package))