# HG changeset patch # User Dominique Corbex # Date 1240069155 -7200 # Node ID 9d40dd15e54d7aa1a92c46af4b755199687ef087 # Parent 178af875768f8ed449973b036dcf795817a63158 Add: pm-utils diff -r 178af875768f -r 9d40dd15e54d pm-utils/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pm-utils/receipt Sat Apr 18 17:39:15 2009 +0200 @@ -0,0 +1,45 @@ +# SliTaz package receipt. + +PACKAGE="pm-utils" +VERSION="1.2.5" +CATEGORY="system-tools" +SHORT_DESC="scripts that handle suspend and resume on behalf of HAL." +MAINTAINER="domcox@users.sourceforge.net" +DEPENDS="hal-info" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://pm-utils.freedesktop.org/" +WGET_URL="http://pm-utils.freedesktop.org/releases/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sed -i 's/grep -vxFf/grep -vFf/g' pm/functions.in + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + mkdir -p $fs/etc + cp -a $_pkg/usr/etc/pm $fs/etc +# strip -s $fs/usr/bin/* +} + +post_install() +{ + rmdir /etc/pm/config.d + rmdir /etc/pm/power.d + rmdir /etc/pm/sleep.d + rmdir /etc/pm +} \ No newline at end of file