From: Victor Martinez Date: Sun, 17 Jan 2010 14:56:06 +0000 (+0000) Subject: hal: Initial import (verified compilation) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=2dd67de03ec9c034cc805a8946ec4a417ac3b87a;p=attic%2Fports%2Fopt-cross.git hal: Initial import (verified compilation) --- diff --git a/hal/.footprint b/hal/.footprint new file mode 100644 index 0000000..7577eed --- /dev/null +++ b/hal/.footprint @@ -0,0 +1,167 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/hald +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/udev/ +drwxr-xr-x root/root lib/udev/rules.d/ +-rw-r--r-- root/root lib/udev/rules.d/90-hal.rules +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/hal-device +-rwxr-xr-x root/root usr/bin/hal-disable-polling +-rwxr-xr-x root/root usr/bin/hal-find-by-capability +-rwxr-xr-x root/root usr/bin/hal-find-by-property +-rwxr-xr-x root/root usr/bin/hal-get-property +-rwxr-xr-x root/root usr/bin/hal-is-caller-locked-out +-rwxr-xr-x root/root usr/bin/hal-lock +-rwxr-xr-x root/root usr/bin/hal-set-property +-rwxr-xr-x root/root usr/bin/lshal +drwxr-xr-x root/root usr/etc/ +drwxr-xr-x root/root usr/etc/dbus-1/ +drwxr-xr-x root/root usr/etc/dbus-1/system.d/ +-rw-r--r-- root/root usr/etc/dbus-1/system.d/hal.conf +drwxr-xr-x root/root usr/etc/hal/ +drwxr-xr-x root/root usr/etc/hal/fdi/ +drwxr-xr-x root/root usr/etc/hal/fdi/information/ +drwxr-xr-x root/root usr/etc/hal/fdi/policy/ +drwxr-xr-x root/root usr/etc/hal/fdi/preprobe/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/hal/ +-rw-r--r-- root/root usr/include/hal/libhal-storage.h +-rw-r--r-- root/root usr/include/hal/libhal.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/hal/ +-rwxr-xr-x root/root usr/lib/hal/hal-storage-cleanup-all-mountpoints +-rwxr-xr-x root/root usr/lib/hal/hal-storage-cleanup-mountpoint +-rwxr-xr-x root/root usr/lib/hal/hal-storage-closetray +-rwxr-xr-x root/root usr/lib/hal/hal-storage-eject +-rwxr-xr-x root/root usr/lib/hal/hal-storage-mount +-rwxr-xr-x root/root usr/lib/hal/hal-storage-unmount +-rwxr-xr-x root/root usr/lib/hal/hal-system-power-pm-is-supported +-rwxr-xr-x root/root usr/lib/hal/hal-system-power-pmu +-rwxr-xr-x root/root usr/lib/hal/hal-system-setserial +-rwxr-xr-x root/root usr/lib/hal/hal-system-sonypic +-rwxr-xr-x root/root usr/lib/hal/hald-addon-acpi +-rwxr-xr-x root/root usr/lib/hal/hald-addon-cpufreq +-rwxr-xr-x root/root usr/lib/hal/hald-addon-generic-backlight +-rwxr-xr-x root/root usr/lib/hal/hald-addon-hid-ups +-rwxr-xr-x root/root usr/lib/hal/hald-addon-input +-rwxr-xr-x root/root usr/lib/hal/hald-addon-ipw-killswitch +-rwxr-xr-x root/root usr/lib/hal/hald-addon-leds +-rwxr-xr-x root/root usr/lib/hal/hald-addon-omap-backlight +-rwxr-xr-x root/root usr/lib/hal/hald-addon-pmu +-rwxr-xr-x root/root usr/lib/hal/hald-addon-rfkill-killswitch +-rwxr-xr-x root/root usr/lib/hal/hald-addon-storage +-rwxr-xr-x root/root usr/lib/hal/hald-generate-fdi-cache +-rwxr-xr-x root/root usr/lib/hal/hald-probe-hiddev +-rwxr-xr-x root/root usr/lib/hal/hald-probe-ieee1394-unit +-rwxr-xr-x root/root usr/lib/hal/hald-probe-input +-rwxr-xr-x root/root usr/lib/hal/hald-probe-net-bluetooth +-rwxr-xr-x root/root usr/lib/hal/hald-probe-pc-floppy +-rwxr-xr-x root/root usr/lib/hal/hald-probe-printer +-rwxr-xr-x root/root usr/lib/hal/hald-probe-serial +-rwxr-xr-x root/root usr/lib/hal/hald-probe-smbios +-rwxr-xr-x root/root usr/lib/hal/hald-probe-storage +-rwxr-xr-x root/root usr/lib/hal/hald-probe-video4linux +-rwxr-xr-x root/root usr/lib/hal/hald-probe-volume +-rwxr-xr-x root/root usr/lib/hal/hald-runner +drwxr-xr-x root/root usr/lib/hal/scripts/ +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-dockstation-undock +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-functions +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-luks-remove +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-luks-setup +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-luks-teardown +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-killswitch-get-power +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-killswitch-set-power +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-lcd-get-brightness +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-lcd-set-brightness +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-power-hibernate +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-power-reboot +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-power-set-power-save +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-power-shutdown +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-power-suspend +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-power-suspend-hybrid +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-wol-enable +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-wol-enabled +-rwxr-xr-x root/root usr/lib/hal/scripts/hal-system-wol-supported +drwxr-xr-x root/root usr/lib/hal/scripts/linux/ +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-dockstation-undock-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-luks-remove-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-luks-setup-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-luks-teardown-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-killswitch-get-power-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-killswitch-set-power-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-lcd-get-brightness-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-lcd-set-brightness-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-power-reboot-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-power-set-power-save-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-power-shutdown-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-power-suspend-hybrid-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-power-suspend-linux +lrwxrwxrwx root/root usr/lib/hal/scripts/linux/hal-system-wol-enable-linux -> hal-system-wol-linux +lrwxrwxrwx root/root usr/lib/hal/scripts/linux/hal-system-wol-enabled-linux -> hal-system-wol-linux +-rwxr-xr-x root/root usr/lib/hal/scripts/linux/hal-system-wol-linux +lrwxrwxrwx root/root usr/lib/hal/scripts/linux/hal-system-wol-supported-linux -> hal-system-wol-linux +-rw-r--r-- root/root usr/lib/libhal-storage.a +-rwxr-xr-x root/root usr/lib/libhal-storage.la +lrwxrwxrwx root/root usr/lib/libhal-storage.so -> libhal-storage.so.1.0.0 +lrwxrwxrwx root/root usr/lib/libhal-storage.so.1 -> libhal-storage.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libhal-storage.so.1.0.0 +-rw-r--r-- root/root usr/lib/libhal.a +-rwxr-xr-x root/root usr/lib/libhal.la +lrwxrwxrwx root/root usr/lib/libhal.so -> libhal.so.1.0.0 +lrwxrwxrwx root/root usr/lib/libhal.so.1 -> libhal.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libhal.so.1.0.0 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/hal-storage.pc +-rw-r--r-- root/root usr/lib/pkgconfig/hal.pc +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/hal-disable-polling.1.gz +-rw-r--r-- root/root usr/man/man1/hal-find-by-capability.1.gz +-rw-r--r-- root/root usr/man/man1/hal-find-by-property.1.gz +-rw-r--r-- root/root usr/man/man1/hal-get-property.1.gz +-rw-r--r-- root/root usr/man/man1/hal-is-caller-locked-out.1.gz +-rw-r--r-- root/root usr/man/man1/hal-lock.1.gz +-rw-r--r-- root/root usr/man/man1/hal-set-property.1.gz +-rw-r--r-- root/root usr/man/man1/lshal.1.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/hald.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/hald +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/hal/ +drwxr-xr-x root/root usr/share/hal/fdi/ +-rw-r--r-- root/root usr/share/hal/fdi/fdi.dtd +drwxr-xr-x root/root usr/share/hal/fdi/information/ +drwxr-xr-x root/root usr/share/hal/fdi/information/10freedesktop/ +drwxr-xr-x root/root usr/share/hal/fdi/information/20thirdparty/ +drwxr-xr-x root/root usr/share/hal/fdi/policy/ +drwxr-xr-x root/root usr/share/hal/fdi/policy/10osvendor/ +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-cpufreq.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-dockstation.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-leds.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-omap-backlight.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-power-mgmt-policy.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-rfkill-switch.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-tabletPCs.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/15-storage-luks.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi +-rw-r--r-- root/root usr/share/hal/fdi/policy/10osvendor/30-wol.fdi +drwxr-xr-x root/root usr/share/hal/fdi/policy/20thirdparty/ +drwxr-xr-x root/root usr/share/hal/fdi/preprobe/ +drwxr-xr-x root/root usr/share/hal/fdi/preprobe/10osvendor/ +drwxr-xr-x root/root usr/share/hal/fdi/preprobe/20thirdparty/ +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/cache/ +drwxr-xr-x haldaemon/haldaemon var/cache/hald/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x haldaemon/haldaemon var/lib/hal/ +drwxr-xr-x root/root var/run/ +drwxr-xr-x haldaemon/haldaemon var/run/hald/ +drwxr-xr-x root/root var/run/hald/hald-local/ +drwxr-xr-x root/root var/run/hald/hald-runner/ diff --git a/hal/.md5sum b/hal/.md5sum new file mode 100644 index 0000000..7f6ea31 --- /dev/null +++ b/hal/.md5sum @@ -0,0 +1,3 @@ +e9163df591a6f38f59fdbfe33e73bf20 hal-0.5.14.tar.gz +d8ce27a76d7cb13ce142cdc33816c8bd hal.conf +cc3d04e7ac09e15f33c530725f43e641 rc.hald diff --git a/hal/Pkgfile b/hal/Pkgfile new file mode 100644 index 0000000..bb0849e --- /dev/null +++ b/hal/Pkgfile @@ -0,0 +1,53 @@ +# Description: Hardware Abstraction Layer +# URL: http://www.freedesktop.org/wiki/Software/hal +# Packager: Matt Housh, jaeger at crux dot nu +# Maintainer: Lucas Hazel, lucas at die dot net dot au +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: dbus-glib hal-info + +name=hal +version=0.5.14 +release=1 +source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \ + hal.conf rc.hald) + +build() { + cd $name-$version + export DBUS_LIBS="-L$CLFS/usr/lib -ldbus-1 -lrt -lpthread" + export DBUS_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/dbus-1.0 -I$CLFS/usr/lib/dbus-1.0/include -I$CLFS/usr/include/dbus-1.0/dbus" + export GLIB_LIBS="-L$CLFS/usr/lib -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lgobject-2.0" + export GLIB_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/lib/glib-2.0/include -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/include/dbus-1.0 " + export BLKID_LIBS="-L$CLFS/usr/lib -lblkid -luuid" + export BLKID_CFLAGS="-I$CLFS/usr/include/blkid -I$CLFS/usr/include/uuid" + + sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \ + -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --mandir=/usr/man \ + --libexecdir=/usr/lib/$name \ + --localstatedir=/var \ + --with-hal-user=haldaemon \ + --with-hal-group=haldaemon \ + --with-dbus-sys=/usr/etc/dbus-1/system.d \ + --with-udev-prefix=/lib \ + --with-hwdata=/usr/share \ + --disable-policy-kit \ + --disable-console-kit + + sed -i -e '/device-manager/d' tools/Makefile + + make + make DESTDIR=$PKG install + + install -D -o root -g root -m 0755 $SRC/rc.hald \ + $PKG/etc/rc.d/hald + rm -rf $PKG/usr/share/{doc,locale} + rm -rf $PKG/usr/share/gtk-doc + cp $SRC/hal.conf $PKG/usr/etc/dbus-1/system.d/ + mkdir -p $PKG/var/lib/hal + chown haldaemon:haldaemon $PKG/var/lib/hal +} + diff --git a/hal/README b/hal/README new file mode 100644 index 0000000..5f43288 --- /dev/null +++ b/hal/README @@ -0,0 +1,18 @@ +README for hal 0.5.7.1 + +REQUIREMENTS + +PRE/POST-INSTALL + Create a user/group haldaemon with a unused id < 99: + + 'groupadd -g 82 haldaemon' + 'useradd -u 82 -g haldaemon -d /var/empty -s /bin/false haldaemon' + 'passwd -l haldaemon' + + If you wish to take advantage of the hotplug and automount-style features + that apps like gnome-mount, gnome-volume-manager, or the like offer, create + a 'plugdev' group and add your user to it, or change the 'plugdev' group in + /usr/etc/dbus-1/system.d/hal.conf to something else and make sure your user + is a member of that group. + +PRECAUTION diff --git a/hal/hal.conf b/hal/hal.conf new file mode 100644 index 0000000..fce6b44 --- /dev/null +++ b/hal/hal.conf @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/hal/pre-install b/hal/pre-install new file mode 100755 index 0000000..b28a6cc --- /dev/null +++ b/hal/pre-install @@ -0,0 +1,13 @@ +#!/bin/sh + +# check for haldaemon group or add one +getent group haldaemon || /usr/sbin/groupadd -g 82 haldaemon + +# check for plugdev group or add one +getent group plugdev || /usr/sbin/groupadd plugdev + +# check for haldaemon user or add one +getent passwd haldaemon || /usr/sbin/useradd -g haldaemon -u 82 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon + +# lock the account +/usr/bin/passwd -l haldaemon diff --git a/hal/rc.hald b/hal/rc.hald new file mode 100644 index 0000000..43629dd --- /dev/null +++ b/hal/rc.hald @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/hald: start/stop HAL daemon +# + +case $1 in + start) + /usr/sbin/hald --daemon=yes --use-syslog + ;; + stop) + killall -q /usr/sbin/hald + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "Usage: $0 [start|stop|restart]" + ;; +esac + +# End of file