Page MenuHomeFreeBSD

D61590.1794812618.diff
No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None

D61590.1794812618.diff

diff --git a/sysutils/Makefile b/sysutils/Makefile
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1143,6 +1143,7 @@
SUBDIR += py-leviathan
SUBDIR += py-liquidctl
SUBDIR += py-magika
+ SUBDIR += py-midcli
SUBDIR += py-mitogen
SUBDIR += py-mqttwarn
SUBDIR += py-nagiosplugin
diff --git a/sysutils/py-midcli/Makefile b/sysutils/py-midcli/Makefile
new file mode 100644
--- /dev/null
+++ b/sysutils/py-midcli/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= midcli
+DISTVERSIONPREFIX= TS-
+DISTVERSION= 25.10.8
+CATEGORIES= sysutils python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= longros@FreeBSD.org
+COMMENT= TrueNAS command line interface
+WWW= https://github.com/truenas/midcli
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/debian/copyright
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}prettytable>0:devel/py-prettytable@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}prompt-toolkit>0:devel/py-prompt-toolkit@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyparsing>=3.0.0:devel/py-pyparsing@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyyaml>0:devel/py-pyyaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}truenas-api-client>0:sysutils/py-truenas-api-client@${PY_FLAVOR}
+
+USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= truenas
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+NO_ARCH= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|name='midcli',|&version='${DISTVERSION}',|" \
+ ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/sysutils/py-midcli/distinfo b/sysutils/py-midcli/distinfo
new file mode 100644
--- /dev/null
+++ b/sysutils/py-midcli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1794687523
+SHA256 (truenas-midcli-TS-25.10.8_GH0.tar.gz) = a4ee13252a4b837d3074bad5d7a09dc01268c654308efa9df34146f114a18be4
+SIZE (truenas-midcli-TS-25.10.8_GH0.tar.gz) = 50737
diff --git a/sysutils/py-midcli/pkg-descr b/sysutils/py-midcli/pkg-descr
new file mode 100644
--- /dev/null
+++ b/sysutils/py-midcli/pkg-descr
@@ -0,0 +1,5 @@
+NAS Command Line Interface.
+
+midcli provides the cli command, an interactive shell for the TrueNAS
+middleware with command completion. It can connect to a remote TrueNAS
+system with the --url, --user and --password options.

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 16, 7:03 AM (23 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41765980
Default Alt Text
D61590.1794812618.diff (2 KB)

Event Timeline