mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
polkit: fork with fastfoward fix for https://bugs.gentoo.org/698910
This commit is contained in:
parent
a3e68e5258
commit
93ea511460
5 changed files with 1677 additions and 0 deletions
5
sys-auth/polkit/Manifest
Normal file
5
sys-auth/polkit/Manifest
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
AUX polkit-0.115-elogind.patch 1069 BLAKE2B 6c5a3d7d3e716a994b951181808f64d864e6ca58b3a018a5354022f08c6e7c1d8987366c9777f47cc970916ad9fe39f288a1b1643113fc99745f333e02dab56f SHA512 06432fa56788699762c6978484640554f91728a1cb40679eb47b8514b3c7aa23aac5b9c26586eb4d7043a0af1b319bbe7f869d24844d9151317299b74a8e8f7f
|
||||
AUX polkit-0.116-duktape.patch 50120 BLAKE2B 3cf7e0244d6ca31d13adc2149deb4cf8534ccce6adaea1df951a8fdab72fee817f6d7fe6b6bb51ec3d238db4326da53c09a3affdffa0e48a5f85dccf85a0a0d2 SHA512 f1a97577116e8780501fcecdfd7f21b3bce219c1a574e34d06fdc2a992c99855887711d4e977277e5b8b7c2c9bf498f7c81f72718911ece8329c35ce46718cd9
|
||||
DIST polkit-0.116.tar.gz 1548311 BLAKE2B e9761a2934136d453a47b81dd1f132f9fc96c45b731d5fceb2aa7706f5325b6499f6acbb68032befc1b21878b1b54754685607c916ca8e02a8accca3ca014b31 SHA512 b66b01cc2bb4349de70147f41f161f0f6f41e7230b581dfb054058b48969ec57041ab05b51787c749ccfc36aa5f317952d7e7ba337b4f6f6c0a923ed5866c2d5
|
||||
EBUILD polkit-0.116-r2.ebuild 3458 BLAKE2B 5e80cb65afa7b60f17e4f89d7cd650d53de0014e3ac7c1bfc70cca3711cadecad7402c9a1e29fcc78dbd2c65c43c15f04c77232a5f2f3d3d6c1a95d22cb26fc3 SHA512 b2d8d072d338f0e8d3f5dd1b2ed703117e8c7433fa59b1d2d0e32e1e76e518708fcacc8ee2e440aa0f7d799bab415d5451dcc60acc9211f1ccd162a7fc2a275a
|
||||
MISC metadata.xml 498 BLAKE2B 8bbfe2ee11b53b77dc26215776a87acd7cade59a5a139ada605f2ad293c569005d2bd517aaee1c6f4ea45251a0cc67f10082c96c2224d47fd84b5e1d87dcb724 SHA512 16ab1ff82daad858eb9adf7396b0e3d5845914eb7d7f1590cdea44fe1a2214043f011cd65cdde2e2195b959bae6581845bc6b4981fd400b3d8719f400f85b6dc
|
||||
28
sys-auth/polkit/files/polkit-0.115-elogind.patch
Normal file
28
sys-auth/polkit/files/polkit-0.115-elogind.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
From 08bb656496cd3d6213bbe9473f63f2d4a110da6e Mon Sep 17 00:00:00 2001
|
||||
From: Rasmus Thomsen <cogitri@exherbo.org>
|
||||
Date: Wed, 11 Apr 2018 13:14:14 +0200
|
||||
Subject: [PATCH] configure: fix elogind support
|
||||
|
||||
HAVE_LIBSYSTEMD is used to determine which source files to use.
|
||||
We have to check if either have_libsystemd or have_libelogind is
|
||||
true, as both of these need the source files which are used when
|
||||
HAVE_LIBSYSTEMD is true.
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 36df239..da47ecb 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -221,7 +221,7 @@ AS_IF([test "x$cross_compiling" != "xyes" ], [
|
||||
|
||||
AC_SUBST(LIBSYSTEMD_CFLAGS)
|
||||
AC_SUBST(LIBSYSTEMD_LIBS)
|
||||
-AM_CONDITIONAL(HAVE_LIBSYSTEMD, [test "$have_libsystemd" = "yes"], [Using libsystemd])
|
||||
+AM_CONDITIONAL(HAVE_LIBSYSTEMD, [test "$have_libsystemd" = "yes" || test "$have_libelogind" = "yes" ], [Using libsystemd])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl - systemd unit / service files
|
||||
--
|
||||
2.17.0
|
||||
1497
sys-auth/polkit/files/polkit-0.116-duktape.patch
Normal file
1497
sys-auth/polkit/files/polkit-0.116-duktape.patch
Normal file
File diff suppressed because it is too large
Load diff
12
sys-auth/polkit/metadata.xml
Normal file
12
sys-auth/polkit/metadata.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>freedesktop-bugs@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="consolekit">Use <pkg>sys-auth/consolekit</pkg> for session tracking</flag>
|
||||
<flag name="elogind">Use <pkg>sys-auth/elogind</pkg> for session tracking</flag>
|
||||
<flag name="systemd">Use <pkg>sys-apps/systemd</pkg> for session tracking</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
135
sys-auth/polkit/polkit-0.116-r2.ebuild
Normal file
135
sys-auth/polkit/polkit-0.116-r2.ebuild
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools pam pax-utils systemd xdg-utils
|
||||
|
||||
DESCRIPTION="Policy framework for controlling privileges for system-wide services"
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit https://gitlab.freedesktop.org/polkit/polkit"
|
||||
SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="consolekit elogind examples gtk +introspection kde nls pam selinux systemd test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
REQUIRED_USE="^^ ( consolekit elogind systemd )"
|
||||
|
||||
BDEPEND="
|
||||
acct-user/polkitd
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/gobject-introspection-common
|
||||
dev-libs/libxslt
|
||||
dev-util/glib-utils
|
||||
dev-util/gtk-doc-am
|
||||
dev-util/intltool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
introspection? ( dev-libs/gobject-introspection )
|
||||
"
|
||||
DEPEND="
|
||||
dev-lang/duktape
|
||||
dev-libs/glib:2
|
||||
dev-libs/expat
|
||||
elogind? ( sys-auth/elogind )
|
||||
pam? (
|
||||
sys-auth/pambase
|
||||
sys-libs/pam
|
||||
)
|
||||
systemd? ( sys-apps/systemd:0=[policykit] )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
acct-user/polkitd
|
||||
selinux? ( sec-policy/selinux-policykit )
|
||||
"
|
||||
PDEPEND="
|
||||
consolekit? ( sys-auth/consolekit[policykit] )
|
||||
gtk? ( || (
|
||||
>=gnome-extra/polkit-gnome-0.105
|
||||
>=lxde-base/lxsession-0.5.2
|
||||
) )
|
||||
kde? ( kde-plasma/polkit-kde-agent )
|
||||
"
|
||||
|
||||
DOCS=( docs/TODO HACKING NEWS README )
|
||||
|
||||
PATCHES=(
|
||||
# bug 660880
|
||||
"${FILESDIR}"/polkit-0.115-elogind.patch
|
||||
#https://bugs.gentoo.org/698910
|
||||
"${FILESDIR}"/polkit-0.116-duktape.patch
|
||||
)
|
||||
|
||||
QA_MULTILIB_PATHS="
|
||||
usr/lib/polkit-1/polkit-agent-helper-1
|
||||
usr/lib/polkit-1/polkitd"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -e 's|unix-group:wheel|unix-user:0|' src/polkitbackend/*-default.rules || die #401513
|
||||
|
||||
# Workaround upstream hack around standard gtk-doc behavior, bug #552170
|
||||
sed -i -e 's/@ENABLE_GTK_DOC_TRUE@\(TARGET_DIR\)/\1/' \
|
||||
-e '/install-data-local:/,/uninstall-local:/ s/@ENABLE_GTK_DOC_TRUE@//' \
|
||||
-e 's/@ENABLE_GTK_DOC_FALSE@install-data-local://' \
|
||||
docs/polkit/Makefile.in || die
|
||||
|
||||
# disable broken test - bug #624022
|
||||
sed -i -e "/^SUBDIRS/s/polkitbackend//" test/Makefile.am || die
|
||||
|
||||
# Fix cross-building, bug #590764, elogind patch, bug #598615
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
xdg_environment_reset
|
||||
|
||||
local myeconfargs=(
|
||||
--localstatedir="${EPREFIX}"/var
|
||||
--disable-static
|
||||
--enable-man-pages
|
||||
--disable-gtk-doc
|
||||
--disable-examples
|
||||
--with-duktape
|
||||
$(use_enable elogind libelogind)
|
||||
$(use_enable introspection)
|
||||
$(use_enable nls)
|
||||
$(usex pam "--with-pam-module-dir=$(getpam_mod_dir)" '')
|
||||
--with-authfw=$(usex pam pam shadow)
|
||||
$(use_enable systemd libsystemd-login)
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
$(use_enable test)
|
||||
--with-os-type=gentoo
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
# Required for polkitd on hardened/PaX due to spidermonkey's JIT
|
||||
pax-mark mr src/polkitbackend/.libs/polkitd test/polkitbackend/.libs/polkitbackendjsauthoritytest
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins src/examples/{*.c,*.policy*}
|
||||
fi
|
||||
|
||||
diropts -m 0700 -o polkitd
|
||||
keepdir /usr/share/polkit-1/rules.d
|
||||
|
||||
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 a new issue