aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz 'CeDeROM' CEDRO <tomek@cedro.info>2025-10-03 11:29:51 +0000
committerGleb Popov <arrowd@FreeBSD.org>2025-11-08 14:06:12 +0000
commitb2fc0ba743bd198212a9dce8423f1e12e89e833e (patch)
tree65f1be72cdda68c3049d69da1407e35cc92516fa
parent60fd4c79ecca88909439721328edd8ea210f1135 (diff)
sysutils/uhubctl: utility to control usb hub port power
Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info> Pull Request: https://github.com/freebsd/freebsd-ports/pull/456
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/uhubctl/Makefile24
-rw-r--r--sysutils/uhubctl/distinfo3
-rw-r--r--sysutils/uhubctl/pkg-descr9
4 files changed, 37 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index c2a3c28607fa..1b649c7d0176 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1521,6 +1521,7 @@
SUBDIR += udfclient
SUBDIR += ufetch
SUBDIR += uhidd
+ SUBDIR += uhubctl
SUBDIR += uif2iso
SUBDIR += unetbootin
SUBDIR += uniutils
diff --git a/sysutils/uhubctl/Makefile b/sysutils/uhubctl/Makefile
new file mode 100644
index 000000000000..657c5ab074bb
--- /dev/null
+++ b/sysutils/uhubctl/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= uhubctl
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.6.0
+CATEGORIES= sysutils
+
+MAINTAINER= tomek@cedro.info
+COMMENT= Utility to control USB power per-port on smart USB hubs
+WWW= https://github.com/mvp/uhubctl
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= gmake pkgconfig
+USE_GITHUB= yes
+GH_ACCOUNT= mvp
+
+ALL_TARGET= uhubctl
+
+PLIST_FILES= sbin/uhubctl
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/uhubctl ${STAGEDIR}${PREFIX}/sbin
+
+.include <bsd.port.mk>
diff --git a/sysutils/uhubctl/distinfo b/sysutils/uhubctl/distinfo
new file mode 100644
index 000000000000..59fc89f9df2b
--- /dev/null
+++ b/sysutils/uhubctl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1761918400
+SHA256 (mvp-uhubctl-v2.6.0_GH0.tar.gz) = 56ca15ddf96d39ab0bf8ee12d3daca13cea45af01bcd5a9732ffcc01664fdfa2
+SIZE (mvp-uhubctl-v2.6.0_GH0.tar.gz) = 29255
diff --git a/sysutils/uhubctl/pkg-descr b/sysutils/uhubctl/pkg-descr
new file mode 100644
index 000000000000..dc08631c887f
--- /dev/null
+++ b/sysutils/uhubctl/pkg-descr
@@ -0,0 +1,9 @@
+Uhubctl is utility to control USB power per-port on smart USB hubs.
+Smart hub is defined as one that implements per-port power switching.
+
+Note that quite a few modern motherboards have built-in root hubs
+that do support this feature - you may not even need to buy any external hub.
+
+This utility was tested to compile and work on Linux (Ubuntu/Debian/Raspbian,
+Redhat/EPEL/Fedora/CentOS, Arch Linux, Gentoo, openSUSE, Buildroot), FreeBSD,
+NetBSD, SunOS and MacOS.