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.

Signed-off-by: Lars Pedersen <[email protected]>
---
 rules/uhubctl.in   |  8 +++++++
 rules/uhubctl.make | 54 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/uhubctl.in
 create mode 100644 rules/uhubctl.make

diff --git a/rules/uhubctl.in b/rules/uhubctl.in
new file mode 100644
index 000000000..ec30f6637
--- /dev/null
+++ b/rules/uhubctl.in
@@ -0,0 +1,8 @@
+## SECTION=shell_and_console
+
+config UHUBCTL
+       bool
+       select LIBUSB
+       prompt "uhubctl"
+       help
+               Utility to control USB power per-port on smart USB hubs.
diff --git a/rules/uhubctl.make b/rules/uhubctl.make
new file mode 100644
index 000000000..394b46855
--- /dev/null
+++ b/rules/uhubctl.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_UHUBCTL) += uhubctl
+
+#
+# Paths and names
+#
+UHUBCTL_VERSION        := 2.4.0
+UHUBCTL_MD5    := 9bdf73940881df02574a94703ad8b582
+UHUBCTL                := uhubctl-$(UHUBCTL_VERSION)
+UHUBCTL_SUFFIX := tar.gz
+UHUBCTL_URL    := 
https://github.com/mvp/uhubctl/archive/v$(UHUBCTL_VERSION).$(UHUBCTL_SUFFIX)
+UHUBCTL_SOURCE := $(SRCDIR)/$(UHUBCTL).$(UHUBCTL_SUFFIX)
+UHUBCTL_DIR    := $(BUILDDIR)/$(UHUBCTL)
+UHUBCTL_LICENSE        := GPL-2.0-only
+UHUBCTL_LICENSE_FILES := \
+       file://LICENSE;md5=a79e6a142b69522fe7757fe7313895eb
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+UHUBCTL_CONF_TOOL      := NO
+UHUBCTL_MAKE_ENV       := $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/uhubctl.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, uhubctl)
+       @$(call install_fixup, uhubctl,PRIORITY,optional)
+       @$(call install_fixup, uhubctl,SECTION,base)
+       @$(call install_fixup, uhubctl,AUTHOR,"Lars Pedersen 
<[email protected]>")
+       @$(call install_fixup, uhubctl,DESCRIPTION,missing)
+
+       @$(call install_copy, uhubctl, 0, 0, 0755, $(UHUBCTL_DIR)/uhubctl, 
/usr/bin/uhubctl)
+
+       @$(call install_finish, uhubctl)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.31.1


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to