# HG changeset patch # User Hans-G?nter Theisgen # Date 1577460395 -3600 # Node ID 959dc0a661486a7d0aad4e05aec569c79c4c70a6 # Parent 205455ed09ce9d9de8222971220d926a5717094e updated acpid (2.0.31 -> 2.0.32) diff -r 205455ed09ce -r 959dc0a66148 acpid/receipt --- a/acpid/receipt Fri Dec 27 15:52:30 2019 +0100 +++ b/acpid/receipt Fri Dec 27 16:26:35 2019 +0100 @@ -1,16 +1,18 @@ # SliTaz package receipt. PACKAGE="acpid" -VERSION="2.0.31" +VERSION="2.0.32" CATEGORY="system-tools" -SHORT_DESC="The ACPI event daemon with netlink" +TAGS="power-management" +SHORT_DESC="The ACPI event daemon with netlink." MAINTAINER="domcox@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/acpid2/" + TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$SF_MIRROR/acpid2/$TARBALL" + KEY_FILE="key-constants" -TAGS="power-management" SUGGESTED="pm-utils" # Rules to configure and make the package. @@ -25,14 +27,18 @@ genpkg_rules() { mkdir -p $fs/usr + # acpid - cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/sbin $fs/usr + # acpi_listen - cp -a $install/usr/bin $fs/usr + cp -a $install/usr/bin $fs/usr + # acpid conf files mkdir -p $fs/etc - cp -a $stuff/init.d $fs/etc/ - cp -a $stuff/acpi $fs/etc/ + + cp -a $stuff/init.d $fs/etc/ + cp -a $stuff/acpi $fs/etc/ chmod go-rwx $fs/etc/acpi/*.sh chmod go-rwx $fs/etc/acpi/events/* } @@ -40,19 +46,22 @@ # Pre and post remove commands for Tazpkg post_install() { - if [ -z "$1" ]; then + if [ -z "$1" ] + then /etc/init.d/acpid start || continue fi - if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then + if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf" + then echo '# ACPI daemon options.' >> "$1/etc/daemons.conf" echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf" echo '' >> "$1/etc/daemons.conf" fi -} +} pre_remove() { - if [ -z "$1" ]; then + if [ -z "$1" ] + then /etc/init.d/acpid stop fi }