upowerd service
This commit is contained in:
1 parent
00cab85408
commit
2dfe2840ad
2 files changed
+27
-3
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright (c) 2008 Saleem Abdulrasool <compnerd@compnerd.org>
|
||||
# Distributed under the terms of the GNU General Purpose License v2
|
||||
# $Header: $
|
||||
|
||||
description="Power Manager Daemon"
|
||||
|
||||
start(){
|
||||
/usr/libexec/upowerd &
|
||||
return 0
|
||||
}
|
||||
stop(){
|
||||
return 0
|
||||
}
|
||||
|
||||
depend() {
|
||||
need dbus
|
||||
}
|
||||
|
||||
# vim: set ft=gentoo-init-d ts=3 sw=3 et:
|
||||
@@ -7,10 +7,12 @@ description='Abstraction for enumerating power devices, listening to device even
|
||||
email='akarsu@protonmail.com'
|
||||
maintainer='akarsu'
|
||||
license=('GPLv3')
|
||||
source=("https://gitlab.freedesktop.org/upower/upower/-/archive/v${version}/upower-v${version}.tar.gz")
|
||||
source=("https://gitlab.freedesktop.org/upower/upower/-/archive/v${version}/upower-v${version}.tar.gz"
|
||||
"upowerd.initd")
|
||||
depends=(libgudev libusb polkit)
|
||||
makedepends=()
|
||||
md5sums=('6640404336d3d082e9c2a4f147d9eb8b')
|
||||
md5sums=('6640404336d3d082e9c2a4f147d9eb8b'
|
||||
'SKIP')
|
||||
group=(sys.power)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
@@ -23,7 +25,7 @@ setup(){
|
||||
--buildtype=release \
|
||||
-Dgtk-doc=false \
|
||||
-Dman=false \
|
||||
-Ddefault_library=both \
|
||||
-Ddefault_library=both \
|
||||
-Dsystemdsystemunitdir=no
|
||||
}
|
||||
|
||||
@@ -32,6 +34,8 @@ build(){
|
||||
}
|
||||
|
||||
package(){
|
||||
mkdir -p $DESTDIR/etc/init.d/
|
||||
ninja -C build install $jobs
|
||||
install ../upowerd.initd $DESTDIR/etc/init.d/upowerd
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user