Skip to content
Snippets Groups Projects
Unverified Commit 542213ec authored by Yannick Ulrich's avatar Yannick Ulrich Committed by Clayton Craft
Browse files

temp/waked: new aport (MR 2342)

parent a4dec99f
Branches
No related tags found
No related merge requests found
pkgname=waked
pkgver=0.1.0
pkgrel=0
license="GPL-2.0-or-later"
pkgdesc="Waked is a daemon which lets Apps wake the system from suspend at requested times"
arch="all"
url="https://gitlab.com/seath1/waked"
makedepends="cmake sdbus-cpp-dev"
install="$pkgname-openrc.post-install $pkgname-openrc.post-upgrade"
source="https://gitlab.com/seath1/waked/-/archive/v$pkgver/waked-v$pkgver.tar.bz2
waked.initd"
subpackages="$pkgname-openrc"
options="!check" # No test suite
builddir="$srcdir/$pkgname-v$pkgver"
build() {
cd src/
cmake .
make
}
package() {
install -Dm755 src/waked "$pkgdir"/usr/bin/waked
install -Dm644 de.seath.Waked.conf "$pkgdir"/etc/dbus-1/system.d/de.seath.Waked.conf
install -Dm755 "$srcdir"/waked.initd "$pkgdir"/etc/init.d/waked
}
sha512sums="
ecac9fe8aa407e055b20271a679292821bc998f14501ad24f9f732607c76c0c456f1dd6a0acb850eb4c315a13e08903e39e8b0b2c93faef450273be43f2f1c45 waked-v0.1.0.tar.bz2
c7b2331fd545ac7a38499e3159a026155e93173ec8c4336e878170ebd355212f362565805e3409d635875f3fb769a6e62d83ccd61d317c3434ebcee04864c0b6 waked.initd
"
#!/bin/sh
# Enable waked init script
rc-update add waked default
waked-openrc.post-install
\ No newline at end of file
#!/sbin/openrc-run
depend() {
need net
}
start() {
ebegin "Starting waked"
start-stop-daemon --background --start --exec /usr/bin/waked
eend $?
}
stop() {
ebegin "Stopping waked"
start-stop-daemon --stop --exec /usr/bin/waked
eend $?
}
  • Administrator @root

    mentioned in commit b6412267

    By Yannick Ulrich on 2021-08-04T16:52:01

    · Imported

    mentioned in commit b6412267

    By Yannick Ulrich on 2021-08-04T16:52:01

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment