mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
sys-auth/polkit: Clean slate to reapply our changes
This commit is contained in:
parent
0949fb6ee3
commit
f09c1fe20e
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
|||||||
d /etc/polkit-1 - - - - -
|
|
||||||
d /etc/polkit-1/rules.d 0700 polkitd root - -
|
|
||||||
d /var/lib/polkit-1 0700 polkitd polkitd - -
|
|
@ -32,7 +32,7 @@ BDEPEND="
|
|||||||
introspection? ( dev-libs/gobject-introspection )
|
introspection? ( dev-libs/gobject-introspection )
|
||||||
"
|
"
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-lang/duktape
|
dev-lang/spidermonkey:78[-debug]
|
||||||
dev-libs/glib:2
|
dev-libs/glib:2
|
||||||
dev-libs/expat
|
dev-libs/expat
|
||||||
elogind? ( sys-auth/elogind )
|
elogind? ( sys-auth/elogind )
|
||||||
@ -59,9 +59,6 @@ DOCS=( docs/TODO HACKING NEWS README )
|
|||||||
|
|
||||||
PATCHES=(
|
PATCHES=(
|
||||||
"${FILESDIR}"/${PN}-0.115-elogind.patch # bug 660880
|
"${FILESDIR}"/${PN}-0.115-elogind.patch # bug 660880
|
||||||
|
|
||||||
# from https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/35
|
|
||||||
"${FILESDIR}"/35_WIP_Add_duktape_as_javascript_engine.patch
|
|
||||||
)
|
)
|
||||||
|
|
||||||
QA_MULTILIB_PATHS="
|
QA_MULTILIB_PATHS="
|
||||||
@ -95,7 +92,6 @@ src_configure() {
|
|||||||
--enable-man-pages
|
--enable-man-pages
|
||||||
--disable-gtk-doc
|
--disable-gtk-doc
|
||||||
--disable-examples
|
--disable-examples
|
||||||
--with-duktape
|
|
||||||
$(use_enable elogind libelogind)
|
$(use_enable elogind libelogind)
|
||||||
$(use_enable introspection)
|
$(use_enable introspection)
|
||||||
$(use_enable nls)
|
$(use_enable nls)
|
||||||
@ -119,16 +115,6 @@ src_compile() {
|
|||||||
src_install() {
|
src_install() {
|
||||||
default
|
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
|
if use examples; then
|
||||||
docinto examples
|
docinto examples
|
||||||
dodoc src/examples/{*.c,*.policy*}
|
dodoc src/examples/{*.c,*.policy*}
|
||||||
@ -139,3 +125,8 @@ src_install() {
|
|||||||
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
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