gui-apps/noctalia-greeter: tmpfiles support

Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2026-07-18 08:43:10 -03:00
parent 18512e4788
commit 1085624ea1
2 changed files with 19 additions and 3 deletions

View File

@@ -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}
}

View File

@@ -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
}