diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-02-24 01:36:51 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-02-24 01:36:51 +0800 |
commit | 60e9d02dd9f28ec084235819bfef825cbdd594de (patch) | |
tree | eec60ae955fee7b769917bc9ff916717e72fef95 | |
parent | 34960e7df36fd9a3163b405c025148b5d382ac9f (diff) | |
download | marcuscom-ports-60e9d02dd9f28ec084235819bfef825cbdd594de.tar marcuscom-ports-60e9d02dd9f28ec084235819bfef825cbdd594de.tar.gz marcuscom-ports-60e9d02dd9f28ec084235819bfef825cbdd594de.tar.bz2 marcuscom-ports-60e9d02dd9f28ec084235819bfef825cbdd594de.tar.lz marcuscom-ports-60e9d02dd9f28ec084235819bfef825cbdd594de.tar.xz marcuscom-ports-60e9d02dd9f28ec084235819bfef825cbdd594de.tar.zst marcuscom-ports-60e9d02dd9f28ec084235819bfef825cbdd594de.zip |
Update to 0.100.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15284 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | sysutils/polkit/Makefile | 65 | ||||
-rw-r--r-- | sysutils/polkit/distinfo | 2 | ||||
-rw-r--r-- | sysutils/polkit/files/patch-data_Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c | 12 | ||||
-rw-r--r-- | sysutils/polkit/files/patch-src_polkitbackend_Makefile.in | 23 | ||||
-rw-r--r-- | sysutils/polkit/files/patch-src_polkitd_gposixsignal.c | 40 | ||||
-rw-r--r-- | sysutils/polkit/files/patch-src_programs_pkexec.c | 11 | ||||
-rw-r--r-- | sysutils/polkit/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/polkit/pkg-install | 15 | ||||
-rw-r--r-- | sysutils/polkit/pkg-plist | 89 |
10 files changed, 272 insertions, 0 deletions
diff --git a/sysutils/polkit/Makefile b/sysutils/polkit/Makefile new file mode 100644 index 000000000..fd8a34f9d --- /dev/null +++ b/sysutils/polkit/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: polkit +# Date Created: 30 Juli 2009 +# Whom: Koop Mast<kwm@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/sysutils/polkit/Makefile,v 1.10 2010/09/16 02:09:43 avl Exp $ +# + +PORTNAME= polkit +PORTVERSION= 0.100 +CATEGORIES= sysutils gnome +MASTER_SITES= http://hal.freedesktop.org/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 + +USE_GNOME= gnomehack glib20 intlhack +USE_GMAKE= yes +USE_GETTEXT= yes +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +CONFIGURE_ARGS= --disable-gtk-doc \ + --with-authfw=pam \ + --with-pam-include=system \ + --with-os-type=freebsd \ + --enable-introspection \ + --localstatedir=/var +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + GTKDOC="false" + +.if defined(NO_INSTALL_MANPAGES) +CONFIGURE_ARGS+=--disable-man-pages +.else +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 +MAN8= pklocalauthority.8 polkit.8 polkitd.8 +.endif + +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 + +post-install: + ${MKDIR} ${PREFIX}/etc/dbus-1/system.d/ + if [ ! -f ${PREFIX}/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf ]; then \ + ${INSTALL_DATA} ${WRKSRC}/data/org.freedesktop.PolicyKit1.conf \ + ${PREFIX}/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf ; \ + fi + ${INSTALL_DATA} ${WRKSRC}/data/org.freedesktop.PolicyKit1.conf \ + ${PREFIX}/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf.dist +.if !defined(PACKAGE_BUILDING) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif + +.include <bsd.port.mk> diff --git a/sysutils/polkit/distinfo b/sysutils/polkit/distinfo new file mode 100644 index 000000000..c10e89332 --- /dev/null +++ b/sysutils/polkit/distinfo @@ -0,0 +1,2 @@ +SHA256 (polkit-0.100.tar.gz) = afe63bec81b7f49e884ea4f2671ec76db121d84d05f36e75cde9b4ca4c828186 +SIZE (polkit-0.100.tar.gz) = 1050355 diff --git a/sysutils/polkit/files/patch-data_Makefile.in b/sysutils/polkit/files/patch-data_Makefile.in new file mode 100644 index 000000000..c2895461f --- /dev/null +++ b/sysutils/polkit/files/patch-data_Makefile.in @@ -0,0 +1,11 @@ +--- data/Makefile.in.orig 2009-08-01 16:02:38.000000000 +0200 ++++ data/Makefile.in 2009-08-01 16:05:13.000000000 +0200 +@@ -471,7 +471,7 @@ + + info-am: + +-install-data-am: install-dbusconfDATA install-pamDATA \ ++install-data-am: install-pamDATA \ + install-pkgconfigDATA install-serviceDATA + + install-dvi: install-dvi-am 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 000000000..c5c5bd8da --- /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_Makefile.in b/sysutils/polkit/files/patch-src_polkitbackend_Makefile.in new file mode 100644 index 000000000..08db0ab02 --- /dev/null +++ b/sysutils/polkit/files/patch-src_polkitbackend_Makefile.in @@ -0,0 +1,23 @@ +--- src/polkitbackend/Makefile.in.orig 2010-01-18 02:50:30.000000000 -0500 ++++ src/polkitbackend/Makefile.in 2010-01-18 14:18:36.000000000 -0500 +@@ -899,10 +899,18 @@ clean-local : + + install-exec-hook: + mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1 +- mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1/localauthority/{10-vendor.d,20-org.d,30-site.d,50-local.d,90-mandatory.d} ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1/localauthority/10-vendor.d ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1/localauthority/20-org.d ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1/localauthority/30-site.d ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1/localauthority/50-local.d ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1/localauthority/90-mandatory.d + -chmod 700 $(DESTDIR)$(localstatedir)/lib/polkit-1 + mkdir -p $(DESTDIR)$(sysconfdir)/polkit-1 +- mkdir -p $(DESTDIR)$(sysconfdir)/polkit-1/localauthority/{10-vendor.d,20-org.d,30-site.d,50-local.d,90-mandatory.d} ++ mkdir -p $(DESTDIR)$(sysconfdir)/polkit-1/localauthority/10-vendor.d ++ mkdir -p $(DESTDIR)$(sysconfdir)/polkit-1/localauthority/20-org.d ++ mkdir -p $(DESTDIR)$(sysconfdir)/polkit-1/localauthority/30-site.d ++ mkdir -p $(DESTDIR)$(sysconfdir)/polkit-1/localauthority/50-local.d ++ mkdir -p $(DESTDIR)$(sysconfdir)/polkit-1/localauthority/90-mandatory.d + -chmod 700 $(DESTDIR)$(sysconfdir)/polkit-1/localauthority + mkdir -p $(DESTDIR)$(libdir)/polkit-1/extensions + diff --git a/sysutils/polkit/files/patch-src_polkitd_gposixsignal.c b/sysutils/polkit/files/patch-src_polkitd_gposixsignal.c new file mode 100644 index 000000000..4fb366f4f --- /dev/null +++ b/sysutils/polkit/files/patch-src_polkitd_gposixsignal.c @@ -0,0 +1,40 @@ +--- src/polkitd/gposixsignal.c.orig 2010-08-29 20:05:07.000000000 -0400 ++++ src/polkitd/gposixsignal.c 2010-08-29 20:13:20.000000000 -0400 +@@ -23,7 +23,13 @@ + #include "config.h" + + #include <unistd.h> ++#ifdef __FreeBSD__ ++#include <sys/types.h> ++#include <sys/event.h> ++#include <sys/time.h> ++#else + #include <sys/signalfd.h> ++#endif + #include <signal.h> + + #include "gposixsignal.h" +@@ -83,6 +89,9 @@ _g_posix_signal_source_new (gint signum) + gint fd; + GSource *_source; + _GPosixSignalSource *source; ++#ifdef __FreeBSD__ ++ struct kevent ev; ++#endif + + _source = NULL; + +@@ -92,7 +101,13 @@ _g_posix_signal_source_new (gint signum) + if (sigprocmask (SIG_BLOCK, &sigset, NULL) == -1) + g_assert_not_reached (); + ++#ifdef __FreeBSD__ ++ fd = kqueue (); ++ EV_SET (&ev, signum, EVFILT_SIGNAL, EV_ADD, 0, 0, NULL); ++ kevent (fd, &ev, 1, NULL, 0, NULL); ++#else + fd = signalfd (-1, &sigset, SFD_NONBLOCK | SFD_CLOEXEC); ++#endif + + _source = g_source_new (&_g_posix_signal_source_funcs, sizeof (_GPosixSignalSource)); + source = (_GPosixSignalSource *) _source; diff --git a/sysutils/polkit/files/patch-src_programs_pkexec.c b/sysutils/polkit/files/patch-src_programs_pkexec.c new file mode 100644 index 000000000..620ebae15 --- /dev/null +++ b/sysutils/polkit/files/patch-src_programs_pkexec.c @@ -0,0 +1,11 @@ +--- 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 new file mode 100644 index 000000000..9746a6470 --- /dev/null +++ b/sysutils/polkit/pkg-descr @@ -0,0 +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 diff --git a/sysutils/polkit/pkg-install b/sysutils/polkit/pkg-install new file mode 100644 index 000000000..dc204b56b --- /dev/null +++ b/sysutils/polkit/pkg-install @@ -0,0 +1,15 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + mkdir -p /var/lib/polkit-1/localauthority + mkdir -p ${PKG_PREFIX}/etc/polkit-1/localauthority + for i in 10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d; do + mkdir -p /var/lib/polkit-1/localauthority/${i} + mkdir -p ${PKG_PREFIX}/etc/polkit-1/localauthority/${i} + done + chmod 0700 /var/lib/polkit-1 + chmod 0700 ${PKG_PREFIX}/etc/polkit-1 + exit 0 + ;; +esac diff --git a/sysutils/polkit/pkg-plist b/sysutils/polkit/pkg-plist new file mode 100644 index 000000000..bc11fe21d --- /dev/null +++ b/sysutils/polkit/pkg-plist @@ -0,0 +1,89 @@ +bin/pkaction +bin/pkcheck +bin/pkexec +@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 +etc/pam.d/polkit-1 +etc/polkit-1/localauthority.conf.d/50-localauthority.conf +etc/polkit-1/nullbackend.conf.d/50-nullbackend.conf +include/polkit-1/polkit/polkit.h +include/polkit-1/polkit/polkitactiondescription.h +include/polkit-1/polkit/polkitauthorityfeatures.h +include/polkit-1/polkit/polkitauthority.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/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/polkitagenttypes.h +include/polkit-1/polkitagent/polkitagenttextlistener.h +include/polkit-1/polkitbackend/polkitbackend.h +include/polkit-1/polkitbackend/polkitbackendactionlookup.h +include/polkit-1/polkitbackend/polkitbackendauthority.h +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 +lib/libpolkit-agent-1.so.0 +lib/libpolkit-backend-1.a +lib/libpolkit-backend-1.la +lib/libpolkit-backend-1.so +lib/libpolkit-backend-1.so.0 +lib/libpolkit-gobject-1.a +lib/libpolkit-gobject-1.la +lib/libpolkit-gobject-1.so +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 +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.policy +@dirrmtry share/polkit-1/actions +@dirrmtry share/polkit-1 +@dirrm lib/polkit-1/extensions +@dirrm lib/polkit-1 +@dirrm include/polkit-1/polkitbackend +@dirrm include/polkit-1/polkitagent +@dirrm include/polkit-1/polkit +@dirrm include/polkit-1 +@dirrm etc/polkit-1/nullbackend.conf.d +@dirrm etc/polkit-1/localauthority.conf.d +@dirrmtry etc/polkit-1/localauthority/90-mandatory.d +@dirrmtry etc/polkit-1/localauthority/50-local.d +@dirrmtry etc/polkit-1/localauthority/30-site.d +@dirrmtry etc/polkit-1/localauthority/20-org.d +@dirrmtry etc/polkit-1/localauthority/10-vendor.d +@dirrmtry etc/polkit-1/localauthority +@dirrmtry etc/polkit-1 |