summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-07-28 22:49:29 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-07-28 22:49:29 +0000
commitfde8f78ecd641b933b1cdcb37a724448b57c2854 (patch)
treecf5de9c086f872be3638da03031c200f7cb9474c /sys-apps/hal
parentRespecting CC variable, closes bug #243928 (diff)
downloadgentoo-2-fde8f78ecd641b933b1cdcb37a724448b57c2854.tar.gz
gentoo-2-fde8f78ecd641b933b1cdcb37a724448b57c2854.tar.bz2
gentoo-2-fde8f78ecd641b933b1cdcb37a724448b57c2854.zip
Late spring cleaning. Removing old revisions.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/hal')
-rw-r--r--sys-apps/hal/ChangeLog55
-rwxr-xr-xsys-apps/hal/files/0.5-hald.rc28
-rw-r--r--sys-apps/hal/files/0.5.9-hald.conf10
-rw-r--r--sys-apps/hal/files/0.5.9-hald.rc39
-rw-r--r--sys-apps/hal/files/0.5.9/01_luks_mount_fix.patch67
-rw-r--r--sys-apps/hal/files/0.5.9/02_acpi_repeated_property_change.patch39
-rw-r--r--sys-apps/hal/files/0.5.9/03_crasher_fix_fail_to_return_value.patch19
-rw-r--r--sys-apps/hal/files/0.5.9/04_cache_regen_return_fix.patch18
-rw-r--r--sys-apps/hal/files/0.5.9/05_freebsd_partutil_make_fix.patch25
-rw-r--r--sys-apps/hal/files/0.5.9/06_freebsd_backend_fix.patch67
-rw-r--r--sys-apps/hal/files/0.5.9/07_malloc_h_for_stdlib_h.patch51
-rw-r--r--sys-apps/hal/files/0.5.9/08_contains_not_fdi_directive.patch86
-rw-r--r--sys-apps/hal/files/0.5.9/09_hald_addon_keyboard_start_one.patch34
-rw-r--r--sys-apps/hal/files/0.5.9/10_freebsd_storage_reprobe_fix.patch61
-rw-r--r--sys-apps/hal/files/0.5.9/11_hal_fix_segfault_probe_volume.patch69
-rw-r--r--sys-apps/hal/files/0.5.9/12_hal_fix-vol_label_probe_volume.patch74
-rw-r--r--sys-apps/hal/files/0.5.9/13_detect_newer_macbooks.patch41
-rw-r--r--sys-apps/hal/files/0.5.9/14_ntfs_allows_utf8.patch12
-rw-r--r--sys-apps/hal/files/0.5.9/15_spec_fdi_matching.patch200
-rw-r--r--sys-apps/hal/files/0.5.9/16_dev_root_is_mounted.patch140
-rw-r--r--sys-apps/hal/files/0.5.9/17_autoconf_cflag_cleanup.patch155
-rw-r--r--sys-apps/hal/files/0.5.9/18_hal_fix_info.category_for_laptop_panel_v2.patch70
-rw-r--r--sys-apps/hal/files/0.5.9/19_hald_runner_catch_dbus_disconnect.patch30
-rw-r--r--sys-apps/hal/files/0.5.9/20_firewire_prober_ioctls_fix.patch31
-rw-r--r--sys-apps/hal/files/0.5.9/21_pm-suspend_correct_options.patch25
-rw-r--r--sys-apps/hal/files/0.5.9/22_pm-hibernate_correct_options.patch25
-rw-r--r--sys-apps/hal/files/0.5.9/23_runner_64bit_values.patch34
-rw-r--r--sys-apps/hal/files/0.5.9/24_libparted_1_8_7.patch39
-rw-r--r--sys-apps/hal/files/0.5.9/95_gentoo_man_page.patch507
-rw-r--r--sys-apps/hal/files/0.5.9/96_plugdev_allow_send.patch42
-rw-r--r--sys-apps/hal/files/0.5.9/97_ignore_fixed_drives.patch38
-rw-r--r--sys-apps/hal/files/0.5.9/98_hald_cache_test_path.patch17
-rw-r--r--sys-apps/hal/files/0.5.9/99_sun_disklabel_ignore.patch20
-rw-r--r--sys-apps/hal/files/0.5.9/series28
-rw-r--r--sys-apps/hal/files/96_plugdev_allow_send.patch42
-rw-r--r--sys-apps/hal/files/hal-0.5.10-autotools.patch14
-rw-r--r--sys-apps/hal/files/hal-0.5.11-ppc64.patch35
-rw-r--r--sys-apps/hal/files/hal-0.5.7-hald-scripts.patch211
-rw-r--r--sys-apps/hal/files/hal-0.5.7-hibernate.patch12
-rw-r--r--sys-apps/hal/files/hal-0.5.7-ignored-volumes.patch33
-rw-r--r--sys-apps/hal/files/hal-0.5.7-part-table.patch13
-rw-r--r--sys-apps/hal/files/hal-0.5.7-plugdev-allow-send.patch17
-rw-r--r--sys-apps/hal/files/hal-0.5.7-pmu-fix.patch28
-rw-r--r--sys-apps/hal/files/hal-0.5.7-rescan-on-resume.patch16
-rw-r--r--sys-apps/hal/files/hal-0.5.7-sony-brightness.patch12
-rw-r--r--sys-apps/hal/files/hal-0.5.7-unclean-unmount-r1.patch9
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-autofs-subfs.patch94
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-ctype-fix.patch11
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-dbus-close.patch24
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-fix-dbus.patch184
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-floppies-fix.patch11
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-hald-scripts.patch217
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-hibernate-fix.patch12
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-ignored-volumes.patch65
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-indirection-fix.patch117
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-ipod-nano.patch49
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch16
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-sr-driver.patch13
-rw-r--r--sys-apps/hal/files/hal-0.5.9-hide-recovery-partitions.patch14
-rw-r--r--sys-apps/hal/hal-0.5.11-r8.ebuild293
-rw-r--r--sys-apps/hal/hal-0.5.12_rc1-r4.ebuild306
-rw-r--r--sys-apps/hal/hal-0.5.9.1-r3.ebuild228
-rw-r--r--sys-apps/hal/metadata.xml2
63 files changed, 54 insertions, 4240 deletions
diff --git a/sys-apps/hal/ChangeLog b/sys-apps/hal/ChangeLog
index eacbc638ef5e..49767dfb1b8c 100644
--- a/sys-apps/hal/ChangeLog
+++ b/sys-apps/hal/ChangeLog
@@ -1,6 +1,59 @@
# ChangeLog for sys-apps/hal
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.294 2009/07/23 15:10:07 dang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.295 2009/07/28 22:49:29 eva Exp $
+
+ 28 Jul 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ -files/0.5.9-hald.conf, -files/hal-0.5.7-hald-scripts.patch,
+ -files/hal-0.5.7-hibernate.patch, -files/hal-0.5.7-ignored-volumes.patch,
+ -files/hal-0.5.7-part-table.patch,
+ -files/hal-0.5.7-plugdev-allow-send.patch, -files/hal-0.5.7-pmu-fix.patch,
+ -files/hal-0.5.7-rescan-on-resume.patch,
+ -files/hal-0.5.7-sony-brightness.patch,
+ -files/hal-0.5.7-unclean-unmount-r1.patch,
+ -files/hal-0.5.7.1-autofs-subfs.patch, -files/hal-0.5.7.1-ctype-fix.patch,
+ -files/hal-0.5.7.1-dbus-close.patch, -files/hal-0.5.7.1-fix-dbus.patch,
+ -files/hal-0.5.7.1-floppies-fix.patch,
+ -files/hal-0.5.7.1-hald-scripts.patch,
+ -files/hal-0.5.7.1-hibernate-fix.patch,
+ -files/hal-0.5.7.1-ignored-volumes.patch,
+ -files/hal-0.5.7.1-indirection-fix.patch,
+ -files/hal-0.5.7.1-ipod-nano.patch,
+ -files/hal-0.5.7.1-rescan-on-resume.patch,
+ -files/hal-0.5.7.1-sr-driver.patch, -hal-0.5.9.1-r3.ebuild,
+ -files/hal-0.5.9-hide-recovery-partitions.patch,
+ -files/hal-0.5.10-autotools.patch, -files/0.5.9-hald.rc,
+ -files/0.5.9/01_luks_mount_fix.patch, -files/hal-0.5.11-ppc64.patch,
+ -files/0.5.9/02_acpi_repeated_property_change.patch,
+ -files/0.5.9/03_crasher_fix_fail_to_return_value.patch,
+ -files/0.5.9/04_cache_regen_return_fix.patch,
+ -files/0.5.9/05_freebsd_partutil_make_fix.patch,
+ -files/0.5.9/06_freebsd_backend_fix.patch,
+ -files/0.5.9/07_malloc_h_for_stdlib_h.patch,
+ -files/0.5.9/08_contains_not_fdi_directive.patch,
+ -files/0.5.9/09_hald_addon_keyboard_start_one.patch,
+ -files/0.5.9/10_freebsd_storage_reprobe_fix.patch,
+ -files/0.5.9/11_hal_fix_segfault_probe_volume.patch,
+ -files/0.5.9/12_hal_fix-vol_label_probe_volume.patch,
+ -files/0.5.9/13_detect_newer_macbooks.patch,
+ -files/0.5.9/14_ntfs_allows_utf8.patch,
+ -files/0.5.9/15_spec_fdi_matching.patch,
+ -files/0.5.9/16_dev_root_is_mounted.patch,
+ -files/0.5.9/17_autoconf_cflag_cleanup.patch,
+ -files/0.5.9/18_hal_fix_info.category_for_laptop_panel_v2.patch,
+ -files/0.5.9/19_hald_runner_catch_dbus_disconnect.patch,
+ -files/0.5.9/20_firewire_prober_ioctls_fix.patch,
+ -files/0.5.9/21_pm-suspend_correct_options.patch,
+ -files/0.5.9/22_pm-hibernate_correct_options.patch,
+ -files/0.5.9/23_runner_64bit_values.patch,
+ -files/0.5.9/24_libparted_1_8_7.patch,
+ -files/0.5.9/95_gentoo_man_page.patch,
+ -files/0.5.9/96_plugdev_allow_send.patch,
+ -files/0.5.9/97_ignore_fixed_drives.patch,
+ -files/0.5.9/98_hald_cache_test_path.patch,
+ -files/0.5.9/99_sun_disklabel_ignore.patch, -files/0.5.9/series,
+ -files/0.5-hald.rc, -files/96_plugdev_allow_send.patch,
+ -hal-0.5.11-r8.ebuild, -hal-0.5.12_rc1-r4.ebuild, metadata.xml:
+ Late spring cleaning. Removing old revisions.
*hal-0.5.13-r2 (23 Jul 2009)
diff --git a/sys-apps/hal/files/0.5-hald.rc b/sys-apps/hal/files/0.5-hald.rc
deleted file mode 100755
index 2bddc8653079..000000000000
--- a/sys-apps/hal/files/0.5-hald.rc
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/0.5-hald.rc,v 1.7 2006/09/04 15:50:02 cardoe Exp $
-
-depend() {
- need dbus
- use logger
- after coldplug dns nscd
-}
-
-start() {
- ebegin "Starting Hardware Abstraction Layer daemon"
-
- if [ -f /proc/acpi/event ]; then
- chgrp haldaemon /proc/acpi/event
- chmod 440 /proc/acpi/event
- fi
-
- start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog
- eend $?
-}
-
-stop() {
- ebegin "Stopping Hardware Abstraction Layer daemon"
- start-stop-daemon --stop -q --pidfile /var/run/hald.pid
- eend $?
-}
diff --git a/sys-apps/hal/files/0.5.9-hald.conf b/sys-apps/hal/files/0.5.9-hald.conf
deleted file mode 100644
index 9b49452d4c71..000000000000
--- a/sys-apps/hal/files/0.5.9-hald.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-#The setting below controls the need for ConsoleKit
-#This fixes the problem of requiring people to do
-#rc-update add consolekit default since people
-#forget or don't read ewarn and then complain their system is broken
-#ONCE AGAIN DO NOT TOUCH THE LINE BELOW THIS
-RC_NEED=""
-
-# Should HAL be verbose to syslog? This is needed for debugging
-# HAL.
-HALD_VERBOSE="no"
diff --git a/sys-apps/hal/files/0.5.9-hald.rc b/sys-apps/hal/files/0.5.9-hald.rc
deleted file mode 100644
index 9d76a1ad737b..000000000000
--- a/sys-apps/hal/files/0.5.9-hald.rc
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/0.5.9-hald.rc,v 1.7 2007/04/24 15:42:01 cardoe Exp $
-
-depend() {
- need dbus
- use logger acpid
- after coldplug dns nscd
-}
-
-start() {
- [ -z "${HALD_VERBOSE}" ] && HALD_VERBOSE="no"
- ebegin "Starting Hardware Abstraction Layer daemon"
-
-# REAL_ROOT=`mount -fv / | cut -d' ' -f1`
-# TEST_ROOT=`cat /proc/mounts | cut -d' ' -f1 | head -n 2 | tail -n 1`
-
-# if [ ! -e ${TEST_ROOT} ]; then
-# echo "You need a ${TEST_ROOT} that points to your ${REAL_ROOT}"
-# echo "See http://bugs.gentoo.org/show_bug.cgi?id=175243"
-# echo "Quick fix is: ln -s ${REAL_ROOT} ${TEST_ROOT}"
-# eend 2
-# fi
-
- if [ -f /proc/acpi/event ]; then
- chgrp haldaemon /proc/acpi/event
- chmod 440 /proc/acpi/event
- fi
-
- start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog --verbose=${HALD_VERBOSE}
- eend $?
-}
-
-stop() {
- ebegin "Stopping Hardware Abstraction Layer daemon"
- start-stop-daemon --stop -q --pidfile /var/run/hald.pid
- eend $?
-}
diff --git a/sys-apps/hal/files/0.5.9/01_luks_mount_fix.patch b/sys-apps/hal/files/0.5.9/01_luks_mount_fix.patch
deleted file mode 100644
index c72aa91d3685..000000000000
--- a/sys-apps/hal/files/0.5.9/01_luks_mount_fix.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From: David Zeuthen <davidz@redhat.com>
-Date: Tue, 3 Apr 2007 17:18:23 +0000 (-0400)
-Subject: fix lock checking for LUKS setup/teardown
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=55256f3d56e3317b3e1efbf84f732b9464eacf8a
-
-fix lock checking for LUKS setup/teardown
-
-Reported here
-
- http://lists.freedesktop.org/archives/hal/2007-April/007936.html
----
-
---- a/tools/hal-luks-setup
-+++ b/tools/hal-luks-setup
-@@ -22,17 +22,17 @@ fi
- # Respect the same locks as Mount()/Unmount() etc.
- if [ -n "$HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME" ] ; then
- hal-is-caller-locked-out --udi $HAL_PROP_INFO_UDI \
-- --interface org.freedesktop.Hal.Volume \
-- --caller $HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME
-+ --interface org.freedesktop.Hal.Device.Volume \
-+ --caller "$HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME"
- RET=$?
-- if [ "$RET" != "1" ] ; then
-+ if [ "$RET" != "0" ] ; then
- locked_out
- fi
-- hal-is-caller-locked-out --udi $HAL_PROP_STORAGE_ORIGINATING_DEVICE \
-- --interface org.freedesktop.Hal.Storage \
-- --caller $HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME
-+ hal-is-caller-locked-out --udi $HAL_PROP_BLOCK_STORAGE_DEVICE \
-+ --interface org.freedesktop.Hal.Device.Storage \
-+ --caller "$HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME"
- RET=$?
-- if [ "$RET" != "1" ] ; then
-+ if [ "$RET" != "0" ] ; then
- locked_out
- fi
- fi
---- a/tools/hal-luks-teardown
-+++ b/tools/hal-luks-teardown
-@@ -23,17 +23,17 @@ fi
- # Respect the same locks as Mount()/Unmount() etc.
- if [ -n "$HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME" ] ; then
- hal-is-caller-locked-out --udi $HAL_PROP_INFO_UDI \
-- --interface org.freedesktop.Hal.Volume \
-- --caller $HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME
-+ --interface org.freedesktop.Hal.Device.Volume \
-+ --caller "$HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME"
- RET=$?
-- if [ "$RET" != "1" ] ; then
-+ if [ "$RET" != "0" ] ; then
- locked_out
- fi
-- hal-is-caller-locked-out --udi $HAL_PROP_STORAGE_ORIGINATING_DEVICE \
-- --interface org.freedesktop.Hal.Storage \
-- --caller $HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME
-+ hal-is-caller-locked-out --udi $HAL_PROP_BLOCK_STORAGE_DEVICE \
-+ --interface org.freedesktop.Hal.Device.Storage \
-+ --caller "$HAL_METHOD_INVOKED_BY_SYSTEMBUS_CONNECTION_NAME"
- RET=$?
-- if [ "$RET" != "1" ] ; then
-+ if [ "$RET" != "0" ] ; then
- locked_out
- fi
- fi
diff --git a/sys-apps/hal/files/0.5.9/02_acpi_repeated_property_change.patch b/sys-apps/hal/files/0.5.9/02_acpi_repeated_property_change.patch
deleted file mode 100644
index 69d415af04be..000000000000
--- a/sys-apps/hal/files/0.5.9/02_acpi_repeated_property_change.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From: Danny Kukawka <danny.kukawka@web.de>
-Date: Wed, 4 Apr 2007 22:48:10 +0000 (-0400)
-Subject: fix problem with repeated property-changed signals
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=3ede8e2ce38e48ba7c292ed17d348f6e810db2c1
-
-fix problem with repeated property-changed signals
-
-> On Mittwoch, 4. April 2007, Richard Hughes wrote:
-> > With git I'm getting the following when I remove AC:
-> >
-> > 15:56:02.865: acpi_ACAD property ac_adapter.present = false
-> > 15:56:03.041: acpi_ACAD property ac_adapter.present = false
-> > 15:56:03.048: acpi_BAT1 property battery.charge_level.percentage = 96
-> > (0x60) 15:56:03.051: acpi_BAT1 property battery.charge_level.percentage =
-> > 96 (0x60)
-> >
-> > acpi_listen seems to think that there is one event from either device,
-> > so I'm unsure what the problem is here.
->
-> I can confirm this, I take a look at the problem. It is IMO something in
-> the acpi code, could not see this atm for other devices.
-
-This is a general problem. The signal for device_property_changed is listed
-twice in hald.c in function hald_get_gdl().
----
-
---- a/hald/hald.c
-+++ b/hald/hald.c
-@@ -203,9 +203,6 @@ hald_get_gdl (void)
- "device_capability_added",
- G_CALLBACK (gdl_capability_added), NULL);
- g_signal_connect (global_device_list,
-- "device_property_changed",
-- G_CALLBACK (gdl_property_changed), NULL);
-- g_signal_connect (global_device_list,
- "device_lock_acquired",
- G_CALLBACK (gdl_lock_acquired), NULL);
- g_signal_connect (global_device_list,
diff --git a/sys-apps/hal/files/0.5.9/03_crasher_fix_fail_to_return_value.patch b/sys-apps/hal/files/0.5.9/03_crasher_fix_fail_to_return_value.patch
deleted file mode 100644
index ec08b92b0224..000000000000
--- a/sys-apps/hal/files/0.5.9/03_crasher_fix_fail_to_return_value.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-From: David Zeuthen <davidz@redhat.com>
-Date: Thu, 5 Apr 2007 05:04:53 +0000 (-0400)
-Subject: fix a potential crasher
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=7ce45a77001031a0d7777d7e1e5269256791b6f1
-
-fix a potential crasher
----
-
---- a/hald/hald_dbus.c
-+++ b/hald/hald_dbus.c
-@@ -2161,6 +2161,7 @@ device_is_caller_locked_out (DBusConnect
- /* only allow HAL helpers / privileged users to ask this question */
- if (!local_interface && !access_check_message_caller_is_root_or_hal (ci_tracker, message)) {
- raise_permission_denied (connection, message, "IsCallerLockedOut: not privileged");
-+ return DBUS_HANDLER_RESULT_HANDLED;
- }
-
- dbus_error_init (&error);
diff --git a/sys-apps/hal/files/0.5.9/04_cache_regen_return_fix.patch b/sys-apps/hal/files/0.5.9/04_cache_regen_return_fix.patch
deleted file mode 100644
index be16eb212118..000000000000
--- a/sys-apps/hal/files/0.5.9/04_cache_regen_return_fix.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Index: b/hald/mmap_cache.c
-===================================================================
---- a/hald/mmap_cache.c 2007-03-07 16:55:02.000000000 -0500
-+++ b/hald/mmap_cache.c 2007-04-11 12:16:44.000000000 -0400
-@@ -137,10 +137,10 @@
- HAL_INFO (("In regen_cache_cb exit_type=%d, return_code=%d", exit_type, return_code));
-
- /* see create_cache.c - rc==0 means success - rc==2 means "success, but some fdi files skipped" */
-- if (exit_type != HALD_RUN_SUCCESS || return_code != 0 || return_code != 2) {
-- regen_cache_success = FALSE;
-- } else {
-+ if (exit_type == HALD_RUN_SUCCESS && ( return_code == 0 || return_code == 2)) {
- regen_cache_success = TRUE;
-+ } else {
-+ regen_cache_success = FALSE;
- }
-
- regen_cache_done = TRUE;
diff --git a/sys-apps/hal/files/0.5.9/05_freebsd_partutil_make_fix.patch b/sys-apps/hal/files/0.5.9/05_freebsd_partutil_make_fix.patch
deleted file mode 100644
index 6fd63e119f66..000000000000
--- a/sys-apps/hal/files/0.5.9/05_freebsd_partutil_make_fix.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-Index: b/partutil/Makefile.am
-===================================================================
---- a/partutil/Makefile.am 2007-04-11 15:50:44.000000000 -0400
-+++ b/partutil/Makefile.am 2007-04-12 11:42:23.000000000 -0400
-@@ -1,17 +1,12 @@
--if HALD_COMPILE_SOLARIS
--# do nothing
--else if HALD_COMPILE_FREEBSD
--# do nothing
--else
-+if HALD_COMPILE_LINUX
-+noinst_LTLIBRARIES = libpartutil.la
-+endif
-
- INCLUDES = @GLIB_CFLAGS@
-
--noinst_LTLIBRARIES = libpartutil.la
--
- libpartutil_la_SOURCES = partutil.h partutil.c ../hald/logger.c
-
- libpartutil_la_LIBADD = @GLIB_LIBS@ @PARTED_LIBS@
-
- clean-local :
- rm -f *~
--endif
diff --git a/sys-apps/hal/files/0.5.9/06_freebsd_backend_fix.patch b/sys-apps/hal/files/0.5.9/06_freebsd_backend_fix.patch
deleted file mode 100644
index d18c03212673..000000000000
--- a/sys-apps/hal/files/0.5.9/06_freebsd_backend_fix.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-Index: b/hald/freebsd/hf-usb.c
-===================================================================
---- a/hald/freebsd/hf-usb.c 2007-04-12 11:42:05.000000000 -0400
-+++ b/hald/freebsd/hf-usb.c 2007-04-12 11:59:40.000000000 -0400
-@@ -372,11 +372,11 @@
- can_wake_up = (config_desc.bmAttributes & UC_REMOTE_WAKEUP) != 0;
- num_interfaces = config_desc.bNumInterface;
-
-- if (config_desc->iConfiguration != 0)
-+ if (config_desc.iConfiguration != 0)
- {
- char *configuration;
-
-- configuration = hf_usb_get_string_descriptor(controller->fd, di->udi_addr, config_desc->iConfiguration, NULL);
-+ configuration = hf_usb_get_string_descriptor(controller->fd, di->udi_addr, config_desc.iConfiguration, NULL);
- if (configuration)
- {
- hal_device_property_set_string(device, "usb_device.configuration", configuration);
-@@ -424,6 +424,8 @@
-
- static HalDevice *
- hf_usb_interface_device_new (HalDevice *parent,
-+ Controller *controller,
-+ const struct usb_device_info *di,
- const usb_interface_descriptor_t *desc)
- {
- HalDevice *device;
-@@ -576,7 +578,7 @@
- break;
- }
-
-- if_device = hf_usb_interface_device_new(device, if_desc);
-+ if_device = hf_usb_interface_device_new(device, controller, device_info, if_desc);
- hf_device_preprobe_and_add(if_device);
-
- p += USB_INTERFACE_DESCRIPTOR_SIZE + if_desc->bNumEndpoints * USB_ENDPOINT_DESCRIPTOR_SIZE;
-Index: b/hald/freebsd/hf-pci.c
-===================================================================
---- a/hald/freebsd/hf-pci.c 2007-04-12 11:42:05.000000000 -0400
-+++ b/hald/freebsd/hf-pci.c 2007-04-12 12:04:48.000000000 -0400
-@@ -38,6 +38,7 @@
-
- #include "../hald.h"
- #include "../ids.h"
-+#include "../device.h"
- #include "../logger.h"
- #include "../util.h"
-
-@@ -210,9 +211,15 @@
-
- info = g_new(DeviceInfo, 1);
- info->device = hf_device_store_match(hald_get_gdl(),
-- hal_property_new_int("pci.freebsd.bus", p->pc_sel.pc_bus),
-- hal_property_new_int("pci.freebsd.device", p->pc_sel.pc_dev),
-- hal_property_new_int("pci.freebsd.function", p->pc_sel.pc_func),
-+ "pci.freebsd.bus",
-+ HAL_PROPERTY_TYPE_INT32,
-+ p->pc_sel.pc_bus,
-+ "pci.freebsd.device",
-+ HAL_PROPERTY_TYPE_INT32,
-+ p->pc_sel.pc_dev,
-+ "pci.freebsd.function",
-+ HAL_PROPERTY_TYPE_INT32,
-+ p->pc_sel.pc_func,
- NULL);
- info->p = *p;
- info->secondary_bus = hf_pci_get_register(p, PCIR_SECBUS_1);
diff --git a/sys-apps/hal/files/0.5.9/07_malloc_h_for_stdlib_h.patch b/sys-apps/hal/files/0.5.9/07_malloc_h_for_stdlib_h.patch
deleted file mode 100644
index cfc20c6c0622..000000000000
--- a/sys-apps/hal/files/0.5.9/07_malloc_h_for_stdlib_h.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-Index: b/hald/create_cache.c
-===================================================================
---- a/hald/create_cache.c 2007-04-11 15:50:43.000000000 -0400
-+++ b/hald/create_cache.c 2007-04-11 17:34:54.000000000 -0400
-@@ -34,8 +34,8 @@
- #include <unistd.h>
- #include <string.h>
- #include <stdio.h>
-+#include <stdlib.h>
- #include <dirent.h>
--#include <malloc.h>
- #include <errno.h>
- #include <string.h>
- #include <getopt.h>
-Index: b/hald/hald.c
-===================================================================
---- a/hald/hald.c 2007-04-11 15:50:43.000000000 -0400
-+++ b/hald/hald.c 2007-04-11 17:37:29.000000000 -0400
-@@ -30,6 +30,11 @@
-
- #include <stdio.h>
- #include <stdlib.h>
-+
-+#ifdef HAVE_MALLOPT
-+#include <malloc.h>
-+#endif
-+
- #include <string.h>
- #include <unistd.h>
- #include <getopt.h>
-@@ -43,7 +48,6 @@
- #include <syslog.h>
- #include <sys/time.h>
- #include <sys/resource.h>
--#include <malloc.h>
- #include <dbus/dbus.h>
- #include <dbus/dbus-glib.h>
- #include <dbus/dbus-glib-lowlevel.h>
-Index: b/hald/cache_test.c
-===================================================================
---- a/hald/cache_test.c 2007-04-11 15:50:43.000000000 -0400
-+++ b/hald/cache_test.c 2007-04-11 17:34:54.000000000 -0400
-@@ -34,7 +34,7 @@
- #include <unistd.h>
- #include <string.h>
- #include <stdio.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include <dirent.h>
- #include <errno.h>
- #include <expat.h>
diff --git a/sys-apps/hal/files/0.5.9/08_contains_not_fdi_directive.patch b/sys-apps/hal/files/0.5.9/08_contains_not_fdi_directive.patch
deleted file mode 100644
index 573418f5eed2..000000000000
--- a/sys-apps/hal/files/0.5.9/08_contains_not_fdi_directive.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-From: Danny Kukawka <danny.kukawka@web.de>
-Date: Thu, 12 Apr 2007 19:39:06 +0000 (-0400)
-Subject: fix contains_not fdi-directive
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=485f9aa6780690d915a13d813bc753501a3c899e
-
-fix contains_not fdi-directive
-
-This patch fixes the contains_not FDI file directive/rule to return true (let
-the match not fail) if the property is not set on the device. This allow to
-have this rule:
-
- <match key="info.addons" contains_not="hald-addon-input">
- <append key="info.addons" type="strlist">hald-addon-input</append>
- </match>
-
-Without this patch this fails if info.addons is not already set. With the
-change it would match if:
-* info.addons is not available
-or
-* info.addons contains no string 'hald-addon-input'
----
-
---- a/doc/spec/hal-spec-fdi-files.xml
-+++ b/doc/spec/hal-spec-fdi-files.xml
-@@ -156,10 +156,10 @@
- <para>
- <literal>contains_not</literal> - can only be used with strlist (string list)
- and string properties.
-- For a string list this match if the given string is not match any of the
-- item of the list for a string this match of the property not contains the
-- (sub-)string. You can use this attribute to construct if/else blocks together
-- with e.g. <literal>contains</literal>.
-+ For a string list this match if the given string not match any of the
-+ item of the list (or the property is not set for the device). For a string
-+ this match of the property not contains the (sub-)string. You can use this
-+ attribute to construct if/else blocks together with e.g. <literal>contains</literal>.
- </para>
- </listitem>
- <listitem>
---- a/hald/device_info.c
-+++ b/hald/device_info.c
-@@ -447,27 +447,28 @@ handle_match (struct rule *rule, HalDevi
- {
- dbus_bool_t contains = FALSE;
-
-- if (hal_device_property_get_type (d, prop_to_check) == HAL_PROPERTY_TYPE_STRING) {
-- if (hal_device_has_property (d, prop_to_check)) {
-+ if (hal_device_has_property (d, prop_to_check) && value != NULL) {
-+
-+ if (hal_device_property_get_type (d, prop_to_check) == HAL_PROPERTY_TYPE_STRING) {
- const char *haystack;
-
- haystack = hal_device_property_get_string (d, prop_to_check);
-- if (value != NULL && haystack != NULL && (strstr(haystack, value) != NULL))
-- contains = TRUE;
-- }
-- } else if (hal_device_property_get_type (d, prop_to_check) == HAL_PROPERTY_TYPE_STRLIST && value != NULL) {
-- HalDeviceStrListIter iter;
-- for (hal_device_property_strlist_iter_init (d, prop_to_check, &iter);
-- hal_device_property_strlist_iter_is_valid (&iter);
-- hal_device_property_strlist_iter_next (&iter)) {
-- const char *str = hal_device_property_strlist_iter_get_value (&iter);
-- if (strcmp (str, value) == 0) {
-+ if (haystack != NULL && (strstr(haystack, value) != NULL))
- contains = TRUE;
-- break;
-+ } else if (hal_device_property_get_type (d, prop_to_check) == HAL_PROPERTY_TYPE_STRLIST) {
-+ HalDeviceStrListIter iter;
-+ for (hal_device_property_strlist_iter_init (d, prop_to_check, &iter);
-+ hal_device_property_strlist_iter_is_valid (&iter);
-+ hal_device_property_strlist_iter_next (&iter)) {
-+ const char *str = hal_device_property_strlist_iter_get_value (&iter);
-+ if (strcmp (str, value) == 0) {
-+ contains = TRUE;
-+ break;
-+ }
- }
-+ } else {
-+ return FALSE;
- }
-- } else {
-- return FALSE;
- }
-
- if (rule->type_match == MATCH_CONTAINS) {
diff --git a/sys-apps/hal/files/0.5.9/09_hald_addon_keyboard_start_one.patch b/sys-apps/hal/files/0.5.9/09_hald_addon_keyboard_start_one.patch
deleted file mode 100644
index d5318aa3fb1f..000000000000
--- a/sys-apps/hal/files/0.5.9/09_hald_addon_keyboard_start_one.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From: David Zeuthen <davidz@redhat.com>
-Date: Thu, 12 Apr 2007 19:46:26 +0000 (-0400)
-Subject: only start one hald-addon-keyboard addon
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=f22a37b7a7073b3398e9060e21bc1d12dc58783f
-
-only start one hald-addon-keyboard addon
-
-this patch fixes the problem that one device can have get started the
-same hald-addon-keyboard addon multiple times. This work only together
-with my patch for the contains_not FDI-file directive.
-
-(similar to commit 5745da44f3bb43dafd9b53cbfcfc1218619a5263 on master)
----
-
---- a/fdi/policy/10osvendor/10-keyboard-policy.fdi
-+++ b/fdi/policy/10osvendor/10-keyboard-policy.fdi
-@@ -5,10 +5,14 @@
- <device>
- <match key="info.capabilities" contains="input">
- <match key="info.capabilities" contains="button">
-- <append key="info.addons" type="strlist">hald-addon-keyboard</append>
-+ <match key="info.addons" contains_not="hald-addon-keyboard">
-+ <append key="info.addons" type="strlist">hald-addon-keyboard</append>
-+ </match>
- </match>
- <match key="info.capabilities" contains="input.keyboard">
-- <append key="info.addons" type="strlist">hald-addon-keyboard</append>
-+ <match key="info.addons" contains_not="hald-addon-keyboard">
-+ <append key="info.addons" type="strlist">hald-addon-keyboard</append>
-+ </match>
- <match key="info.capabilities" contains_not="button">
- <append key="info.capabilities" type="strlist">button</append>
- </match>
diff --git a/sys-apps/hal/files/0.5.9/10_freebsd_storage_reprobe_fix.patch b/sys-apps/hal/files/0.5.9/10_freebsd_storage_reprobe_fix.patch
deleted file mode 100644
index 3199ed4a4322..000000000000
--- a/sys-apps/hal/files/0.5.9/10_freebsd_storage_reprobe_fix.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From: Joe Marcus Clarke <marcus@FreeBSD.org>
-Date: Sat, 14 Apr 2007 21:14:15 +0000 (-0400)
-Subject: do not re-probe devices that are managed by hald-addon-storage
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=15272b99f8d373b9bcd239112231f5bef099d24f
-
-do not re-probe devices that are managed by hald-addon-storage
-
-Do not re-probe devices that are managed by hald-addon-storage since that
-will result in a double-probe and data corruption. In particular, this
-fixes a problem with CD unmounting when ATAPICAM is enabled.
----
-
---- a/hald/freebsd/hf-storage.c
-+++ b/hald/freebsd/hf-storage.c
-@@ -65,6 +65,7 @@ static GNode *hf_storage_geom_tree = NUL
- static GHashTable *hf_storage_geom_hash = NULL;
-
- static void hf_storage_init_geom (void);
-+static gboolean hf_storage_device_has_addon (HalDevice *device);
-
- static void
- hf_storage_geom_free (gpointer data)
-@@ -587,7 +588,8 @@ hf_storage_conftxt_timeout_cb (gpointer
- {
- /* disk changed */
- device = hf_devtree_find_from_name(hald_get_gdl(), disk->name);
-- if (device && hal_device_has_capability(device, "storage"))
-+ if (device && hal_device_has_capability(device, "storage") &&
-+ ! hf_storage_device_has_addon(device))
- hf_storage_device_rescan_real(device);
- }
- }
-@@ -768,6 +770,28 @@ hf_storage_device_rescan (HalDevice *dev
- return FALSE;
- }
-
-+static gboolean
-+hf_storage_device_has_addon (HalDevice *device)
-+{
-+ HalDeviceStrListIter iter;
-+
-+ g_return_val_if_fail(device != NULL, FALSE);
-+
-+ for (hal_device_property_strlist_iter_init(device, "info.addons", &iter);
-+ hal_device_property_strlist_iter_is_valid(&iter);
-+ hal_device_property_strlist_iter_next(&iter))
-+ {
-+ const char *addon;
-+
-+ addon = hal_device_property_strlist_iter_get_value(&iter);
-+
-+ if (! strcmp(addon, "hald-addon-storage"))
-+ return TRUE;
-+ }
-+
-+ return FALSE;
-+}
-+
- HFHandler hf_storage_handler = {
- .init = hf_storage_init,
- .probe = hf_storage_probe,
diff --git a/sys-apps/hal/files/0.5.9/11_hal_fix_segfault_probe_volume.patch b/sys-apps/hal/files/0.5.9/11_hal_fix_segfault_probe_volume.patch
deleted file mode 100644
index 2b1db74ec0f3..000000000000
--- a/sys-apps/hal/files/0.5.9/11_hal_fix_segfault_probe_volume.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-commit f6fbf88c4af259bc4670f5d48c93ab4f70838074
-Author: Danny Kukawka <danny.kukawka@web.de>
-Date: Tue Apr 17 14:38:03 2007 +0200
-
- fix possible segfault in probe-volume if vid->type == NULL
-
- Fix possible segfaults in probe-volume and libhal if vid->type == NULL. Added
- checks for vid->type != NULL to probe-volume.c and new checks for parameter
- (LIBHAL_CHECK_PARAM_VALID) of libhal_changeset_set_property_string().
-
- This fix also fd.o bug #10429.
-
-diff --git a/hald/linux/probing/probe-volume.c b/hald/linux/probing/probe-volume.c
-index d5963db..b5f71c0 100644
---- a/hald/linux/probing/probe-volume.c
-+++ b/hald/linux/probing/probe-volume.c
-@@ -122,8 +122,11 @@ set_volume_id_values (LibHalContext *ctx, const char *udi, LibHalChangeSet *cs,
- libhal_changeset_set_property_string (cs, "volume.fsusage", usage);
- HAL_DEBUG (("volume.fsusage = '%s'", usage));
-
-- libhal_changeset_set_property_string (cs, "volume.fstype", vid->type);
-+ if (!libhal_changeset_set_property_string (cs, "volume.fstype", vid->type))
-+ libhal_changeset_set_property_string (cs, "volume.fstype", "");
-+
- HAL_DEBUG(("volume.fstype = '%s'", vid->type));
-+
- if (vid->type_version[0] != '\0') {
- libhal_changeset_set_property_string (cs, "volume.fsversion", vid->type_version);
- HAL_DEBUG(("volume.fsversion = '%s'", vid->type_version));
-@@ -141,12 +144,23 @@ set_volume_id_values (LibHalContext *ctx, const char *udi, LibHalChangeSet *cs,
- libhal_changeset_set_property_string (cs, "info.product", volume_label);
- }
- else {
-- snprintf (buf, sizeof (buf), "Volume (%s)", vid->type);
-+ if (vid->type != NULL) {
-+ snprintf (buf, sizeof (buf), "Volume (%s)", vid->type);
-+ } else {
-+ snprintf (buf, sizeof (buf), "Volume (unknown)");
-+ }
-+
- libhal_changeset_set_property_string (cs, "info.product", buf);
-+
- }
- g_free(volume_label);
- } else {
-- snprintf (buf, sizeof (buf), "Volume (%s)", vid->type);
-+ if (vid->type != NULL) {
-+ snprintf (buf, sizeof (buf), "Volume (%s)", vid->type);
-+ } else {
-+ snprintf (buf, sizeof (buf), "Volume (unknown)");
-+ }
-+
- libhal_changeset_set_property_string (cs, "info.product", buf);
- }
- }
-diff --git a/libhal/libhal.c b/libhal/libhal.c
-index 4ddac9e..fb9800a 100644
---- a/libhal/libhal.c
-+++ b/libhal/libhal.c
-@@ -3810,6 +3810,9 @@ libhal_changeset_set_property_string (LibHalChangeSet *changeset, const char *ke
- {
- LibHalChangeSetElement *elem;
-
-+ LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
-+ LIBHAL_CHECK_PARAM_VALID(value, "*value", FALSE);
-+
- elem = calloc (1, sizeof (LibHalChangeSetElement));
- if (elem == NULL)
- goto out;
diff --git a/sys-apps/hal/files/0.5.9/12_hal_fix-vol_label_probe_volume.patch b/sys-apps/hal/files/0.5.9/12_hal_fix-vol_label_probe_volume.patch
deleted file mode 100644
index 68b61279a32d..000000000000
--- a/sys-apps/hal/files/0.5.9/12_hal_fix-vol_label_probe_volume.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-commit 674d2415aed43b43b81b262cbad2228f0477e34a
-Author: Danny Kukawka <danny.kukawka@web.de>
-Date: Tue Apr 17 15:09:22 2007 +0200
-
- fix problems with case if vid->label[0] is '\0'
-
- Fix problems with the case where vid->label[0] is '\0'. Don't call
- strdup_valid_utf8 in this case, simply ignore the label in this case.
- Cleaned up the code to prevent code duplication.
-
- This fix fd.o bug #10362.
-
-diff --git a/hald/linux/probing/probe-volume.c b/hald/linux/probing/probe-volume.c
-index b5f71c0..b003b25 100644
---- a/hald/linux/probing/probe-volume.c
-+++ b/hald/linux/probing/probe-volume.c
-@@ -131,38 +131,34 @@ set_volume_id_values (LibHalContext *ctx, const char *udi, LibHalChangeSet *cs,
- libhal_changeset_set_property_string (cs, "volume.fsversion", vid->type_version);
- HAL_DEBUG(("volume.fsversion = '%s'", vid->type_version));
- }
-+
- libhal_changeset_set_property_string (cs, "volume.uuid", vid->uuid);
- HAL_DEBUG(("volume.uuid = '%s'", vid->uuid));
-
-- /* we need to be sure for a utf8 valid label, because dbus accept only utf8 valid strings */
-- volume_label = strdup_valid_utf8 (vid->label);
-- if( volume_label != NULL ) {
-- libhal_changeset_set_property_string (cs, "volume.label", volume_label);
-- HAL_DEBUG(("volume.label = '%s'", volume_label));
-+ if(vid->label != NULL && vid->label[0] != '\0') {
-+ /* we need to be sure for a utf8 valid label, because dbus accept only utf8 valid strings */
-+ volume_label = strdup_valid_utf8 (vid->label);
-+ if( volume_label != NULL ) {
-+ libhal_changeset_set_property_string (cs, "volume.label", volume_label);
-+ HAL_DEBUG(("volume.label = '%s'", volume_label));
-
-- if (strlen(volume_label) > 0) {
-- libhal_changeset_set_property_string (cs, "info.product", volume_label);
-- }
-- else {
-- if (vid->type != NULL) {
-- snprintf (buf, sizeof (buf), "Volume (%s)", vid->type);
-- } else {
-- snprintf (buf, sizeof (buf), "Volume (unknown)");
-+ if (strlen(volume_label) > 0) {
-+ libhal_changeset_set_property_string (cs, "info.product", volume_label);
-+ g_free(volume_label);
-+ return;
- }
-
-- libhal_changeset_set_property_string (cs, "info.product", buf);
--
-- }
-- g_free(volume_label);
-- } else {
-- if (vid->type != NULL) {
-- snprintf (buf, sizeof (buf), "Volume (%s)", vid->type);
-- } else {
-- snprintf (buf, sizeof (buf), "Volume (unknown)");
-+ g_free(volume_label);
- }
-+ }
-
-- libhal_changeset_set_property_string (cs, "info.product", buf);
-+ if (vid->type != NULL) {
-+ snprintf (buf, sizeof (buf), "Volume (%s)", vid->type);
-+ } else {
-+ snprintf (buf, sizeof (buf), "Volume (unknown)");
- }
-+
-+ libhal_changeset_set_property_string (cs, "info.product", buf);
- }
-
- static void
diff --git a/sys-apps/hal/files/0.5.9/13_detect_newer_macbooks.patch b/sys-apps/hal/files/0.5.9/13_detect_newer_macbooks.patch
deleted file mode 100644
index 81c15bd47e84..000000000000
--- a/sys-apps/hal/files/0.5.9/13_detect_newer_macbooks.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From: Martin Pitt <martin@piware.de>
-Date: Wed, 18 Apr 2007 19:33:07 +0000 (-0400)
-Subject: support more Macbook Pro models
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=98e53bff6ee6c94113b2e745f727c7a78bae5f06
-
-support more Macbook Pro models
-
-Matthew recently fixed the FDIs to support newer MacBook Pro models.
-
-Patch applies cleanly to 0.5.9 and git head.
-
-(changed by davidz: s/smbios.system.product/system.hardware.product)
----
-
-Index: b/fdi/policy/10osvendor/10-macbookpro-utils.fdi
-===================================================================
---- a/fdi/policy/10osvendor/10-macbookpro-utils.fdi 2007-04-30 14:56:39.000000000 -0400
-+++ b/fdi/policy/10osvendor/10-macbookpro-utils.fdi 2007-04-30 14:56:58.000000000 -0400
-@@ -11,6 +11,21 @@
- <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight"/>
- <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel"/>
- </match>
-+ <match key="system.hardware.product" string="MacBookPro1,2">
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_light_sensor"/>
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight"/>
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel"/>
-+ </match>
-+ <match key="system.hardware.product" string="MacBookPro2,1">
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_light_sensor"/>
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight"/>
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel"/>
-+ </match>
-+ <match key="system.hardware.product" string="MacBookPro2,2">
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_light_sensor"/>
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_keyboard_backlight"/>
-+ <spawn udi="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel"/>
-+ </match>
- </match>
- </match>
- </device>
diff --git a/sys-apps/hal/files/0.5.9/14_ntfs_allows_utf8.patch b/sys-apps/hal/files/0.5.9/14_ntfs_allows_utf8.patch
deleted file mode 100644
index 92a0ef1f9df1..000000000000
--- a/sys-apps/hal/files/0.5.9/14_ntfs_allows_utf8.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: b/fdi/policy/10osvendor/20-storage-methods.fdi
-===================================================================
---- a/fdi/policy/10osvendor/20-storage-methods.fdi 2007-03-27 01:18:54.000000000 -0400
-+++ b/fdi/policy/10osvendor/20-storage-methods.fdi 2007-04-18 10:20:54.000000000 -0400
-@@ -186,6 +186,7 @@
- <append key="volume.mount.valid_options" type="strlist">gid=</append>
- <append key="volume.mount.valid_options" type="strlist">umask=</append>
- <append key="volume.mount.valid_options" type="strlist">locale=</append>
-+ <append key="volume.mount.valid_options" type="strlist">utf8</append>
- </match>
- <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
- <append key="volume.mount.valid_options" type="strlist">-u=</append>
diff --git a/sys-apps/hal/files/0.5.9/15_spec_fdi_matching.patch b/sys-apps/hal/files/0.5.9/15_spec_fdi_matching.patch
deleted file mode 100644
index 3410fd976ee6..000000000000
--- a/sys-apps/hal/files/0.5.9/15_spec_fdi_matching.patch
+++ /dev/null
@@ -1,200 +0,0 @@
-Index: b/doc/spec/hal-spec-fdi-files.xml
-===================================================================
---- a/doc/spec/hal-spec-fdi-files.xml 2007-04-12 21:22:36.000000000 -0400
-+++ b/doc/spec/hal-spec-fdi-files.xml 2007-04-19 15:23:51.000000000 -0400
-@@ -100,6 +100,12 @@
- </listitem>
- <listitem>
- <para>
-+ <literal>is_ascii</literal> - matches only when a string property
-+ contain only ASCII characters. Can be used with 'true' or 'false'.
-+ </para>
-+ </listitem>
-+ <listitem>
-+ <para>
- <literal>is_absolute_path</literal> - matches only when a string
- property represents an absolute path (the path doesn't have to exist).
- Can be used with 'true' or 'false'.
-@@ -107,65 +113,92 @@
- </listitem>
- <listitem>
- <para>
-- <literal>is_ascii</literal> - matches only when a string property
-- contain only ASCII characters. Can be used with 'true' or 'false'.
-+ <literal>sibling_contains</literal> - can only be used with string and
-+ strlist (string list).
-+ For a string key this matches when a sibling item contains the
-+ (sub-)string in the same property. For a string list, this is if a string
-+ matches an item in the list.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>compare_lt</literal> - can be used on int, uint64, double
-- and string properties to compare with a constant.
-- Matches when the given property is less than the given constant
-- using the default ordering.
-+ <literal>contains</literal> - can only be used with string and
-+ strlist (string list).
-+ For a string key this matches when the property contains the given
-+ (sub-)string. For a string list this match if the given string match
-+ a item of the list.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>compare_le</literal> - like <literal>compare_lt</literal>
-- but matches when less than or equal.
-+ <literal>contains_ncase</literal> - like <literal>contains</literal>
-+ but the property and the given key are converted to lowercase before check.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>compare_gt</literal> - like <literal>compare_lt</literal>
-- but matches when greater than.
-+ <literal>contains_not</literal> - can only be used with strlist (string list)
-+ and string properties.
-+ For a string list this match if the given string not match any of the
-+ item of the list (or the property is not set for the device). For a string
-+ this match of the property not contains the (sub-)string. You can use this
-+ attribute to construct if/else blocks together with e.g. <literal>contains</literal>.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>compare_ge</literal> - like <literal>compare_lt</literal>
-- but matches when greater than or equal.
-+ <literal>prefix</literal> - can only be used with string properties.
-+ Matches if property begins with the key.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>compare_ne</literal> - like <literal>compare_lt</literal>
-- but matches when not equal.
-+ <literal>prefix_ncase</literal> - like <literal>prefix</literal> but the
-+ property and the given key are converted to lowercase before the check.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>contains</literal> - can only be used with string and
-- strlist (string list).
-- For a string key this matches when the property contains the given
-- (sub-)string. For a string list this match if the given string match
-- a item of the list.
-+ <literal>suffix</literal> - can only be used with string properties.
-+ Matches if property ends with the key.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>contains_not</literal> - can only be used with strlist (string list)
-- and string properties.
-- For a string list this match if the given string not match any of the
-- item of the list (or the property is not set for the device). For a string
-- this match of the property not contains the (sub-)string. You can use this
-- attribute to construct if/else blocks together with e.g. <literal>contains</literal>.
-+ <literal>suffix_ncase</literal> - like <literal>suffix</literal> but the
-+ property and the given key are converted to lowercase before the check.
- </para>
- </listitem>
- <listitem>
- <para>
-- <literal>contains_ncase</literal> - like <literal>contains</literal>
-- but the property and the given key are converted to lowercase before check.
-+ <literal>compare_lt</literal> - can be used on int, uint64, double
-+ and string properties to compare with a constant.
-+ Matches when the given property is less than the given constant
-+ using the default ordering.
-+ </para>
-+ </listitem>
-+ <listitem>
-+ <para>
-+ <literal>compare_le</literal> - like <literal>compare_lt</literal>
-+ but matches when less than or equal.
-+ </para>
-+ </listitem>
-+ <listitem>
-+ <para>
-+ <literal>compare_gt</literal> - like <literal>compare_lt</literal>
-+ but matches when greater than.
-+ </para>
-+ </listitem>
-+ <listitem>
-+ <para>
-+ <literal>compare_ge</literal> - like <literal>compare_lt</literal>
-+ but matches when greater than or equal.
-+ </para>
-+ </listitem>
-+ <listitem>
-+ <para>
-+ <literal>compare_ne</literal> - like <literal>compare_lt</literal>
-+ but matches when not equal.
- </para>
- </listitem>
- </itemizedlist>
-Index: b/hald/device_info.c
-===================================================================
---- a/hald/device_info.c 2007-04-12 21:22:36.000000000 -0400
-+++ b/hald/device_info.c 2007-04-19 15:32:52.000000000 -0400
-@@ -71,6 +71,8 @@
- return "uint64";
- case MATCH_BOOL:
- return "bool";
-+ case MATCH_DOUBLE:
-+ return "double";
- case MATCH_EXISTS:
- return "exists";
- case MATCH_EMPTY:
-@@ -85,6 +87,8 @@
- return "contains";
- case MATCH_CONTAINS_NCASE:
- return "contains_ncase";
-+ case MATCH_CONTAINS_NOT:
-+ return "contains_not";
- case MATCH_PREFIX:
- return "prefix";
- case MATCH_PREFIX_NCASE:
-@@ -105,8 +109,6 @@
- return "compare_ne";
- case MATCH_UNKNOWN:
- return "unknown match type";
-- case MATCH_CONTAINS_NOT:
-- return "contains_not";
- }
- return "invalid match type";
- }
-@@ -331,6 +333,17 @@
- return TRUE;
- }
-
-+ case MATCH_DOUBLE:
-+ {
-+ double val = atof (value);
-+
-+ if (hal_device_property_get_type (d, prop_to_check) != HAL_PROPERTY_TYPE_DOUBLE)
-+ return FALSE;
-+ if (hal_device_property_get_double (d, prop_to_check) != val)
-+ return FALSE;
-+ return TRUE;
-+ }
-+
- case MATCH_EXISTS:
- {
- dbus_bool_t should_exist = TRUE;
-Index: b/hald/rule.h
-===================================================================
---- a/hald/rule.h 2007-03-07 16:52:19.000000000 -0500
-+++ b/hald/rule.h 2007-04-20 14:10:31.000000000 -0400
-@@ -79,7 +79,8 @@
- MATCH_COMPARE_GE,
- MATCH_SIBLING_CONTAINS,
- MATCH_COMPARE_NE,
-- MATCH_CONTAINS_NOT
-+ MATCH_CONTAINS_NOT,
-+ MATCH_DOUBLE
- } match_type;
-
- /* a "rule" structure that is a generic node of the fdi file */
diff --git a/sys-apps/hal/files/0.5.9/16_dev_root_is_mounted.patch b/sys-apps/hal/files/0.5.9/16_dev_root_is_mounted.patch
deleted file mode 100644
index 873bc294dfe0..000000000000
--- a/sys-apps/hal/files/0.5.9/16_dev_root_is_mounted.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-Index: b/hald/linux/blockdev.c
-===================================================================
---- a/hald/linux/blockdev.c 2007-03-07 16:52:19.000000000 -0500
-+++ b/hald/linux/blockdev.c 2007-04-24 11:31:22.000000000 -0400
-@@ -165,9 +165,6 @@
- struct mntent mnt;
- struct mntent *mnte;
- char buf[1024];
-- unsigned int major;
-- unsigned int minor;
-- dev_t devt = makedev(0, 0);
- GSList *volumes = NULL;
- GSList *volume;
-
-@@ -189,43 +186,53 @@
- /* loop over /proc/mounts */
- while ((mnte = getmntent_r (f, &mnt, buf, sizeof(buf))) != NULL) {
- struct stat statbuf;
-- gboolean use_device_name_for_match;
-+ dev_t devt;
-
-- /*HAL_INFO ((" * /proc/mounts contain dev %s - type %s", mnt.mnt_fsname, mnt.mnt_type));*/
-+ /* HAL_INFO ((" * /proc/mounts contain dev %s - type %s", mnt.mnt_fsname, mnt.mnt_type)); */
-
-- /* If this is a nfs mount (fstype == 'nfs') ignore the mount. Reason:
-- * 1. we don't list nfs devices in HAL
-- * 2. more problematic: stat on mountpoints with 'stale nfs handle' never come
-- * back and block complete HAL and all applications using HAL fail.
-+ /* We don't handle nfs mounts in HAL and stat() on mountpoints,
-+ * and we would block on 'stale nfs handle'.
- */
- if (strcmp(mnt.mnt_type, "nfs") == 0)
- continue;
-
-- use_device_name_for_match = FALSE;
-- /* get major:minor of special device file */
-- if (stat (mnt.mnt_fsname, &statbuf) != 0) {
-- /* DING DING DING... device node may have been deleted by udev
-- * but device is still mounted and we haven't processed the uevent
-- * for that deletion from udev..
-- *
-- * So in this case... fall back to comparing on device names
-- * rather than pretending the device is not mounted as that's
-- * what will happen if we just skip this /proc/mounts entry.
-- *
-- * The reason it's nicer to compare on major:minor is that
-- * /proc/mounts is broken - it contains the *device name*
-- * passed to mount(2) which in some cases may be a symlink
-- * (on many distros it's common to see /proc/mounts contain
-- * /dev/root as the device for /). Sigh...
-- */
-- use_device_name_for_match = TRUE;
-- } else {
-+ /* skip plain names, we look for device nodes */
-+ if (mnt.mnt_fsname[0] != '/')
-+ continue;
-+
-+ /*
-+ * We can't just stat() the mountpoint, because it breaks all sorts
-+ * non-disk filesystems. So assume, that the names in /proc/mounts
-+ * are existing device-files used to mount the filesystem.
-+ */
-+ devt = makedev(0, 0);
-+ if (stat (mnt.mnt_fsname, &statbuf) == 0) {
-+ /* not a device node */
- if (major (statbuf.st_rdev) == 0)
- continue;
-+
-+ /* found major/minor */
-+ devt = statbuf.st_rdev;
-+ } else {
-+ /* The root filesystem may be mounted by a device name that doesn't
-+ * exist in the real root, like /dev/root, which the kernel uses
-+ * internally, when no initramfs image is used. For "/", it is safe
-+ * to get the major/minor by stat()'ing the mount-point.
-+ */
-+ if (strcmp (mnt.mnt_dir, "/") == 0 && stat ("/", &statbuf) == 0)
-+ devt = statbuf.st_dev;
-+
-+ /* DING DING DING... the device-node may not exist, or is
-+ * already deleted, but the device may be still mounted.
-+ *
-+ * We will fall back to looking up the device-name, instead
-+ * of using major/minor.
-+ */
- }
-
-- /*HAL_INFO (("* found mounts dev %s (%i:%i)", mnt.mnt_fsname, major (statbuf.st_rdev), minor (statbuf.st_rdev)));*/
-- /* match against all hal volumes */
-+ /* HAL_INFO (("* found mounts dev %s (%i:%i)", mnt.mnt_fsname,
-+ major (devt), minor (devt))); */
-+
- for (volume = volumes; volume != NULL; volume = g_slist_next (volume)) {
- HalDevice *dev;
- gboolean is_match;
-@@ -233,7 +240,8 @@
- is_match = FALSE;
- dev = HAL_DEVICE (volume->data);
-
-- if (use_device_name_for_match) {
-+ /* lookup dev_t or devname of known hal devices */
-+ if (major (devt) == 0) {
- const char *device_name;
-
- device_name = hal_device_property_get_string (dev, "block.device");
-@@ -243,14 +251,16 @@
- if (strcmp (device_name, mnt.mnt_fsname) == 0)
- is_match = TRUE;
- } else {
-- major = hal_device_property_get_int (dev, "block.major");
-- if (major == 0)
-+ unsigned int majornum;
-+ unsigned int minornum;
-+
-+ majornum = hal_device_property_get_int (dev, "block.major");
-+ if (majornum == 0)
- continue;
-- minor = hal_device_property_get_int (dev, "block.minor");
-- devt = makedev (major, minor);
-- /*HAL_INFO ((" match %s (%i:%i)", hal_device_get_udi (dev), major, minor));*/
-+ minornum = hal_device_property_get_int (dev, "block.minor");
-+ /* HAL_INFO ((" match %s (%i:%i)", hal_device_get_udi (dev), majornum, minornum)); */
-
-- if (statbuf.st_rdev == devt)
-+ if (majornum == major (devt) && minornum == minor (devt))
- is_match = TRUE;
- }
-
-@@ -262,9 +272,8 @@
- hasmntopt (&mnt, MNTOPT_RO) ? TRUE : FALSE);
- hal_device_property_set_string (dev, "volume.mount_point", mnt.mnt_dir);
- device_property_atomic_update_end ();
-- /*HAL_INFO ((" set %s to be mounted at %s (%s)",
-- hal_device_get_udi (dev), mnt.mnt_dir,
-- hasmntopt (&mnt, MNTOPT_RO) ? "ro" : "rw"));*/
-+ /* HAL_INFO ((" set %s to be mounted at %s (%s)", hal_device_get_udi (dev),
-+ mnt.mnt_dir, hasmntopt (&mnt, MNTOPT_RO) ? "ro" : "rw")); */
- volumes = g_slist_delete_link (volumes, volume);
- break;
- }
diff --git a/sys-apps/hal/files/0.5.9/17_autoconf_cflag_cleanup.patch b/sys-apps/hal/files/0.5.9/17_autoconf_cflag_cleanup.patch
deleted file mode 100644
index 2dc43c6bfea7..000000000000
--- a/sys-apps/hal/files/0.5.9/17_autoconf_cflag_cleanup.patch
+++ /dev/null
@@ -1,155 +0,0 @@
-Index: b/configure.in
-===================================================================
---- a/configure.in 2007-04-03 00:36:44.000000000 -0400
-+++ b/configure.in 2007-04-26 02:16:37.000000000 -0400
-@@ -235,78 +235,48 @@
-
- #### gcc warning flags
-
--if test "x$GCC" = "xyes"; then
-- changequote(,)dnl
-- case " $CFLAGS " in
-- *[\ \ ]-Wall[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -Wall" ;;
-- esac
--
-- case " $CFLAGS " in
-- *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
-- esac
-+dnl Use as many warning flags as possible with gcc and compatible compilers
-
-- case " $CFLAGS " in
-- *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
-- esac
-+dnl If you change anything below in the variable, the cache is automatically
-+dnl ignored and everything is rechecked. So just add a flag and that's it.
-+dnl if you need to force a recheck, add a whitespace somewhere
-+dnl Also take note of order of flags, you should have the big inclusive flags
-+dnl first, and the negating flags last
-
-- case " $CFLAGS " in
-- *[\ \ ]-Wnested-externs[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -Wnested-externs" ;;
-- esac
-+MAYBE_WARN="-Wall -Wextra \
-+-Wchar-subscripts -Wmissing-declarations -Wnested-externs \
-+-Wpointer-arith -Wcast-align -Wsign-compare -Wbad-function-cast \
-+-Waggregate-return -Wcast-align -Wcast-qual -Wshadow -Wredundant-decls"
-
-- case " $CFLAGS " in
-- *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
-- esac
--
-- case " $CFLAGS " in
-- *[\ \ ]-Wcast-align[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -Wcast-align" ;;
-- esac
-+dnl invalidate cache if MAYBE_WARN has changed
-+if test "x$hal_cv_warn_maybe" != "x$MAYBE_WARN"; then
-+ unset hal_cv_warn_cflags
-+fi
-
-- case " $CFLAGS " in
-- *[\ \ ]-Wsign-compare[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -Wsign-compare" ;;
-- esac
-+AC_CACHE_CHECK([for supported warning flags], hal_cv_warn_cflags, [
-+ echo
-
-- if test "x$enable_ansi" = "xyes"; then
-- case " $CFLAGS " in
-- *[\ \ ]-ansi[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -ansi" ;;
-- esac
-+ for W in $MAYBE_WARN; do
-+ AC_CC_TRY_FLAG([$W], [CFLAGS="$CFLAGS $W"])
-+ done
-
-- case " $CFLAGS " in
-- *[\ \ ]-D_POSIX_C_SOURCE*) ;;
-- *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
-- esac
-+ hal_cv_warn_cflags=$CFLAGS
-+ hal_cv_warn_maybe=$MAYBE_WARN
-
-- case " $CFLAGS " in
-- *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
-- esac
-+ AC_MSG_CHECKING([which warning flags were supported])
-+])
-
-- case " $CFLAGS " in
-- *[\ \ ]-pedantic[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -pedantic" ;;
-- esac
-+if test "x$GCC" = "xyes"; then
-+ if test "x$enable_ansi" = "xyes"; then
-+ AC_CC_TRY_FLAG([-ansi], [CFLAGS="$CFLAGS -ansi"])
-+ AC_CC_TRY_FLAG([-pedanitc], [CFLAGS="$CFLAGS -pedantic"])
-+ CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
- fi
-- if test x$enable_gcov = xyes; then
-- case " $CFLAGS " in
-- *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
-- esac
-- case " $CFLAGS " in
-- *[\ \ ]-ftest-coverage[\ \ ]*) ;;
-- *) CFLAGS="$CFLAGS -ftest-coverage" ;;
-- esac
-
-- ## remove optimization
-- CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
-+ if test "x$enable_gcov" = "xyes"; then
-+ AC_CC_TRY_FLAG([-fprofile-arcs], [CFLAGS="$CFLAGS -fprofile-arcs"])
-+ AC_CC_TRY_FLAG([-ftest-coverage], [CFLAGS="$CFLAGS -ftest-coverage"])
- fi
-- changequote([,])dnl
- else
- if test x$enable_gcov = xyes; then
- AC_MSG_ERROR([--enable-gcov can only be used with gcc])
-Index: b/m4/try_flag.m4
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ b/m4/try_flag.m4 2007-04-26 02:15:05.000000000 -0400
-@@ -0,0 +1,23 @@
-+dnl Copied from Cairo configure.in
-+dnl Tweaked for more general use by Doug Goldstein <cardoe@gentoo.org>
-+dnl
-+dnl check compiler flags
-+dnl $1 - flag to check
-+dnl $2 - when successful do this
-+dnl $3 - when not successful, do this
-+AC_DEFUN([AC_CC_TRY_FLAG], [
-+ AC_MSG_CHECKING([whether $CC supports $1])
-+
-+ ac_save_CFLAGS="$CFLAGS"
-+ CFLAGS="$CFLAGS $1"
-+ AC_COMPILE_IFELSE([ ], [ac_cc_flag=yes], [ac_cc_flag=no])
-+ CFLAGS="$ac_save_CFLAGS"
-+
-+ if test "x$ac_cc_flag" = "xyes"; then
-+ ifelse([$2], , :, [$2])
-+ else
-+ ifelse([$3], , :, [$3])
-+ fi
-+
-+ AC_MSG_RESULT([$ac_cc_flag])
-+])
-Index: b/Makefile.am
-===================================================================
---- a/Makefile.am 2007-03-07 16:52:19.000000000 -0500
-+++ b/Makefile.am 2007-04-26 02:15:42.000000000 -0400
-@@ -3,6 +3,8 @@
- SUBDIRS = libhal libhal-storage partutil hald hald-runner tools \
- fdi doc po privileges
-
-+ACLOCAL_AMFLAGS = -I m4
-+
- pkgconfigdir = $(libdir)/pkgconfig
- pkgconfig_DATA = hal.pc hal-storage.pc
-
diff --git a/sys-apps/hal/files/0.5.9/18_hal_fix_info.category_for_laptop_panel_v2.patch b/sys-apps/hal/files/0.5.9/18_hal_fix_info.category_for_laptop_panel_v2.patch
deleted file mode 100644
index 01e0cdd71724..000000000000
--- a/sys-apps/hal/files/0.5.9/18_hal_fix_info.category_for_laptop_panel_v2.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-Index: b/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi
-===================================================================
---- a/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi 2007-03-07 16:52:19.000000000 -0500
-+++ b/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi 2007-04-25 16:17:48.000000000 -0400
-@@ -4,17 +4,20 @@
-
- <device>
- <match key="info.category" string="laptop_panel">
-- <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.LaptopPanel</append>
-+ <!-- only set if the laptop_panel.access_method is not custom -->
-+ <match key="laptop_panel.access_method" compare_ne="custom">
-+ <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.LaptopPanel</append>
-
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">SetBrightness</append>
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist">i</append>
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist">brightness_value</append>
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-set-brightness</append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">SetBrightness</append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist">i</append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist">brightness_value</append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-set-brightness</append>
-
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">GetBrightness</append>
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist"></append>
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist"></append>
-- <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-get-brightness</append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_names" type="strlist">GetBrightness</append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_signatures" type="strlist"></append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_argnames" type="strlist"></append>
-+ <append key="org.freedesktop.Hal.Device.LaptopPanel.method_execpaths" type="strlist">hal-system-lcd-get-brightness</append>
-+ </match>
- </match>
- </device>
-
-Index: b/fdi/policy/10osvendor/10-macbook-backlight.fdi
-===================================================================
---- a/fdi/policy/10osvendor/10-macbook-backlight.fdi 2007-03-19 19:43:31.000000000 -0400
-+++ b/fdi/policy/10osvendor/10-macbook-backlight.fdi 2007-04-25 10:30:56.000000000 -0400
-@@ -13,6 +13,7 @@
- <device>
- <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_backlight">
- <append key="info.capabilities" type="strlist">laptop_panel</append>
-+ <merge key="info.category" type="string">laptop_panel</merge>
- <merge key="info.product" type="string">MacBook Backlight Control</merge>
- <merge key="laptop_panel.access_method" type="string">custom</merge>
- <merge key="laptop_panel.num_levels" type="int">118</merge>
-Index: b/fdi/policy/10osvendor/10-macbookpro-utils.fdi
-===================================================================
---- a/fdi/policy/10osvendor/10-macbookpro-utils.fdi 2007-04-18 10:19:08.000000000 -0400
-+++ b/fdi/policy/10osvendor/10-macbookpro-utils.fdi 2007-04-25 10:30:56.000000000 -0400
-@@ -17,6 +17,7 @@
- <device>
- <match key="info.udi" string="/org/freedesktop/Hal/devices/macbook_pro_lcd_panel">
- <append key="info.capabilities" type="strlist">laptop_panel</append>
-+ <merge key="info.category" type="string">laptop_panel</merge>
- <merge key="info.product" type="string">MacBook Pro Laptop Panel</merge>
- <merge key="laptop_panel.access_method" type="string">custom</merge>
- <merge key="laptop_panel.num_levels" type="int">229</merge>
-Index: b/fdi/policy/10osvendor/10-omap-backlight.fdi
-===================================================================
---- a/fdi/policy/10osvendor/10-omap-backlight.fdi 2007-03-07 16:52:19.000000000 -0500
-+++ b/fdi/policy/10osvendor/10-omap-backlight.fdi 2007-04-25 10:30:56.000000000 -0400
-@@ -10,6 +10,7 @@
- <device>
- <match key="info.udi" string="/org/freedesktop/Hal/devices/omapfb_bl">
- <merge key="info.product" type="string">OMAP LCD controller and panel</merge>
-+ <merge key="info.category" type="string">laptop_panel</merge>
- <append key="info.capabilities" type="strlist">laptop_panel</append>
- <merge key="laptop_panel.access_method" type="string">custom</merge>
- <merge key="laptop_panel.num_levels" type="int">15</merge>
diff --git a/sys-apps/hal/files/0.5.9/19_hald_runner_catch_dbus_disconnect.patch b/sys-apps/hal/files/0.5.9/19_hald_runner_catch_dbus_disconnect.patch
deleted file mode 100644
index 2d243d5f9792..000000000000
--- a/sys-apps/hal/files/0.5.9/19_hald_runner_catch_dbus_disconnect.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Index: b/hald/hald_runner.c
-===================================================================
---- a/hald/hald_runner.c 2007-04-25 16:17:30.000000000 -0400
-+++ b/hald/hald_runner.c 2007-04-25 17:21:47.000000000 -0400
-@@ -726,6 +726,13 @@
- msg, &call, INT_MAX))
- DIE (("No memory"));
-
-+ /**
-+ * The connection was disconnected as per D-Bus API
-+ * This is an error condition and should not really happen
-+ */
-+ if (call == NULL)
-+ goto error;
-+
- hd = g_new0 (HelperData, 1);
- hd->d = device;
- hd->cb = cb;
-Index: b/hald/hald.c
-===================================================================
---- a/hald/hald.c 2007-04-12 21:19:50.000000000 -0400
-+++ b/hald/hald.c 2007-04-25 17:22:31.000000000 -0400
-@@ -722,6 +722,7 @@
-
-
- if (!hald_dbus_init ()) {
-+ HAL_INFO (("hald_dbus_init() failed"));
- hald_runner_kill_all();
- exit (1);
- }
diff --git a/sys-apps/hal/files/0.5.9/20_firewire_prober_ioctls_fix.patch b/sys-apps/hal/files/0.5.9/20_firewire_prober_ioctls_fix.patch
deleted file mode 100644
index 2d9dd8bd153a..000000000000
--- a/sys-apps/hal/files/0.5.9/20_firewire_prober_ioctls_fix.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From: Kristian Høgsberg <krh@redhat.com>
-Date: Wed, 25 Apr 2007 19:20:39 +0000 (-0400)
-Subject: update firewire prober to use correct ioctl codes
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=c2b62d08f68881584e020fd031dc6bb143a78a43
-
-update firewire prober to use correct ioctl codes
----
-
---- a/hald/linux/probing/probe-ieee1394-unit.c
-+++ b/hald/linux/probing/probe-ieee1394-unit.c
-@@ -83,14 +83,11 @@ struct fw_cdev_event_request {
- __u32 data[0];
- };
-
--#define FW_CDEV_IOC_GET_INFO _IO('#', 0x00)
--#define FW_CDEV_IOC_SEND_REQUEST _IO('#', 0x01)
--#define FW_CDEV_IOC_ALLOCATE _IO('#', 0x02)
--#define FW_CDEV_IOC_DEALLOCATE _IO('#', 0x03)
--#define FW_CDEV_IOC_SEND_RESPONSE _IO('#', 0x04)
--#define FW_CDEV_IOC_INITIATE_BUS_RESET _IO('#', 0x05)
--#define FW_CDEV_IOC_ADD_DESCRIPTOR _IO('#', 0x06)
--#define FW_CDEV_IOC_REMOVE_DESCRIPTOR _IO('#', 0x07)
-+#define FW_CDEV_IOC_GET_INFO _IOWR('#', 0x00, struct fw_cdev_get_info)
-+#define FW_CDEV_IOC_SEND_REQUEST _IOW('#', 0x01, struct fw_cdev_send_request)
-+#define FW_CDEV_IOC_ALLOCATE _IOWR('#', 0x02, struct fw_cdev_allocate)
-+#define FW_CDEV_IOC_DEALLOCATE _IOW('#', 0x03, struct fw_cdev_deallocate)
-+#define FW_CDEV_IOC_SEND_RESPONSE _IOW('#', 0x04, struct fw_cdev_send_response)
-
- /* FW_CDEV_VERSION History
- *
diff --git a/sys-apps/hal/files/0.5.9/21_pm-suspend_correct_options.patch b/sys-apps/hal/files/0.5.9/21_pm-suspend_correct_options.patch
deleted file mode 100644
index 1f497958eb35..000000000000
--- a/sys-apps/hal/files/0.5.9/21_pm-suspend_correct_options.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From: David Zeuthen <davidz@redhat.com>
-Date: Wed, 25 Apr 2007 19:24:23 +0000 (-0400)
-Subject: pass correct options to pm-suspend
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=4149d09581cdc3a17e118d9324a1c194e6461cc2
-
-pass correct options to pm-suspend
----
-
---- a/tools/linux/hal-system-power-suspend-linux
-+++ b/tools/linux/hal-system-power-suspend-linux
-@@ -26,10 +26,10 @@ QUIRKS=""
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_S3_MODE" = "true" ] && QUIRKS="$QUIRKS --quirk-s3-mode"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_SUSPEND" = "true" ] && QUIRKS="$QUIRKS --quirk-dpms-suspend"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_ON" = "true" ] && QUIRKS="$QUIRKS --quirk-dpms-on"
--[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBESTATE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbestate"
--[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBEMODE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbemode"
-+[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBESTATE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbestate-restore"
-+[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBEMODE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbemode-restore"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VGA_MODE_3" = "true" ] && QUIRKS="$QUIRKS --quirk-vga-mode3"
--[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBE_POST" = "true" ] && QUIRKS="$QUIRKS --quirk-vbepost"
-+[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBE_POST" = "true" ] && QUIRKS="$QUIRKS --quirk-vbe-post"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_RADEON_OFF" = "true" ] && QUIRKS="$QUIRKS --quirk-radeon-off"
-
- #PMU systems cannot use /sys/power/state yet, so use a helper to issue an ioctl
diff --git a/sys-apps/hal/files/0.5.9/22_pm-hibernate_correct_options.patch b/sys-apps/hal/files/0.5.9/22_pm-hibernate_correct_options.patch
deleted file mode 100644
index 6da14ec587b2..000000000000
--- a/sys-apps/hal/files/0.5.9/22_pm-hibernate_correct_options.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From: David Zeuthen <davidz@redhat.com>
-Date: Wed, 25 Apr 2007 19:25:27 +0000 (-0400)
-Subject: also pass correct options for pm-hibernate
-X-Git-Tag: HAL_0_2
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=3344f424207ce676b1910a2b3e10c8f2442750c6
-
-also pass correct options for pm-hibernate
----
-
---- a/tools/linux/hal-system-power-hibernate-linux
-+++ b/tools/linux/hal-system-power-hibernate-linux
-@@ -18,10 +18,10 @@ QUIRKS=""
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_S3_MODE" = "true" ] && QUIRKS="$QUIRKS --quirk-s3-mode"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_SUSPEND" = "true" ] && QUIRKS="$QUIRKS --quirk-dpms-suspend"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_DPMS_ON" = "true" ] && QUIRKS="$QUIRKS --quirk-dpms-on"
--[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBESTATE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbestate"
--[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBEMODE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbemode"
-+[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBESTATE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbestate-restore"
-+[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBEMODE_RESTORE" = "true" ] && QUIRKS="$QUIRKS --quirk-vbemode-restore"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VGA_MODE_3" = "true" ] && QUIRKS="$QUIRKS --quirk-vga-mode3"
--[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBE_POST" = "true" ] && QUIRKS="$QUIRKS --quirk-vbepost"
-+[ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_VBE_POST" = "true" ] && QUIRKS="$QUIRKS --quirk-vbe-post"
- [ "$HAL_PROP_POWER_MANAGEMENT_QUIRK_RADEON_OFF" = "true" ] && QUIRKS="$QUIRKS --quirk-radeon-off"
-
- #ALTLinux only supports powersave
diff --git a/sys-apps/hal/files/0.5.9/23_runner_64bit_values.patch b/sys-apps/hal/files/0.5.9/23_runner_64bit_values.patch
deleted file mode 100644
index c878db98c9f9..000000000000
--- a/sys-apps/hal/files/0.5.9/23_runner_64bit_values.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-diff --git a/hald-runner/main.c b/hald-runner/main.c
-index 3b170b3..3842cb8 100644
---- a/hald-runner/main.c
-+++ b/hald-runner/main.c
-@@ -128,9 +128,10 @@ handle_start(DBusConnection *con, DBusMessage *msg)
- goto malformed;
-
- if (run_request_run(r, con, NULL, &pid)) {
-+ gint64 ppid = pid;
- reply = dbus_message_new_method_return(msg);
- dbus_message_append_args (reply,
-- DBUS_TYPE_INT64, &pid,
-+ DBUS_TYPE_INT64, &ppid,
- DBUS_TYPE_INVALID);
-
- } else {
-diff --git a/hald-runner/runner.c b/hald-runner/runner.c
-index 57a2a80..8cbc777 100644
---- a/hald-runner/runner.c
-+++ b/hald-runner/runner.c
-@@ -175,11 +175,12 @@ out:
- /* emit a signal that this PID exited */
- if(rd->con != NULL && rd->emit_pid_exited) {
- DBusMessage *signal;
-+ gint64 ppid = rd->pid;
- signal = dbus_message_new_signal ("/org/freedesktop/HalRunner",
- "org.freedesktop.HalRunner",
- "StartedProcessExited");
- dbus_message_append_args (signal,
-- DBUS_TYPE_INT64, &(rd->pid),
-+ DBUS_TYPE_INT64, &(ppid),
- DBUS_TYPE_INVALID);
- dbus_connection_send(rd->con, signal, NULL);
- }
diff --git a/sys-apps/hal/files/0.5.9/24_libparted_1_8_7.patch b/sys-apps/hal/files/0.5.9/24_libparted_1_8_7.patch
deleted file mode 100644
index 60493361520a..000000000000
--- a/sys-apps/hal/files/0.5.9/24_libparted_1_8_7.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From: Danny Kukawka <danny.kukawka@web.de>
-Date: Wed, 23 May 2007 18:05:17 +0000 (+0200)
-Subject: updated allowed libparted versions
-X-Git-Url: http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff;h=366ab0006278f6c23fc3c33dea7eb61a42fe941e
-
-updated allowed libparted versions
-
-Updated again the list of allowed liparted version by add v1.8.7
----
-
-Index: b/configure.in
-===================================================================
---- a/configure.in 2007-04-30 14:58:50.000000000 -0400
-+++ b/configure.in 2007-08-01 17:38:20.000000000 -0400
-@@ -193,7 +193,7 @@
- AC_DEFINE(USE_PARTED,1,[Whether libparted is to be used])
- AC_CHECK_LIB(uuid, uuid_generate, [], AC_MSG_ERROR([*** uuid library (libuuid) not found]))
- AC_CHECK_LIB(dl, dlopen, [], AC_MSG_ERROR([*** dl library (libdl) not found]))
-- AC_MSG_CHECKING([for libparted == 1.7.1, 1.8.0, 1.8.1, 1.8.2, 1.8.6])
-+ AC_MSG_CHECKING([for libparted == 1.7.1, 1.8.0, 1.8.1, 1.8.2, 1.8.6, 1.8.7])
- LDFLAGS=-lparted
- AC_TRY_RUN(
- #include <stdio.h>
-@@ -211,12 +211,13 @@
- (major == 1 && minor == 8 && micro == 0) ||
- (major == 1 && minor == 8 && micro == 1) ||
- (major == 1 && minor == 8 && micro == 2) ||
-- (major == 1 && minor == 8 && micro == 6))
-+ (major == 1 && minor == 8 && micro == 6) ||
-+ (major == 1 && minor == 8 && micro == 7))
- return 0;
-
- return 1;
- }
-- ,AC_MSG_RESULT( ),AC_MSG_ERROR([*** Requires libparted == 1.7.1/1.8.0/1.8.1/1.8.2 or 1.8.6]) )
-+ ,AC_MSG_RESULT( ),AC_MSG_ERROR([*** Requires libparted == 1.7.1/1.8.0/1.8.1/1.8.2/1.8.6 or 1.8.7]) )
- PARTED_LIBS=-lparted
- AC_SUBST(PARTED_LIBS)
- LDFLAGS=
diff --git a/sys-apps/hal/files/0.5.9/95_gentoo_man_page.patch b/sys-apps/hal/files/0.5.9/95_gentoo_man_page.patch
deleted file mode 100644
index 804bb9c12af1..000000000000
--- a/sys-apps/hal/files/0.5.9/95_gentoo_man_page.patch
+++ /dev/null
@@ -1,507 +0,0 @@
----
- doc/man/hal-disable-polling.1 | 1 +
- doc/man/hal-disable-polling.1.in | 1 +
- doc/man/hal-find-by-capability.1 | 1 +
- doc/man/hal-find-by-capability.1.in | 1 +
- doc/man/hal-find-by-property.1 | 1 +
- doc/man/hal-find-by-property.1.in | 1 +
- doc/man/hal-get-property.1 | 1 +
- doc/man/hal-get-property.1.in | 1 +
- doc/man/hal-is-caller-locked-out.1 | 1 +
- doc/man/hal-is-caller-locked-out.1.in | 1 +
- doc/man/hal-lock.1 | 1 +
- doc/man/hal-lock.1.in | 1 +
- doc/man/hal-set-property.1 | 1 +
- doc/man/hal-set-property.1.in | 1 +
- doc/man/hald.8 | 1 +
- doc/man/hald.8.in | 6 ++++--
- 16 files changed, 19 insertions(+), 2 deletions(-)
-
-Index: b/doc/man/hal-disable-polling.1
-===================================================================
---- a/doc/man/hal-disable-polling.1 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-disable-polling.1 2007-04-06 20:26:09.000000000 -0400
-@@ -18,7 +18,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -117,7 +118,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -134,4 +135,5 @@
- .SH AUTHOR
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-
-Index: b/doc/man/hal-disable-polling.1.in
-===================================================================
---- a/doc/man/hal-disable-polling.1.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-disable-polling.1.in 2007-04-06 20:26:18.000000000 -0400
-@@ -18,7 +18,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -117,7 +118,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -134,4 +135,4 @@
- .SH AUTHOR
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
--
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-find-by-capability.1
-===================================================================
---- a/doc/man/hal-find-by-capability.1 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-find-by-capability.1 2007-04-06 20:25:54.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -46,7 +47,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -64,3 +65,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-find-by-capability.1.in
-===================================================================
---- a/doc/man/hal-find-by-capability.1.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-find-by-capability.1.in 2007-04-06 20:25:30.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -46,7 +47,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -64,3 +65,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-find-by-property.1
-===================================================================
---- a/doc/man/hal-find-by-property.1 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-find-by-property.1 2007-04-06 20:25:30.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -49,7 +50,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -67,3 +68,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-find-by-property.1.in
-===================================================================
---- a/doc/man/hal-find-by-property.1.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-find-by-property.1.in 2007-04-06 20:25:30.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -49,7 +50,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -67,3 +68,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-get-property.1
-===================================================================
---- a/doc/man/hal-get-property.1 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-get-property.1 2007-04-06 20:25:30.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -53,7 +54,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -70,3 +71,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-get-property.1.in
-===================================================================
---- a/doc/man/hal-get-property.1.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-get-property.1.in 2007-04-06 20:25:30.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -53,7 +54,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -70,3 +71,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-is-caller-locked-out.1
-===================================================================
---- a/doc/man/hal-is-caller-locked-out.1 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-is-caller-locked-out.1 2007-04-06 20:25:30.000000000 -0400
-@@ -18,7 +18,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -47,7 +48,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -65,3 +66,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-is-caller-locked-out.1.in
-===================================================================
---- a/doc/man/hal-is-caller-locked-out.1.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-is-caller-locked-out.1.in 2007-04-06 20:25:30.000000000 -0400
-@@ -18,7 +18,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -47,7 +48,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -65,3 +66,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-lock.1
-===================================================================
---- a/doc/man/hal-lock.1 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-lock.1 2007-04-06 20:25:30.000000000 -0400
-@@ -18,7 +18,8 @@
- .B HAL
- locks, refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -78,7 +79,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -96,3 +97,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-lock.1.in
-===================================================================
---- a/doc/man/hal-lock.1.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-lock.1.in 2007-04-06 20:25:30.000000000 -0400
-@@ -18,7 +18,8 @@
- .B HAL
- locks, refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -78,7 +79,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -96,3 +97,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-set-property.1
-===================================================================
---- a/doc/man/hal-set-property.1 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-set-property.1 2007-04-06 20:25:30.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -87,7 +88,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -104,3 +105,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hal-set-property.1.in
-===================================================================
---- a/doc/man/hal-set-property.1.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hal-set-property.1.in 2007-04-06 20:25:30.000000000 -0400
-@@ -20,7 +20,8 @@
- .B HAL
- properties, refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -87,7 +88,7 @@
-
- .SH BUGS
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-@@ -104,3 +105,4 @@
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-Index: b/doc/man/hald.8
-===================================================================
---- a/doc/man/hald.8 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hald.8 2007-04-06 20:29:53.000000000 -0400
-@@ -19,7 +19,8 @@
- more information about both the big picture and specific API details,
- refer to the \fIHAL spec\fP which can be found in
- .I "/usr/share/doc/hal/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -38,24 +39,20 @@
-
- .SH BUGS AND DEBUGGING
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-
--First, to obtain useful debug traces you will need to have
--.B debuginfo
--packages installed. On a Fedora system this is in the
--.B hal-debuginfo
--package and can be installed via the
--.I yum
--update program.
-+First, to obtain useful debug traces you will need to have HAL emerged with
-+.B USE=debug
-+enabled. Additionally you should read http://www.gentoo.org/proj/en/qa/backtraces.xml
-
- Second, shut down the existing
- .B hald
--daemon instance; on a Fedora system this is achieved by
-+daemon instance; on a Gentoo system this is achieved by
-
--.I "/etc/init.d/haldaemon stop"
-+.I "/etc/init.d/hald stop"
-
- After having shut down the daemon, you might want to run
-
-@@ -102,4 +99,5 @@
- .SH AUTHOR
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
-
-Index: b/doc/man/hald.8.in
-===================================================================
---- a/doc/man/hald.8.in 2007-04-06 19:37:52.000000000 -0400
-+++ b/doc/man/hald.8.in 2007-04-06 20:30:19.000000000 -0400
-@@ -19,7 +19,8 @@
- more information about both the big picture and specific API details,
- refer to the \fIHAL spec\fP which can be found in
- .I "@docdir@/spec/hal-spec.html"
--depending on the distribution.
-+if emerged with
-+.B USE=doc.
-
- .SH OPTIONS
- The following options are supported:
-@@ -38,18 +39,14 @@
-
- .SH BUGS AND DEBUGGING
- .PP
--Please send bug reports to either the distribution or the HAL
-+Please send bug reports to http://bugs.gentoo.org or the HAL
- mailing list, see
- .I "http://lists.freedesktop.org/mailman/listinfo/hal"
- on how to subscribe.
-
--First, to obtain useful debug traces you will need to have
--.B debuginfo
--packages installed. On a Fedora system this is in the
--.B hal-debuginfo
--package and can be installed via the
--.I yum
--update program.
-+First, to obtain useful debug traces you will need to have HAL emerged with
-+.B USE=debug
-+enabled. Additionally you should read http://www.gentoo.org/proj/en/qa/backtraces.xml
-
- Second, shut down the existing
- .B hald
-@@ -102,4 +99,4 @@
- .SH AUTHOR
- Written by David Zeuthen <david@fubar.dk> with a lot of help from many
- others.
--
-+Gentoo specific changes by Doug Goldstein <cardoe@gentoo.org> and Steev Klimaszewski <steev@gentoo.org> with help from Gentoo testers and contributors.
diff --git a/sys-apps/hal/files/0.5.9/96_plugdev_allow_send.patch b/sys-apps/hal/files/0.5.9/96_plugdev_allow_send.patch
deleted file mode 100644
index ea462785f229..000000000000
--- a/sys-apps/hal/files/0.5.9/96_plugdev_allow_send.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Index: b/hal.conf
-===================================================================
---- a/hal.conf 2007-04-03 00:41:24.000000000 -0400
-+++ b/hal.conf 2007-04-06 20:36:53.000000000 -0400
-@@ -63,5 +63,16 @@
- <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
- </policy>
-
-+ <!-- Gentoo specific rules to allow 'plugdev' group to access Volumes and Power Management -->
-+ <!-- We possibly will use 'powerdev' for Power Management or work on encapsulating everything in ConsoleKit -->
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
-+ </policy>
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
-+ </policy>
-+
- </busconfig>
-
-Index: b/hal.conf.in
-===================================================================
---- a/hal.conf.in 2007-03-07 16:52:19.000000000 -0500
-+++ b/hal.conf.in 2007-04-06 20:37:59.000000000 -0400
-@@ -63,5 +63,16 @@
- <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
- </policy>
-
-+ <!-- Gentoo specific rules to allow 'plugdev' group to access Volumes and Power Management -->
-+ <!-- We possibly will use 'powerdev' for Power Management or work on encapsulating everything in ConsoleKit -->
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
-+ </policy>
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
-+ </policy>
-+
- </busconfig>
-
diff --git a/sys-apps/hal/files/0.5.9/97_ignore_fixed_drives.patch b/sys-apps/hal/files/0.5.9/97_ignore_fixed_drives.patch
deleted file mode 100644
index 04e2ef3bb801..000000000000
--- a/sys-apps/hal/files/0.5.9/97_ignore_fixed_drives.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Index: b/fdi/policy/10osvendor/95-storage-ignore-fixed-drives.fdi
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ b/fdi/policy/10osvendor/95-storage-ignore-fixed-drives.fdi 2007-04-24 11:42:44.000000000 -0400
-@@ -0,0 +1,19 @@
-+<?xml version="1.0" encoding="UTF-8"?>
-+
-+<deviceinfo version="0.2">
-+ <device>
-+ <match key="volume.fsusage" string="filesystem">
-+ <match key="@block.storage_device:storage.hotpluggable" bool="false">
-+ <match key="@block.storage_device:storage.removable" bool="false">
-+ <match key="volume.is_mounted" bool="true">
-+ <merge key="volume.ignore" type="bool">true</merge>
-+ <!-- Show /media/ mounted devices -->
-+ <match key="volume.mount_point" prefix="/media">
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ </match>
-+ </match>
-+ </match>
-+ </match>
-+ </match>
-+ </device>
-+</deviceinfo>
-Index: b/fdi/policy/10osvendor/Makefile.am
-===================================================================
---- a/fdi/policy/10osvendor/Makefile.am 2007-04-20 14:10:05.000000000 -0400
-+++ b/fdi/policy/10osvendor/Makefile.am 2007-04-24 11:42:44.000000000 -0400
-@@ -7,7 +7,8 @@
- 10-rfkill-switch.fdi \
- 10-laptop-panel-mgmt-policy.fdi \
- 15-storage-luks.fdi \
-- 20-storage-methods.fdi
-+ 20-storage-methods.fdi \
-+ 95-storage-ignore-fixed-drives.fdi
-
- if BUILD_MACBOOKPRO
- dist_fdi_DATA += 10-macbookpro-utils.fdi
diff --git a/sys-apps/hal/files/0.5.9/98_hald_cache_test_path.patch b/sys-apps/hal/files/0.5.9/98_hald_cache_test_path.patch
deleted file mode 100644
index 46268e4a0cac..000000000000
--- a/sys-apps/hal/files/0.5.9/98_hald_cache_test_path.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Index: b/hald/hald-cache-test.sh
-===================================================================
---- a/hald/hald-cache-test.sh 2007-03-07 16:52:19.000000000 -0500
-+++ b/hald/hald-cache-test.sh 2007-06-14 12:10:19.000000000 -0400
-@@ -3,9 +3,9 @@
- mkdir .local-fdi-test
- make -C ../fdi install DESTDIR=`pwd`/.local-fdi-test prefix=/
-
--HAL_FDI_SOURCE_PREPROBE=.local-fdi-test/share/hal/fdi/preprobe
--HAL_FDI_SOURCE_INFORMATION=.local-fdi-test/share/hal/fdi/preprobe
--HAL_FDI_SOURCE_POLICY=.local-fdi-test/share/hal/fdi/policy
-+HAL_FDI_SOURCE_PREPROBE=.local-fdi-test/usr/share/hal/fdi/preprobe
-+HAL_FDI_SOURCE_INFORMATION=.local-fdi-test/usr/share/hal/fdi/preprobe
-+HAL_FDI_SOURCE_POLICY=.local-fdi-test/usr/share/hal/fdi/policy
- HAL_FDI_CACHE_NAME=.local-fdi-test/hald-local-fdi-cache
- export HAL_FDI_SOURCE_PREPROBE HAL_FDI_SOURCE_INFORMATION \
- HAL_FDI_SOURCE_POLICY HAL_FDI_CACHE_NAME
diff --git a/sys-apps/hal/files/0.5.9/99_sun_disklabel_ignore.patch b/sys-apps/hal/files/0.5.9/99_sun_disklabel_ignore.patch
deleted file mode 100644
index e03ebe59c1e6..000000000000
--- a/sys-apps/hal/files/0.5.9/99_sun_disklabel_ignore.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Index: b/fdi/policy/10osvendor/95-storage-ignore-fixed-drives.fdi
-===================================================================
---- a/fdi/policy/10osvendor/95-storage-ignore-fixed-drives.fdi 2007-07-27 12:26:05.000000000 -0400
-+++ b/fdi/policy/10osvendor/95-storage-ignore-fixed-drives.fdi 2007-07-27 12:26:22.000000000 -0400
-@@ -16,4 +16,15 @@
- </match>
- </match>
- </device>
-+
-+ <!-- sun disklabel -->
-+ <device>
-+ <match key="volume.fsusage" string="filesystem">
-+ <match key="volume.partition.number" int="3">
-+ <match key="volume.partition.start" uint64="0">
-+ <merge key="volume.ignore" type="bool">true</merge>
-+ </match>
-+ </match>
-+ </match>
-+ </device>
- </deviceinfo>
diff --git a/sys-apps/hal/files/0.5.9/series b/sys-apps/hal/files/0.5.9/series
deleted file mode 100644
index 7a74ac53fd7d..000000000000
--- a/sys-apps/hal/files/0.5.9/series
+++ /dev/null
@@ -1,28 +0,0 @@
-01_luks_mount_fix.patch
-02_acpi_repeated_property_change.patch
-03_crasher_fix_fail_to_return_value.patch
-04_cache_regen_return_fix.patch
-05_freebsd_partutil_make_fix.patch
-06_freebsd_backend_fix.patch
-07_malloc_h_for_stdlib_h.patch
-08_contains_not_fdi_directive.patch
-09_hald_addon_keyboard_start_one.patch
-10_freebsd_storage_reprobe_fix.patch
-11_hal_fix_segfault_probe_volume.patch
-12_hal_fix-vol_label_probe_volume.patch
-13_detect_newer_macbooks.patch
-14_ntfs_allows_utf8.patch
-15_spec_fdi_matching.patch
-16_dev_root_is_mounted.patch
-17_autoconf_cflag_cleanup.patch
-18_hal_fix_info.category_for_laptop_panel_v2.patch
-19_hald_runner_catch_dbus_disconnect.patch
-20_firewire_prober_ioctls_fix.patch
-21_pm-suspend_correct_options.patch
-22_pm-hibernate_correct_options.patch
-23_runner_64bit_values.patch
-24_libparted_1_8_7.patch
-95_gentoo_man_page.patch
-96_plugdev_allow_send.patch
-97_ignore_fixed_drives.patch
-98_hald_cache_test_path.patch
diff --git a/sys-apps/hal/files/96_plugdev_allow_send.patch b/sys-apps/hal/files/96_plugdev_allow_send.patch
deleted file mode 100644
index ea462785f229..000000000000
--- a/sys-apps/hal/files/96_plugdev_allow_send.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Index: b/hal.conf
-===================================================================
---- a/hal.conf 2007-04-03 00:41:24.000000000 -0400
-+++ b/hal.conf 2007-04-06 20:36:53.000000000 -0400
-@@ -63,5 +63,16 @@
- <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
- </policy>
-
-+ <!-- Gentoo specific rules to allow 'plugdev' group to access Volumes and Power Management -->
-+ <!-- We possibly will use 'powerdev' for Power Management or work on encapsulating everything in ConsoleKit -->
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
-+ </policy>
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
-+ </policy>
-+
- </busconfig>
-
-Index: b/hal.conf.in
-===================================================================
---- a/hal.conf.in 2007-03-07 16:52:19.000000000 -0500
-+++ b/hal.conf.in 2007-04-06 20:37:59.000000000 -0400
-@@ -63,5 +63,16 @@
- <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
- </policy>
-
-+ <!-- Gentoo specific rules to allow 'plugdev' group to access Volumes and Power Management -->
-+ <!-- We possibly will use 'powerdev' for Power Management or work on encapsulating everything in ConsoleKit -->
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
-+ </policy>
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
-+ </policy>
-+
- </busconfig>
-
diff --git a/sys-apps/hal/files/hal-0.5.10-autotools.patch b/sys-apps/hal/files/hal-0.5.10-autotools.patch
deleted file mode 100644
index 86214fce028c..000000000000
--- a/sys-apps/hal/files/hal-0.5.10-autotools.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-since we refer to C++ later in configure, we need to search for the prog
-
-http://bugs.gentoo.org/212772
-
---- configure.in
-+++ configure.in
-@@ -30,6 +30,7 @@
- AC_ISC_POSIX
- AC_PROG_CC
- AM_PROG_CC_C_O
-+AC_PROG_CXX
- AC_HEADER_STDC
- AC_PROG_LIBTOOL
- AC_PROG_MAKE_SET
diff --git a/sys-apps/hal/files/hal-0.5.11-ppc64.patch b/sys-apps/hal/files/hal-0.5.11-ppc64.patch
deleted file mode 100644
index 1cfc14854df8..000000000000
--- a/sys-apps/hal/files/hal-0.5.11-ppc64.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 4e44e6ee79de160c70a1dc38dddbf4623f6a7965 Mon Sep 17 00:00:00 2001
-From: root <root@powerstation.mrothe.de>
-Date: Sat, 27 Sep 2008 13:04:02 +0200
-Subject: [PATCH] Fix issue on 64bit big endian architectures.
-
----
- hald/create_cache.c | 4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
-
-diff --git a/hald/create_cache.c b/hald/create_cache.c
-index d52f834..6903688 100644
---- a/hald/create_cache.c
-+++ b/hald/create_cache.c
-@@ -305,15 +305,17 @@ static void remember_jump_position(struct fdi_context *fdi_ctx)
- static void set_jump_position(struct fdi_context *fdi_ctx)
- {
- off_t offset;
-+ u_int32_t offset32;
-
- if (fdi_ctx->depth <= 0)
- DIE(("Rule depth underrun"));
-
- fdi_ctx->depth--;
- offset = RULES_ROUND(lseek(fdi_ctx->cache_fd, 0, SEEK_END));
-+ offset32 = (u_int32_t)offset;
- pad32_write(fdi_ctx->cache_fd,
- fdi_ctx->match_at_depth[fdi_ctx->depth] + offsetof(struct rule, jump_position),
-- &offset, sizeof(fdi_ctx->rule.jump_position));
-+ &offset32, sizeof(fdi_ctx->rule.jump_position));
-
- if (haldc_verbose)
- HAL_INFO(("modify rule=0x%08x, set jump to 0x%08x",
---
-1.6.0.2
-
diff --git a/sys-apps/hal/files/hal-0.5.7-hald-scripts.patch b/sys-apps/hal/files/hal-0.5.7-hald-scripts.patch
deleted file mode 100644
index 0e8e41ae9978..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-hald-scripts.patch
+++ /dev/null
@@ -1,211 +0,0 @@
-Index: tools/hal-system-lcd-get-brightness
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-lcd-get-brightness,v
-retrieving revision 1.7
-diff -u -r1.7 hal-system-lcd-get-brightness
---- hal-0.5.7/tools/hal-system-lcd-get-brightness 18 Feb 2006 23:11:23 -0000 1.7
-+++ hal-0.5.7/tools/hal-system-lcd-get-brightness 19 Feb 2006 22:44:22 -0000
-@@ -8,13 +8,13 @@
- # (at your option) any later version.
-
- # Check for environment variables
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "" ]; then
-+if [ -z "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" ]; then
- echo "Missing or empty environment variable(s)." >&2
- echo "This script should be started by hald." >&2
- exit 1
- fi
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "pmu" ]; then
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "pmu" ]; then
- value="`hal-system-power-pmu getlcd`"
- if [ $? -ne 0 ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
-@@ -24,37 +24,37 @@
- fi
-
- # Check for file existance and that it's readable
--if [ ! -r $HAL_PROP_LINUX_ACPI_PATH ]; then
-+if [ ! -r "$HAL_PROP_LINUX_ACPI_PATH" ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
- echo "$1 not readable!" >&2
- exit 1
- fi
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "toshiba" ]; then
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "toshiba" ]; then
- # cat /proc/acpi/toshiba/lcd
- # brightness: 5
- # brightness_levels: 8
- value="`cat $HAL_PROP_LINUX_ACPI_PATH | grep brightness: | awk '{print $2;}'`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "asus" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "asus" ]; then
- # cat /proc/acpi/asus/brn
- # 5
- value="`cat $HAL_PROP_LINUX_ACPI_PATH`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "panasonic" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "panasonic" ]; then
- # cat /proc/acpi/pcc/brightness
- # 5
- value="`cat $HAL_PROP_LINUX_ACPI_PATH`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "ibm" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "ibm" ]; then
- # cat /proc/acpi/ibm/brightness
- # level: 5
- # commands: up, down
- # commands: level <level> (<level> is 0-7)
- value="`cat $HAL_PROP_LINUX_ACPI_PATH | grep level: | awk '{print $2;}'`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sony" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony" ]; then
- # cat /proc/acpi/sony/brightness
- # 5
- value="`cat $HAL_PROP_LINUX_ACPI_PATH`"
- let "value = ${value} - 1"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "omnibook" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "omnibook" ]; then
- # cat /proc/omnibook/lcd
- # LCD brightness: 7
- value="`cat $HAL_PROP_LINUX_ACPI_PATH | awk '{print $3;}'`"
-Index: tools/hal-system-lcd-set-brightness
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-lcd-set-brightness,v
-retrieving revision 1.7
-diff -u -r1.7 hal-system-lcd-set-brightness
---- hal-0.5.7/tools/hal-system-lcd-set-brightness 18 Feb 2006 23:11:23 -0000 1.7
-+++ hal-0.5.7/tools/hal-system-lcd-set-brightness 19 Feb 2006 22:44:23 -0000
-@@ -8,8 +8,8 @@
- # (at your option) any later version.
-
- # Check for environment variables
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "" ] ||
-- [ "$HAL_PROP_LAPTOP_PANEL_NUM_LEVELS" == "" ] ; then
-+if [ -z "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" ] ||
-+ [ -z "$HAL_PROP_LAPTOP_PANEL_NUM_LEVELS" ] ; then
- echo "Missing or empty environment variable(s)." >&2
- echo "This script should be started by hald." >&2
- exit 1
-@@ -18,7 +18,14 @@
- # read value for set brightness
- read value
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "pmu" ]; then
-+# Check for values outside range
-+if [ ${value} -lt 0 ] || [ ${value} -gt $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS ]; then
-+ echo "org.freedesktop.Hal.Device.LaptopPanel.Invalid" >&2
-+ echo "Brightness has to be between 0 and $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS!" >&2
-+ exit 1
-+fi
-+
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "pmu" ]; then
- hal-system-power-pmu setlcd $value
- if [ $? -ne 0 ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
-@@ -28,39 +35,33 @@
- fi
-
- # Check for file existance and that it's writable
--if [ ! -w $HAL_PROP_LINUX_ACPI_PATH ]; then
-+if [ ! -w "$HAL_PROP_LINUX_ACPI_PATH" ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
- echo "$1 not writable!" >&2
- exit 1
- fi
-
--# Check for values outside range
--if [ ${value} -lt 0 ] || [ ${value} -gt $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS ]; then
-- echo "org.freedesktop.Hal.Device.LaptopPanel.Invalid" >&2
-- echo "Brightness has to be between 0 and $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS!" >&2
-- exit 1
--fi
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "toshiba" ]; then
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "toshiba" ]; then
- # echo "brightness: {0..x}" >/proc/acpi/toshiba/lcd
- echo "brightness: $value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "asus" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "asus" ]; then
- # echo {0..15} > /proc/acpi/asus/brn
- # http://www.taupro.com/wiki/ChemBook/LCDdisplayPowerConfiguration
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "panasonic" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "panasonic" ]; then
- # echo {0..15} > /proc/acpi/pcc/brightness
- # http://readlist.com/lists/vger.kernel.org/linux-kernel/7/36405.html
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "ibm" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "ibm" ]; then
- # echo "level {0..7}" > /proc/acpi/ibm/brightness
- # http://ibm-acpi.sourceforge.net/README
- echo "level $value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sony" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony" ]; then
- # echo "{1..8}" > /proc/acpi/sony/brightness
- # http://popies.net/sonypi/2.6-sony_acpi4.patch
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "omnibook" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "omnibook" ]; then
- # echo "{0..7}" > /proc/omnibook/lcd
- # http://bugzilla.gnome.org/show_bug.cgi?id=331458
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
-Index: tools/hal-system-power-hibernate
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-power-hibernate,v
-retrieving revision 1.6
-diff -u -r1.6 hal-system-power-hibernate
---- hal-0.5.7/tools/hal-system-power-hibernate 16 Jan 2006 12:47:40 -0000 1.6
-+++ hal-0.5.7/tools/hal-system-power-hibernate 19 Feb 2006 22:44:23 -0000
-@@ -43,8 +43,9 @@
- # Suspend2 tools installed
- /usr/sbin/hibernate --force
- RET=$?
-- elif [ -w "/sys/power/state" ] ; then
-- # Use the raw kernel sysfs interface
-+ elif [ -w "/sys/power/state" ] &&
-+ [ "$HAL_PROP_POWER_MANAGEMENT_TYPE" != pmu ] ; then
-+ # Use the raw kernel sysfs interface if possible (not on pmu yet)
- echo "disk" > /sys/power/state
- RET=$?
- else
-Index: tools/hal-system-power-suspend
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-power-suspend,v
-retrieving revision 1.6
-diff -u -r1.6 hal-system-power-suspend
---- hal-0.5.7/tools/hal-system-power-suspend 18 Feb 2006 23:00:55 -0000 1.6
-+++ hal-0.5.7/tools/hal-system-power-suspend 19 Feb 2006 22:44:23 -0000
-@@ -18,15 +18,6 @@
-
- read seconds_to_sleep
-
--#PMU systems cannot use /sys/power/state yet, so use a helper to issue an ioctl
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "pmu" ]; then
-- hal-system-power-pmu sleep
-- if [ $? -ne 0 ]; then
-- echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
-- exit 1
-- fi
-- exit 0
--fi
-
- #SuSE and ALTLinux only support powersave
- if [ -f "/etc/altlinux-release" ] || [ -f "/etc/SuSE-release" ] ; then
-@@ -62,6 +53,10 @@
- elif [ -x "/usr/sbin/pmi" ] ; then
- /usr/sbin/pmi action suspend force
- RET=$?
-+ elif [ "$HAL_PROP_POWER_MANAGEMENT_TYPE" = "pmu" ]; then
-+ #PMU systems cannot use /sys/power/state yet, so use a helper to issue an ioctl
-+ hal-system-power-pmu sleep
-+ RET=$?
- elif [ -w "/sys/power/state" ] ; then
- # Use the raw kernel sysfs interface
- echo "mem" > /sys/power/state
-@@ -72,4 +67,8 @@
- fi
- fi
-
-+if [ $RET -ne 0 ]; then
-+ echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
-+ exit 1
-+fi
- exit $RET
diff --git a/sys-apps/hal/files/hal-0.5.7-hibernate.patch b/sys-apps/hal/files/hal-0.5.7-hibernate.patch
deleted file mode 100644
index fa25bbe91c6b..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-hibernate.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- tools/hal-system-power-suspend 2006-06-05 23:49:08.000000000 -0500
-+++ tools/hal-system-power-suspend 2006-06-05 23:50:49.000000000 -0500
-@@ -61,6 +61,9 @@
- # Use the raw kernel sysfs interface
- echo "mem" > /sys/power/state
- RET=$?
-+ elif [ -x "/usr/sbin/hibernate-ram" ] ; then
-+ /usr/sbin/hibernate-ram
-+ RET=$?
- else
- # TODO: add other scripts support
- unsupported
diff --git a/sys-apps/hal/files/hal-0.5.7-ignored-volumes.patch b/sys-apps/hal/files/hal-0.5.7-ignored-volumes.patch
deleted file mode 100644
index 04bf203b8db1..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-ignored-volumes.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -ruN hal-0.5.7-old/fdi/policy/10osvendor/20-storage-methods.fdi hal-0.5.7/fdi/policy/10osvendor/20-storage-methods.fdi
---- hal-0.5.7-old/fdi/policy/10osvendor/20-storage-methods.fdi 2006-02-22 15:12:23.000000000 +0100
-+++ hal-0.5.7/fdi/policy/10osvendor/20-storage-methods.fdi 2006-03-15 22:48:07.000000000 +0100
-@@ -71,6 +71,29 @@
- <merge key="volume.ignore" type="bool">false</merge>
- <match key="@block.storage_device:storage.hotpluggable" bool="false">
- <match key="@block.storage_device:storage.removable" bool="false">
-+ <merge key="volume.ignore" type="bool">true</merge>
-+
-+ <match key="volume.is_mounted" bool="true">
-+ <!-- Show windows drives -->
-+ <match key="volume.fstype" string="vfat">
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ </match>
-+ <match key="volume.fstype" string="ntfs">
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ </match>
-+
-+ <!-- Show /media/ and /mnt drives -->
-+ <match key="volume.mount_point" compare_gt="/media">
-+ <match key="volume.mount_point" compare_lt="/media0">
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ </match>
-+ </match>
-+ <match key="volume.mount_point" compare_gt="/mnt">
-+ <match key="volume.mount_point" compare_lt="/mnt0">
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ </match>
-+ </match>
-+ </match>
-
- <!-- Should always ignore Apple Bootstrap partitions (it would be -->
- <!-- a security hole to mount it) - TODO: should use the bootable -->
diff --git a/sys-apps/hal/files/hal-0.5.7-part-table.patch b/sys-apps/hal/files/hal-0.5.7-part-table.patch
deleted file mode 100644
index d09b618275f0..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-part-table.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -ruN hal-0.5.7-old/volume_id/volume_id.c hal-0.5.7/volume_id/volume_id.c
---- hal-0.5.7-old/volume_id/volume_id.c 2006-02-22 07:30:41.000000000 +0100
-+++ hal-0.5.7/volume_id/volume_id.c 2006-03-08 11:21:01.000000000 +0100
-@@ -165,6 +165,9 @@
- if (volume_id_probe_raid(id, off, size) == 0)
- return 0;
-
-+ if (volume_id_probe_msdos_part_table(id, off) == 0)
-+ return 0;
-+
- if (volume_id_probe_filesystem(id, off, size) == 0)
- return 0;
-
diff --git a/sys-apps/hal/files/hal-0.5.7-plugdev-allow-send.patch b/sys-apps/hal/files/hal-0.5.7-plugdev-allow-send.patch
deleted file mode 100644
index 62b92b3bf15a..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-plugdev-allow-send.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- hal-0.5.6/hal.conf.in 2006-02-04 10:58:37.000000000 +0200
-+++ hal-0.5.6.az/hal.conf.in 2006-02-04 11:41:42.000000000 +0200
-@@ -49,5 +49,14 @@
- <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
- </policy>
-
-+ <!-- Gentoo specific rules to allow 'plugdev' group access to Volumes, etc -->
-+ <!-- NB: not sure if we should use a different group for SystemPowerManagement and LaptopPanel ... -->
-+ <policy group="plugdev">
-+ <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
-+ <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
-+ </policy>
-+
- </busconfig>
-
diff --git a/sys-apps/hal/files/hal-0.5.7-pmu-fix.patch b/sys-apps/hal/files/hal-0.5.7-pmu-fix.patch
deleted file mode 100644
index cc8696cb001c..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-pmu-fix.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff -ruN hal-0.5.7-old/hald/linux2/osspec.c hal-0.5.7/hald/linux2/osspec.c
---- hal-0.5.7-old/hald/linux2/osspec.c 2006-02-13 17:42:32.000000000 +0100
-+++ hal-0.5.7/hald/linux2/osspec.c 2006-03-01 11:56:20.000000000 +0100
-@@ -447,6 +447,7 @@
- unsigned int len;
- char *poweroptions;
- FILE *fp;
-+ const char* pmtype = NULL;
-
- can_suspend = FALSE;
- can_hibernate = FALSE;
-@@ -471,6 +472,16 @@
- can_hibernate = TRUE;
- free (poweroptions);
-
-+ pmtype = hal_device_property_get_string(d,"power_management.type");
-+ if (pmtype && !strcmp(pmtype, "pmu")) {
-+ /* Although /sys/power/state exists on pmu based machines, using it just
-+ * crashes mine. Suspending works via the pmu though. So overriding what we
-+ * just saw...
-+ * Should be removed as soon as /sys/power works on PMU */
-+ can_hibernate = FALSE;
-+ can_suspend = TRUE;
-+ }
-+
- /* check for the presence of suspend2 */
- if (access ("/proc/software_suspend", F_OK) == 0)
- can_hibernate = TRUE;
diff --git a/sys-apps/hal/files/hal-0.5.7-rescan-on-resume.patch b/sys-apps/hal/files/hal-0.5.7-rescan-on-resume.patch
deleted file mode 100644
index 64fc537214b1..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-rescan-on-resume.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- tools/hal-system-power-hibernate 2006-04-26 19:25:40.000000000 -0500
-+++ tools/hal-system-power-hibernate 2006-04-26 19:34:00.000000000 -0500
-@@ -53,4 +53,13 @@
- fi
- fi
-
-+# Refresh devices when resuming from a hibernate
-+for type in button battery ac_adapter ; do
-+ devices=$(hal-find-by-capbility --capability $type)
-+ for device in $devices ; do
-+ dbus-send --system --print-reply --dest=org.freedesktop.Hal $device \
-+ org.freedesktop.Hal.Device.Rescan
-+ done
-+done
-+
- exit $RET
diff --git a/sys-apps/hal/files/hal-0.5.7-sony-brightness.patch b/sys-apps/hal/files/hal-0.5.7-sony-brightness.patch
deleted file mode 100644
index 17d96cc8d715..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-sony-brightness.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ruN hal-0.5.7-old/tools/hal-system-lcd-set-brightness hal-0.5.7/tools/hal-system-lcd-set-brightness
---- hal-0.5.7-old/tools/hal-system-lcd-set-brightness 2006-03-15 23:01:12.000000000 +0100
-+++ hal-0.5.7/tools/hal-system-lcd-set-brightness 2006-03-15 23:04:54.000000000 +0100
-@@ -60,7 +60,7 @@
- elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony" ]; then
- # echo "{1..8}" > /proc/acpi/sony/brightness
- # http://popies.net/sonypi/2.6-sony_acpi4.patch
-- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
-+ echo "$((value + 1))" > $HAL_PROP_LINUX_ACPI_PATH
- elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "omnibook" ]; then
- # echo "{0..7}" > /proc/omnibook/lcd
- # http://bugzilla.gnome.org/show_bug.cgi?id=331458
diff --git a/sys-apps/hal/files/hal-0.5.7-unclean-unmount-r1.patch b/sys-apps/hal/files/hal-0.5.7-unclean-unmount-r1.patch
deleted file mode 100644
index 4c3254ff9d4e..000000000000
--- a/sys-apps/hal/files/hal-0.5.7-unclean-unmount-r1.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- tools/linux/90-hal.rules 2006-01-21 14:39:58.000000000 -0500
-+++ tools/linux/90-hal.rules.new 2006-03-18 21:14:31.000000000 -0500
-@@ -1,2 +1,6 @@
- # pass all events to the HAL daemon
- RUN+="socket:/org/freedesktop/hal/udev_event"
-+
-+# unmount block devices when they are removed
-+SUBSYSTEM=="block",ACTION=="remove", RUN+="hal_unmount"
-+
diff --git a/sys-apps/hal/files/hal-0.5.7.1-autofs-subfs.patch b/sys-apps/hal/files/hal-0.5.7.1-autofs-subfs.patch
deleted file mode 100644
index 9d4e6f53431c..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-autofs-subfs.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-diff -Naur hal-0.5.7-orig/hald/linux2/blockdev.c hal-0.5.7/hald/linux2/blockdev.c
---- hal-0.5.7-orig/hald/linux2/blockdev.c 2006-02-24 07:29:06 +0300
-+++ hal-0.5.7/hald/linux2/blockdev.c 2006-06-02 23:45:51 +0400
-@@ -185,6 +185,7 @@
- dev_t devt = makedev(0, 0);
- GSList *volumes = NULL;
- GSList *volume;
-+ GSList *autofs_mounts = NULL;
-
- /* open /proc/mounts */
- g_snprintf (buf, sizeof (buf), "%s/mounts", get_hal_proc_path ());
-@@ -205,6 +206,43 @@
- while ((mnte = getmntent_r (f, &mnt, buf, sizeof(buf))) != NULL) {
- struct stat statbuf;
-
-+ /* If this is a nfs mount or autofs
-+ * (fstype == 'nfs' || fstype == 'autofs')
-+ * ignore the mount. Reason:
-+ * 1. we don't list nfs devices in HAL
-+ * 2. more problematic: stat on mountpoints with
-+ * 'stale nfs handle' never come
-+ * back and block complete HAL and all applications
-+ * using HAL fail.
-+ * 3. autofs and HAL butt heads causing drives to never
-+ * be unmounted
-+ */
-+ if (strcmp(mnt.mnt_type, "nfs") == 0)
-+ continue;
-+
-+ /* If this is an autofs mount (fstype == 'autofs' or fstype == 'subfs')
-+ * store the mount in a list for later use.
-+ * On mounts managed by autofs or subfs accessing files below the mount
-+ * point cause the mount point to be remounted after an
-+ * unmount. We keep the list so we do not check for
-+ * the .created-by-hal file on mounts under autofs or subfs mount points
-+ */
-+ if (strcmp(mnt.mnt_type, "autofs") == 0 ||
-+ strcmp(mnt.mnt_type, "subfs") == 0) {
-+ char *mnt_dir;
-+
-+ if (mnt.mnt_dir[strlen (mnt.mnt_dir) - 1] != '/')
-+ mnt_dir = g_strdup_printf ("%s/", mnt.mnt_dir);
-+ else
-+ mnt_dir = g_strdup (mnt.mnt_dir);
-+
-+ autofs_mounts = g_slist_append (autofs_mounts,
-+ mnt_dir);
-+
-+
-+ continue;
-+ }
-+
- /* check the underlying device of the mount point */
- if (stat (mnt.mnt_dir, &statbuf) != 0)
- continue;
-@@ -242,6 +280,7 @@
- HalDevice *dev;
- char *mount_point;
- char *mount_point_hal_file;
-+ GSList *autofs_node;
-
- dev = HAL_DEVICE (volume->data);
- mount_point = g_strdup (hal_device_property_get_string (dev, "volume.mount_point"));
-@@ -251,8 +290,20 @@
- device_property_atomic_update_end ();
- HAL_INFO (("set %s to unmounted", hal_device_get_udi (dev)));
-
-+ /* check to see if mount point falls under autofs */
-+ autofs_node = autofs_mounts;
-+ while (autofs_node != NULL) {
-+ char *am = (char *)autofs_node->data;
-+
-+ if (strncmp (am, mount_point, strlen (am)) == 0);
-+ break;
-+
-+ autofs_node = autofs_node->next;
-+ }
-+
- mount_point_hal_file = g_strdup_printf ("%s/.created-by-hal", mount_point);
-- if (g_file_test (mount_point_hal_file, G_FILE_TEST_EXISTS)) {
-+ if (!autofs_node &&
-+ g_file_test (mount_point_hal_file, G_FILE_TEST_EXISTS)) {
- char *cleanup_stdin;
- char *extra_env[2];
-
-@@ -279,6 +330,8 @@
- g_free (mount_point);
- }
- g_slist_free (volumes);
-+ g_slist_foreach (autofs_mounts, (GFunc) g_free, NULL);
-+ g_slist_free (autofs_mounts);
- exit:
- endmntent (f);
- }
diff --git a/sys-apps/hal/files/hal-0.5.7.1-ctype-fix.patch b/sys-apps/hal/files/hal-0.5.7.1-ctype-fix.patch
deleted file mode 100644
index 2462022031b4..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-ctype-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Nur hal-0.5.7.1-orig/hald/linux2/hotplug.c hal-0.5.7.1/hald/linux2/hotplug.c
---- hal-0.5.7.1-orig/hald/linux2/hotplug.c 2007-01-30 14:39:33.000000000 -0500
-+++ hal-0.5.7.1/hald/linux2/hotplug.c 2007-01-30 14:39:52.000000000 -0500
-@@ -28,6 +28,7 @@
- #endif
-
- #include <stdio.h>
-+#include <ctype.h>
- #include <string.h>
- #include <mntent.h>
- #include <errno.h>
diff --git a/sys-apps/hal/files/hal-0.5.7.1-dbus-close.patch b/sys-apps/hal/files/hal-0.5.7.1-dbus-close.patch
deleted file mode 100644
index d7dabac69c8b..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-dbus-close.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -ruN hal-0.5.7.1.orig/tools/hal-device.c hal-0.5.7.1/tools/hal-device.c
---- hal-0.5.7.1.orig/tools/hal-device.c 2006-07-28 16:07:56.000000000 -0500
-+++ hal-0.5.7.1/tools/hal-device.c 2006-07-28 16:08:36.000000000 -0500
-@@ -155,7 +155,7 @@
-
- libhal_ctx_shutdown(hal_ctx, &error);
- libhal_ctx_free(hal_ctx);
-- dbus_connection_disconnect(conn);
-+ dbus_connection_close(conn);
- dbus_connection_unref(conn);
- dbus_error_free(&error);
-
-diff -ruN hal-0.5.7.1.orig/tools/lshal.c hal-0.5.7.1/tools/lshal.c
---- hal-0.5.7.1.orig/tools/lshal.c 2006-07-28 16:07:56.000000000 -0500
-+++ hal-0.5.7.1/tools/lshal.c 2006-07-28 16:08:52.000000000 -0500
-@@ -701,7 +701,7 @@
- libhal_ctx_shutdown (hal_ctx, &error);
- libhal_ctx_free (hal_ctx);
-
-- dbus_connection_disconnect (conn);
-+ dbus_connection_close (conn);
- dbus_connection_unref (conn);
-
- if (show_device)
diff --git a/sys-apps/hal/files/hal-0.5.7.1-fix-dbus.patch b/sys-apps/hal/files/hal-0.5.7.1-fix-dbus.patch
deleted file mode 100644
index 03fd76cb1bb8..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-fix-dbus.patch
+++ /dev/null
@@ -1,184 +0,0 @@
---- hal-0.5.7.1/tools/hal-device.c.fixdbus 2006-11-21 15:30:47.000000000 +0100
-+++ hal-0.5.7.1/tools/hal-device.c 2006-11-21 15:30:48.000000000 +0100
-@@ -155,7 +155,6 @@
-
- libhal_ctx_shutdown(hal_ctx, &error);
- libhal_ctx_free(hal_ctx);
-- dbus_connection_close(conn);
- dbus_connection_unref(conn);
- dbus_error_free(&error);
-
---- hal-0.5.7.1/tools/lshal.c.fixdbus 2006-11-21 15:30:47.000000000 +0100
-+++ hal-0.5.7.1/tools/lshal.c 2006-11-21 15:30:48.000000000 +0100
-@@ -701,7 +701,6 @@
- libhal_ctx_shutdown (hal_ctx, &error);
- libhal_ctx_free (hal_ctx);
-
-- dbus_connection_close (conn);
- dbus_connection_unref (conn);
-
- if (show_device)
---- hal-0.5.7.1/libhal/libhal.c.fixdbus 2006-02-12 22:47:28.000000000 +0100
-+++ hal-0.5.7.1/libhal/libhal.c 2006-11-21 15:33:31.000000000 +0100
-@@ -1525,7 +1525,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -1710,7 +1710,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -1762,7 +1762,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -1814,7 +1814,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -1865,7 +1865,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -1926,7 +1926,7 @@
- message, -1,
- error);
-
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- if (strcmp (error->name,
- "org.freedesktop.Hal.DeviceAlreadyLocked") == 0) {
- if (reason_why_locked != NULL) {
-@@ -1985,7 +1985,7 @@
- message, -1,
- error);
-
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -2040,7 +2040,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return NULL;
- }
-@@ -2125,7 +2125,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -2179,7 +2179,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -2365,7 +2365,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -2652,7 +2652,7 @@
- reply = dbus_connection_send_with_reply_and_block (ctx->connection,
- message, -1,
- error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -2788,7 +2788,7 @@
- "type='signal',"
- "interface='org.freedesktop.Hal.Device',"
- "sender='org.freedesktop.Hal'", error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- return FALSE;
- }
- return TRUE;
-@@ -2820,7 +2820,7 @@
- "sender='org.freedesktop.Hal'," "path=%s", udi);
-
- dbus_bus_add_match (ctx->connection, buf, error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- return FALSE;
- }
- return TRUE;
-@@ -2848,7 +2848,7 @@
- "sender='org.freedesktop.Hal'," "path=%s", udi);
-
- dbus_bus_remove_match (ctx->connection, buf, error);
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- return FALSE;
- }
- return TRUE;
-@@ -3223,7 +3223,7 @@
- message, -1,
- error);
-
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -3273,7 +3273,7 @@
- message, -1,
- error);
-
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
-@@ -3342,7 +3342,7 @@
- message, -1,
- error);
-
-- if (dbus_error_is_set (error)) {
-+ if (error != NULL && dbus_error_is_set (error)) {
- dbus_message_unref (message);
- return FALSE;
- }
diff --git a/sys-apps/hal/files/hal-0.5.7.1-floppies-fix.patch b/sys-apps/hal/files/hal-0.5.7.1-floppies-fix.patch
deleted file mode 100644
index 3d259627ba65..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-floppies-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Naur hal-0.5.7.1.orig/hald/linux2/hotplug.c hal-0.5.7.1/hald/linux2/hotplug.c
---- hal-0.5.7.1.orig/hald/linux2/hotplug.c 2007-01-22 15:31:45.322111812 +0100
-+++ hal-0.5.7.1/hald/linux2/hotplug.c 2007-01-22 15:31:15.594276651 +0100
-@@ -283,6 +283,7 @@
-
- len = strlen(hotplug_event->sysfs.sysfs_path);
- is_partition = (isdigit(hotplug_event->sysfs.sysfs_path[len - 1])
-+ && (! strstr(hotplug_event->sysfs.sysfs_path, "/block/fd"))
- && ! strstr(hotplug_event->sysfs.sysfs_path, "/block/sr")) ||
- strstr (hotplug_event->sysfs.sysfs_path, "/fakevolume") ;
-
diff --git a/sys-apps/hal/files/hal-0.5.7.1-hald-scripts.patch b/sys-apps/hal/files/hal-0.5.7.1-hald-scripts.patch
deleted file mode 100644
index 3403a23b310a..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-hald-scripts.patch
+++ /dev/null
@@ -1,217 +0,0 @@
-# this patch modifies a lot of script in tools, please double check
-# before adding another patch on top of it.
-#
-Index: tools/hal-system-lcd-get-brightness
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-lcd-get-brightness,v
-retrieving revision 1.7
-diff -u -r1.7 hal-system-lcd-get-brightness
---- hal-0.5.7/tools/hal-system-lcd-get-brightness 18 Feb 2006 23:11:23 -0000 1.7
-+++ hal-0.5.7/tools/hal-system-lcd-get-brightness 19 Feb 2006 22:44:22 -0000
-@@ -8,13 +8,13 @@
- # (at your option) any later version.
-
- # Check for environment variables
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "" ]; then
-+if [ -z "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" ]; then
- echo "Missing or empty environment variable(s)." >&2
- echo "This script should be started by hald." >&2
- exit 1
- fi
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "pmu" ]; then
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "pmu" ]; then
- value="`hal-system-power-pmu getlcd`"
- if [ $? -ne 0 ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
-@@ -24,37 +24,37 @@
- fi
-
- # Check for file existance and that it's readable
--if [ ! -r $HAL_PROP_LINUX_ACPI_PATH ]; then
-+if [ ! -r "$HAL_PROP_LINUX_ACPI_PATH" ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
- echo "$1 not readable!" >&2
- exit 1
- fi
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "toshiba" ]; then
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "toshiba" ]; then
- # cat /proc/acpi/toshiba/lcd
- # brightness: 5
- # brightness_levels: 8
- value="`cat $HAL_PROP_LINUX_ACPI_PATH | grep brightness: | awk '{print $2;}'`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "asus" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "asus" ]; then
- # cat /proc/acpi/asus/brn
- # 5
- value="`cat $HAL_PROP_LINUX_ACPI_PATH`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "panasonic" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "panasonic" ]; then
- # cat /proc/acpi/pcc/brightness
- # 5
- value="`cat $HAL_PROP_LINUX_ACPI_PATH`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "ibm" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "ibm" ]; then
- # cat /proc/acpi/ibm/brightness
- # level: 5
- # commands: up, down
- # commands: level <level> (<level> is 0-7)
- value="`cat $HAL_PROP_LINUX_ACPI_PATH | grep level: | awk '{print $2;}'`"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sony" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony" ]; then
- # cat /proc/acpi/sony/brightness
- # 5
- value="`cat $HAL_PROP_LINUX_ACPI_PATH`"
- let "value = ${value} - 1"
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "omnibook" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "omnibook" ]; then
- # cat /proc/omnibook/lcd
- # LCD brightness: 7
- value="`cat $HAL_PROP_LINUX_ACPI_PATH | awk '{print $3;}'`"
-Index: tools/hal-system-lcd-set-brightness
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-lcd-set-brightness,v
-retrieving revision 1.7
-diff -u -r1.7 hal-system-lcd-set-brightness
---- hal-0.5.7/tools/hal-system-lcd-set-brightness 18 Feb 2006 23:11:23 -0000 1.7
-+++ hal-0.5.7/tools/hal-system-lcd-set-brightness 19 Feb 2006 22:44:23 -0000
-@@ -8,8 +8,8 @@
- # (at your option) any later version.
-
- # Check for environment variables
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "" ] ||
-- [ "$HAL_PROP_LAPTOP_PANEL_NUM_LEVELS" == "" ] ; then
-+if [ -z "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" ] ||
-+ [ -z "$HAL_PROP_LAPTOP_PANEL_NUM_LEVELS" ] ; then
- echo "Missing or empty environment variable(s)." >&2
- echo "This script should be started by hald." >&2
- exit 1
-@@ -18,7 +18,14 @@
- # read value for set brightness
- read value
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "pmu" ]; then
-+# Check for values outside range
-+if [ ${value} -lt 0 ] || [ ${value} -gt $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS ]; then
-+ echo "org.freedesktop.Hal.Device.LaptopPanel.Invalid" >&2
-+ echo "Brightness has to be between 0 and $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS!" >&2
-+ exit 1
-+fi
-+
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "pmu" ]; then
- hal-system-power-pmu setlcd $value
- if [ $? -ne 0 ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
-@@ -28,39 +35,33 @@
- fi
-
- # Check for file existance and that it's writable
--if [ ! -w $HAL_PROP_LINUX_ACPI_PATH ]; then
-+if [ ! -w "$HAL_PROP_LINUX_ACPI_PATH" ]; then
- echo "org.freedesktop.Hal.Device.LaptopPanel.NotSupported" >&2
- echo "$1 not writable!" >&2
- exit 1
- fi
-
--# Check for values outside range
--if [ ${value} -lt 0 ] || [ ${value} -gt $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS ]; then
-- echo "org.freedesktop.Hal.Device.LaptopPanel.Invalid" >&2
-- echo "Brightness has to be between 0 and $HAL_PROP_LAPTOP_PANEL_NUM_LEVELS!" >&2
-- exit 1
--fi
-
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "toshiba" ]; then
-+if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "toshiba" ]; then
- # echo "brightness: {0..x}" >/proc/acpi/toshiba/lcd
- echo "brightness: $value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "asus" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "asus" ]; then
- # echo {0..15} > /proc/acpi/asus/brn
- # http://www.taupro.com/wiki/ChemBook/LCDdisplayPowerConfiguration
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "panasonic" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "panasonic" ]; then
- # echo {0..15} > /proc/acpi/pcc/brightness
- # http://readlist.com/lists/vger.kernel.org/linux-kernel/7/36405.html
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "ibm" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "ibm" ]; then
- # echo "level {0..7}" > /proc/acpi/ibm/brightness
- # http://ibm-acpi.sourceforge.net/README
- echo "level $value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "sony" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "sony" ]; then
- # echo "{1..8}" > /proc/acpi/sony/brightness
- # http://popies.net/sonypi/2.6-sony_acpi4.patch
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
--elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "omnibook" ]; then
-+elif [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "omnibook" ]; then
- # echo "{0..7}" > /proc/omnibook/lcd
- # http://bugzilla.gnome.org/show_bug.cgi?id=331458
- echo "$value" > $HAL_PROP_LINUX_ACPI_PATH
-Index: tools/hal-system-power-hibernate
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-power-hibernate,v
-retrieving revision 1.6
-diff -u -r1.6 hal-system-power-hibernate
---- hal-0.5.7/tools/hal-system-power-hibernate 16 Jan 2006 12:47:40 -0000 1.6
-+++ hal-0.5.7/tools/hal-system-power-hibernate 19 Feb 2006 22:44:23 -0000
-@@ -43,8 +43,9 @@
- # Suspend2 tools installed
- /usr/sbin/hibernate --force
- RET=$?
-- elif [ -w "/sys/power/state" ] ; then
-- # Use the raw kernel sysfs interface
-+ elif [ -w "/sys/power/state" ] &&
-+ [ "$HAL_PROP_POWER_MANAGEMENT_TYPE" != pmu ] ; then
-+ # Use the raw kernel sysfs interface if possible (not on pmu yet)
- echo "disk" > /sys/power/state
- RET=$?
- else
-Index: tools/hal-system-power-suspend
-===================================================================
-RCS file: /cvs/hal/hal/tools/hal-system-power-suspend,v
-retrieving revision 1.6
-diff -u -r1.6 hal-system-power-suspend
---- hal-0.5.7/tools/hal-system-power-suspend 2007-01-18 22:50:15.000000000 +0100
-+++ hal-0.5.7/tools/hal-system-power-suspend 2007-01-18 22:53:04.000000000 +0100
-@@ -18,15 +18,6 @@
-
- read seconds_to_sleep
-
--#PMU systems cannot use /sys/power/state yet, so use a helper to issue an ioctl
--if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "pmu" ]; then
-- hal-system-power-pmu sleep
-- if [ $? -ne 0 ]; then
-- echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
-- exit 1
-- fi
-- exit 0
--fi
-
- #SuSE and ALTLinux only support powersave
- if [ -f "/etc/altlinux-release" ] || [ -f "/etc/SuSE-release" ] ; then
-@@ -62,6 +53,13 @@
- elif [ -x "/usr/sbin/pmi" ] ; then
- /usr/sbin/pmi action suspend force
- RET=$?
-+ elif [ "$HAL_PROP_POWER_MANAGEMENT_TYPE" = "pmu" ]; then
-+ #PMU systems cannot use /sys/power/state yet, so use a helper to issue an ioctl
-+ hal-system-power-pmu sleep
-+ RET=$?
-+ elif [ -x "/usr/sbin/hibernate-ram" ] ; then
-+ /usr/sbin/hibernate-ram
-+ RET=$?
- elif [ -w "/sys/power/state" ] ; then
- # Use the raw kernel sysfs interface
- echo "mem" > /sys/power/state
-@@ -72,4 +70,8 @@
- fi
- fi
-
-+if [ $RET -ne 0 ]; then
-+ echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
-+ exit 1
-+fi
- exit $RET
diff --git a/sys-apps/hal/files/hal-0.5.7.1-hibernate-fix.patch b/sys-apps/hal/files/hal-0.5.7.1-hibernate-fix.patch
deleted file mode 100644
index 86ac721096be..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-hibernate-fix.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- tools/hal-system-power-hibernate 2006-01-16 07:47:40.000000000 -0500
-+++ tools/hal-system-power-hibernate-new 2006-11-19 18:50:43.000000000 -0500
-@@ -36,6 +36,9 @@
- elif [ -x "/usr/sbin/pmi" ] ; then
- /usr/sbin/pmi action hibernate force
- RET=$?
-+ elif [ -x "/usr/sbin/hibernate-ram" ] ; then
-+ /usr/sbin/hibernate-ram
-+ RET=$?
- elif [ -x "/usr/sbin/pm-hibernate" ] ; then
- /usr/sbin/pm-hibernate
- RET=$?
diff --git a/sys-apps/hal/files/hal-0.5.7.1-ignored-volumes.patch b/sys-apps/hal/files/hal-0.5.7.1-ignored-volumes.patch
deleted file mode 100644
index a0cc0fd3023d..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-ignored-volumes.patch
+++ /dev/null
@@ -1,65 +0,0 @@
---- hal-0.5.7.1/fdi/policy/10osvendor/20-storage-methods.fdi 2006-02-22 15:15:33.000000000
-0100
-+++ hal-0.5.7.1/fdi/policy/10osvendor/20-storage-methods.fdi 2006-10-09 10:46:36.000000000
-0200
-@@ -63,21 +63,54 @@
- </match>
-
-
-+ <match key="volume.fsusage" string="crypto">
-+
-+ <!-- Here follow volumes we specifically want to ignore - it is the -->
-+ <!-- responsibility of software higher in the stack (e.g. gnome-vfs) -->
-+ <!-- amd mount programs (e.g. Mount() on HAL) to respect volume.ignore -->
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ <match key="@block.storage_device:storage.hotpluggable" bool="false">
-+ <match key="@block.storage_device:storage.removable" bool="false">
-+ <merge key="volume.ignore" type="bool">true</merge>
-+
-+ <match key="volume.is_mounted" bool="true">
-+ <!-- Show /media/ drives -->
-+ <match key="volume.mount_point" compare_gt="/media">
-+ <match key="volume.mount_point" compare_lt="/media0">
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ </match>
-+ </match>
-+ </match>
-+ </match>
-+ </match>
-+ </match>
-+
- <match key="volume.fsusage" string="filesystem">
-
- <!-- Here follow volumes we specifically want to ignore - it is the -->
- <!-- responsibility of software higher in the stack (e.g. gnome-vfs) -->
- <!-- amd mount programs (e.g. Mount() on HAL) to respect volume.ignore -->
- <merge key="volume.ignore" type="bool">false</merge>
-+
-+ <!-- Should always ignore Apple Bootstrap partitions (it would be -->
-+ <!-- a security hole to mount it) - TODO: should use the bootable -->
-+ <!-- flag from the Mac partition table instead -->
-+ <match key="volume.fstype" string="hfs">
-+ <match key="volume.label" string="bootstrap">
-+ <merge key="volume.ignore" type="bool">true</merge>
-+ </match>
-+ </match>
-+
- <match key="@block.storage_device:storage.hotpluggable" bool="false">
- <match key="@block.storage_device:storage.removable" bool="false">
-+ <merge key="volume.ignore" type="bool">true</merge>
-
-- <!-- Should always ignore Apple Bootstrap partitions (it would be -->
-- <!-- a security hole to mount it) - TODO: should use the bootable -->
-- <!-- flag from the Mac partition table instead -->
-- <match key="volume.fstype" string="hfs">
-- <match key="volume.label" string="bootstrap">
-- <merge key="volume.ignore" type="bool">true</merge>
-+ <match key="volume.is_mounted" bool="true">
-+ <!-- Show /media/ drives -->
-+ <match key="volume.mount_point" compare_gt="/media">
-+ <match key="volume.mount_point" compare_lt="/media0">
-+ <merge key="volume.ignore" type="bool">false</merge>
-+ </match>
- </match>
- </match>
-
diff --git a/sys-apps/hal/files/hal-0.5.7.1-indirection-fix.patch b/sys-apps/hal/files/hal-0.5.7.1-indirection-fix.patch
deleted file mode 100644
index 198297251f9e..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-indirection-fix.patch
+++ /dev/null
@@ -1,117 +0,0 @@
-diff -uNr hal-0.5.7.orig/hald/device_info.c hal-0.5.7/hald/device_info.c
---- hal-0.5.7.orig/hald/device_info.c 2006-01-21 07:36:51.000000000 +0100
-+++ hal-0.5.7/hald/device_info.c 2006-10-26 23:00:26.000000000 +0200
-@@ -1114,56 +1114,22 @@
- pc->merge_type, pc->merge_type));
- break;
- }
-- } else if (pc->curelem == CURELEM_APPEND && pc->match_ok &&
-+ } else if ((pc->curelem == CURELEM_APPEND || pc->curelem == CURELEM_PREPEND) && pc->match_ok &&
- (hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRING ||
- hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRLIST ||
- hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_INVALID)) {
- char buf[256];
- char buf2[256];
-
-- /* As soon as we are appending, we have matched the device... */
-+ /* As soon as we are appending/prepending, we have matched the device... */
- pc->device_matched = TRUE;
-
- if (pc->merge_type == MERGE_TYPE_STRLIST) {
-- hal_device_property_strlist_append (pc->device, pc->merge_key, pc->cdata_buf);
-- } else {
-- const char *existing_string;
--
-- switch (pc->merge_type) {
-- case MERGE_TYPE_STRING:
-- strncpy (buf, pc->cdata_buf, sizeof (buf));
-- break;
--
-- case MERGE_TYPE_COPY_PROPERTY:
-- hal_device_property_get_as_string (pc->device, pc->cdata_buf, buf, sizeof (buf));
-- break;
--
-- default:
-- HAL_ERROR (("Unknown merge_type=%d='%c'", pc->merge_type, pc->merge_type));
-- break;
-- }
--
-- existing_string = hal_device_property_get_string (pc->device, pc->merge_key);
-- if (existing_string != NULL) {
-- strncpy (buf2, existing_string, sizeof (buf2));
-- strncat (buf2, buf, sizeof (buf2) - strlen(buf2));
-+ if (pc->curelem == CURELEM_APPEND){
-+ hal_device_property_strlist_append (pc->device, pc->merge_key, pc->cdata_buf);
- } else {
-- strncpy (buf2, buf, sizeof (buf2));
-+ hal_device_property_strlist_prepend (pc->device, pc->merge_key, pc->cdata_buf);
- }
-- hal_device_property_set_string (pc->device, pc->merge_key, buf2);
-- }
-- } else if (pc->curelem == CURELEM_PREPEND && pc->match_ok &&
-- (hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRING ||
-- hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRLIST ||
-- hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_INVALID)) {
-- char buf[256];
-- char buf2[256];
--
-- /* As soon as we are prepending, we have matched the device... */
-- pc->device_matched = TRUE;
--
-- if (pc->merge_type == MERGE_TYPE_STRLIST) {
-- hal_device_property_strlist_prepend (pc->device, pc->merge_key, pc->cdata_buf);
- } else {
- const char *existing_string;
-
-@@ -1173,8 +1139,34 @@
- break;
-
- case MERGE_TYPE_COPY_PROPERTY:
-- hal_device_property_get_as_string (pc->device, pc->cdata_buf, buf, sizeof (buf));
-+ {
-+ char udi_to_merge_from[256];
-+ char prop_to_merge[256];
-+
-+ /* Resolve key paths like 'someudi/foo/bar/baz:prop.name'
-+ * '@prop.here.is.an.udi:with.prop.name'
-+ */
-+ if (!resolve_udiprop_path (pc->cdata_buf,
-+ pc->device->udi,
-+ udi_to_merge_from, sizeof (udi_to_merge_from),
-+ prop_to_merge, sizeof (prop_to_merge))) {
-+ HAL_ERROR (("Could not resolve keypath '%s' on udi '%s'", pc->cdata_buf, pc->device->udi));
-+ } else {
-+ HalDevice *d;
-+
-+ d = hal_device_store_find (hald_get_gdl (), udi_to_merge_from);
-+ if (d == NULL) {
-+ d = hal_device_store_find (hald_get_tdl (), udi_to_merge_from);
-+ }
-+ if (d == NULL) {
-+ HAL_ERROR (("Could not find device with udi '%s'", udi_to_merge_from));
-+ } else {
-+ hal_device_property_get_as_string (d, prop_to_merge, buf, sizeof (buf));
-+ }
-+ }
-+
- break;
-+ }
-
- default:
- HAL_ERROR (("Unknown merge_type=%d='%c'", pc->merge_type, pc->merge_type));
-@@ -1183,8 +1175,13 @@
-
- existing_string = hal_device_property_get_string (pc->device, pc->merge_key);
- if (existing_string != NULL) {
-- strncpy (buf2, buf, sizeof (buf2));
-- strncat (buf2, existing_string, sizeof (buf2) - strlen(buf2));
-+ if (pc->curelem == CURELEM_APPEND){
-+ strncpy (buf2, existing_string, sizeof (buf2));
-+ strncat (buf2, buf, sizeof (buf2) - strlen(buf2));
-+ } else {
-+ strncpy (buf2, buf, sizeof (buf2));
-+ strncat (buf2, existing_string, sizeof (buf2) - strlen(buf2));
-+ }
- } else {
- strncpy (buf2, buf, sizeof (buf2));
- }
diff --git a/sys-apps/hal/files/hal-0.5.7.1-ipod-nano.patch b/sys-apps/hal/files/hal-0.5.7.1-ipod-nano.patch
deleted file mode 100644
index 803c59d9b54c..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-ipod-nano.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- hal-0.5.7.1/volume_id/via_raid.c 2006-02-21 20:15:17.000000000 +0100
-+++ hal-0.5.7.1/volume_id/via_raid.c-new 2006-12-16 17:48:31.000000000 +0100
-@@ -3,6 +3,9 @@
- *
- * Copyright (C) 2005 Kay Sievers <kay.sievers@vrfy.org>
- *
-+ * Based on information taken from dmraid:
-+ * Copyright (C) 2004-2006 Heinz Mauelshagen, Red Hat GmbH
-+ *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation version 2 of the License.
-@@ -31,7 +34,7 @@
- uint16_t signature;
- uint8_t version_number;
- struct via_array {
-- uint16_t disk_bits;
-+ uint16_t disk_bit_mask;
- uint8_t disk_array_ex;
- uint32_t capacity_low;
- uint32_t capacity_high;
-@@ -43,6 +46,17 @@
-
- #define VIA_SIGNATURE 0xAA55
-
-+/* 8 bit checksum on first 50 bytes of metadata. */
-+static uint8_t meta_checksum(struct via_meta *via)
-+{
-+ uint8_t i = 50, sum = 0;
-+
-+ while (i--)
-+ sum += ((uint8_t*) via)[i];
-+
-+ return sum == via->checksum;
-+}
-+
- int volume_id_probe_via_raid(struct volume_id *id, uint64_t off, uint64_t size)
- {
- const uint8_t *buf;
-@@ -68,6 +82,9 @@
- if (via->version_number > 1)
- return -1;
-
-+ if (!meta_checksum(via))
-+ return -1;
-+
- volume_id_set_usage(id, VOLUME_ID_RAID);
- snprintf(id->type_version, sizeof(id->type_version)-1, "%u", via->version_number);
- id->type = "via_raid_member";
diff --git a/sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch b/sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch
deleted file mode 100644
index e9eeb3142016..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- tools/hal-system-power-hibernate 2006-04-26 19:25:40.000000000 -0500
-+++ tools/hal-system-power-hibernate 2006-04-26 19:34:00.000000000 -0500
-@@ -53,4 +53,13 @@
- fi
- fi
-
-+# Refresh devices when resuming from a hibernate
-+for type in button battery ac_adapter ; do
-+ devices=$(hal-find-by-capability --capability $type)
-+ for device in $devices ; do
-+ dbus-send --system --print-reply --dest=org.freedesktop.Hal $device \
-+ org.freedesktop.Hal.Device.Rescan
-+ done
-+done
-+
- exit $RET
diff --git a/sys-apps/hal/files/hal-0.5.7.1-sr-driver.patch b/sys-apps/hal/files/hal-0.5.7.1-sr-driver.patch
deleted file mode 100644
index 00de4ef77ff4..000000000000
--- a/sys-apps/hal/files/hal-0.5.7.1-sr-driver.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -ru hal-0.5.7.1.orig/hald/linux2/hotplug.c hal-0.5.7.1/hald/linux2/hotplug.c
---- hal-0.5.7.1.orig/hald/linux2/hotplug.c 2006-07-26 11:03:17.000000000 -0700
-+++ hal-0.5.7.1/hald/linux2/hotplug.c 2006-08-30 19:50:22.000000000 -0700
-@@ -282,7 +282,8 @@
- size_t len;
-
- len = strlen(hotplug_event->sysfs.sysfs_path);
-- is_partition = isdigit(hotplug_event->sysfs.sysfs_path[len - 1]) ||
-+ is_partition = (isdigit(hotplug_event->sysfs.sysfs_path[len - 1])
-+ && ! strstr(hotplug_event->sysfs.sysfs_path, "/block/sr")) ||
- strstr (hotplug_event->sysfs.sysfs_path, "/fakevolume") ;
-
- if (hotplug_event->action == HOTPLUG_ACTION_ADD) {
diff --git a/sys-apps/hal/files/hal-0.5.9-hide-recovery-partitions.patch b/sys-apps/hal/files/hal-0.5.9-hide-recovery-partitions.patch
deleted file mode 100644
index 21ff6af136b5..000000000000
--- a/sys-apps/hal/files/hal-0.5.9-hide-recovery-partitions.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- hal-0.5.9/fdi/policy/10osvendor/20-storage-methods.fdi 2007-05-01 21:39:31.000000000 +0000
-+++ hal-0.5.9/fdi/policy/10osvendor/20-storage-methods.fdi 2007-05-01 21:51:14.000000000 +0000
-@@ -100,6 +100,11 @@
- </match>
- </match>
-
-+ <!-- Hide partitions marked as Compaq Diagnostics -->
-+ <match key="volume.partition.type" string="0x12">
-+ <merge key="volume.ignore" type="bool">true</merge>
-+ </match>
-+
- <!-- EFI firmware partitions -->
- <match key="volume.fstype" string="vfat">
- <match key="volume.label" string="EFI">
diff --git a/sys-apps/hal/hal-0.5.11-r8.ebuild b/sys-apps/hal/hal-0.5.11-r8.ebuild
deleted file mode 100644
index df515fabe28a..000000000000
--- a/sys-apps/hal/hal-0.5.11-r8.ebuild
+++ /dev/null
@@ -1,293 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.11-r8.ebuild,v 1.10 2009/05/16 08:49:29 robbat2 Exp $
-
-inherit eutils linux-info autotools flag-o-matic
-
-PATCH_VERSION="5"
-
-DESCRIPTION="Hardware Abstraction Layer"
-HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
-SRC_URI="http://hal.freedesktop.org/releases/${P/_/}.tar.bz2
- http://dev.gentoo.org/~chainsaw/files/${P}-gentoo-patches-${PATCH_VERSION}.tar.bz2"
-
-LICENSE="|| ( GPL-2 AFL-2.0 )"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
-
-KERNEL_IUSE="kernel_linux kernel_FreeBSD"
-IUSE="X acpi apm crypt debug dell disk-partition doc laptop selinux ${KERNEL_IUSE}"
-
-RDEPEND=">=dev-libs/dbus-glib-0.61
- >=dev-libs/glib-2.14
- >=dev-libs/expat-1.95.8
- =virtual/libusb-0*
- >=sys-apps/pciutils-2.2.7-r1
- >=dev-util/gperf-3.0.3
- sys-apps/usbutils
- virtual/eject
- amd64? ( >=sys-apps/dmidecode-2.7 )
- dell? ( >=sys-libs/libsmbios-0.13.4 )
- disk-partition? ( >=sys-apps/parted-1.8.0 )
- ia64? ( >=sys-apps/dmidecode-2.7 )
- kernel_linux? (
- >=sys-fs/udev-117
- >=sys-apps/util-linux-2.13
- >=sys-kernel/linux-headers-2.6.19
- crypt? ( >=sys-fs/cryptsetup-1.0.5 )
- )
- kernel_FreeBSD? ( >=dev-libs/libvolume_id-0.77 )
- x86? ( >=sys-apps/dmidecode-2.7 )
- selinux? ( sys-libs/libselinux sec-policy/selinux-hal )"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- >=dev-util/intltool-0.35
- doc? (
- app-text/xmlto
- dev-libs/libxml2
- dev-util/gtk-doc
- app-text/docbook-sgml-utils
- )"
-PDEPEND="|| (
- >=app-misc/hal-info-20081219 )
- !gnome-extra/hal-device-manager
- laptop? ( >=sys-power/pm-utils-0.99.3 )"
-
-## HAL Daemon drops privledges so we need group access to read disks
-HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
-HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
-
-function check_hotplug_net() {
- local CONFIG_CHECK="~HOTPLUG ~NET"
- local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)\n"
- local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)\n"
- check_extra_config
-}
-
-function check_inotify() {
- local CONFIG_CHECK="~INOTIFY_USER"
- local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)\n"
- check_extra_config
-}
-
-function check_acpi_proc() {
- local CONFIG_CHECK="~ACPI_PROCFS ~ACPI_PROC_EVENT"
- local WARNING_ACPI_PROCFS="CONFIG_ACPI_PROCFS:\tis not set (required for HAL)\n"
- local WARNING_ACPI_PROC_EVENT="CONFIG_ACPI_PROC_EVENT:\tis not set (required for HAL)\n"
- check_extra_config
-}
-
-pkg_setup() {
- if use kernel_linux ; then
- if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then
- kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer"
-
- if kernel_is lt 2 6 23 && use acpi ; then
- check_acpi_proc
- fi
- fi
-
- check_hotplug_net
- check_inotify
- fi
-
- # http://devmanual.gentoo.org/ebuild-writing/functions/
- # http://bugs.gentoo.org/show_bug.cgi?id=191605
-
- # Create groups for hotplugging and HAL
- enewgroup haldaemon
- enewgroup plugdev
-
- # HAL drops priviledges by default now ...
- # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
- if use kernel_linux; then
- enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
- elif use kernel_FreeBSD; then
- enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
- fi
-
- # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
- # If users have a problem with this, let them file a bug
- if [[ ${ROOT} == / ]] ; then
- if use kernel_linux; then
- usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
- elif use kernel_FreeBSD; then
- pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
- fi
- fi
-}
-
-S="${WORKDIR}/${PF/-r*/}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- EPATCH_MULTI_MSG="Applying Gentoo Patchset ..." \
- EPATCH_SUFFIX="patch" \
- EPATCH_SOURCE="${WORKDIR}/${P}-patches/" \
- EPATCH_FORCE="yes" \
- epatch
-
- eautoreconf
-}
-
-src_compile() {
- local acpi="$(use_enable acpi)"
- local backend=
- local hardware=
-
- append-flags -rdynamic
-
- if use kernel_linux ; then
- backend="linux"
- elif use kernel_FreeBSD ; then
- backend="freebsd"
- else
- eerror "Invalid backend"
- fi
-
- if use kernel_linux ; then
- if use acpi ; then
- # Using IBM ACPI and Toshiba ACPI results in double notification as this
- # was merged into the Linux Kernel 2.6.22
- if kernel_is lt 2 6 22 ; then
- acpi="$acpi --enable-acpi-ibm --enable-acpi-toshiba"
- else
- acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
- fi
-
- acpi="$acpi --enable-acpi-proc --enable-acpi-acpid"
- else
- acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
- acpi="$acpi --disable-acpi-proc --disable-acpi-acpid"
- fi
-
- hardware="--with-cpufreq --with-usb-csr --with-keymaps"
- use arm && hardware="$hardware --with-omap --enable-pmu"
- use ppc && hardware="$hardware --enable-pmu"
- if use x86 || use amd64; then
- hardware="$hardware --with-macbook --with-macbookpro"
- fi
-
- if use dell ; then
- hardware="$hardware --with-dell-backlight"
- else
- hardware="$hardware --without-dell-backlight"
- fi
-
- hardware="$hardware --enable-sonypic"
- else
- hardware="--without-cpufreq --without-usb-csr --without-keymaps"
- hardware="$hardware --without-omap"
- hardware="$hardware --without-dell-backlight"
- hardware="$hardware --enable-acpi-ibm --enable-acpi-toshiba"
- hardware="$hardware --disable-sonypic"
- fi
-
- econf --with-backend=${backend} \
- --with-os-type=gentoo \
- --with-pid-file=/var/run/hald.pid \
- --with-hwdata=/usr/share/misc \
- --with-socket-dir=/var/run/hald \
- --enable-umount-helper \
- --enable-man-pages \
- --disable-policy-kit \
- --disable-console-kit \
- --disable-acl-management \
- --enable-pci \
- $(use_enable apm) \
- $(use_enable debug verbose-mode) \
- $(use_enable disk-partition parted) \
- $(use_enable doc docbook-docs) \
- $(use_enable doc gtk-doc) \
- --docdir=/usr/share/doc/${PF} \
- --localstatedir=/var \
- ${acpi} ${hardware} \
- || die "configure failed"
-
- emake || die "make failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog NEWS README || die "docs failed"
-
- # hal umount for unclean unmounts
- exeinto /lib/udev/
- newexe "${FILESDIR}/hal-unmount.dev" hal_unmount || die "udev helper failed"
-
- # initscript
- newinitd "${FILESDIR}/0.5.10-hald.rc" hald || die "init script failed"
-
- # configuration
- cp "${FILESDIR}/0.5.10-hald.conf" "${WORKDIR}/" || \
- die "failed to copy hald.conf"
-
- if use debug; then
- sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
- -i "${WORKDIR}/0.5.10-hald.conf" || die "failed to change verbose"
- fi
- newconfd "${WORKDIR}/0.5.10-hald.conf" hald || \
- die "failed to install hald.conf"
-
- if use X ; then
- # New Configuration Snippets
- dodoc "${WORKDIR}/${PN}-config-examples/"*.fdi || \
- die "dodoc X examples failed"
- fi
-
- # We now create and keep /media here as both gnome-mount and pmount
- # use these directories, to avoid collision.
- keepdir /media
-
- # We also need to create and keep /etc/fdi/{information,policy,preprobe}
- # or else hal bombs.
- keepdir /etc/hal/fdi/{information,policy,preprobe}
-
- # HAL stores it's fdi cache in /var/lib/cache/hald
- keepdir /var/lib/cache/hald
-
- # HAL keeps its unix socket here
- keepdir /var/run/hald
- keepdir /var/lib/hal
-}
-
-pkg_postinst() {
- # Despite what people keep changing this location. Either one works.. it doesn't matter
- # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
-
- elog "The HAL daemon needs to be running for certain applications to"
- elog "work. Suggested is to add the init script to your start-up"
- elog "scripts, this should be done like this :"
- elog "\`rc-update add hald default\`"
- echo
- elog "Looking for automounting support? Add yourself to the plugdev group"
- echo
- elog "IF you have additional applications which consume ACPI events, you"
- elog "should consider installing acpid to allow applications to share ACPI"
- elog "events."
- if use X ; then
- echo
- elog "If you wish to use a non US layout, you may do so by executing:"
- elog "setxkbmap <layout> or by utilizing your Desktop Environment's"
- elog "Keyboard Layout Settings mechanism."
- elog "Under GNOME, this is gnome-keyboard-properties, and under KDE"
- elog "it is kxkb."
- fi
- echo
- elog "In order have suspend/hibernate function with HAL or apps that use HAL"
- elog "(such as gnome-power-manager), you should build HAL with the laptop"
- elog "useflag which will install pm-utils."
- if use X ; then
- echo
- elog "X Input Hotplugging (if you build xorg-server with the HAL useflag)"
- elog "reads user specific configuration from /etc/hal/fdi/policy/."
- echo
- elog "You should remove the Input sections from your xorg.conf once you have"
- elog "migrated the rules to a HAL fdi file."
- fi
-
- ebeep 5
- epause 5
-}
diff --git a/sys-apps/hal/hal-0.5.12_rc1-r4.ebuild b/sys-apps/hal/hal-0.5.12_rc1-r4.ebuild
deleted file mode 100644
index 1bfd6064888c..000000000000
--- a/sys-apps/hal/hal-0.5.12_rc1-r4.ebuild
+++ /dev/null
@@ -1,306 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r4.ebuild,v 1.2 2009/05/16 08:49:29 robbat2 Exp $
-
-EAPI="2"
-
-inherit eutils linux-info autotools flag-o-matic
-
-PATCH_VERSION="5"
-
-MY_P=${P/_/}
-S=${WORKDIR}/${MY_P}
-PATCHNAME="${MY_P}-gentoo-patches-${PATCH_VERSION}"
-DESCRIPTION="Hardware Abstraction Layer"
-HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
-SRC_URI="http://hal.freedesktop.org/releases/${MY_P}.tar.bz2
- http://dev.gentoo.org/~dang/files/${PATCHNAME}.tar.bz2"
-
-LICENSE="|| ( GPL-2 AFL-2.0 )"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
-
-KERNEL_IUSE="kernel_linux kernel_FreeBSD"
-IUSE="X acpi apm crypt consolekit debug dell disk-partition doc laptop policykit selinux ${KERNEL_IUSE}"
-
-RDEPEND=">=dev-libs/dbus-glib-0.61
- >=dev-libs/glib-2.14
- >=dev-libs/expat-1.95.8
- =virtual/libusb-0*
- >=sys-apps/pciutils-2.2.7-r1
- >=dev-util/gperf-3.0.3
- sys-apps/usbutils
- virtual/eject
- amd64? ( >=sys-apps/dmidecode-2.7 )
- dell? ( >=sys-libs/libsmbios-0.13.4 )
- disk-partition? ( >=sys-apps/parted-1.8.0 )
- ia64? ( >=sys-apps/dmidecode-2.7 )
- kernel_linux? (
- >=sys-fs/udev-117
- >=sys-apps/util-linux-2.13
- >=sys-kernel/linux-headers-2.6.19
- crypt? ( >=sys-fs/cryptsetup-1.0.5 )
- )
- kernel_FreeBSD? ( >=dev-libs/libvolume_id-0.77 )
- x86? ( >=sys-apps/dmidecode-2.7 )
- selinux? ( sys-libs/libselinux sec-policy/selinux-hal )
- consolekit? (
- sys-auth/consolekit[policykit=]
- )
- policykit? (
- sys-auth/consolekit[policykit]
- sys-auth/policykit[pam]
- )"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- >=dev-util/intltool-0.35
- doc? (
- app-text/xmlto
- dev-libs/libxml2
- dev-util/gtk-doc
- app-text/docbook-sgml-utils
- )
- !<gnome-extra/gnome-power-manager-2.24.4-r2"
-PDEPEND=">=app-misc/hal-info-20081219
- !gnome-extra/hal-device-manager
- laptop? ( >=sys-power/pm-utils-0.99.3 )"
-
-## HAL Daemon drops privledges so we need group access to read disks
-HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
-HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
-
-function check_hotplug_net() {
- local CONFIG_CHECK="~HOTPLUG ~NET"
- local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)\n"
- local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)\n"
- check_extra_config
-}
-
-function check_inotify() {
- local CONFIG_CHECK="~INOTIFY_USER"
- local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)\n"
- check_extra_config
-}
-
-function check_acpi_proc() {
- local CONFIG_CHECK="~ACPI_PROCFS ~ACPI_PROC_EVENT"
- local WARNING_ACPI_PROCFS="CONFIG_ACPI_PROCFS:\tis not set (required for HAL)\n"
- local WARNING_ACPI_PROC_EVENT="CONFIG_ACPI_PROC_EVENT:\tis not set (required for HAL)\n"
- check_extra_config
-}
-
-pkg_setup() {
- if use kernel_linux ; then
- if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then
- kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer"
-
- if kernel_is lt 2 6 23 && use acpi ; then
- check_acpi_proc
- fi
- fi
-
- check_hotplug_net
- check_inotify
- fi
-
- # http://devmanual.gentoo.org/ebuild-writing/functions/
- # http://bugs.gentoo.org/show_bug.cgi?id=191605
-
- # Create groups for hotplugging and HAL
- enewgroup haldaemon
- enewgroup plugdev
-
- # HAL drops priviledges by default now ...
- # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
- if use kernel_linux; then
- enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
- elif use kernel_FreeBSD; then
- enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
- fi
-
- # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
- # If users have a problem with this, let them file a bug
- if [[ ${ROOT} == / ]] ; then
- if use kernel_linux; then
- usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
- elif use kernel_FreeBSD; then
- pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
- fi
- fi
-}
-
-src_prepare() {
- EPATCH_MULTI_MSG="Applying Gentoo Patchset ..." \
- EPATCH_SUFFIX="patch" \
- EPATCH_SOURCE="${WORKDIR}/${PATCHNAME}/patches/" \
- EPATCH_FORCE="yes" \
- epatch
-
- eautoreconf
-}
-
-src_configure() {
- local acpi="$(use_enable acpi)"
- local backend=
- local hardware=
- local consolekit="$(use_enable consolekit console-kit)"
-
- append-flags -rdynamic
-
- if use kernel_linux ; then
- backend="linux"
- elif use kernel_FreeBSD ; then
- backend="freebsd"
- else
- eerror "Invalid backend"
- fi
-
- if use kernel_linux ; then
- if use acpi ; then
- # Using IBM ACPI and Toshiba ACPI results in double notification as this
- # was merged into the Linux Kernel 2.6.22
- if kernel_is lt 2 6 22 ; then
- acpi="$acpi --enable-acpi-ibm --enable-acpi-toshiba"
- else
- acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
- fi
-
- acpi="$acpi --enable-acpi-proc --enable-acpi-acpid"
- else
- acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
- acpi="$acpi --disable-acpi-proc --disable-acpi-acpid"
- fi
-
- hardware="--with-cpufreq --with-usb-csr --with-keymaps"
- use arm && hardware="$hardware --with-omap --enable-pmu"
- use ppc && hardware="$hardware --enable-pmu"
- if use x86 || use amd64; then
- hardware="$hardware --with-macbook --with-macbookpro"
- fi
-
- if use dell ; then
- hardware="$hardware --with-dell-backlight"
- else
- hardware="$hardware --without-dell-backlight"
- fi
-
- hardware="$hardware --enable-sonypic"
- else
- hardware="--without-cpufreq --without-usb-csr --without-keymaps"
- hardware="$hardware --without-omap"
- hardware="$hardware --without-dell-backlight"
- hardware="$hardware --enable-acpi-ibm --enable-acpi-toshiba"
- hardware="$hardware --disable-sonypic"
- fi
-
- # Policykit support depends on consolekit support. Therefore, force on
- # consolekit, even if it's USE flag is off, if policykit support is on.
- # This enables packages to USE-depend on hal[policykit?]
- if use policykit ; then
- consolekit="--enable-console-kit"
- fi
-
- econf --with-backend=${backend} \
- --with-os-type=gentoo \
- --with-pid-file=/var/run/hald.pid \
- --with-hwdata=/usr/share/misc \
- --with-socket-dir=/var/run/hald \
- --enable-umount-helper \
- --enable-man-pages \
- --disable-acl-management \
- --enable-pci \
- $(use_enable apm) \
- $(use_enable debug verbose-mode) \
- $(use_enable disk-partition parted) \
- $(use_enable doc docbook-docs) \
- $(use_enable doc gtk-doc) \
- $(use_enable policykit policy-kit) \
- ${consolekit} \
- --docdir=/usr/share/doc/${PF} \
- --localstatedir=/var \
- ${acpi} ${hardware} \
- || die "configure failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog NEWS README || die "docs failed"
-
- # hal umount for unclean unmounts
- exeinto /lib/udev/
- newexe "${FILESDIR}/hal-unmount.dev" hal_unmount || die "udev helper failed"
-
- # initscript
- newinitd "${FILESDIR}/0.5.10-hald.rc" hald || die "init script failed"
-
- # configuration
- cp "${FILESDIR}/0.5.10-hald.conf" "${WORKDIR}/" || \
- die "failed to copy hald.conf"
-
- if use debug; then
- sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
- -i "${WORKDIR}/0.5.10-hald.conf" || die "failed to change verbose"
- fi
- newconfd "${WORKDIR}/0.5.10-hald.conf" hald || \
- die "failed to install hald.conf"
-
- if use X ; then
- # New Configuration Snippets
- dodoc "${WORKDIR}/${PATCHNAME}/config-examples/"*.fdi || \
- die "dodoc X examples failed"
- fi
-
- # We now create and keep /media here as both gnome-mount and pmount
- # use these directories, to avoid collision.
- keepdir /media
-
- # We also need to create and keep /etc/fdi/{information,policy,preprobe}
- # or else hal bombs.
- keepdir /etc/hal/fdi/{information,policy,preprobe}
-
- # HAL stores it's fdi cache in /var/cache/hald
- keepdir /var/cache/hald
-
- # HAL keeps its unix socket here
- keepdir /var/run/hald
- keepdir /var/lib/hal
-}
-
-pkg_postinst() {
- # Despite what people keep changing this location. Either one works.. it doesn't matter
- # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
-
- elog "The HAL daemon needs to be running for certain applications to"
- elog "work. Suggested is to add the init script to your start-up"
- elog "scripts, this should be done like this :"
- elog "\`rc-update add hald default\`"
- echo
- elog "Looking for automounting support? Add yourself to the plugdev group"
- echo
- elog "IF you have additional applications which consume ACPI events, you"
- elog "should consider installing acpid to allow applications to share ACPI"
- elog "events."
- if use X ; then
- echo
- elog "If you wish to use a non US layout, you may do so by executing:"
- elog "setxkbmap <layout> or by utilizing your Desktop Environment's"
- elog "Keyboard Layout Settings mechanism."
- elog "Under GNOME, this is gnome-keyboard-properties, and under KDE"
- elog "it is kxkb."
- fi
- echo
- elog "In order have suspend/hibernate function with HAL or apps that use HAL"
- elog "(such as gnome-power-manager), you should build HAL with the laptop"
- elog "useflag which will install pm-utils."
- if use X ; then
- echo
- elog "X Input Hotplugging (if you build xorg-server with the HAL useflag)"
- elog "reads user specific configuration from /etc/hal/fdi/policy/."
- echo
- elog "You should remove the Input sections from your xorg.conf once you have"
- elog "migrated the rules to a HAL fdi file."
- fi
-
- ebeep 5
- epause 5
-}
diff --git a/sys-apps/hal/hal-0.5.9.1-r3.ebuild b/sys-apps/hal/hal-0.5.9.1-r3.ebuild
deleted file mode 100644
index f027ed482f04..000000000000
--- a/sys-apps/hal/hal-0.5.9.1-r3.ebuild
+++ /dev/null
@@ -1,228 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.9.1-r3.ebuild,v 1.15 2009/05/16 08:49:29 robbat2 Exp $
-
-inherit eutils linux-info autotools flag-o-matic
-
-DESCRIPTION="Hardware Abstraction Layer"
-HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
-SRC_URI="http://people.freedesktop.org/~david/dist/${P}.tar.gz
- http://dev.gentoo.org/~cardoe/files/hal/${P}-r2.tar.bz2"
-
-LICENSE="|| ( GPL-2 AFL-2.0 )"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 -mips ppc -ppc64 sh sparc x86 ~x86-fbsd"
-
-KERNEL_IUSE="kernel_linux kernel_FreeBSD"
-IUSE="acpi crypt debug dell disk-partition doc pcmcia selinux ${KERNEL_IUSE}"
-
-RDEPEND=">=dev-libs/glib-2.6
- >=dev-libs/dbus-glib-0.61
- kernel_linux? ( >=sys-fs/udev-104 )
- kernel_linux? ( >=sys-apps/util-linux-2.12r-r1 )
- kernel_linux? ( >=sys-kernel/linux-headers-2.6.17 )
- kernel_FreeBSD? ( dev-libs/libvolume_id )
- >=dev-libs/expat-1.95.8
- >=sys-apps/pciutils-2.2.7-r1
- =virtual/libusb-0*
- sys-apps/usbutils
- virtual/eject
- amd64? ( >=sys-apps/dmidecode-2.7 )
- x86? ( >=sys-apps/dmidecode-2.7 )
- ia64? ( >=sys-apps/dmidecode-2.7 )
- dell? ( >=sys-libs/libsmbios-0.13.4 )
- disk-partition? ( <=sys-apps/parted-1.8.7 )
- kernel_linux? ( crypt? ( >=sys-fs/cryptsetup-1.0.5 ) )
- selinux? ( sys-libs/libselinux
- sec-policy/selinux-hal )"
-# pam? ( sys-auth/consolekit )"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- >=dev-util/intltool-0.35
- doc? ( app-doc/doxygen
- app-text/docbook-sgml-utils
- app-text/xmlto )"
-
-PDEPEND="app-misc/hal-info"
-
-## HAL Daemon drops privledges so we need group access to read disks
-HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
-HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
-
-function check_hotplug_net() {
- local CONFIG_CHECK="~HOTPLUG ~NET"
- local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)
-"
- local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)
-"
- check_extra_config
-}
-
-function check_inotify() {
- local CONFIG_CHECK="~INOTIFY_USER"
- local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)
-"
- check_extra_config
-}
-
-function check_procfs() {
- local CONFIG_CHECK="~PROC_FS"
- local WARNING_PROC_FS="CONFIG_PROC_FS:\tis not set (required for HAL)
-"
- check_extra_config
-}
-
-pkg_setup() {
- if ! built_with_use --missing true sys-apps/pciutils hal ; then
- if built_with_use --missing false sys-apps/pciutils zlib ; then
- die "You MUST build sys-apps/pciutils without the zlib USE flag"
- fi
- fi
-
- if use kernel_linux ; then
- if [ -e "${ROOT}/usr/src/linux/.config" ] ; then
- kernel_is ge 2 6 17 || \
- ewarn "HAL requires a kernel version 2.6.17 or newer"
- fi
-
- check_hotplug_net
- check_inotify
- use acpi && check_procfs
- fi
-
- if [[ -d ${ROOT}/etc/hal/device.d ]]; then
- eerror "HAL 0.5.x will not run with the HAL 0.4.x series of"
- eerror "/etc/hal/device.d/ so please remove this directory"
- eerror "with rm -rf /etc/hal/device.d/ and then re-emerge."
- eerror "This is due to configuration protection of /etc/"
- die "remove /etc/hal/device.d/"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- EPATCH_SUFFIX="patch" \
- EPATCH_FORCE="yes" \
- epatch "${WORKDIR}"/hal-patches
-
- eautoreconf
-}
-
-src_compile() {
- local backend=""
- local acpi=""
-
- # TODO :: policykit should have a pam useflag
- append-flags -rdynamic
-
- if use kernel_linux ; then
- backend="linux"
- use acpi && acpi="--enable-acpi-toshiba --enable-acpi-ibm"
- elif use kernel_FreeBSD ; then
- backend="freebsd"
- else
- eerror "Invalid backend"
- fi
-
- if ! use acpi ; then
- acpi="--disable-acpi-proc --disable-acpi-acpid"
- fi
-
- econf --disable-policy-kit \
- --docdir=/usr/share/doc/${PF} \
- --with-os-type=gentoo \
- --with-pid-file=/var/run/hald.pid \
- --with-socket-dir=/var/run/hald \
- --with-hwdata=/usr/share/misc \
- --enable-hotplug-map \
- --enable-man-pages \
- --with-backend=${backend} \
- $(use_enable debug verbose-mode) \
- $(use_with dell dell-backlight) \
- $(use_enable disk-partition parted) \
- $(use_enable pcmcia pcmcia-support) \
- $(use_enable doc docbook-docs) \
- $(use_enable doc doxygen-docs) \
- $(use_enable selinux) \
- --disable-console-kit \
- ${acpi} \
- || die "configure failed"
-#$(use_enable pam console-kit)
-
- emake || die "make failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog NEWS README
-
- # remove dep on gnome-python
- mv "${D}"/usr/bin/hal-device-manager "${D}"/usr/share/hal/device-manager/
-
- # hal umount for unclean unmounts
- exeinto /lib/udev/
- newexe "${FILESDIR}"/hal-unmount.dev hal_unmount
-
- # initscript
- newinitd "${FILESDIR}"/0.5.9-hald.rc hald
- cp "${FILESDIR}"/0.5.9-hald.conf "${WORKDIR}"/
-# if use pam; then
-# sed -e 's:RC_NEED="":RC_NEED="consolekit":' -i "${WORKDIR}"/0.5.9-hald.conf
-# fi
- if use debug; then
- sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
- -i "${WORKDIR}"/0.5.9-hald.conf
- fi
- newconfd "${WORKDIR}"/0.5.9-hald.conf hald
-
- # We now create and keep /media here as both gnome-mount and pmount
- # use these directories, to avoid collision.
- keepdir /media
-
- # We also need to create and keep /etc/fdi/{information,policy,preprobe}
- # or else hal bombs.
- keepdir /etc/hal/fdi/{information,policy,preprobe}
-
- # HAL stores it's fdi cache in /var/lib/cache/hald
- keepdir /var/lib/cache/hald
-
- # HAL keeps its unix socket here
- keepdir /var/run/hald
-}
-
-pkg_postinst() {
- # Despite what people keep changing this location. Either one works.. it doesn't matter
- # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
-
- # Create groups for hotplugging and HAL
- enewgroup haldaemon
- enewgroup plugdev
-
- # HAL drops priviledges by default now ...
- # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
- if use kernel_linux; then
- enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
- elif use kernel_FreeBSD; then
- enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
- fi
-
- # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
- # If users have a problem with this, let them file a bug
- if [[ ${ROOT} == / ]] ; then
- if use kernel_linux; then
- usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
- elif use kernel_FreeBSD; then
- pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
- fi
- fi
-
- elog "The HAL daemon needs to be running for certain applications to"
- elog "work. Suggested is to add the init script to your start-up"
- elog "scripts, this should be done like this :"
- elog "\`rc-update add hald default\`"
- echo
- elog "Looking for automounting support? Add yourself to the plugdev group"
-}
diff --git a/sys-apps/hal/metadata.xml b/sys-apps/hal/metadata.xml
index d99f82a375d6..6ec506c2dd81 100644
--- a/sys-apps/hal/metadata.xml
+++ b/sys-apps/hal/metadata.xml
@@ -33,8 +33,6 @@
format.</flag>
<flag name='laptop'>Adds support for power management scripts
(<pkg>sys-power/pm-utils</pkg>)</flag>
- <flag name='pcmcia'>Allows HAL to process PCMCIA/CardBus slot data which
- includes inserts and removals and act on these events.</flag>
<flag name='selinux'>Installs SELinux policies and links HAL to the SELinux
libraries.</flag>
</use>