From 9ced1ddc083cf2fdf2bdf6396016c9f94863a13c Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Sun, 9 Jan 2011 17:30:01 +0000 Subject: Adjust the code to parse the USB devd notification to be a bit broader. This ensures that the USB cdev notifications are not passed to the storage layer thus muting the USB device attach messages. Submitted by: hps --- sysutils/hal/Makefile | 2 +- sysutils/hal/files/patch-hald_freebsd_hf-usb2.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sysutils/hal') diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index c7cb99d21002..b7e556445346 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -8,7 +8,7 @@ PORTNAME= hal DISTVERSION= 0.5.14 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= sysutils MASTER_SITES= http://hal.freedesktop.org/releases/ diff --git a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c index af288291db4f..5e29b827b14c 100644 --- a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c +++ b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c @@ -133,8 +133,8 @@ + (strcmp(type, "CREATE") && strcmp(type, "DESTROY"))) + return FALSE; + -+ if (! strncmp(data, "cdev=ugen", strlen("cdev=ugen")) || -+ ! strncmp(data, "cdev=usb", strlen("cdev=usb"))) ++ if (strstr(data, "cdev=ugen") != NULL || ++ strstr(data, "cdev=usb") != NULL) + return TRUE; + + return FALSE; -- cgit v1.2.3