View | Details | Raw Unified | Return to bug 293567
Collapse All | Expand All

(-)b/net/usbredir/Makefile (-1 / +10 lines)
Lines 1-6 Link Here
1
PORTNAME=	usbredir
1
PORTNAME=	usbredir
2
DISTVERSION=	0.9.0
3
DISTVERSIONPREFIX=	${PORTNAME}-
2
DISTVERSIONPREFIX=	${PORTNAME}-
3
DISTVERSION=	0.9.0
4
PORTREVISION=	1
4
CATEGORIES=	net devel
5
CATEGORIES=	net devel
5
6
6
MAINTAINER=	bofh@FreeBSD.org
7
MAINTAINER=	bofh@FreeBSD.org
Lines 20-25 GNU_CONFIGURE= yes Link Here
20
21
21
INSTALL_TARGET=	install-strip
22
INSTALL_TARGET=	install-strip
22
23
24
OPTIONS_DEFINE=	CLIENT
25
OPTIONS_SUB=	yes
26
27
CLIENT_DESC=	Include usbredir client
28
29
CLIENT_LIB_DEPENDS=	libgio-2.0.so:devel/glib20
30
CLIENT_CONFIGURE_WITH=	tools
31
23
post-patch:
32
post-patch:
24
	@${REINPLACE_CMD} 's|SOL_TCP|IPPROTO_TCP|' \
33
	@${REINPLACE_CMD} 's|SOL_TCP|IPPROTO_TCP|' \
25
	       ${WRKSRC}/usbredirserver/usbredirserver.c
34
	       ${WRKSRC}/usbredirserver/usbredirserver.c
(-)b/net/usbredir/files/patch-tools_usbredirect.c (+28 lines)
Added Link Here
1
FreeBSD's libusb does not have libusb_set_option.
2
Just skip the adjusting of libusb log level to avoid
3
a build error.
4
5
The way to adjust the FreeBSD libusb log level is via passing options
6
to usb_init_context(3) or with the LIBUSB_DEBUG environment variable
7
- also read by usb_init_context(3).
8
9
But that's more invasive patching for little benefit here.
10
11
--- tools/usbredirect.c.orig	2021-04-02 15:42:05 UTC
12
+++ tools/usbredirect.c
13
@@ -528,11 +528,15 @@ main(int argc, char *argv[])
14
     /* Only allow libusb logging if log verbosity is uredirparser_debug_data
15
      * (or higher), otherwise we disable it here while keeping usbredir's logs enable. */
16
     if  (self->verbosity < usbredirparser_debug_data)  {
17
+#if 0
18
         int ret = libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_NONE);
19
         if (ret != LIBUSB_SUCCESS) {
20
             g_warning("error disabling libusb log level: %s", libusb_error_name(ret));
21
             goto end;
22
         }
23
+#else
24
+        g_warning("libusb_set_option not available, so not reducing libusb log level based on usbredirect level (%d)", self->verbosity);
25
+#endif
26
     }
27
 
28
     if (self->is_client) {
(-)b/net/usbredir/pkg-plist (-7 / +9 lines)
Lines 1-16 Link Here
1
%%CLIENT%%bin/usbredirect
1
include/usbredirfilter.h
2
include/usbredirfilter.h
2
include/usbredirhost.h
3
include/usbredirhost.h
3
include/usbredirproto.h
4
include/usbredirparser.h
4
include/usbredirparser.h
5
lib/libusbredirparser.a
5
include/usbredirproto.h
6
lib/libusbredirparser.so
7
lib/libusbredirparser.so.1
8
lib/libusbredirparser.so.1.0.2
9
lib/libusbredirhost.a
6
lib/libusbredirhost.a
10
lib/libusbredirhost.so
7
lib/libusbredirhost.so
11
lib/libusbredirhost.so.1
8
lib/libusbredirhost.so.1
12
lib/libusbredirhost.so.1.0.2
9
lib/libusbredirhost.so.1.0.2
13
libdata/pkgconfig/libusbredirparser-0.5.pc
10
lib/libusbredirparser.a
11
lib/libusbredirparser.so
12
lib/libusbredirparser.so.1
13
lib/libusbredirparser.so.1.0.2
14
libdata/pkgconfig/libusbredirhost.pc
14
libdata/pkgconfig/libusbredirhost.pc
15
share/man/man1/usbredirserver.1.gz
15
libdata/pkgconfig/libusbredirparser-0.5.pc
16
sbin/usbredirserver
16
sbin/usbredirserver
17
%%CLIENT%%share/man/man1/usbredirect.1.gz
18
share/man/man1/usbredirserver.1.gz

Return to bug 293567