mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 15:31:05 +02:00
polkit: fix config install paths, use systemd-tmpfiles
All configs should be installed to /usr and tmpfiles should be used to create and fix directory permissions instead of the ebuild's postinst.
This commit is contained in:
parent
ffe8162478
commit
00b703c1bf
@ -96,10 +96,15 @@ src_install() {
|
|||||||
|
|
||||||
dodoc docs/TODO HACKING NEWS README
|
dodoc docs/TODO HACKING NEWS README
|
||||||
|
|
||||||
fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d
|
# relocate default configs from /etc to /usr
|
||||||
|
dodir /usr/share/dbus-1/system.d
|
||||||
|
mv "${D}"/{etc,usr/share}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf || die
|
||||||
|
mv "${D}"/{etc,usr/share}/polkit-1/rules.d/50-default.rules || die
|
||||||
|
rmdir "${D}"/etc/dbus-1/system.d "${D}"/etc/dbus-1 || die
|
||||||
|
|
||||||
|
systemd_dotmpfilesd "${FILESDIR}/polkit.conf"
|
||||||
diropts -m0700 -o polkitd -g polkitd
|
diropts -m0700 -o polkitd -g polkitd
|
||||||
keepdir /var/lib/polkit-1
|
dodir /var/lib/polkit-1
|
||||||
|
|
||||||
if use examples; then
|
if use examples; then
|
||||||
insinto /usr/share/doc/${PF}/examples
|
insinto /usr/share/doc/${PF}/examples
|
||||||
@ -108,8 +113,3 @@ src_install() {
|
|||||||
|
|
||||||
prune_libtool_files
|
prune_libtool_files
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
|
|
||||||
chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user