mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
sys-auth/polkit 0.119: re-apply downstream patches
commit 5c4d184e22fd93ab926878a131150047b54d0b6c Author: Michael Marineau <michael.marineau@coreos.com> Date: Fri Aug 1 14:48:59 2014 -0700 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
03a4f3ce8a
commit
94cda6bf05
3
sdk_container/src/third_party/coreos-overlay/sys-auth/polkit/files/polkit.conf
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/sys-auth/polkit/files/polkit.conf
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
d /etc/polkit-1 - - - - -
|
||||
d /etc/polkit-1/rules.d 0700 polkitd root - -
|
||||
d /var/lib/polkit-1 0700 polkitd polkitd - -
|
@ -119,6 +119,16 @@ src_compile() {
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dodir /usr/share/polkit-1/rules.d
|
||||
dodir /usr/lib/pam.d
|
||||
|
||||
mv "${D}"/{etc,usr/share}/polkit-1/rules.d/50-default.rules || die
|
||||
mv "${D}"/{etc,usr/lib}/pam.d/polkit-1 || die
|
||||
rmdir "${D}"/etc/polkit-1/rules.d "${D}"/etc/polkit-1 || die
|
||||
rmdir "${D}"/etc/pam.d || die
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}/polkit.conf"
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc src/examples/{*.c,*.policy*}
|
||||
@ -129,8 +139,3 @@ src_install() {
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
chmod 0700 "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
|
||||
chown polkitd "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user