diff --git a/sysutils/polkit/Makefile b/sysutils/polkit/Makefile index 151410a01e7b..432a074478a4 100644 --- a/sysutils/polkit/Makefile +++ b/sysutils/polkit/Makefile @@ -1,79 +1,82 @@ PORTNAME= polkit -DISTVERSION= 124 -PORTREVISION= 3 +DISTVERSION= 125 CATEGORIES= sysutils gnome MAINTAINER= desktop@FreeBSD.org COMMENT= Framework for controlling access to system-wide components WWW= https://github.com/${GH_ACCOUNT}/${GH_PROJECT} LICENSE= LGPL20+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libexpat.so:textproc/expat2 \ libdbus-1.so:devel/dbus USERS= polkitd GROUPS= polkitd USES= compiler:c++17-lang cpe gettext gnome localbase meson \ pathfix pkgconfig shebangfix tar:bz2 USE_GNOME= glib20 intltool introspection:build SHEBANG_FILES= ${WRKSRC}/src/polkitbackend/toarray.pl USE_LDCONFIG= yes CPE_VENDOR= polkit_project USE_GITHUB= yes GH_ACCOUNT= polkit-org MESON_ARGS= -Dpam_include=system \ -Dpam_prefix='etc/pam.d' \ -Dpolkitd_user=${USERS} \ -Dexamples=false \ -Dsession_tracking=ConsoleKit \ -Dtests=false \ -Dintrospection=true \ -Dlocalstatedir=/var \ -Dgtk_doc=false OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT= DUKTAPE OPTIONS_SINGLE= JS OPTIONS_SINGLE_JS= DUKTAPE SPIDERMONKEY JS_DESC= JavaScript engines DUKTAPE_DESC= Duktape JavaScript backend SPIDERMONKEY_DESC= SpiderMonkey JavaScript backend DUKTAPE_LIB_DEPENDS= libduktape.so:lang/duktape-lib DUKTAPE_MESON_ON= -Djs_engine='duktape' SPIDERMONKEY_LIB_DEPENDS= libmozjs-102.so:lang/spidermonkey102 SPIDERMONKEY_MESON_ON= -Djs_engine='mozjs' MANPAGES_BUILD_DEPENDS= docbook-sgml>0:textproc/docbook-sgml \ docbook-xsl>0:textproc/docbook-xsl MANPAGES_USE= gnome=libxslt:build MANPAGES_MESON_TRUE= man OPTIONS_SUB= yes .include post-patch: @${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}/bin/|g' \ ${WRKSRC}/docs/man/pkexec.xml \ ${WRKSRC}/src/examples/org.freedesktop.policykit.examples.pkexec.policy.in @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${PREFIX}|g' \ ${WRKSRC}/docs/man/polkit.xml post-install: + ${RM} -r ${STAGEDIR}/usr/lib/systemd + ${RM} -r ${STAGEDIR}/usr/lib/sysusers.d + ${RM} -r ${STAGEDIR}/usr/lib/tmpfiles.d + @${MKDIR} ${STAGEDIR}/var/lib/polkit-1 \ ${STAGEDIR}${PREFIX}/share/polkit-1/rules.d .for i in 10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d ${MKDIR} ${STAGEDIR}${PREFIX}/etc/polkit-1/localauthority/${i} ${MKDIR} ${STAGEDIR}/var/lib/polkit-1/localauthority/${i} .endfor .include diff --git a/sysutils/polkit/distinfo b/sysutils/polkit/distinfo index 81d75686dd05..70ea00eef283 100644 --- a/sysutils/polkit/distinfo +++ b/sysutils/polkit/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1708114616 -SHA256 (polkit-org-polkit-124_GH0.tar.gz) = 72457d96a0538fd03a3ca96a6bf9b7faf82184d4d67c793eb759168e4fd49e20 -SIZE (polkit-org-polkit-124_GH0.tar.gz) = 757829 +TIMESTAMP = 1725097769 +SHA256 (polkit-org-polkit-125_GH0.tar.gz) = ea5cd6e6e2afa6bad938ee770bf0c2cd9317910f37956faeba2869adcf3747d1 +SIZE (polkit-org-polkit-125_GH0.tar.gz) = 453652 diff --git a/sysutils/polkit/files/patch-src_programs_pkexec.c b/sysutils/polkit/files/patch-src_programs_pkexec.c deleted file mode 100644 index 47fed9033d8a..000000000000 --- a/sysutils/polkit/files/patch-src_programs_pkexec.c +++ /dev/null @@ -1,33 +0,0 @@ ---- src/programs/pkexec.c.orig 2022-07-11 08:46:06 UTC -+++ src/programs/pkexec.c -@@ -37,6 +37,11 @@ - #include - #endif - -+#ifdef __FreeBSD__ -+#include -+#include -+#endif -+ - #include - - #ifdef POLKIT_AUTHFW_PAM -@@ -729,10 +734,17 @@ main (int argc, char *argv[]) - } - - /* make sure we are nuked if the parent process dies */ --#ifdef __linux__ -+#if defined(__linux__) - if (prctl (PR_SET_PDEATHSIG, SIGTERM) != 0) - { - g_printerr ("prctl(PR_SET_PDEATHSIG, SIGTERM) failed: %s\n", g_strerror (errno)); -+ goto out; -+ } -+#elif defined(__FreeBSD__) -+ int _sig = SIGTERM; -+ if (procctl (P_PID, 0, PROC_PDEATHSIG_CTL, &_sig) != 0) -+ { -+ g_printerr ("procctl(2) failed: %s\n", g_strerror (errno)); - goto out; - } - #else diff --git a/sysutils/polkit/pkg-plist b/sysutils/polkit/pkg-plist index 372ebaf72379..406c2b4cc403 100644 --- a/sysutils/polkit/pkg-plist +++ b/sysutils/polkit/pkg-plist @@ -1,98 +1,100 @@ bin/pkaction bin/pkcheck @(root,,4755) bin/pkexec bin/pkttyagent etc/pam.d/polkit-1 etc/polkit-1/rules.d/50-default.rules include/polkit-1/polkit/polkit.h include/polkit-1/polkit/polkitactiondescription.h include/polkit-1/polkit/polkitauthority.h include/polkit-1/polkit/polkitauthorityfeatures.h include/polkit-1/polkit/polkitauthorizationresult.h include/polkit-1/polkit/polkitcheckauthorizationflags.h include/polkit-1/polkit/polkitdetails.h include/polkit-1/polkit/polkitenumtypes.h include/polkit-1/polkit/polkiterror.h include/polkit-1/polkit/polkitidentity.h include/polkit-1/polkit/polkitimplicitauthorization.h include/polkit-1/polkit/polkitpermission.h include/polkit-1/polkit/polkitprivate.h include/polkit-1/polkit/polkitsubject.h include/polkit-1/polkit/polkitsystembusname.h include/polkit-1/polkit/polkittemporaryauthorization.h include/polkit-1/polkit/polkittypes.h include/polkit-1/polkit/polkitunixgroup.h include/polkit-1/polkit/polkitunixnetgroup.h include/polkit-1/polkit/polkitunixprocess.h include/polkit-1/polkit/polkitunixsession.h include/polkit-1/polkit/polkitunixuser.h include/polkit-1/polkitagent/polkitagent.h include/polkit-1/polkitagent/polkitagentenumtypes.h include/polkit-1/polkitagent/polkitagentlistener.h include/polkit-1/polkitagent/polkitagentsession.h include/polkit-1/polkitagent/polkitagenttextlistener.h include/polkit-1/polkitagent/polkitagenttypes.h lib/girepository-1.0/Polkit-1.0.typelib lib/girepository-1.0/PolkitAgent-1.0.typelib lib/libpolkit-agent-1.so lib/libpolkit-agent-1.so.0 lib/libpolkit-agent-1.so.0.0.0 lib/libpolkit-gobject-1.so lib/libpolkit-gobject-1.so.0 lib/libpolkit-gobject-1.so.0.0.0 @(root,,4755) lib/polkit-1/polkit-agent-helper-1 lib/polkit-1/polkitd libdata/pkgconfig/polkit-agent-1.pc libdata/pkgconfig/polkit-gobject-1.pc %%MANPAGES%%share/man/man1/pkaction.1.gz %%MANPAGES%%share/man/man1/pkcheck.1.gz %%MANPAGES%%share/man/man1/pkexec.1.gz %%MANPAGES%%share/man/man1/pkttyagent.1.gz %%MANPAGES%%share/man/man8/polkit.8.gz %%MANPAGES%%share/man/man8/polkitd.8.gz share/dbus-1/system-services/org.freedesktop.PolicyKit1.service share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf share/gettext/its/polkit.its share/gettext/its/polkit.loc share/gir-1.0/Polkit-1.0.gir share/gir-1.0/PolkitAgent-1.0.gir share/locale/cs/LC_MESSAGES/polkit-1.mo share/locale/da/LC_MESSAGES/polkit-1.mo share/locale/de/LC_MESSAGES/polkit-1.mo +share/locale/hi/LC_MESSAGES/polkit-1.mo share/locale/hr/LC_MESSAGES/polkit-1.mo share/locale/hu/LC_MESSAGES/polkit-1.mo share/locale/id/LC_MESSAGES/polkit-1.mo share/locale/it/LC_MESSAGES/polkit-1.mo share/locale/ka/LC_MESSAGES/polkit-1.mo share/locale/nl/LC_MESSAGES/polkit-1.mo share/locale/nn/LC_MESSAGES/polkit-1.mo share/locale/pl/LC_MESSAGES/polkit-1.mo share/locale/pt/LC_MESSAGES/polkit-1.mo share/locale/pt_BR/LC_MESSAGES/polkit-1.mo share/locale/ro/LC_MESSAGES/polkit-1.mo share/locale/ru/LC_MESSAGES/polkit-1.mo share/locale/sk/LC_MESSAGES/polkit-1.mo +share/locale/sl/LC_MESSAGES/polkit-1.mo share/locale/sv/LC_MESSAGES/polkit-1.mo share/locale/tr/LC_MESSAGES/polkit-1.mo share/locale/uk/LC_MESSAGES/polkit-1.mo share/locale/zh_CN/LC_MESSAGES/polkit-1.mo share/locale/zh_TW/LC_MESSAGES/polkit-1.mo share/polkit-1/actions/org.freedesktop.policykit.policy share/polkit-1/policyconfig-1.dtd @dir(polkitd,,700) etc/polkit-1/rules.d @dir(polkitd,,700) share/polkit-1/rules.d @dir etc/polkit-1/localauthority/90-mandatory.d @dir etc/polkit-1/localauthority/50-local.d @dir etc/polkit-1/localauthority/30-site.d @dir etc/polkit-1/localauthority/20-org.d @dir etc/polkit-1/localauthority/10-vendor.d @dir(,,700) etc/polkit-1/localauthority @dir etc/polkit-1 @dir /var/lib/polkit-1/localauthority/90-mandatory.d @dir /var/lib/polkit-1/localauthority/50-local.d @dir /var/lib/polkit-1/localauthority/30-site.d @dir /var/lib/polkit-1/localauthority/20-org.d @dir /var/lib/polkit-1/localauthority/10-vendor.d @dir /var/lib/polkit-1/localauthority @dir(,,700) /var/lib/polkit-1 @dir /var/lib