summaryrefslogtreecommitdiff
path: root/nonsystemd
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@mini-dweeb.org>2020-11-13 08:56:07 +0900
committerAndreas Grapentin <andreas@grapentin.org>2020-12-02 16:40:54 +0100
commitfb851ab9fcd6398e51c101b76ad51757a1de179b (patch)
tree01d6fd7350031b70d9a58c1a7345193e4d3729c6 /nonsystemd
parentb22af69452fc2985beba682da5d53f5cfcfd3ad5 (diff)
downloadabslibre-fb851ab9fcd6398e51c101b76ad51757a1de179b.tar.gz
abslibre-fb851ab9fcd6398e51c101b76ad51757a1de179b.tar.bz2
abslibre-fb851ab9fcd6398e51c101b76ad51757a1de179b.zip
nonsystemd/openrc-desktop: Add tlp-openrc (only available from hyperbola, not in gentoo).
Signed-off-by: Andreas Grapentin <andreas@grapentin.org>
Diffstat (limited to 'nonsystemd')
-rw-r--r--nonsystemd/openrc-desktop/PKGBUILD19
1 files changed, 16 insertions, 3 deletions
diff --git a/nonsystemd/openrc-desktop/PKGBUILD b/nonsystemd/openrc-desktop/PKGBUILD
index 0c3e51489..14c6e173a 100644
--- a/nonsystemd/openrc-desktop/PKGBUILD
+++ b/nonsystemd/openrc-desktop/PKGBUILD
@@ -14,7 +14,8 @@ pkgname=('acpid-openrc'
'displaymanager-openrc'
'gpm-openrc'
'wpa_supplicant-openrc'
- 'chrony-openrc')
+ 'chrony-openrc'
+ 'tlp-openrc')
pkgrel=1
arch=('any')
url='https://github.com/gentoo/gentoo'
@@ -38,7 +39,8 @@ source=('acpid.confd'
"wpa_supplicant.initd::${_url}/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d"
"${_url}/net-wireless/wpa_supplicant/files/wpa_cli.sh"
"chronyd.confd::${_url}/net-misc/chrony/files/chronyd.conf-r1"
- "chronyd.initd::${_url}/net-misc/chrony/files/chronyd.init-r2")
+ "chronyd.initd::${_url}/net-misc/chrony/files/chronyd.init-r2"
+ "tlp.initd::https://git.hyperbola.info:50100/packages/community.git/plain/tlp/tlp.initd?id=241231d55f767d87e9cc883feb84b7f42a44434e")
sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
'5dcf5721a129b3782c13fc453853c390c34e2ad4ee00706388ce014454b063ee'
'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
@@ -57,7 +59,8 @@ sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
'98985142371d39ea6294d757e85a3d3fc9fc21718063afbf81869e1d2ca648a7'
'f3aa34b99a90213c53496f8ea014c487266338791f3526043a7fd97adc651fc6'
'a55216d5bc267004ebfd16f3371acaf04953b9cfdbc55518b26c80492584f647'
- 'fc2ff6922c4b64686bba9c6f482a64b2bebc1156d63e09f49adb0ffcfb240a1c')
+ 'fc2ff6922c4b64686bba9c6f482a64b2bebc1156d63e09f49adb0ffcfb240a1c'
+ '10428455ffe5812d45d9008f1cacbb5351b71566faf6329b8101ba71e213d36a')
_inst_initd(){
install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
@@ -159,3 +162,13 @@ package_chrony-openrc() {
-e 's|/etc/chrony/|/etc/|' \
-i "${pkgdir}/etc/init.d/chronyd"
}
+
+package_tlp-openrc() {
+ pkgdesc="OpenRC tlp init script"
+ depends=('openrc' 'tlp')
+
+ _inst_initd 'tlp'
+ sed -e 's|/usr/sbin|/usr/bin|' \
+ -e 's|/sbin/openrc-run|/usr/bin/openrc-run|' \
+ -i "${pkgdir}/etc/init.d/tlp"
+}