From: hazen2215 <hazen2215@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] tlp: add zzz resume/suspend hooks
Date: Wed, 16 Nov 2022 10:59:05 +0100 [thread overview]
Message-ID: <20221116095905.jPNPV3l7OmRVOtFkIFq7WASWdjKAxu3PMCWPe8pGrkg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40534@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
There is an updated pull request by hazen2215 against master on the void-packages repository
https://github.com/hazen2215/void-packages tlp
https://github.com/void-linux/void-packages/pull/40534
tlp: add zzz resume/suspend hooks
<!-- Uncomment relevant sections and delete options which are not applicable -->
https://github.com/linrunner/TLP/issues/656
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/40534.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tlp-40534.patch --]
[-- Type: text/x-diff, Size: 2098 bytes --]
From 9f5c7b3914862575911a146008f55dcd07a13044 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Tue, 15 Nov 2022 10:59:09 +0900
Subject: [PATCH] tlp: add zzz resume/suspend hooks
also make it conflict with perl-Unicode-Tussle (/usr/bin/nfc)
---
srcpkgs/tlp/files/tlp.resume | 2 ++
srcpkgs/tlp/files/tlp.suspend | 2 ++
srcpkgs/tlp/template | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/tlp/files/tlp.resume
create mode 100644 srcpkgs/tlp/files/tlp.suspend
diff --git a/srcpkgs/tlp/files/tlp.resume b/srcpkgs/tlp/files/tlp.resume
new file mode 100644
index 000000000000..1354e0eaf969
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.resume
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp resume
diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend
new file mode 100644
index 000000000000..e96c1618c757
--- /dev/null
+++ b/srcpkgs/tlp/files/tlp.suspend
@@ -0,0 +1,2 @@
+#!/bin/sh
+chpst -b tlp sv status >/dev/null && exec tlp suspend
diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template
index dbfc33f2b68f..e1310dcff980 100644
--- a/srcpkgs/tlp/template
+++ b/srcpkgs/tlp/template
@@ -1,7 +1,7 @@
# Template file for 'tlp'
pkgname=tlp
version=1.5.0
-revision=1
+revision=2
depends="hdparm bash iw util-linux ethtool perl"
short_desc="Advanced power management tool for Linux"
maintainer="Alan Brown <adbrown@rocketmail.com>"
@@ -11,7 +11,7 @@ changelog="https://raw.githubusercontent.com/linrunner/TLP/main/changelog"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
-conflicts="laptop-mode>=0"
+conflicts="laptop-mode>=0 perl-Unicode-Tussle>=0"
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
do_install() {
@@ -31,6 +31,8 @@ do_install() {
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
vsv tlp
+ vinstall ${FILESDIR}/tlp.resume 755 /etc/zzz.d/resume 50-tlp.sh
+ vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh
rm -rf ${DESTDIR}/etc/init.d
}
next prev parent reply other threads:[~2022-11-16 9:59 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-14 22:13 [PR PATCH] " hazen2215
2022-11-14 22:17 ` [PR PATCH] [Updated] " hazen2215
2022-11-15 1:54 ` hazen2215
2022-11-15 2:13 ` hazen2215
2022-11-15 17:24 ` nbelikov
2022-11-16 3:47 ` [PR PATCH] [Updated] " hazen2215
2022-11-16 3:50 ` hazen2215
2022-11-16 9:59 ` hazen2215 [this message]
2022-11-16 10:09 ` hazen2215
2022-11-16 21:14 ` leahneukirchen
2022-11-25 0:48 ` dkwo
2022-11-25 1:06 ` [PR REVIEW] " sgn
2022-11-25 1:11 ` sgn
2022-11-25 10:01 ` [PR PATCH] [Updated] " hazen2215
2023-01-13 1:17 ` hazen2215
2023-04-13 1:50 ` github-actions
2023-04-13 13:16 ` dkwo
2023-07-13 2:08 ` github-actions
2023-07-13 4:38 ` [PR PATCH] [Updated] " hazen2215
2023-09-29 22:51 ` hazen2215
2023-09-29 22:52 ` hazen2215
2023-10-02 7:44 ` [PR PATCH] [Merged]: " sgn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221116095905.jPNPV3l7OmRVOtFkIFq7WASWdjKAxu3PMCWPe8pGrkg@z \
--to=hazen2215@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).