aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/polkit
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-03-08 18:51:34 +0800
committerkwm <kwm@FreeBSD.org>2013-03-08 18:51:34 +0800
commit77aa43669359356c3cab5041fdfcd537e1cabf09 (patch)
tree961839899dce7f75292a08c079f548973bdbd40d /sysutils/polkit
parent0fdeab2269ff13fcc43d09958d528d0ce5ec786a (diff)
downloadfreebsd-ports-gnome-77aa43669359356c3cab5041fdfcd537e1cabf09.tar.gz
freebsd-ports-gnome-77aa43669359356c3cab5041fdfcd537e1cabf09.tar.zst
freebsd-ports-gnome-77aa43669359356c3cab5041fdfcd537e1cabf09.zip
* Update the glib to 2.34.3 and gtk20 to 2.24.17 and gtk30 to 3.6.4 which
are the latest stable releases. * Update vala to the newest stable release 0.18.1, also update a few ports in the gtk/gnome stack. * The c++ bindings ports for glib, atk, gconf, etc, have now USE_GNOME toggles. * Remove pkg-config run depends from glib20 and freetype2. This doesn't eliminate pkg-config run dependency completely, a second phase is needed and is planned. * Support for .:run. and .:build. for USE_GNOME components was added. Currently only libxml2 and libxslt support this mechanism. * Updates of the telepathy stack and empathy. * Trim makefile headers, convert ports to new options, trim off library versions for some ports. * Fix other ports so they build with the new glib version. Thanks to miwi and crees for helping out with some exp-runs. Approved by: portmgr (miwi & bapt) Obtained from: gnome team repo
Diffstat (limited to 'sysutils/polkit')
-rw-r--r--sysutils/polkit/Makefile35
-rw-r--r--sysutils/polkit/distinfo4
-rw-r--r--sysutils/polkit/files/patch-Makefile.in11
-rw-r--r--sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c12
-rw-r--r--sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c11
-rw-r--r--sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c23
-rw-r--r--sysutils/polkit/files/patch-src_programs_pkexec.c11
-rw-r--r--sysutils/polkit/pkg-descr2
-rw-r--r--sysutils/polkit/pkg-plist9
9 files changed, 85 insertions, 33 deletions
diff --git a/sysutils/polkit/Makefile b/sysutils/polkit/Makefile
index 3408391bfee3..3feb9dda3cc5 100644
--- a/sysutils/polkit/Makefile
+++ b/sysutils/polkit/Makefile
@@ -1,48 +1,51 @@
-# New ports collection makefile for: polkit
-# Date Created: 30 Juli 2009
-# Whom: Koop Mast<kwm@FreeBSD.org>
-#
+# Created by: Koop Mast<kwm@FreeBSD.org>
# $FreeBSD$
-# $MCom: ports/sysutils/polkit/Makefile,v 1.10 2010/09/16 02:09:43 avl Exp $
-#
+# $MCom: ports/sysutils/polkit/Makefile,v 1.23 2012/12/18 13:01:54 kwm Exp $
PORTNAME= polkit
-PORTVERSION= 0.99
+PORTVERSION= 0.105
+PORTREVISION= 1
CATEGORIES= sysutils gnome
-MASTER_SITES= http://hal.freedesktop.org/releases/
+MASTER_SITES= http://www.freedesktop.org/software/polkit/releases/
MAINTAINER= gnome@FreeBSD.org
COMMENT= Framework for controlling access to system-wide components
BUILD_DEPENDS= ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
-LIB_DEPENDS= eggdbus-1.0:${PORTSDIR}/devel/eggdbus \
- expat.6:${PORTSDIR}/textproc/expat2
-RUN_DEPENDS= ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
+LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
+RUN_DEPENDS= ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection \
+ dbus-launch:${PORTSDIR}/devel/dbus
-USE_GNOME= gnomehack glib20 intlhack
+USE_GNOME= gnomehack glib20 intlhack gnomehier
USE_GMAKE= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
+USE_PKGCONFIG= build
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-gtk-doc \
--with-authfw=pam \
--with-pam-include=system \
--with-os-type=freebsd \
+ --disable-systemd \
--enable-introspection \
--localstatedir=/var
CONFIGURE_ENV= GTKDOC="false"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if defined(NO_INSTALL_MANPAGES)
-CONFIGURE_ARGS+=--disable-man-pages
-.else
+OPTIONS_DEFINE= MANPAGES
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMANPAGES}
BUILD_DEPENDS+= ${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410 \
xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
-MAN1= pkaction.1 pkcheck.1 pkexec.1
+MAN1= pkaction.1 pkcheck.1 pkexec.1 pkttyagent.1
MAN8= pklocalauthority.8 polkit.8 polkitd.8
+.else
+CONFIGURE_ARGS+=--disable-man-pages
.endif
post-patch:
diff --git a/sysutils/polkit/distinfo b/sysutils/polkit/distinfo
index bfcebc08b41e..bd125cce13d9 100644
--- a/sysutils/polkit/distinfo
+++ b/sysutils/polkit/distinfo
@@ -1,2 +1,2 @@
-SHA256 (polkit-0.99.tar.gz) = f612c7c26ec822f67751420057a4ae113fc50ab51070758faacf2ad30bb3583f
-SIZE (polkit-0.99.tar.gz) = 1042461
+SHA256 (polkit-0.105.tar.gz) = 8fdc7cc8ba4750fcce1a4db9daa759c12afebc7901237e1c993c38f08985e1df
+SIZE (polkit-0.105.tar.gz) = 1431080
diff --git a/sysutils/polkit/files/patch-Makefile.in b/sysutils/polkit/files/patch-Makefile.in
new file mode 100644
index 000000000000..665c13c7d361
--- /dev/null
+++ b/sysutils/polkit/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2012-05-15 22:09:33.000000000 +0200
++++ Makefile.in 2012-05-15 22:10:16.000000000 +0200
+@@ -292,7 +292,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 \
diff --git a/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c b/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c
new file mode 100644
index 000000000000..c5c5bd8dade8
--- /dev/null
+++ b/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c
@@ -0,0 +1,12 @@
+--- src/polkitagent/polkitagenthelperprivate.c.orig 2011-02-23 18:18:11.000000000 +0000
++++ src/polkitagent/polkitagenthelperprivate.c 2011-02-23 18:18:41.000000000 +0000
+@@ -103,7 +103,7 @@ flush_and_wait ()
+ {
+ fflush (stdout);
+ fflush (stderr);
+- fdatasync (fileno(stdout));
+- fdatasync (fileno(stderr));
++ fsync (fileno(stdout));
++ fsync (fileno(stderr));
+ usleep (100 * 1000);
+ }
diff --git a/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c
new file mode 100644
index 000000000000..76a08f711bcc
--- /dev/null
+++ b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c
@@ -0,0 +1,11 @@
+--- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2012-05-15 21:52:38.000000000 +0200
++++ src/polkitbackend/polkitbackendinteractiveauthority.c 2012-05-15 21:52:49.000000000 +0200
+@@ -279,7 +279,7 @@
+ static volatile GQuark domain = 0;
+
+ /* Force registering error domain */
+- domain = POLKIT_ERROR; domain;
++ domain = POLKIT_ERROR;
+
+ priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
+
diff --git a/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c
new file mode 100644
index 000000000000..f4a57022e5f9
--- /dev/null
+++ b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c
@@ -0,0 +1,23 @@
+--- src/polkitbackend/polkitbackendlocalauthority.c.orig 2012-05-15 21:52:35.000000000 +0200
++++ src/polkitbackend/polkitbackendlocalauthority.c 2012-05-15 21:53:07.000000000 +0200
+@@ -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 (;;)
+ {
+@@ -737,7 +733,6 @@
+
+ ret = g_list_reverse (ret);
+
+- out:
+ endnetgrent ();
+ return ret;
+ }
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 620ebae15918..000000000000
--- a/sysutils/polkit/files/patch-src_programs_pkexec.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/programs/pkexec.c.orig 2010-01-18 02:52:40.000000000 -0500
-+++ src/programs/pkexec.c 2010-01-18 03:06:57.000000000 -0500
-@@ -438,7 +438,7 @@ main (int argc, char *argv[])
- 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");
diff --git a/sysutils/polkit/pkg-descr b/sysutils/polkit/pkg-descr
index 9746a6470c1d..4f0b6a299e16 100644
--- a/sysutils/polkit/pkg-descr
+++ b/sysutils/polkit/pkg-descr
@@ -1,4 +1,4 @@
PolicyKit is a framework for defining policy for system-wide components and
for desktop pieces to configure it. It is used by HAL.
-WWW: http://www.freedesktop.org/wiki/Software/PolicyKit
+WWW: http://www.freedesktop.org/wiki/Software/polkit
diff --git a/sysutils/polkit/pkg-plist b/sysutils/polkit/pkg-plist
index 5f7672022836..e30e9a7d7e01 100644
--- a/sysutils/polkit/pkg-plist
+++ b/sysutils/polkit/pkg-plist
@@ -1,6 +1,8 @@
+bin/pk-example-frobnicate
bin/pkaction
bin/pkcheck
bin/pkexec
+bin/pkttyagent
@unexec if cmp -s %D/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf %D/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf.dist; then rm -f %D/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf ; fi
etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf.dist
@exec [ -f %B/org.freedesktop.PolicyKit1.conf ] || cp %B/%f %B/org.freedesktop.PolicyKit1.conf
@@ -25,6 +27,7 @@ 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
@@ -41,6 +44,7 @@ include/polkit-1/polkitbackend/polkitbackendinteractiveauthority.h
include/polkit-1/polkitbackend/polkitbackendlocalauthority.h
include/polkit-1/polkitbackend/polkitbackendtypes.h
lib/girepository-1.0/Polkit-1.0.typelib
+lib/girepository-1.0/PolkitAgent-1.0.typelib
lib/libpolkit-agent-1.a
lib/libpolkit-agent-1.la
lib/libpolkit-agent-1.so
@@ -56,9 +60,6 @@ lib/libpolkit-gobject-1.so.0
lib/polkit-1/extensions/libnullbackend.a
lib/polkit-1/extensions/libnullbackend.la
lib/polkit-1/extensions/libnullbackend.so
-lib/polkit-1/extensions/libpkexec-action-lookup.a
-lib/polkit-1/extensions/libpkexec-action-lookup.la
-lib/polkit-1/extensions/libpkexec-action-lookup.so
libdata/pkgconfig/polkit-agent-1.pc
libdata/pkgconfig/polkit-backend-1.pc
libdata/pkgconfig/polkit-gobject-1.pc
@@ -66,7 +67,9 @@ libexec/polkit-agent-helper-1
libexec/polkitd
share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
share/gir-1.0/Polkit-1.0.gir
+share/gir-1.0/PolkitAgent-1.0.gir
share/locale/da/LC_MESSAGES/polkit-1.mo
+share/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
share/polkit-1/actions/org.freedesktop.policykit.policy
@dirrmtry share/polkit-1/actions
@dirrmtry share/polkit-1