mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/repowerd: new aport
This commit is contained in:
parent
1b95e0c038
commit
5fd4e49dfd
30
testing/repowerd/0001-dbus-Remove-at_console-filtering.patch
Normal file
30
testing/repowerd/0001-dbus-Remove-at_console-filtering.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 15ee1c2e59dc8d563b8db8035836b68a5a82f6e9 Mon Sep 17 00:00:00 2001
|
||||
From: Luca Weiss <luca@z3ntu.xyz>
|
||||
Date: Tue, 17 Oct 2023 22:22:27 +0200
|
||||
Subject: [PATCH] dbus: Remove at_console filtering
|
||||
|
||||
This is long deprecated, remove it since it prohibits communication with
|
||||
repowerd.
|
||||
---
|
||||
data/dbus-configs/com.canonical.Unity.Screen.conf | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/data/dbus-configs/com.canonical.Unity.Screen.conf b/data/dbus-configs/com.canonical.Unity.Screen.conf
|
||||
index 55d2c7b..7bb4cb8 100644
|
||||
--- a/data/dbus-configs/com.canonical.Unity.Screen.conf
|
||||
+++ b/data/dbus-configs/com.canonical.Unity.Screen.conf
|
||||
@@ -9,11 +9,6 @@
|
||||
</policy>
|
||||
|
||||
<policy context="default">
|
||||
- <allow send_destination="com.canonical.Unity.Screen"
|
||||
- send_interface="org.freedesktop.DBus.Introspectable"/>
|
||||
- </policy>
|
||||
-
|
||||
- <policy at_console="true">
|
||||
<allow send_destination="com.canonical.Unity.Screen"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
--
|
||||
2.42.0
|
||||
|
||||
55
testing/repowerd/APKBUILD
Normal file
55
testing/repowerd/APKBUILD
Normal file
@ -0,0 +1,55 @@
|
||||
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
||||
# Contributor: Brandon Boese <brandonboese@protonmail.com>
|
||||
pkgname=repowerd
|
||||
pkgver=2023.07
|
||||
pkgrel=0
|
||||
pkgdesc="Power daemon to monitor and control system power state"
|
||||
url="https://gitlab.com/ubports/development/core/repowerd"
|
||||
arch="all !s390x" # blocked by libgbinder
|
||||
license="LGPL-3.0-only"
|
||||
makedepends="
|
||||
cmake
|
||||
cmake-extras
|
||||
glib-dev
|
||||
gmock
|
||||
gtest-dev
|
||||
libgbinder-dev
|
||||
lomiri-deviceinfo-dev
|
||||
qt5-qtbase-dev
|
||||
samurai
|
||||
"
|
||||
checkdepends="dbus"
|
||||
subpackages="$pkgname-openrc"
|
||||
source="https://gitlab.com/ubports/development/core/repowerd/-/archive/$pkgver/repowerd-$pkgver.tar.gz
|
||||
repowerd.initd
|
||||
0001-dbus-Remove-at_console-filtering.patch
|
||||
"
|
||||
|
||||
build() {
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_SHARED_LIBS=True \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DREPOWERD_ENABLE_HYBRIS=False
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
# Test ARealFilesystem.performs_ioctl in repowerd-adapter-tests fails
|
||||
# https://gitlab.com/ubports/development/core/repowerd/-/issues/41
|
||||
ctest --test-dir build --output-on-failure -E repowerd-adapter-tests
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
install -Dm755 "$srcdir"/$pkgname.initd \
|
||||
"$pkgdir"/etc/init.d/$pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
2cbf879956e049c6c197516c23e43bfeafee13f0e354dbf0032f7a9b97bf849255d5dd204f4178759837fd06601fc9ebbdf3a409af3d79da1fe8b3a9c77bb059 repowerd-2023.07.tar.gz
|
||||
d8c4dd351a7bf2bcc66b0eb8b0d17d602661f7defb857be5a28f694e4977b634b7d101f738058ce0ccaa313c4e316f7222c753610500ddbd68f8e42de7c57f29 repowerd.initd
|
||||
f6212991bd4ea6704a74f71615fa5d0b9b738144c2448f03d90a0d2c6dd320e17c3c070add7f7877ca3f6f4c2526d44dd5277f8cefbd05ad08d99204c61d6766 0001-dbus-Remove-at_console-filtering.patch
|
||||
"
|
||||
12
testing/repowerd/repowerd.initd
Normal file
12
testing/repowerd/repowerd.initd
Normal file
@ -0,0 +1,12 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="Repowerd"
|
||||
description="Power daemon to monitor and control system power state"
|
||||
|
||||
command=/usr/sbin/repowerd
|
||||
command_background=true
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
depends() {
|
||||
need udev
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user