wok-current view hal/receipt @ rev 873
Re.. Up: poppler (0.8.3)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jun 06 12:27:40 2008 +0200 (2008-06-06) |
parents | f3f004163c13 |
children | 050151a9f32f |
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"
8 BUILD_DEPENDS="dbus-dev dbus-glib-dev"
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 ./configure \
30 --prefix=/usr \
31 --libexecdir=/usr/lib/hal \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 --mandir=/usr/share/man \
35 --disable-usb-ids \
36 --disable-policy-kit \
37 $CONFIGURE_ARGS
38 make
39 make DESTDIR=$PWD/_pkg install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib $fs/usr/share
46 cp -a $_pkg/etc $fs
47 cp -a $_pkg/var $fs
48 cp -a $_pkg/usr/bin $fs/usr
49 cp -a $_pkg/usr/sbin $fs/usr
50 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
51 cp -a $_pkg/usr/lib/hal $fs/usr/lib
52 cp -a $_pkg/usr/share/hal $fs/usr/share
53 chmod -R +x $fs/usr/lib/hal/scripts/*
55 # Remove a few run time lib.
56 for lib in $EXTRA
57 do
58 rm $fs/usr/lib/hal/$lib
59 done
61 # Init script
62 cp -a stuff/etc $fs
63 chown -R root.root $fs
64 }
66 pre_install()
67 {
68 local root
69 root=$1
70 # Go for echoing on configuration files if any haldeamon user
71 # was found.
72 if ! grep -q 'haldaemon' $root/etc/passwd; then
73 echo -n "Adding user: messagebus..."
74 echo 'haldaemon:x:26:26:HAL Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
75 echo 'haldaemon:!:14013:0:99999:7:::' >> $root/etc/shadow
76 echo 'haldaemon:x:26:' >> $root/etc/group
77 echo 'haldaemon:!::' >> $root/etc/gshadow
78 status
79 fi
80 if ! grep -q ^HALD_OPTIONS $root/etc/daemons.conf; then
81 echo -n "Configuring $root/etc/daemons.conf..."
82 cat >> $root/etc/daemons.conf << "EOT"
83 # HAL daemon options.
84 HALD_OPTIONS="--daemon=yes"
86 EOT
87 status
88 fi
89 }
91 pre_remove()
92 {
93 /etc/init.d/hald stop
94 deluser haldaemon
95 }