pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/usbhid-dump sysutils/usbhid-dump: import usbh...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e37890d49766
branches:  trunk
changeset: 335905:e37890d49766
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue Jul 02 13:29:33 2019 +0000

description:
sysutils/usbhid-dump: import usbhid-dump-1.4

Usbhid-dump is a USB HID dumping utility based on libusb 1.0. It
dumps USB HID device report descriptors and reports themselves as
they are being sent, for all or specific device interfaces.

diffstat:

 sysutils/usbhid-dump/DESCR                           |   3 +++
 sysutils/usbhid-dump/Makefile                        |  18 ++++++++++++++++++
 sysutils/usbhid-dump/PLIST                           |   3 +++
 sysutils/usbhid-dump/distinfo                        |   7 +++++++
 sysutils/usbhid-dump/patches/patch-src_usbhid-dump.c |  17 +++++++++++++++++
 5 files changed, 48 insertions(+), 0 deletions(-)

diffs (68 lines):

diff -r 6ae30cc4e73d -r e37890d49766 sysutils/usbhid-dump/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbhid-dump/DESCR        Tue Jul 02 13:29:33 2019 +0000
@@ -0,0 +1,3 @@
+Usbhid-dump is a USB HID dumping utility based on libusb 1.0. It
+dumps USB HID device report descriptors and reports themselves as
+they are being sent, for all or specific device interfaces.
diff -r 6ae30cc4e73d -r e37890d49766 sysutils/usbhid-dump/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbhid-dump/Makefile     Tue Jul 02 13:29:33 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/07/02 13:29:33 ryoon Exp $
+
+DISTNAME=      usbhid-dump-1.4
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=DIGImend/}
+GITHUB_RELEASE=        1.4
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/DIGImend/usbhid-dump/
+COMMENT=       USB HID device dumping utility
+LICENSE=       gnu-gpl-v2
+
+USE_TOOLS+=    pkg-config
+
+GNU_CONFIGURE= yes
+
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 6ae30cc4e73d -r e37890d49766 sysutils/usbhid-dump/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbhid-dump/PLIST        Tue Jul 02 13:29:33 2019 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/02 13:29:33 ryoon Exp $
+bin/usbhid-dump
+man/man8/usbhid-dump.8
diff -r 6ae30cc4e73d -r e37890d49766 sysutils/usbhid-dump/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbhid-dump/distinfo     Tue Jul 02 13:29:33 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/07/02 13:29:33 ryoon Exp $
+
+SHA1 (usbhid-dump-1.4.tar.gz) = 6a3160fa68b3b8186b66fb48afd1173a74d32de6
+RMD160 (usbhid-dump-1.4.tar.gz) = b9d3694f4db81ee3b6dc29db4a9112e0c87aa4ab
+SHA512 (usbhid-dump-1.4.tar.gz) = bc0e5af87833fea0146f006577ab28573a441c275eb39f84fb96cf30976dfa2e193f240b4f5600128362a1b65aaa8f14a02863ac262b92aa4886f1a526fa3c29
+Size (usbhid-dump-1.4.tar.gz) = 341411 bytes
+SHA1 (patch-src_usbhid-dump.c) = 4c8abcc7b45ea2b6e77b1917dcc74b1f77ef59f6
diff -r 6ae30cc4e73d -r e37890d49766 sysutils/usbhid-dump/patches/patch-src_usbhid-dump.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbhid-dump/patches/patch-src_usbhid-dump.c      Tue Jul 02 13:29:33 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_usbhid-dump.c,v 1.1 2019/07/02 13:29:34 ryoon Exp $
+
+* NetBSD has no device driver detach as of 2019-06-26
+
+--- src/usbhid-dump.c.orig     2014-07-12 18:02:02.000000000 +0000
++++ src/usbhid-dump.c
+@@ -549,8 +549,10 @@ run(bool            dump_descriptor,
+     /* Detach and claim the interfaces */
+     UHD_IFACE_LIST_FOR_EACH(iface, iface_list)
+     {
++#if !defined(__NetBSD__)
+         LIBUSB_IFACE_GUARD(uhd_iface_detach(iface),
+                            iface, "detach from the kernel driver");
++#endif
+         LIBUSB_IFACE_GUARD(uhd_iface_claim(iface),
+                            iface, "claim");
+     }



Home | Main Index | Thread Index | Old Index