summaryrefslogtreecommitdiff
path: root/system/TLP/TLP.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/TLP/TLP.SlackBuild')
-rw-r--r--system/TLP/TLP.SlackBuild19
1 files changed, 8 insertions, 11 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