Difference between revisions of "HAL"

From CBLFS
Jump to navigationJump to search
m
m
Line 17: Line 17:
 
== Getting the latest source ==
 
== Getting the latest source ==
  
{{Note|This section is optional. You need this command only if you want to build the latest development version.}}
+
{{Note|This section is optional but recommended. You need this command only if you want to build the latest development version.}}
  
 
Check out the source from freedesktop.org:
 
Check out the source from freedesktop.org:
Line 23: Line 23:
 
  git clone git://anongit.freedesktop.org/git/hal &&
 
  git clone git://anongit.freedesktop.org/git/hal &&
 
  cd hal &&
 
  cd hal &&
  git-checkout -b 7ae50f83021c13ba7ed7f75dc6334f176e76962e &&
+
  git-checkout -b 4141c63d453885204a45bdd4b968d19e2007b779 &&
 
  cd ..
 
  cd ..
  
Line 31: Line 31:
  
 
{{Note|Replace "./configure" with "./autogen.sh" to build the latest development version.}}
 
{{Note|Replace "./configure" with "./autogen.sh" to build the latest development version.}}
 +
 +
== Dependencies ==
  
 
=== Required ===
 
=== Required ===

Revision as of 14:48, 26 July 2007

Download Source: http://people.freedesktop.org/~david/dist/hal-0.5.14.tar.gz

Introduction to HAL

Project Homepage: Unknown

Dependencies

As of hal-0.5.8 libvolume_id.so (From Udev) is a required dependency. On multilib systems you must have more then one copy of this library, (32bit,64bit,N32). Please refer to the clfs-svn book for information on configuring a multilib udev. WARNING: Installing a newer or older version of udev then what is currently installed on your system can cause problems booting because of the frequent changes in the rules format. Please use the same version you currently have, or make the appropriate changes/upgrades to your rule set.

Caution.png

Note

HAL-0.5.9.1 incompatible with PolicyKit-0.3 by some API changes. Use the development version from freedesktop's GIT instead.

Getting the latest source

Caution.png

Note

This section is optional but recommended. You need this command only if you want to build the latest development version.

Check out the source from freedesktop.org:

git clone git://anongit.freedesktop.org/git/hal &&
cd hal &&
git-checkout -b 4141c63d453885204a45bdd4b968d19e2007b779 &&
cd ..

It couldn't hurt to make a tarball so you have an unmodified source around for the future:

tar cvjf hal{-$(date +%Y%m%d).tar.bz2,}
Caution.png

Note

Replace "./configure" with "./autogen.sh" to build the latest development version.

Dependencies

Required

Recommended

Optional

HalDaemon User/Group

groupadd -g 19 haldaemon &&
useradd -c "HAL Daemon User" -d /dev/null \
        -u 19 -g haldaemon -s /bin/false haldaemon

Configuration Information

If you have Parted installed and you would like to link HAL against libparted pass the following to configure:

--enable-parted

Non-Multilib

Compile the package:

./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/hal --localstatedir=/var &&
make

Install the package

make install &&
install -v -m755 -d /var/run/hald

Command Explanations

--libexecdir=/usr/lib/hal: This parameter forces the installation of libexec files to /usr/lib/hal instead of /usr/libexec.

--localstatedir=/var: This parameter forces the creation of the pid file to /var/run/hald instead of /usr/var/run/hald.

Multilib

32Bit

Compile the package:

export USE_ARCH=32 &&
CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/hal --localstatedir=/var &&
make

Install the package

make install &&
unset USE_ARCH

N32

export USE_ARCH=n32 &&
CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \
    --libexecdir=/usr/lib/hal --localstatedir=/var &&
make

Install the package

make install &&
unset USE_ARCH

64Bit

export USE_ARCH=64 &&
CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 \
    --libexecdir=/usr/lib/hal --localstatedir=/var &&
make

Install the package

make install &&
unset USE_ARCH &&
install -v -m755 -d /var/run/hald

Configuration

Bootscript

Install the bootscript from the blfs-bootscripts package with the following command:

make install-haldaemon

InitNG Bootscript

Todo

Contents

Installed Programs: hal-device, hal-device-manager, hal-find-by-capability, hal-find-by-property, hal-get-property, hal-set-property, hald and lshal
Installed Libraries: libhal.{so,a} and libhal-storage,{so,a}
Installed Directories: /etc/hal, /usr/include/hal, /usr/lib/hal, /usr/share/doc/hal-0.5.14, /usr/share/hal and /var/run/hald

Short Descriptions

hal-device is used to create, remove or show a HAL device.
hal-device-manager shows a graphical representation of all the devices HAL is aware of. This program requires GNOME-Python. Here is a screenshot of hal-device-manager communicating with the HAL daemon and displaying a tree of device objects. The shown properties in the screenshot are for a device object representing a hard disk.
hal-find-by-capability prints the Unique Device Identifiers for HAL device objects of a given capability.
hal-find-by-property prints the Unique Device Identifiers for HAL device objects where a given property assumes a given value.
hal-get-property retrieves a property from a device.
hal-set-property attempts to set property for a device. Note that, due to security considerations, it may not be possible to set a property.
hald is the HAL daemon program.
lshal shows all devices and their properties. If the --monitor option is given then the device list and all devices are monitored for changes.
libhal.{so,a} contains the API functions required by the HAL programs.
libhal-storage.{so,a} contains the API functions required by the HAL storage and volume utility programs.
Retrieved from "?title=HAL&oldid=10746"