[50578] trunk/dports/security

devans at macports.org devans at macports.org
Mon May 4 13:07:17 PDT 2009


Revision: 50578
          http://trac.macports.org/changeset/50578
Author:   devans at macports.org
Date:     2009-05-04 13:07:16 -0700 (Mon, 04 May 2009)
Log Message:
-----------
New port security/policykit version 0.9.

Added Paths:
-----------
    trunk/dports/security/policykit/
    trunk/dports/security/policykit/Portfile
    trunk/dports/security/policykit/files/
    trunk/dports/security/policykit/files/patch-configure.diff
    trunk/dports/security/policykit/files/patch-src-kit-kit-lib.c.diff
    trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-resolve-exe-helper.c.diff
    trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-simple.c.diff
    trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper-pam.c.diff
    trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper.c.diff

Added: trunk/dports/security/policykit/Portfile
===================================================================
--- trunk/dports/security/policykit/Portfile	                        (rev 0)
+++ trunk/dports/security/policykit/Portfile	2009-05-04 20:07:16 UTC (rev 50578)
@@ -0,0 +1,58 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name            policykit
+version         0.9
+description     PolicyKit is an application-level toolkit for defining and \
+                handling the policy that allows unprivileged processes to \
+                speak to privileged processes
+long_description \
+                ${description}
+maintainers     devans openmaintainer
+categories      security
+platforms       darwin
+homepage        http://www.freedesktop.org/wiki/Software/PolicyKit
+master_sites    http://hal.freedesktop.org/releases/
+
+distname        PolicyKit-${version}
+
+checksums       md5     802fd13ae41f73d79359e5ecb0a98716 \
+                sha1    ac99c580eff72f6d5df261c155fb047306439f85 \
+                rmd160  197262d1c48e55558dd4bd57d7bbd8734666129c
+
+patchfiles      patch-configure.diff \
+                patch-src-kit-kit-lib.c.diff \
+                patch-src-polkit-dbus-polkit-simple.c.diff \
+                patch-src-polkit-dbus-polkit-resolve-exe-helper.c.diff \
+                patch-src-polkit-grant-polkit-grant-helper.c.diff \
+                patch-src-polkit-grant-polkit-grant-helper-pam.c.diff
+
+configure.ldflags-append -L/usr/lib
+
+configure.args  --with-authfw=pam \
+                --with-pam-prefix=/etc/pam.d \
+                --with-pam-module-dir=/usr/lib/pam \
+                --disable-selinux \
+                --enable-man-pages \
+                --disable-gtk-doc
+
+depends_build   port:pkgconfig \
+                port:gnome-doc-utils
+
+depends_lib     port:dbus-glib
+
+variant docs description {Build API docs using gtk-doc} {
+        configure.args-delete --disable-gtk-doc
+        depends_build-append  port:gtk-doc
+}
+
+pre-destroot {
+        addgroup  polkituser
+        adduser   polkituser gid=[existsgroup polkituser] realname=Policy\ Kit
+}
+
+livecheck.check regex
+livecheck.url   ${master_sites}
+livecheck.regex "PolicyKit-(\\d+(?:\\.\\d+)*)${extract.suffix}"


Property changes on: trunk/dports/security/policykit/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/security/policykit/files/patch-configure.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-configure.diff	2009-05-04 20:07:16 UTC (rev 50578)
@@ -0,0 +1,14 @@
+--- configure.orig	2008-07-22 09:15:10.000000000 -0700
++++ configure	2009-05-04 09:11:54.000000000 -0700
+@@ -23509,11 +23509,6 @@
+ 
+ 
+ 
+-if test "x$GCC" = "xyes"; then
+-  LDFLAGS="-Wl,--as-needed $LDFLAGS"
+-fi
+-
+-
+ 
+ # Check whether --with-polkit_user was given.
+ if test "${with_polkit_user+set}" = set; then

