summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Aaditya Bagga <aaditya_gnulinux@zoho.com>2019-04-07 22:44:43 +0530
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-04-13 06:30:33 +0700
commit2da3606262095b637a9773df2930b25c95a6aca5 (patch)
treeb14024e4f497985d8d979fae4ffed5b995ba2599 /system
parent9603c05d179a46358b3734a2e9d61f831d613a57 (diff)
downloadslackbuilds-2da3606262095b637a9773df2930b25c95a6aca5.tar.gz
slackbuilds-2da3606262095b637a9773df2930b25c95a6aca5.tar.xz
system/TLP: updated for version 1.2.1.
Diffstat (limited to 'system')
-rw-r--r--system/TLP/49tlp22
-rw-r--r--system/TLP/README12
-rw-r--r--system/TLP/TLP.SlackBuild9
-rw-r--r--system/TLP/TLP.info6
4 files changed, 37 insertions, 12 deletions
diff --git a/system/TLP/49tlp b/system/TLP/49tlp
new file mode 100644
index 0000000000..bfe0e81af1
--- /dev/null
+++ b/system/TLP/49tlp
@@ -0,0 +1,22 @@
+#!/bin/sh
+# tlp - handle suspend/hibernate/resume tasks
+#
+# Copyright (c) 2018 Thomas Koch <linrunner at gmx.net>
+# This software is licensed under the GPL v2 or later.
+
+. "${PM_FUNCTIONS}"
+
+case $1 in
+ hibernate|suspend)
+ tlp suspend
+ ;;
+
+ thaw|resume)
+ tlp resume
+ ;;
+
+ *) exit $NA
+ ;;
+esac
+
+exit 0
diff --git a/system/TLP/README b/system/TLP/README
index 3430cb7ecc..74d9bc935d 100644
--- a/system/TLP/README
+++ b/system/TLP/README
@@ -1,12 +1,12 @@
TLP implements advanced power management for Linux.
-TLP is a pure command line tool with automated background tasks.
-It does not contain a GUI.
-Notes:
-Remove any power saving settings/scripts (e.g.: in /etc/rc.local) or
-laptop-mode-tools prior installing or TLP may not work properly
+It is a command line tool with automated background tasks,
+does not contain a GUI.
-See README.SLACKWARE for more information about post-installation script
+Remove any power saving settings/scripts (e.g.: in /etc/rc.local), and
+uninstall laptop-mode-tools prior installing or TLP may not work properly.
+
+See README.SLACKWARE for more information about post-installation script.
An additional configuration is available for Thinkpads.
See the website for more details.
diff --git a/system/TLP/TLP.SlackBuild b/system/TLP/TLP.SlackBuild
index 494fb8fa5c..341b974beb 100644
--- a/system/TLP/TLP.SlackBuild
+++ b/system/TLP/TLP.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for TLP
-# Copyright 2013-2017 Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Copyright 2013-2019 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:-1.1}
+VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -81,6 +81,9 @@ sed 's|. \/lib\/lsb\/init-functions|#. \/lib\/lsb\/init-functions|' -i tlp.init
export TLP_MAN=/usr/man
make install-tlp install-man DESTDIR=$PKG
+# Install tlp pm-utils hook as we dont have elogind
+install -D -m 755 $CWD/49tlp $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/49tlp
+
# Don't clobber configs
mv $PKG/etc/default/tlp $PKG/etc/default/tlp.new
@@ -92,7 +95,7 @@ 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp COPYING LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
+cp COPYING LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/TLP/TLP.info b/system/TLP/TLP.info
index d6ad3fdae4..cd3e6c8d35 100644
--- a/system/TLP/TLP.info
+++ b/system/TLP/TLP.info
@@ -1,8 +1,8 @@
PRGNAM="TLP"
-VERSION="1.1"
+VERSION="1.2.1"
HOMEPAGE="https://github.com/linrunner/TLP"
-DOWNLOAD="http://github.com/linrunner/TLP/archive/1.1.tar.gz"
-MD5SUM="02c13e8023317e2e2df4742129ecee56"
+DOWNLOAD="https://github.com/linrunner/TLP/archive/1.2.1.tar.gz"
+MD5SUM="6bb4404a3ad83905fe8feaed87bad33c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""