[104533] trunk/dports/security/policykit

devans at macports.org devans at macports.org
Tue Mar 26 23:17:20 PDT 2013


Revision: 104533
          https://trac.macports.org/changeset/104533
Author:   devans at macports.org
Date:     2013-03-26 23:17:19 -0700 (Tue, 26 Mar 2013)
Log Message:
-----------
policykit: update to version 0.104.

Modified Paths:
--------------
    trunk/dports/security/policykit/Portfile
    trunk/dports/security/policykit/files/patch-configure.diff

Added Paths:
-----------
    trunk/dports/security/policykit/files/patch-no-tests.diff
    trunk/dports/security/policykit/files/patch-setnetgrent-returns-void.diff

Removed Paths:
-------------
    trunk/dports/security/policykit/files/patch-src-programs-pkexec.c.diff

Modified: trunk/dports/security/policykit/Portfile
===================================================================
--- trunk/dports/security/policykit/Portfile	2013-03-27 05:29:52 UTC (rev 104532)
+++ trunk/dports/security/policykit/Portfile	2013-03-27 06:17:19 UTC (rev 104533)
@@ -4,8 +4,7 @@
 PortSystem 1.0
 
 name            policykit
-version         0.103
-revision        2
+version         0.104
 description     PolicyKit is an application-level toolkit for defining and \
                 handling the policy that allows unprivileged processes to \
                 speak to privileged processes
@@ -20,40 +19,47 @@
 
 distname        polkit-${version}
 
-checksums       rmd160  50aad2a95649771727b8fc42e8bbbe2ad5f7b5e8 \
-                sha256  36607c8ce576980ee55bd12bab1944f13217eb8e9d04ab56022545861ece3bc5
+checksums       rmd160  244e825347a463ff4b9eb0a2318ab04c821bded9 \
+                sha256  6b0a13d8381e4a7b7e37c18a54595191b50757e0fcd186cd9918e9ad0f18c7f9
 
-patchfiles      patch-configure.diff
+patchfiles      patch-configure.diff \
+                patch-setnetgrent-returns-void.diff \
+                patch-no-tests.diff
 
 pre-patch {
     if {${os.platform} == "darwin" && ${os.major} < 10} {
         patchfiles-append patch-fdatasync.diff
-                        reinplace "s|security/pam|pam/pam|" ${worksrcpath}/configure \
-                            ${worksrcpath}/src/polkitagent/polkitagenthelper-pam.c \
-                            ${worksrcpath}/src/programs/pkexec.c
-                    }
-                }
+        reinplace "s|security/pam|pam/pam|" ${worksrcpath}/configure \
+            ${worksrcpath}/src/polkitagent/polkitagenthelper-pam.c \
+            ${worksrcpath}/src/programs/pkexec.c
+    }
+}
 
+# The perl executable should be the one explicitly required by intltool
+configure.env-append  INTLTOOL_PERL=${prefix}/bin/perl5.12
+
 configure.cflags-append -I/usr/include
 configure.ldflags-append -L/usr/lib
 
 configure.args  --with-authfw=pam \
                 --with-pam-prefix=/etc/pam.d \
                 --with-pam-module-dir=/usr/lib/pam \
+                --enable-systemd=no \
                 --disable-introspection \
                 --disable-silent-rules \
                 --enable-man-pages \
                 --disable-gtk-doc
 
-# The perl executable should be the one explicitly required by intltool
-configure.env-append  INTLTOOL_PERL=${prefix}/bin/perl5.12
-
 depends_build   port:pkgconfig \
                 port:intltool \
                 port:gnome-doc-utils
 
-depends_lib     port:eggdbus
+depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2
 
+destroot.keepdirs \
+                ${destroot}${prefix}/etc/polkit-1/localauthority \
+                ${destroot}${prefix}/var/lib/polkit-1
+
 variant docs description {Build API docs using gtk-doc} {
         configure.args-delete --disable-gtk-doc
         depends_build-append  port:gtk-doc

Modified: trunk/dports/security/policykit/files/patch-configure.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-configure.diff	2013-03-27 05:29:52 UTC (rev 104532)
+++ trunk/dports/security/policykit/files/patch-configure.diff	2013-03-27 06:17:19 UTC (rev 104533)
@@ -1,14 +1,15 @@
---- configure.orig	2011-08-01 06:42:12.000000000 -0700
-+++ configure	2011-09-09 18:59:29.000000000 -0700
-@@ -13839,11 +13839,6 @@
+--- configure.orig	2013-02-18 19:45:58.000000000 -0800
++++ configure	2013-02-18 19:47:27.000000000 -0800
+@@ -13962,9 +13962,9 @@
  done
  
  
 -if test "x$GCC" = "xyes"; then
 -  LDFLAGS="-Wl,--as-needed $LDFLAGS"
 -fi
--
--
++#if test "x$GCC" = "xyes"; then
++#  LDFLAGS="-Wl,--as-needed $LDFLAGS"
++#fi
  
- # Check whether --with-authfw was given.
- if test "${with_authfw+set}" = set; then :
+ 
+ have_systemd=no

Added: trunk/dports/security/policykit/files/patch-no-tests.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-no-tests.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-no-tests.diff	2013-03-27 06:17:19 UTC (rev 104533)
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2013-03-26 15:15:12.000000000 -0700
++++ Makefile.in	2013-03-26 15:15:55.000000000 -0700
+@@ -282,7 +282,7 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = actions data src docs po test
++SUBDIRS = actions data src docs po
+ NULL = 
+ EXTRA_DIST = \
+ 	HACKING 		\

Added: trunk/dports/security/policykit/files/patch-setnetgrent-returns-void.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-setnetgrent-returns-void.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-setnetgrent-returns-void.diff	2013-03-27 06:17:19 UTC (rev 104533)
@@ -0,0 +1,15 @@
+--- src/polkitbackend/polkitbackendlocalauthority.c.orig	2013-03-26 15:01:29.000000000 -0700
++++ src/polkitbackend/polkitbackendlocalauthority.c	2013-03-26 15:02:35.000000000 -0700
+@@ -700,11 +700,7 @@
+   ret = NULL;
+   name = polkit_unix_netgroup_get_name (POLKIT_UNIX_NETGROUP (group));
+ 
+-  if (setnetgrent (name) == 0)
+-    {
+-      g_warning ("Error looking up net group with name %s: %s", name, g_strerror (errno));
+-      goto out;
+-    }
++  setnetgrent (name);
+ 
+   for (;;)
+     {

Deleted: trunk/dports/security/policykit/files/patch-src-programs-pkexec.c.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-src-programs-pkexec.c.diff	2013-03-27 05:29:52 UTC (rev 104532)
+++ trunk/dports/security/policykit/files/patch-src-programs-pkexec.c.diff	2013-03-27 06:17:19 UTC (rev 104533)
@@ -1,11 +0,0 @@
---- src/programs/pkexec.c.orig	2010-08-14 13:24:32.000000000 -0700
-+++ src/programs/pkexec.c	2010-08-14 13:30:52.000000000 -0700
-@@ -438,7 +438,7 @@
-       goto out;
-     }
- 
--  original_cwd = g_strdup (get_current_dir_name ());
-+  original_cwd = g_strdup (getcwd(NULL, 0));
-   if (original_cwd == NULL)
-     {
-       g_printerr ("Error getting cwd.\n");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130326/8933dde4/attachment.html>


More information about the macports-changes mailing list