diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-04-13 10:49:08 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-04-13 10:49:08 +0800 |
commit | 56fa5441aed4e21327021063c125e297add57ad0 (patch) | |
tree | 7590b8925ecd55eb25e53d86720248eddc860522 | |
parent | 138eb1d4a29eb7d4e59a12fbc3490cf68bc6691c (diff) | |
download | marcuscom-ports-56fa5441aed4e21327021063c125e297add57ad0.tar marcuscom-ports-56fa5441aed4e21327021063c125e297add57ad0.tar.gz marcuscom-ports-56fa5441aed4e21327021063c125e297add57ad0.tar.bz2 marcuscom-ports-56fa5441aed4e21327021063c125e297add57ad0.tar.lz marcuscom-ports-56fa5441aed4e21327021063c125e297add57ad0.tar.xz marcuscom-ports-56fa5441aed4e21327021063c125e297add57ad0.tar.zst marcuscom-ports-56fa5441aed4e21327021063c125e297add57ad0.zip |
Sync w/ FreeBSD for the keyboard fix, ports/132270. Without it, my keyboard
is non-function with the old xorg.conf. Bump the PORTREVISION.
Approved by: marcus
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14040 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | sysutils/hal/Makefile | 4 | ||||
-rw-r--r-- | sysutils/hal/files/patch-hald_freebsd_hf-usb.c | 15 | ||||
-rw-r--r-- | sysutils/hal/files/patch-hald_freebsd_hf-usb2.c | 26 |
3 files changed, 27 insertions, 18 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index c37c7c690..2d7cac630 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -3,12 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/sysutils/hal/Makefile,v 1.79 2010/02/22 00:46:16 marcus Exp $ +# $MCom: ports/sysutils/hal/Makefile,v 1.80 2010/02/26 13:31:53 marcus Exp $ # PORTNAME= hal DISTVERSION= 0.5.14 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= sysutils MASTER_SITES= http://hal.freedesktop.org/releases/ diff --git a/sysutils/hal/files/patch-hald_freebsd_hf-usb.c b/sysutils/hal/files/patch-hald_freebsd_hf-usb.c index ada1ee0f7..8e4d2a1b2 100644 --- a/sysutils/hal/files/patch-hald_freebsd_hf-usb.c +++ b/sysutils/hal/files/patch-hald_freebsd_hf-usb.c @@ -1,6 +1,15 @@ ---- hald/freebsd/hf-usb.c.orig 2010-02-19 23:04:46.000000000 -0500 -+++ hald/freebsd/hf-usb.c 2010-02-19 23:04:48.000000000 -0500 -@@ -908,6 +908,8 @@ hf_usb_add_webcam_properties (HalDevice +--- hald/freebsd/hf-usb.c.orig 2009-09-17 08:49:46.000000000 -0500 ++++ hald/freebsd/hf-usb.c 2010-03-17 22:20:33.000000000 -0500 +@@ -392,7 +392,7 @@ + hf_devtree_device_set_name(device, di->udi_devnames[0]); + + if ((devname = hf_usb_get_devname(di, "ukbd"))) /* USB keyboard */ +- hf_device_set_input(device, "keyboard", "keys", devname); ++ hf_device_set_input(device, "keyboard", "keys", NULL); + else if ((devname = hf_usb_get_devname(di, "ums"))) /* USB mouse */ + hf_device_set_input(device, "mouse", NULL, devname); + else if ((devname = hf_usb_get_devname(di, "uhid"))) /* UHID device */ +@@ -908,6 +908,8 @@ hal_device_property_set_string(device, "info.category", "video4linux"); hal_device_add_capability(device, "video4linux"); diff --git a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c index 63ed62528..af288291d 100644 --- a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c +++ b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c @@ -1,5 +1,5 @@ ---- hald/freebsd/hf-usb2.c.orig 2009-08-24 08:42:29.000000000 -0400 -+++ hald/freebsd/hf-usb2.c 2010-02-21 14:54:07.000000000 -0500 +--- hald/freebsd/hf-usb2.c.orig 2009-08-24 07:42:29.000000000 -0500 ++++ hald/freebsd/hf-usb2.c 2010-03-17 22:25:17.000000000 -0500 @@ -42,22 +42,6 @@ static struct libusb20_backend *hf_usb2_be = NULL; @@ -23,7 +23,7 @@ hf_usb2_probe_interfaces(HalDevice *parent) { int num_interfaces; -@@ -79,9 +63,9 @@ hf_usb2_probe_interfaces(HalDevice *pare +@@ -79,9 +63,9 @@ hal_device_property_set_string(device, "info.subsystem", "usb"); hal_device_property_set_int(device, "usb.interface.number", i); @@ -34,13 +34,13 @@ if (hf_device_preprobe(device)) { -@@ -98,10 +82,10 @@ hf_usb2_probe_interfaces(HalDevice *pare +@@ -98,10 +82,10 @@ if (driver) { if (! strcmp(driver, "ukbd")) - hf_device_set_input(device, "keyboard", NULL); - else if (! strcmp(driver, "ums")) -+ hf_device_set_input(device, "keyboard", "keys", devname); ++ hf_device_set_input(device, "keyboard", "keys", NULL); + else if (! strcmp(driver, "ums") || ! strcmp(driver, "atp")) { - hf_device_set_input(device, "mouse", devname); @@ -48,7 +48,7 @@ hf_runner_run_sync(device, 0, "hald-probe-mouse", NULL); } else if (! strcmp(driver, "uhid")) -@@ -133,6 +117,11 @@ hf_usb2_probe_interfaces(HalDevice *pare +@@ -133,6 +117,11 @@ hf_usb_add_webcam_properties(device); } } @@ -60,7 +60,7 @@ hf_usb_device_compute_udi(device); hf_device_add(device); -@@ -192,11 +181,12 @@ hf_usb2_probe (void) +@@ -192,11 +181,12 @@ addr = libusb20_dev_get_address(pdev); if (addr == 1) @@ -75,7 +75,7 @@ if (! parent || hal_device_property_get_bool(parent, "info.ignore")) continue; -@@ -216,7 +206,13 @@ hf_usb2_devd_add (const char *name, +@@ -216,7 +206,13 @@ HalDevice *parent_device; int bus, addr, pbus, paddr; @@ -90,7 +90,7 @@ return FALSE; else if (strncmp(parent, "ugen", strlen("ugen"))) return TRUE; -@@ -232,7 +228,8 @@ hf_usb2_devd_add (const char *name, +@@ -232,7 +228,8 @@ parent_device = hf_device_store_match(hald_get_gdl(), "usb_device.bus_number", HAL_PROPERTY_TYPE_INT32, pbus, @@ -100,7 +100,7 @@ if (parent_device && ! hal_device_property_get_bool(parent_device, "info.ignore")) -@@ -255,8 +252,6 @@ hf_usb2_devd_remove (const char *name, +@@ -255,8 +252,6 @@ if (strncmp(name, "ugen", strlen("ugen"))) return FALSE; @@ -109,7 +109,7 @@ if (sscanf(name, "ugen%i.%i", &bus, &addr) != 2) return FALSE; -@@ -265,7 +260,8 @@ hf_usb2_devd_remove (const char *name, +@@ -265,7 +260,8 @@ device = hf_device_store_match(hald_get_gdl(), "usb_device.bus_number", HAL_PROPERTY_TYPE_INT32, bus, "usb_device.port_number", @@ -119,7 +119,7 @@ if (device) { -@@ -276,6 +272,23 @@ hf_usb2_devd_remove (const char *name, +@@ -276,6 +272,23 @@ return FALSE; } @@ -143,7 +143,7 @@ HFHandler hf_usb2_handler = { .privileged_init = hf_usb2_privileged_init, .probe = hf_usb2_probe -@@ -283,5 +296,6 @@ HFHandler hf_usb2_handler = { +@@ -283,5 +296,6 @@ HFDevdHandler hf_usb2_devd_handler = { .add = hf_usb2_devd_add, |