wok-4.x view hal/receipt @ rev 1389

Up: nmap 4.76
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Sep 17 23:50:27 2008 +0200 (2008-09-17)
parents ebf2fcf26fc1
children 7b1e1964c72b
line source
1 # SliTaz package receipt.
3 PACKAGE="hal"
4 VERSION="0.5.11"
5 CATEGORY="x-window"
6 SHORT_DESC="Hardware Abstraction Layer."
7 DEPENDS="dbus dbus-glib slitaz-base-files"
8 BUILD_DEPENDS="dbus-dev dbus-glib-dev udev-dev pciutils"
9 MAINTAINER="pankso@slitaz.org"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.freedesktop.org/wiki/Software/hal"
12 WGET_URL="http://hal.freedesktop.org/releases/$TARBALL"
14 EXTRA="
15 hald-addon-cpufreq
16 hald-addon-hid-ups
17 hald-addon-imac-backlight
18 hald-probe-video4linux
19 hald-probe-net-bluetooth
20 hald-probe-ieee1394-unit
21 hald-probe-pc-floppy
22 hald-probe-printer
23 hal-ipw-killswitch-linux"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 gzip -d /usr/share/misc/pci.ids.gz
30 ./configure \
31 --prefix=/usr \
32 --libexecdir=/usr/lib/hal \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --mandir=/usr/share/man \
36 --disable-usb-ids \
37 --disable-policy-kit \
38 $CONFIGURE_ARGS
39 make
40 gzip /usr/share/misc/pci.ids
41 make DESTDIR=$PWD/_pkg install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib $fs/usr/share
48 cp -a $_pkg/etc $fs
49 cp -a $_pkg/var $fs
50 cp -a $_pkg/usr/bin $fs/usr
51 cp -a $_pkg/usr/sbin $fs/usr
52 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
53 cp -a $_pkg/usr/lib/hal $fs/usr/lib
54 cp -a $_pkg/usr/share/hal $fs/usr/share
55 chmod -R +x $fs/usr/lib/hal/scripts/*
57 # Remove a few run time lib.
58 for lib in $EXTRA
59 do
60 rm $fs/usr/lib/hal/$lib
61 done
63 # Init script
64 cp -a stuff/etc $fs
65 chown -R root.root $fs
66 }
68 pre_install()
69 {
70 local root
71 root=$1
72 # Go for echoing on configuration files if any haldeamon user
73 # was found.
74 if ! grep -q 'haldaemon' $root/etc/passwd; then
75 echo -n "Adding user: messagebus..."
76 echo 'haldaemon:x:26:26:HAL Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
77 echo 'haldaemon:!:14013:0:99999:7:::' >> $root/etc/shadow
78 echo 'haldaemon:x:26:' >> $root/etc/group
79 echo 'haldaemon:!::' >> $root/etc/gshadow
80 status
81 fi
82 if ! grep -q ^HALD_OPTIONS $root/etc/daemons.conf; then
83 echo -n "Configuring $root/etc/daemons.conf..."
84 cat >> $root/etc/daemons.conf << "EOT"
85 # HAL daemon options.
86 HALD_OPTIONS="--daemon=yes"
88 EOT
89 status
90 fi
91 }
93 pre_remove()
94 {
95 /etc/init.d/hald stop
96 deluser haldaemon
97 }