system/laptop-mode-tools: Updated for version 1.70.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-12-28 00:46:03 +07:00
parent a6532c2139
commit fe5d52c221
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 15 additions and 17 deletions

View file

@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=laptop-mode-tools
VERSION=${VERSION:-1.61}
VERSION=${VERSION:-1.70}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,7 +40,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
@ -56,14 +56,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
cd ${PRGNAM}_$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Put udev rules in /lib/udev/rules.d/ instead of /etc/udev/rules.d/
sed -i 's|etc/udev|lib/udev|' install.sh
@ -80,9 +80,7 @@ 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.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="laptop-mode-tools"
VERSION="1.61"
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
DOWNLOAD="http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_1.61.tar.gz"
MD5SUM="6685af5dbb34c3d51ca27933b58f484e"
VERSION="1.70"
HOMEPAGE="https://github.com/rickysarraf/laptop-mode-tools"
DOWNLOAD="https://github.com/rickysarraf/laptop-mode-tools/archive/1.70/laptop-mode-tools-1.70.tar.gz"
MD5SUM="62369c9139ca69ea1e72fe1cb3a925eb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -15,5 +15,5 @@ laptop-mode-tools: of the Linux kernel, which lets your hard drive spin down.
laptop-mode-tools: In addition, it allows you to tweak a number of other power-related
laptop-mode-tools: settings using a simple configuration file.
laptop-mode-tools:
laptop-mode-tools: Homepage: http://www.samwel.tk/laptop_mode/
laptop-mode-tools: Homepage: https://github.com/rickysarraf/laptop-mode-tools
laptop-mode-tools: