summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/01-add-a-manpage-for-lsusb.py.patch110
-rw-r--r--debian/patches/02-add-lsusb.py.1-to-distcleanfiles.patch23
-rw-r--r--debian/patches/03-add-a-manpage-for-usbreset.patch105
-rw-r--r--debian/patches/series3
4 files changed, 241 insertions, 0 deletions
diff --git a/debian/patches/01-add-a-manpage-for-lsusb.py.patch b/debian/patches/01-add-a-manpage-for-lsusb.py.patch
new file mode 100644
index 0000000..27adef8
--- /dev/null
+++ b/debian/patches/01-add-a-manpage-for-lsusb.py.patch
@@ -0,0 +1,110 @@
+commit 83690ec408b2619866dc18c9ab94d9f6bc2c734d
+Author: Aurelien Jarno <aurelien@aurel32.net>
+Date: Wed Jan 3 10:29:39 2024 +0100
+
+ Add a manpage for lsusb.py
+
+ Signed-off-by: Sam Morris <sam@robots.org.uk>
+ Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
+
+diff --git a/Makefile.am b/Makefile.am
+index ae9e383..d3a9025 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -47,11 +47,13 @@ usbreset_SOURCES = \
+
+ man_MANS = \
+ lsusb.8 \
++ lsusb.py.1 \
+ usbhid-dump.8 \
+ usb-devices.1
+
+ EXTRA_DIST = \
+ lsusb.8.in \
++ lsusb.py.1.in \
+ usbhid-dump.8.in \
+ usb-devices.1.in \
+ usb-devices \
+@@ -69,6 +71,9 @@ lsusb.py: $(srcdir)/lsusb.py.in
+ lsusb.8: $(srcdir)/lsusb.8.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
++lsusb.py.1: $(srcdir)/lsusb.py.1.in
++ sed 's|VERSION|$(VERSION)|g' $< >$@
++
+ usbhid-dump.8: $(srcdir)/usbhid-dump.8.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
+diff --git a/lsusb.py.1.in b/lsusb.py.1.in
+new file mode 100644
+index 0000000..41dcd1c
+--- /dev/null
++++ b/lsusb.py.1.in
+@@ -0,0 +1,67 @@
++.\"SPDX-License-Identifier: GPL-2.0-only
++.\"Copyright (c) 1999 Thomas Sailer <sailer@ife.ee.ethz.ch>
++.\"Copyright (c) 2020 Sam Morris <sam@robots.org.uk>
++.TH lsusb.py 1 "03 January 2024" "usbutils-VERSION" "Linux USB Utilities"
++.IX lsusb.py
++.SH NAME
++lsusb.py \- list USB devices
++.SH SYNOPSIS
++.B lsusb.py
++[
++.I options
++]
++.SH DESCRIPTION
++.B lsusb.py
++is a utility for displaying information about USB buses in the system and the
++devices connected to them. It uses the
++.B usb.ids
++file to associate a human-readable name to the vendor and product IDs.
++.PP
++In comparison with
++.BR lsusb (8),
++this program can display additional information such as the interface speed of
++a device, and details of a device's interfaces including the driver bound to
++them and Linux devices provided by the driver, and the details of device and
++interface endpoints.
++.SH OPTIONS
++.TP
++.BR \-h ", " \-\-help
++Displays options supported by
++.BR lsusb (1).
++.TP
++.BR \-i ", " \-\-interfaces
++Display information about the interfaces of each device, excluding hubs.
++.TP
++.BR \-I ", " \-\-hub\-interfaces
++Display information about the interfaces of each device, including hubs., excluding hubs.
++.TP
++.BR \-u ", " \-\-hide\-empty\-hubs
++Suppress information about hubs that have no devices connected.
++.TP
++.BR \-U ", " \-\-hide\-hubs
++Suppress information about hubs, even if they have devices connected.
++.TP
++.BR \-c ", " \-\-color
++Use color
++.TP
++.BR \-C ", " \-\-no\-color
++Don't use color
++.TP
++.BR \-e ", " \-\-endpoints
++Include information about device (and interface, with
++.BR -i )
++endpoints.
++.TP
++.BR \-f ", " \-\-usbids\-path
++Overrides the path of the
++.B usb.ids
++file.
++
++.SH SEE ALSO
++.BR lspci (8),
++.BR lsusb (8),
++.BR usbview (8).
++
++.SH AUTHOR
++Thomas Sailer, <sailer@ife.ee.ethz.ch>,
++Sam Morris <sam@robots.org.uk>.
diff --git a/debian/patches/02-add-lsusb.py.1-to-distcleanfiles.patch b/debian/patches/02-add-lsusb.py.1-to-distcleanfiles.patch
new file mode 100644
index 0000000..53a7e7c
--- /dev/null
+++ b/debian/patches/02-add-lsusb.py.1-to-distcleanfiles.patch
@@ -0,0 +1,23 @@
+commit bd14f37e6d0daa8f495c8ce998c03bfa012ff0ee
+Author: Aurelien Jarno <aurelien@aurel32.net>
+Date: Thu Jan 4 14:40:11 2024 +0100
+
+ Add lsusb.py.1 to DISTCLEANFILES
+
+ Commit 83690ec408b2 ("Add a manpage for lsusb.py") added the lsusb.py.1
+ manpage but forgot to add it to DISTCLEANFILES. Fix that.
+
+ Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
+
+diff --git a/Makefile.am b/Makefile.am
+index d3a9025..02c7a33 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -82,6 +82,7 @@ usb-devices.1: $(srcdir)/usb-devices.1.in
+
+ DISTCLEANFILES = \
+ lsusb.py \
++ lsusb.py.1 \
+ lsusb.8 \
+ usb-devices.1 \
+ usbhid-dump.8
diff --git a/debian/patches/03-add-a-manpage-for-usbreset.patch b/debian/patches/03-add-a-manpage-for-usbreset.patch
new file mode 100644
index 0000000..907103f
--- /dev/null
+++ b/debian/patches/03-add-a-manpage-for-usbreset.patch
@@ -0,0 +1,105 @@
+commit a5738f02804532efe96abd8c6d5df8beb6fd0a64
+Author: Aurelien Jarno <aurelien@aurel32.net>
+Date: Thu Jan 4 14:26:41 2024 +0100
+
+ Add a manpage for usbreset
+
+ Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
+
+diff --git a/Makefile.am b/Makefile.am
+index d3a9025..22452ba 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -49,7 +49,8 @@ man_MANS = \
+ lsusb.8 \
+ lsusb.py.1 \
+ usbhid-dump.8 \
+- usb-devices.1
++ usb-devices.1 \
++ usbreset.1
+
+ EXTRA_DIST = \
+ lsusb.8.in \
+@@ -58,6 +59,7 @@ EXTRA_DIST = \
+ usb-devices.1.in \
+ usb-devices \
+ lsusb.py.in \
++ usbreset.1.in \
+ usbreset.c \
+ LICENSES/GPL-2.0-only.txt \
+ LICENSES/GPL-3.0-only.txt
+@@ -80,11 +82,15 @@ usbhid-dump.8: $(srcdir)/usbhid-dump.8.in
+ usb-devices.1: $(srcdir)/usb-devices.1.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
++usbreset.1: $(srcdir)/usbreset.1.in
++ sed 's|VERSION|$(VERSION)|g' $< >$@
++
+ DISTCLEANFILES = \
+ lsusb.py \
+ lsusb.py.1 \
+ lsusb.8 \
+ usb-devices.1 \
++ usbreset.1 \
+ usbhid-dump.8
+
+ distclean-local:
+diff --git a/usbreset.1.in b/usbreset.1.in
+new file mode 100644
+index 0000000..1474ebc
+--- /dev/null
++++ b/usbreset.1.in
+@@ -0,0 +1,53 @@
++.\" SPDX-License-Identifier: GPL-2.0-only
++.\" Copyright (c) 2023 Aurelien Jarno <aurelien@aurel32.net>
++.TH usbreset 1 "04 January 2024" "usbutils-VERSION" "Linux USB Utilities"
++.IX usbreset
++.SH NAME
++usbreset \- send a USB port reset to a USB device
++.SH SYNOPSIS
++.B usbreset
++[
++.I device
++]
++
++.SH DESCRIPTION
++.B usbreset
++is a utility that performs resets on USB devices. It is particularly useful
++situations where a USB device is unresponsive or exhibits erratic behavior.
++The USB \fIdevice\fP to be reset can be specified in one of three formats:
++.TP
++.BR PPPP:VVVV
++Reset by product and vendor IDs
++.TP
++.BR BBB/DDD
++Reset by bus and device number
++.TP
++.BR "Product"
++Reset by product name
++.PP
++When run without any arguments,
++.B usbreset
++provides usage information and a list of connected USB devices, including their
++product and vendor IDs, bus and device numbers, and product names.
++
++.SH RETURN VALUE
++If the specified device is not found, a non-zero exit code is returned.
++
++.SH EXAMPLES
++.TP
++Reset device with vendor ID 1234 and product ID 5678:
++.B usbreset 1234:5678
++
++.TP
++Reset device 002 on bus 001:
++.B usbreset 001:002
++
++.TP
++Reset device named USB2.0 Hub:
++.B usbreset """USB2.0 Hub"""
++
++.SH SEE ALSO
++.BR lsusb (8).
++
++.SH AUTHOR
++Alan Stern <stern@rowland.harvard.edu>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..71e3091
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+01-add-a-manpage-for-lsusb.py.patch
+02-add-lsusb.py.1-to-distcleanfiles.patch
+03-add-a-manpage-for-usbreset.patch