system/laptop-mode-tools: Updated for version 1.61.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
d53154c60e
commit
ab032c6f53
|
@ -1,7 +1,7 @@
|
|||
Laptop Mode Tools is a laptop power saving package for Linux systems.
|
||||
It allows you to extend the battery life of your laptop in several ways.
|
||||
It is the primary way to enable the Laptop Mode feature of the Linux kernel,
|
||||
which lets your hard drive spin down. In addition, it allows you to tweak
|
||||
Laptop Mode Tools is a laptop power saving package for Linux systems.
|
||||
It allows you to extend the battery life of your laptop in several ways.
|
||||
It is the primary way to enable the Laptop Mode feature of the Linux kernel,
|
||||
which lets your hard drive spin down. In addition, it allows you to tweak
|
||||
a number of other power-related settings using a simple configuration file.
|
||||
|
||||
To launch laptop-mode-tools on system start, add the following to rc.local:
|
||||
|
|
|
@ -10,6 +10,7 @@ config() {
|
|||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
preserve_perms() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for laptop-mode-tools
|
||||
|
||||
# Copyright 2010 V'yacheslav Stetskevych <slava18@gmail.com>
|
||||
# Maintained by John Tyree <johntyree+sbo@gmail.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -22,10 +22,8 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Maintained by John Tyree <johntyree+sbo@gmail.com>
|
||||
|
||||
PRGNAM=laptop-mode-tools
|
||||
VERSION=${VERSION:-1.60}
|
||||
VERSION=${VERSION:-1.61}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -71,20 +69,20 @@ find . \
|
|||
sed -i 's|etc/udev|lib/udev|' install.sh
|
||||
|
||||
DESTDIR=$PKG INIT_D=$PKG/etc/rc.d MAN_D=/usr/man ./install.sh
|
||||
install -d $PKG/var/run/laptop-mode-tools
|
||||
|
||||
[ "$LIBDIRSUFFIX" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib64
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
# No need to create /var/run/laptop-mode-tools in the package, as the
|
||||
# init script creates the directory; in many recent distros, /var/run
|
||||
# is on a tmpfs, so nothing should ever assume that a subdir exists already
|
||||
mv $PKG/etc/rc.d/laptop-mode $PKG/etc/rc.d/rc.laptop-mode.new
|
||||
|
||||
find $PKG/etc/laptop-mode -name '*.conf' -exec mv {} {}.new \;
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README COPYING $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
README COPYING \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="laptop-mode-tools"
|
||||
VERSION="1.60"
|
||||
VERSION="1.61"
|
||||
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
||||
DOWNLOAD="http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_1.60.tar.gz"
|
||||
MD5SUM="22bcc955c4e5d28e2f3a992b0efb50b4"
|
||||
DOWNLOAD="http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_1.61.tar.gz"
|
||||
MD5SUM="6685af5dbb34c3d51ca27933b58f484e"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="John Tyree"
|
||||
EMAIL="johntyree+sbo@gmail.com"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in New Issue