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