tlp: 1.5.0 -> 1.6.0
Slightly modify the patches to apply cleanly Changelog: https://github.com/linrunner/TLP/releases/tag/1.6.0 Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
parent
e609061e12
commit
96b5fd3d22
3 changed files with 18 additions and 17 deletions
|
@ -24,13 +24,13 @@
|
||||||
, networkmanager
|
, networkmanager
|
||||||
}: stdenv.mkDerivation rec {
|
}: stdenv.mkDerivation rec {
|
||||||
pname = "tlp";
|
pname = "tlp";
|
||||||
version = "1.5.0";
|
version = "1.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "linrunner";
|
owner = "linrunner";
|
||||||
repo = "TLP";
|
repo = "TLP";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-hHel3BVMzTYfE59kxxADnm8tqtUFntqS3RzmJSZlWjM=";
|
hash = "sha256-XAyko2MxFyo5RyioaexhoFAR3E+I3t/8vD2K3WYNmsI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# XXX: See patch files for relevant explanations.
|
# XXX: See patch files for relevant explanations.
|
||||||
|
@ -127,6 +127,7 @@
|
||||||
description = "Advanced Power Management for Linux";
|
description = "Advanced Power Management for Linux";
|
||||||
homepage =
|
homepage =
|
||||||
"https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html";
|
"https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html";
|
||||||
|
changelog = "https://github.com/linrunner/TLP/releases/tag/${version}";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ abbradar lovesegfault ];
|
maintainers = with maintainers; [ abbradar lovesegfault ];
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
|
|
@ -15,14 +15,14 @@ The reason DESTDIR is used at all, as opposed to the more appropriate
|
||||||
PREFIX, is covered in the nix formula, and is (also) due to the Makefile
|
PREFIX, is covered in the nix formula, and is (also) due to the Makefile
|
||||||
being a bit "different."
|
being a bit "different."
|
||||||
---
|
---
|
||||||
Makefile | 18 +++++++++---------
|
Makefile | 20 ++++++++++----------
|
||||||
1 file changed, 9 insertions(+), 9 deletions(-)
|
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
diff --git a/Makefile b/Makefile
|
||||||
index e9bbab4..ab05720 100644
|
index 8042517..1c436ad 100644
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -51,19 +51,19 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
|
@@ -57,20 +57,20 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
|
||||||
|
|
||||||
SED = sed \
|
SED = sed \
|
||||||
-e "s|@TLPVER@|$(TLPVER)|g" \
|
-e "s|@TLPVER@|$(TLPVER)|g" \
|
||||||
|
@ -40,9 +40,11 @@ index e9bbab4..ab05720 100644
|
||||||
-e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
|
-e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
|
||||||
- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
|
- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
|
||||||
- -e "s|@TLP_CONFREN@|$(TLP_CONFREN)|g" \
|
- -e "s|@TLP_CONFREN@|$(TLP_CONFREN)|g" \
|
||||||
|
- -e "s|@TLP_CONFDPR@|$(TLP_CONFDPR)|g" \
|
||||||
- -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
|
- -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
|
||||||
+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
|
+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
|
||||||
+ -e "s|@TLP_CONFREN@|$(_CONFREN)|g" \
|
+ -e "s|@TLP_CONFREN@|$(_CONFREN)|g" \
|
||||||
|
+ -e "s|@TLP_CONFDPR@|$(_CONFDPR)|g" \
|
||||||
+ -e "s|@TLP_CONF@|$(_CONF)|g" \
|
+ -e "s|@TLP_CONF@|$(_CONF)|g" \
|
||||||
-e "s|@TLP_RUN@|$(TLP_RUN)|g" \
|
-e "s|@TLP_RUN@|$(TLP_RUN)|g" \
|
||||||
-e "s|@TLP_VAR@|$(TLP_VAR)|g" \
|
-e "s|@TLP_VAR@|$(TLP_VAR)|g" \
|
||||||
|
@ -52,5 +54,5 @@ index e9bbab4..ab05720 100644
|
||||||
INFILES = \
|
INFILES = \
|
||||||
tlp \
|
tlp \
|
||||||
--
|
--
|
||||||
2.33.0
|
2.41.0
|
||||||
|
|
||||||
|
|
|
@ -13,17 +13,15 @@ systemd itself to not use the hook scripts. As per the manual:
|
||||||
> they should rather use the Inhibitor interface[1].
|
> they should rather use the Inhibitor interface[1].
|
||||||
---
|
---
|
||||||
Makefile | 6 +++---
|
Makefile | 6 +++---
|
||||||
tlp-sleep | 11 -----------
|
|
||||||
tlp-sleep.service.in | 19 +++++++++++++++++++
|
tlp-sleep.service.in | 19 +++++++++++++++++++
|
||||||
3 files changed, 22 insertions(+), 14 deletions(-)
|
2 files changed, 22 insertions(+), 3 deletions(-)
|
||||||
delete mode 100644 tlp-sleep
|
|
||||||
create mode 100644 tlp-sleep.service.in
|
create mode 100644 tlp-sleep.service.in
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
diff --git a/Makefile b/Makefile
|
||||||
index ab05720..075b42f 100644
|
index 1c436ad..fd5211b 100644
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -76,6 +76,7 @@ INFILES = \
|
@@ -84,6 +84,7 @@ INFILES = \
|
||||||
tlp.rules \
|
tlp.rules \
|
||||||
tlp-readconfs \
|
tlp-readconfs \
|
||||||
tlp-run-on \
|
tlp-run-on \
|
||||||
|
@ -31,15 +29,15 @@ index ab05720..075b42f 100644
|
||||||
tlp.service \
|
tlp.service \
|
||||||
tlp-stat \
|
tlp-stat \
|
||||||
tlp.upstart \
|
tlp.upstart \
|
||||||
@@ -106,7 +107,6 @@ SHFILES = \
|
@@ -115,7 +116,6 @@ SHFILES = \
|
||||||
tlp-rdw-udev.in \
|
tlp-rdw-udev.in \
|
||||||
tlp-rf.in \
|
tlp-rf.in \
|
||||||
tlp-run-on.in \
|
tlp-run-on.in \
|
||||||
- tlp-sleep \
|
- tlp-sleep \
|
||||||
tlp-sleep.elogind \
|
tlp-sleep.elogind \
|
||||||
tlp-stat.in \
|
tlp-stat.in \
|
||||||
tlp-usb-udev.in
|
tlp-usb-udev.in \
|
||||||
@@ -159,7 +159,7 @@ ifneq ($(TLP_NO_INIT),1)
|
@@ -172,7 +172,7 @@ ifneq ($(TLP_NO_INIT),1)
|
||||||
endif
|
endif
|
||||||
ifneq ($(TLP_WITH_SYSTEMD),0)
|
ifneq ($(TLP_WITH_SYSTEMD),0)
|
||||||
install -D -m 644 tlp.service $(_SYSD)/tlp.service
|
install -D -m 644 tlp.service $(_SYSD)/tlp.service
|
||||||
|
@ -48,7 +46,7 @@ index ab05720..075b42f 100644
|
||||||
endif
|
endif
|
||||||
ifneq ($(TLP_WITH_ELOGIND),0)
|
ifneq ($(TLP_WITH_ELOGIND),0)
|
||||||
install -D -m 755 tlp-sleep.elogind $(_ELOD)/49-tlp-sleep
|
install -D -m 755 tlp-sleep.elogind $(_ELOD)/49-tlp-sleep
|
||||||
@@ -216,7 +216,7 @@ uninstall-tlp:
|
@@ -240,7 +240,7 @@ uninstall-tlp:
|
||||||
rm $(_ULIB)/rules.d/85-tlp.rules
|
rm $(_ULIB)/rules.d/85-tlp.rules
|
||||||
rm -f $(_SYSV)/tlp
|
rm -f $(_SYSV)/tlp
|
||||||
rm -f $(_SYSD)/tlp.service
|
rm -f $(_SYSD)/tlp.service
|
||||||
|
@ -83,5 +81,5 @@ index 0000000..79c202c
|
||||||
+[Install]
|
+[Install]
|
||||||
+WantedBy=sleep.target
|
+WantedBy=sleep.target
|
||||||
--
|
--
|
||||||
2.33.0
|
2.41.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue