summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/TLP/TLP.SlackBuild19
-rw-r--r--system/TLP/TLP.info6
2 files changed, 11 insertions, 14 deletions
diff --git a/system/TLP/TLP.SlackBuild b/system/TLP/TLP.SlackBuild
index 2e6ab35037..6cabd32c3b 100644
--- a/system/TLP/TLP.SlackBuild
+++ b/system/TLP/TLP.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for TLP
-# Copyright 2013-2014 Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Copyright 2013-2015 Aaditya Bagga <aaditya_gnulinux@zoho.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=TLP
-VERSION=${VERSION:-0.6}
+VERSION=${VERSION:-0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,7 +37,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/$PRGNAM
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
@@ -71,7 +71,7 @@ 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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Switch to rc.d
sed -i -e "s/init.d/rc.d/" Makefile
@@ -81,12 +81,12 @@ sed -i -e "s/usr\/lib/usr\/lib${LIBDIRSUFFIX}/" Makefile
make install-tlp DESTDIR=$PKG
-# move to rc.tlp
-install -Dm 644 $PKG/etc/rc.d/tlp $PKG/etc/rc.d/rc.tlp
-
# Don't clobber configs
mv $PKG/etc/default/tlp $PKG/etc/default/tlp.new
-mv $PKG/etc/rc.d/rc.tlp $PKG/etc/rc.d/rc.tlp.new
+
+# move to rc.tlp
+mv $PKG/etc/rc.d/tlp $PKG/etc/rc.d/rc.tlp.new
+chmod 644 $PKG/etc/rc.d/rc.tlp.new
# install man files
mkdir -p $PKG/usr/man/man{1,8}
@@ -98,9 +98,6 @@ install -m 644 man/wwan.1 $PKG/usr/man/man1/
install -m 644 man/tlp.8 $PKG/usr/man/man8/
install -m 644 man/tlp-stat.8 $PKG/usr/man/man8/
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
diff --git a/system/TLP/TLP.info b/system/TLP/TLP.info
index 23773fac45..dcec2ad27b 100644
--- a/system/TLP/TLP.info
+++ b/system/TLP/TLP.info
@@ -1,8 +1,8 @@
PRGNAM="TLP"
-VERSION="0.6"
+VERSION="0.7"
HOMEPAGE="http://linrunner.de/en/tlp/tlp.html"
-DOWNLOAD="http://github.com/linrunner/TLP/archive/0.6.tar.gz"
-MD5SUM="52f25c3459f6d9ce31cd2e67a5fcc5e0"
+DOWNLOAD="http://github.com/linrunner/TLP/archive/0.7.tar.gz"
+MD5SUM="660ee2e507c02f11c62d70ff4ca8329c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""