wok-6.x view acpid/receipt @ rev 25231

updated python-pytz (2019.3 -> 2021.3)
author Hans-G?nter Theisgen
date Wed Jul 13 17:07:13 2022 +0100 (2022-07-13)
parents 959dc0a66148
children ad0bc3efbf37
line source
1 # SliTaz package receipt.
3 PACKAGE="acpid"
4 VERSION="2.0.32"
5 CATEGORY="system-tools"
6 TAGS="power-management"
7 SHORT_DESC="The ACPI event daemon with netlink."
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sourceforge.net/projects/acpid2/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/acpid2/$TARBALL"
15 KEY_FILE="key-constants"
16 SUGGESTED="pm-utils"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/acpid2/files/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/acpid-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure --prefix=/usr $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
38 # acpid
39 cp -a $install/usr/sbin $fs/usr
41 # acpi_listen
42 cp -a $install/usr/bin $fs/usr
44 # acpid conf files
45 mkdir -p $fs/etc
47 cp -a $stuff/init.d $fs/etc/
48 cp -a $stuff/acpi $fs/etc/
49 chmod go-rwx $fs/etc/acpi/*.sh
50 chmod go-rwx $fs/etc/acpi/events/*
51 }
53 # Pre and post remove commands for Tazpkg
54 post_install()
55 {
56 if [ -z "$1" ]
57 then
58 /etc/init.d/acpid start || continue
59 fi
60 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"
61 then
62 echo '# ACPI daemon options.' >> "$1/etc/daemons.conf"
63 echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf"
64 echo '' >> "$1/etc/daemons.conf"
65 fi
66 }
68 pre_remove()
69 {
70 if [ -z "$1" ]
71 then
72 /etc/init.d/acpid stop
73 fi
74 }