mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/laptop-mode-tools: Updated for version 1.59.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
05bc19a05f
commit
00776d8b63
4 changed files with 18 additions and 16 deletions
|
@ -10,7 +10,6 @@ config() {
|
||||||
fi
|
fi
|
||||||
# Otherwise, we leave the .new copy for the admin to consider...
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
}
|
}
|
||||||
|
|
||||||
preserve_perms() {
|
preserve_perms() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for laptop-mode-tools
|
# Slackware build script for laptop-mode-tools
|
||||||
|
|
||||||
# Copyright 2010 V'yacheslav Stetskevych <slava18@gmail.com>
|
# Copyright 2010 V'yacheslav Stetskevych <slava18@gmail.com>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
|
@ -21,8 +22,10 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# Maintained by John Tyree <johntyree+sbo@gmail.com>
|
||||||
|
|
||||||
PRGNAM=laptop-mode-tools
|
PRGNAM=laptop-mode-tools
|
||||||
VERSION=${VERSION:-1.55}
|
VERSION=${VERSION:-1.59}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -56,7 +59,7 @@ mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
|
tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
|
||||||
cd ${PRGNAM}_$VERSION
|
cd ${PRGNAM}-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find . \
|
find . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
@ -65,20 +68,20 @@ find . \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
DESTDIR=$PKG INIT_D=$PKG/etc/rc.d MAN_D=/usr/man ./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
|
[ "$LIBDIRSUFFIX" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib64
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
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
|
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 \;
|
find $PKG/etc/laptop-mode -name '*.conf' -exec mv {} {}.new \;
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a README COPYING $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
README COPYING \
|
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="laptop-mode-tools"
|
PRGNAM="laptop-mode-tools"
|
||||||
VERSION="1.55"
|
VERSION="1.59"
|
||||||
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
||||||
DOWNLOAD="http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_1.55.tar.gz"
|
DOWNLOAD="http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_1.59.tar.gz"
|
||||||
MD5SUM="fda9255375de2dd3b86526da39160cf0"
|
MD5SUM="0c4de075dd714681b4ff62c84d45513c"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="V'yacheslav Stetskevych"
|
MAINTAINER="John Tyree"
|
||||||
EMAIL="slava18@gmail.com"
|
EMAIL="johntyree+sbo@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in a new issue