wok-next diff acpid/receipt @ rev 20712
libtorrent: fix rtorrent building for non-64bit archs
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 12:13:53 2018 +0300 (2018-05-27) |
parents | 11b5e93cb5f2 |
children | ede906abe532 |
line diff
1.1 --- a/acpid/receipt Tue Jul 05 15:34:01 2016 +0300 1.2 +++ b/acpid/receipt Sun May 27 12:13:53 2018 +0300 1.3 @@ -1,57 +1,52 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="acpid" 1.8 -VERSION="2.0.16" 1.9 +VERSION="2.0.28" 1.10 CATEGORY="system-tools" 1.11 SHORT_DESC="The ACPI event daemon with netlink" 1.12 MAINTAINER="domcox@slitaz.org" 1.13 LICENSE="GPL2" 1.14 WEB_SITE="https://sourceforge.net/projects/acpid2/" 1.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/acpid.html" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.18 WGET_URL="$SF_MIRROR/acpid2/$TARBALL" 1.19 -KEY_FILE="key-constants" 1.20 -TAGS="power-management" 1.21 -SUGGESTED="pm-utils" 1.22 1.23 -# Rules to configure and make the package. 1.24 -compile_rules() 1.25 -{ 1.26 - ./configure --prefix=/usr $CONFIGURE_ARGS && 1.27 +compile_rules() { 1.28 + ./configure $CONFIGURE_ARGS && 1.29 make && 1.30 - make DESTDIR=$DESTDIR install 1.31 + make install || return 1 1.32 + 1.33 + install -dm755 $install/etc/acpi/events 1.34 + cp -r samples $install/usr/share/doc/$PACKAGE-$VERSION 1.35 + 1.36 + mkdir -p $install/etc/ 1.37 + cp -r $stuff/init.d $install/etc/ 1.38 + cp -r $stuff/acpi $install/etc/ 1.39 + chmod go-rwx $install/etc/acpi/*.sh 1.40 + chmod go-rwx $install/etc/acpi/events/* 1.41 } 1.42 1.43 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.44 -genpkg_rules() 1.45 -{ 1.46 - mkdir -p $fs/usr 1.47 - # acpid 1.48 - cp -a $install/usr/sbin $fs/usr 1.49 - # acpi_listen 1.50 - cp -a $install/usr/bin $fs/usr 1.51 - # acpid conf files 1.52 - mkdir -p $fs/etc 1.53 - cp -a $stuff/init.d $fs/etc/ 1.54 - cp -a $stuff/acpi $fs/etc/ 1.55 - chmod go-rwx $fs/etc/acpi/*.sh 1.56 - chmod go-rwx $fs/etc/acpi/events/* 1.57 +genpkg_rules() { 1.58 + copy @std 1.59 + TAGS="power-management" 1.60 + SUGGESTED="pm-utils" 1.61 } 1.62 1.63 -# Pre and post remove commands for Tazpkg 1.64 -post_install() 1.65 -{ 1.66 +post_install() { 1.67 if [ -z "$1" ]; then 1.68 /etc/init.d/acpid start || continue 1.69 fi 1.70 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then 1.71 - echo '# ACPI daemon options.' >> "$1/etc/daemons.conf" 1.72 - echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf" 1.73 - echo '' >> "$1/etc/daemons.conf" 1.74 + cat >> "$1/etc/daemons.conf" <<EOT 1.75 +# ACPI daemon options. 1.76 +ACPID_OPTIONS="" 1.77 + 1.78 +EOT 1.79 fi 1.80 -} 1.81 +} 1.82 1.83 -pre_remove() 1.84 -{ 1.85 +pre_remove() { 1.86 if [ -z "$1" ]; then 1.87 /etc/init.d/acpid stop 1.88 fi