mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
python-rtslib-fb: add new package
rtslib-fb depends on pyudev and provides a Python API for configuring the Linux LIO target subsystem. Signed-off-by: Andreas Hirschauer <andi@linux.com>
This commit is contained in:
committed by
Alexandru Ardelean
parent
7901d9a02f
commit
08a627a994
49
lang/python/python-rtslib-fb/Makefile
Normal file
49
lang/python/python-rtslib-fb/Makefile
Normal file
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2026 Andreas Hirschauer
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-rtslib-fb
|
||||
PKG_VERSION:=2.2.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=rtslib-fb
|
||||
PYPI_SOURCE_NAME:=rtslib_fb
|
||||
PKG_HASH:=0084daa651a72b1cacd0eaaf162725df69b991f501cffe87e0f67e99224a7267
|
||||
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Andreas Hirschauer <andi@linux.com>
|
||||
PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-vcs/host
|
||||
|
||||
include ../pypi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../python3-package.mk
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
# Upstream targetctl imports `rtslib_fb`, but sources are in `rtslib/`.
|
||||
[ -e "$(PKG_BUILD_DIR)/rtslib_fb" ] || ln -snf rtslib "$(PKG_BUILD_DIR)/rtslib_fb"
|
||||
endef
|
||||
|
||||
define Package/python3-rtslib-fb
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=Python API for the Linux LIO target subsystem
|
||||
URL:=https://github.com/open-iscsi/rtslib-fb
|
||||
DEPENDS:=+python3-light +python3-pyudev +python3-uuid +python3-ctypes
|
||||
endef
|
||||
|
||||
|
||||
define Package/python3-rtslib-fb/description
|
||||
rtslib-fb is a Python object API for configuring the Linux LIO target subsystem.
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,python3-rtslib-fb))
|
||||
$(eval $(call BuildPackage,python3-rtslib-fb))
|
||||
$(eval $(call BuildPackage,python3-rtslib-fb-src))
|
||||
Reference in New Issue
Block a user