Added: trunk/dports/security/policykit/files/patch-src-kit-kit-lib.c.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-src-kit-kit-lib.c.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-src-kit-kit-lib.c.diff	2009-05-04 20:07:16 UTC (rev 50578)
@@ -0,0 +1,32 @@
+--- src/kit/kit-lib.c.orig	2009-05-04 09:53:52.000000000 -0700
++++ src/kit/kit-lib.c	2009-05-04 10:02:30.000000000 -0700
+@@ -40,6 +40,10 @@
+ #include <kit/kit.h>
+ #include "kit-test.h"
+ 
++#ifdef __APPLE__
++#include <crt_externs.h>
++#endif
++
+ #ifndef HAVE_GETLINE
+ ssize_t
+ kit_getline (char **lineptr, size_t *n, FILE *stream)
+@@ -118,11 +122,18 @@
+ #endif
+ 
+ #ifndef HAVE_CLEARENV
++#ifdef __APPLE__
++static char **environ;
++#else
+ extern char **environ;
++#endif
+ 
+ int
+ kit_clearenv (void)
+ {
++#ifdef __APPLE__
++        environ = _NSGetEnviron();
++#endif
+         if (environ != NULL)
+                 environ[0] = NULL;
+         return 0;

Added: trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-resolve-exe-helper.c.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-resolve-exe-helper.c.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-resolve-exe-helper.c.diff	2009-05-04 20:07:16 UTC (rev 50578)
@@ -0,0 +1,25 @@
+--- src/polkit-dbus/polkit-resolve-exe-helper.c.orig	2009-05-04 10:27:47.000000000 -0700
++++ src/polkit-dbus/polkit-resolve-exe-helper.c	2009-05-04 10:37:07.000000000 -0700
+@@ -43,7 +43,11 @@
+ #ifdef HAVE_FREEBSD
+ #include <sys/param.h>
+ #endif
++#ifdef __APPLE__
++#include <pam/pam_appl.h>
++#else
+ #include <security/pam_appl.h>
++#endif
+ #include <grp.h>
+ #include <pwd.h>
+ #include <syslog.h>
+@@ -53,6 +57,10 @@
+ #include <fcntl.h>
+ #include <dirent.h>
+ 
++#ifdef __APPLE__
++#include <sys/syslimits.h>
++#endif
++
+ #include <polkit-dbus/polkit-dbus.h>
+ #include <polkit/polkit-private.h>
+ 

Added: trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-simple.c.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-simple.c.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-src-polkit-dbus-polkit-simple.c.diff	2009-05-04 20:07:16 UTC (rev 50578)
@@ -0,0 +1,35 @@
+--- src/polkit-dbus/polkit-simple.c.orig	2009-05-04 10:03:24.000000000 -0700
++++ src/polkit-dbus/polkit-simple.c	2009-05-04 10:10:06.000000000 -0700
+@@ -55,6 +55,9 @@
+ #include "polkit-simple.h"
+ #include "polkit-dbus.h"
+ 
++#ifdef __APPLE__
++#include <crt_externs.h>
++#endif
+ 
+ /**
+  * polkit_check_auth:
+@@ -253,7 +256,11 @@
+         return ret;
+ }
+ 
++#ifdef __APPLE__
++static char **environ;
++#else
+ extern char **environ;
++#endif
+ 
+ static polkit_bool_t
+ _auth_show_dialog_text (const char *action_id, pid_t pid, DBusError *error)
+@@ -275,6 +282,10 @@
+                 goto out;
+         }
+ 
++#ifdef __APPLE__
++        environ = _NSGetEnviron();
++#endif
++
+         envsize = kit_strv_length (environ);
+         envp = kit_new0 (char *, envsize + 3);
+         if (envp == NULL)

Added: trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper-pam.c.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper-pam.c.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper-pam.c.diff	2009-05-04 20:07:16 UTC (rev 50578)
@@ -0,0 +1,15 @@
+--- src/polkit-grant/polkit-grant-helper-pam.c.orig	2009-05-04 11:01:10.000000000 -0700
++++ src/polkit-grant/polkit-grant-helper-pam.c	2009-05-04 11:02:07.000000000 -0700
+@@ -39,8 +39,11 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <syslog.h>
++#ifdef __APPLE__
++#include <pam/pam_appl.h>
++#else
+ #include <security/pam_appl.h>
+-
++#endif
+ #include <kit/kit.h>
+ 
+ #ifdef HAVE_SOLARIS

Added: trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper.c.diff
===================================================================
--- trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper.c.diff	                        (rev 0)
+++ trunk/dports/security/policykit/files/patch-src-polkit-grant-polkit-grant-helper.c.diff	2009-05-04 20:07:16 UTC (rev 50578)
@@ -0,0 +1,15 @@
+--- src/polkit-grant/polkit-grant-helper.c.orig	2008-05-30 14:24:44.000000000 -0700
++++ src/polkit-grant/polkit-grant-helper.c	2009-05-04 10:59:07.000000000 -0700
+@@ -41,8 +41,12 @@
+ #include <sys/stat.h>
+ 
+ #ifdef POLKIT_AUTHFW_PAM
++#ifdef __APPLE__
++#include <pam/pam_appl.h>
++#else
+ #include <security/pam_appl.h>
+ #endif
++#endif
+ 
+ #ifdef POLKIT_AUTHFW_SHADOW
+ #include <shadow.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090504/d8ede361/attachment.html>


More information about the macports-changes mailing list