mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
gui-apps/noctalia-greeter: tmpfiles support
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -48,6 +48,9 @@ BDEPEND="
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
# remove unneeded additional scripts
|
||||
rm "${ED}"/usr/share/${PN}/*.sh || die
|
||||
|
||||
keepdir /var/lib/${PN}
|
||||
fowners greetd:greetd /var/lib/${PN}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson
|
||||
inherit meson tmpfiles
|
||||
|
||||
DESCRIPTION="A minimal login greeter for greetd that matches Noctalia Shell"
|
||||
HOMEPAGE="https://noctalia.dev/ https://github.com/noctalia-dev/noctalia-greeter"
|
||||
@@ -46,6 +46,13 @@ BDEPEND="
|
||||
dev-libs/wayland-protocols
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# replace greetd user
|
||||
sed -E -i 's/^(\S+\s+\S+\s+\S+\s+)greeter(\s+)greeter(\s+)/\1greetd\2greetd\3/' data/tmpfiles.d/${PN}.conf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dsystem_tomlplusplus=true
|
||||
@@ -57,6 +64,12 @@ src_configure() {
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
keepdir /var/lib/${PN}
|
||||
fowners greetd:greetd /var/lib/${PN}
|
||||
# remove unneeded additional scripts
|
||||
rm "${ED}"/usr/share/${PN}/*.sh || die
|
||||
|
||||
dotmpfiles data/tmpfiles.d/${PN}.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process ${PN}.conf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user