Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177594522
D61589.1794812618.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D61589.1794812618.diff
View Options
diff --git a/sysutils/Makefile b/sysutils/Makefile
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1184,6 +1184,7 @@
SUBDIR += py-tarsnapper
SUBDIR += py-tldr
SUBDIR += py-tmuxp
+ SUBDIR += py-truenas-api-client
SUBDIR += py-uptime
SUBDIR += py-zfsstat
SUBDIR += qchroot
diff --git a/sysutils/py-truenas-api-client/Makefile b/sysutils/py-truenas-api-client/Makefile
new file mode 100644
--- /dev/null
+++ b/sysutils/py-truenas-api-client/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= truenas-api-client
+DISTVERSIONPREFIX= TS-
+DISTVERSION= 25.10.8
+CATEGORIES= sysutils python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= longros@FreeBSD.org
+COMMENT= TrueNAS websocket API client
+WWW= https://github.com/truenas/api_client
+
+LICENSE= LGPL3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}websocket-client>0:www/py-websocket-client@${PY_FLAVOR}
+
+USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= truenas
+GH_PROJECT= api_client
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+NO_ARCH= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|name="truenas_api_client",|&version="${DISTVERSION}",|' \
+ ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/sysutils/py-truenas-api-client/distinfo b/sysutils/py-truenas-api-client/distinfo
new file mode 100644
--- /dev/null
+++ b/sysutils/py-truenas-api-client/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1794687521
+SHA256 (truenas-api_client-TS-25.10.8_GH0.tar.gz) = 55ed2f05cfe4edfde76b50b8993c0b5538ffce42465f8f0860f7b22d6ab2b3a4
+SIZE (truenas-api_client-TS-25.10.8_GH0.tar.gz) = 29110
diff --git a/sysutils/py-truenas-api-client/pkg-descr b/sysutils/py-truenas-api-client/pkg-descr
new file mode 100644
--- /dev/null
+++ b/sysutils/py-truenas-api-client/pkg-descr
@@ -0,0 +1,3 @@
+The TrueNAS websocket client provides the command line tool midclt and
+the means to easily communicate with middleware using Python by making
+calls through the websocket API.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 7:03 AM (23 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41765979
Default Alt Text
D61589.1794812618.diff (2 KB)
Attached To
Mode
D61589: sysutils/py-truenas-api-client: New port: TrueNAS websocket API client
Attached
Detach File
Event Timeline