wok-next annotate hal/receipt @ rev 21481
updated airgeddon (8.12 -> 10.21)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 18 14:24:40 2020 +0100 (2020-06-18) |
parents | d6378d455338 |
children |
rev | line source |
---|---|
pascal@20163 | 1 # SliTaz package receipt v2. |
pankso@792 | 2 |
pankso@792 | 3 PACKAGE="hal" |
slaxemulator@6818 | 4 VERSION="0.5.14" |
pankso@792 | 5 CATEGORY="x-window" |
al@20534 | 6 SHORT_DESC="Hardware Abstraction Layer" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/hal/" |
al@20534 | 10 |
pankso@792 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@792 | 12 WGET_URL="http://hal.freedesktop.org/releases/$TARBALL" |
pankso@792 | 13 |
al@20623 | 14 BUILD_DEPENDS="dbus-dev dbus-glib dbus-glib-dev eudev-dev pciutils \ |
al@20604 | 15 util-linux-blkid-dev expat-dev util-linux-uuid-dev glib-dev v4l-utils-dev" |
al@21020 | 16 SPLIT="$PACKAGE-scripts $PACKAGE-extra $PACKAGE $PACKAGE-dev" |
pankso@792 | 17 |
al@20534 | 18 compile_rules() { |
pascal@12979 | 19 sed -i 's|linux/videodev.h|libv4l1-videodev.h|' \ |
pascal@12979 | 20 hald/linux/probing/probe-video4linux.c |
pascal@12979 | 21 sed -i 's|glib/gmain|glib|' hald/linux/addons/addon-*.c |
al@20550 | 22 zcat /usr/share/misc/pci.ids.gz > /usr/share/misc/pci.ids |
al@20550 | 23 |
pascal@6113 | 24 grep -qs 'define u8' hald/linux/probing/linux_dvd_rw_utils.c || |
pascal@6113 | 25 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \ |
pascal@6113 | 26 hald/linux/probing/linux_dvd_rw_utils.c |
al@20534 | 27 |
al@20550 | 28 libexecdir='/usr/lib/hal' |
pankso@792 | 29 ./configure \ |
al@20550 | 30 --libexecdir=$libexecdir \ |
pankso@792 | 31 --disable-usb-ids \ |
pankso@792 | 32 --disable-policy-kit \ |
al@20575 | 33 $CONFIGURE_ARGS && |
al@20575 | 34 fix libtool && |
pascal@1536 | 35 make && |
pascal@2081 | 36 rm /usr/share/misc/pci.ids && |
al@20550 | 37 make install || return 1 |
al@20550 | 38 |
al@20550 | 39 chmod -R +x $install$libexecdir/scripts/* |
al@20550 | 40 |
al@20550 | 41 # init script |
al@21020 | 42 install -Dm755 $stuff/hald $install/etc/init.d/hald |
al@21020 | 43 # and its conf |
al@21020 | 44 install -Dm644 $stuff/hald.conf $install/etc/daemons.conf.d/hald.conf |
al@21020 | 45 |
al@20550 | 46 # policy for ntfs-3g |
al@21020 | 47 install -Dm644 $stuff/30-ntfs-write.fdi \ |
al@21020 | 48 $install/usr/share/hal/fdi/policy/10osvendor/30-ntfs-write.fdi |
al@21020 | 49 |
al@20550 | 50 # change bash to sh in hal scripts; use full-path |
al@20550 | 51 sed -i \ |
al@20550 | 52 -e 's:/bin/bash:/bin/sh:' \ |
al@20550 | 53 -e "s:hal-functions:$libexecdir/scripts/hal-functions:" \ |
al@20550 | 54 $install/usr/lib/hal/scripts/hal* \ |
al@20550 | 55 $install/usr/lib/hal/scripts/linux/hal* |
pankso@792 | 56 } |
pankso@792 | 57 |
al@20534 | 58 genpkg_rules() { |
pascal@20163 | 59 case $PACKAGE in |
al@20550 | 60 hal-scripts) |
al@20550 | 61 copy hal/scripts/ |
al@20550 | 62 CAT="x-window|scripts" |
al@20550 | 63 DEPENDS="dbus dbus-glib glib hal" |
al@20550 | 64 ;; |
al@20550 | 65 hal-extra) |
al@20550 | 66 copy hald-addon-cpufreq hald-addon-hid-ups \ |
al@20550 | 67 hald-addon-imac-backlight hald-addon-ipw-killswitch \ |
al@20550 | 68 hald-probe-video4linux hald-probe-net-bluetooth \ |
al@20550 | 69 hald-probe-ieee1394-unit hald-probe-pc-floppy hald-probe-printer \ |
al@20550 | 70 10-cpufreq.fdi 10-dockstation.fdi 10-imac-backlight.fdi \ |
al@20550 | 71 15-storage-luks.fdi 30-wol.fdi |
al@20550 | 72 CAT="x-window|extra lib and fdi files" |
al@20550 | 73 DEPENDS="dbus dbus-glib glib hal" |
al@20550 | 74 ;; |
al@20550 | 75 hal) |
al@20550 | 76 copy @std @rm |
al@20623 | 77 DEPENDS="dbus dbus-glib slitaz-base-files eudev \ |
pascal@20163 | 78 util-linux-blkid libusb-compat" |
al@20550 | 79 ;; |
al@20550 | 80 hal-dev) |
al@20550 | 81 copy @dev |
al@20550 | 82 DEPENDS="hal dbus-dev" |
al@20550 | 83 ;; |
pascal@20163 | 84 esac |
pankso@792 | 85 } |
pankso@792 | 86 |
al@20534 | 87 pre_install_hal() { |
al@19161 | 88 # Go for echoing on configuration files if any haldaemon user |
pankso@792 | 89 # was found. |
pascal@18730 | 90 if ! grep -q 'haldaemon' "$1/etc/passwd"; then |
pascal@18730 | 91 echo 'haldaemon:x:26:26:HAL Daemon User:/dev/null:/bin/false' >> "$1/etc/passwd" |
pascal@18730 | 92 echo 'haldaemon:!:14013:0:99999:7:::' >> "$1/etc/shadow" |
pascal@18730 | 93 echo 'haldaemon:x:26:' >> "$1/etc/group" |
pascal@18730 | 94 echo 'haldaemon:!::' >> "$1/etc/gshadow" |
pankso@792 | 95 fi |
pascal@18730 | 96 if ! grep -q ^HALD_OPTIONS "$1/etc/daemons.conf"; then |
pascal@18730 | 97 cat >> "$1/etc/daemons.conf" << "EOT" |
pankso@792 | 98 # HAL daemon options. |
pankso@792 | 99 HALD_OPTIONS="--daemon=yes" |
pankso@792 | 100 |
pankso@792 | 101 EOT |
pankso@792 | 102 fi |
pankso@792 | 103 } |
pankso@792 | 104 |
al@20534 | 105 pre_remove_hal() { |
pankso@792 | 106 /etc/init.d/hald stop |
pankso@792 | 107 deluser haldaemon |
pankso@792 | 108 } |