wok-current annotate acpid/receipt @ rev 24160

Up ventoy (1.0.63)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 20 17:39:32 2021 +0000 (2021-12-20)
parents 35974beb0c49
children 5f6c5106b1f5
rev   line source
domcox@1379 1 # SliTaz package receipt.
domcox@1379 2
domcox@1379 3 PACKAGE="acpid"
Hans-G?nter@22465 4 VERSION="2.0.32"
domcox@1379 5 CATEGORY="system-tools"
Hans-G?nter@22465 6 TAGS="power-management"
Hans-G?nter@22465 7 SHORT_DESC="The ACPI event daemon with netlink."
domcox@12208 8 MAINTAINER="domcox@slitaz.org"
pascal@15001 9 LICENSE="GPL2"
al@19275 10 WEB_SITE="https://sourceforge.net/projects/acpid2/"
Hans-G?nter@22465 11
slaxemulator@12866 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@18997 13 WGET_URL="$SF_MIRROR/acpid2/$TARBALL"
Hans-G?nter@22465 14
domcox@1512 15 KEY_FILE="key-constants"
domcox@12208 16 SUGGESTED="pm-utils"
domcox@1379 17
domcox@1379 18 # Rules to configure and make the package.
domcox@1379 19 compile_rules()
domcox@1379 20 {
slaxemulator@12866 21 ./configure --prefix=/usr $CONFIGURE_ARGS &&
slaxemulator@12866 22 make &&
slaxemulator@11171 23 make DESTDIR=$DESTDIR install
domcox@1379 24 }
domcox@1379 25
domcox@1379 26 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@1379 27 genpkg_rules()
domcox@1379 28 {
domcox@1379 29 mkdir -p $fs/usr
Hans-G?nter@22465 30
domcox@1512 31 # acpid
Hans-G?nter@22465 32 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22465 33
domcox@1512 34 # acpi_listen
Hans-G?nter@22465 35 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22465 36
domcox@1512 37 # acpid conf files
domcox@1512 38 mkdir -p $fs/etc
Hans-G?nter@22465 39
Hans-G?nter@22465 40 cp -a $stuff/init.d $fs/etc/
Hans-G?nter@22465 41 cp -a $stuff/acpi $fs/etc/
domcox@12208 42 chmod go-rwx $fs/etc/acpi/*.sh
domcox@12208 43 chmod go-rwx $fs/etc/acpi/events/*
domcox@1379 44 }
domcox@1379 45
domcox@12208 46 # Pre and post remove commands for Tazpkg
domcox@12208 47 post_install()
domcox@12208 48 {
Hans-G?nter@22465 49 if [ -z "$1" ]
Hans-G?nter@22465 50 then
domcox@12208 51 /etc/init.d/acpid start || continue
domcox@12208 52 fi
Hans-G?nter@22465 53 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"
Hans-G?nter@22465 54 then
al@18667 55 echo '# ACPI daemon options.' >> "$1/etc/daemons.conf"
al@18667 56 echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf"
al@18667 57 echo '' >> "$1/etc/daemons.conf"
domcox@12208 58 fi
Hans-G?nter@22465 59 }
domcox@1379 60
domcox@1379 61 pre_remove()
domcox@1379 62 {
Hans-G?nter@22465 63 if [ -z "$1" ]
Hans-G?nter@22465 64 then
slaxemulator@12866 65 /etc/init.d/acpid stop
slaxemulator@12866 66 fi
domcox@1379 67 }