aboutsummaryrefslogtreecommitdiffstats
path: root/print/hplip
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2016-03-14 19:40:58 +0800
committertijl <tijl@FreeBSD.org>2016-03-14 19:40:58 +0800
commitcfea6a110635318354adbbb38f645ff43a13c089 (patch)
tree30a636739db5565ee1f6b228496e2a2ad23deca3 /print/hplip
parent34788e6887920b99efacdeb7bf82f8a3f6a43cc3 (diff)
downloadfreebsd-ports-gnome-cfea6a110635318354adbbb38f645ff43a13c089.tar.gz
freebsd-ports-gnome-cfea6a110635318354adbbb38f645ff43a13c089.tar.zst
freebsd-ports-gnome-cfea6a110635318354adbbb38f645ff43a13c089.zip
Add a patch to print/cups and print/hplip to disable detaching of ulpt(4).
This isn't needed on FreeBSD and it always fails because the process doesn't have the required privileges. Add a sample devd configuration file to print/cups that gives users in group cups access to USB printers. [1] Submitted by: hselasky, Alexander Zagrebin <alex@zagrebin.ru> [1]
Diffstat (limited to 'print/hplip')
-rw-r--r--print/hplip/Makefile1
-rw-r--r--print/hplip/files/patch-io-hpmud-musb.c13
2 files changed, 12 insertions, 2 deletions
diff --git a/print/hplip/Makefile b/print/hplip/Makefile
index 23ba41b2459b..cb3244de58e5 100644
--- a/print/hplip/Makefile
+++ b/print/hplip/Makefile
@@ -3,6 +3,7 @@
PORTNAME= hplip
PORTVERSION= 3.16.2
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= SF
diff --git a/print/hplip/files/patch-io-hpmud-musb.c b/print/hplip/files/patch-io-hpmud-musb.c
index 099f5c4e3004..8d940aaa92c0 100644
--- a/print/hplip/files/patch-io-hpmud-musb.c
+++ b/print/hplip/files/patch-io-hpmud-musb.c
@@ -1,6 +1,6 @@
---- io/hpmud/musb.c.orig 2015-06-13 19:38:23 UTC
+--- io/hpmud/musb.c.orig 2016-02-08 09:42:51 UTC
+++ io/hpmud/musb.c
-@@ -138,10 +138,16 @@ static int get_string_descriptor(libusb_
+@@ -139,10 +139,16 @@ static int get_string_descriptor(libusb_
0x409,
tbuf, sizeof(tbuf), LIBUSB_CONTROL_REQ_TIMEOUT);
@@ -20,3 +20,12 @@
continue;
}
break;
+@@ -385,7 +391,7 @@ static int detach(libusb_device_handle *
+ {
+ int ret ;
+ /* If any kernel module has claimed this interface, detach it. */
+- ret = libusb_kernel_driver_active (hd, interface);
++ ret = 0;
+ DBG("Active kernel driver on interface=%d ret=%d\n", interface, ret);
+ if (ret == 1)
+ {