diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/laptop-mode-tools/README | 8 | ||||
-rw-r--r-- | system/laptop-mode-tools/doinst.sh | 1 | ||||
-rw-r--r-- | system/laptop-mode-tools/laptop-mode-tools.SlackBuild | 14 | ||||
-rw-r--r-- | system/laptop-mode-tools/laptop-mode-tools.info | 8 |
4 files changed, 15 insertions, 16 deletions
diff --git a/system/laptop-mode-tools/README b/system/laptop-mode-tools/README index a03f44850e422..766e63214418b 100644 --- a/system/laptop-mode-tools/README +++ b/system/laptop-mode-tools/README @@ -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: diff --git a/system/laptop-mode-tools/doinst.sh b/system/laptop-mode-tools/doinst.sh index 1247258c2ce9d..2e40b106cf960 100644 --- a/system/laptop-mode-tools/doinst.sh +++ b/system/laptop-mode-tools/doinst.sh @@ -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)" diff --git a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild index e1a777da660ca..c7aa843edada4 100644 --- a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild +++ b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild @@ -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 diff --git a/system/laptop-mode-tools/laptop-mode-tools.info b/system/laptop-mode-tools/laptop-mode-tools.info index 00ea539ebbe84..c6c2ab684a597 100644 --- a/system/laptop-mode-tools/laptop-mode-tools.info +++ b/system/laptop-mode-tools/laptop-mode-tools.info @@ -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" |