diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/polkit-gnome/Makefile | 31 | ||||
-rw-r--r-- | sysutils/polkit-gnome/distinfo | 3 | ||||
-rw-r--r-- | sysutils/polkit-gnome/pkg-descr | 5 | ||||
-rw-r--r-- | sysutils/polkit-gnome/pkg-plist | 47 | ||||
-rw-r--r-- | sysutils/polkit/Makefile | 66 | ||||
-rw-r--r-- | sysutils/polkit/distinfo | 3 | ||||
-rw-r--r-- | sysutils/polkit/files/patch-data_Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/polkit/files/patch-src_polkitbackend_Makefile.in | 23 | ||||
-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 | 88 | ||||
-rw-r--r-- | sysutils/upower/Makefile | 49 | ||||
-rw-r--r-- | sysutils/upower/distinfo | 3 | ||||
-rw-r--r-- | sysutils/upower/files/patch-src_freebsd_up-backend.c | 19 | ||||
-rw-r--r-- | sysutils/upower/files/patch-src_up-daemon.c | 20 | ||||
-rw-r--r-- | sysutils/upower/files/patch-src_up-polkit.c | 20 | ||||
-rw-r--r-- | sysutils/upower/pkg-descr | 6 | ||||
-rw-r--r-- | sysutils/upower/pkg-plist | 55 |
19 files changed, 479 insertions, 0 deletions
diff --git a/sysutils/polkit-gnome/Makefile b/sysutils/polkit-gnome/Makefile new file mode 100644 index 000000000..1c135a352 --- /dev/null +++ b/sysutils/polkit-gnome/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: polkit-gnome +# Date Created: 30 Juli 2009 +# Whom: Koop Mast<kwm@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/sysutils/polkit-gnome/Makefile,v 1.10 2010/05/10 04:21:19 marcus Exp $ +# + +PORTNAME= polkit-gnome +PORTVERSION= 0.96 +PORTREVISION= 5 +CATEGORIES= sysutils gnome +MASTER_SITES= http://hal.freedesktop.org/releases/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= GNOME frontend to the PolicKit framework + +LIB_DEPENDS= polkit-gobject-1.0:${PORTSDIR}/sysutils/polkit + +USE_BZIP2= yes +USE_GMAKE= yes +USE_GETTEXT= yes +USE_GNOME= gnomehack gnomeprefix gtk20 intlhack +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +CONFIGURE_ARGS= --disable-gtk-doc \ + --localstatedir=/var +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +.include <bsd.port.mk> diff --git a/sysutils/polkit-gnome/distinfo b/sysutils/polkit-gnome/distinfo new file mode 100644 index 000000000..eed5204a9 --- /dev/null +++ b/sysutils/polkit-gnome/distinfo @@ -0,0 +1,3 @@ +MD5 (polkit-gnome-0.96.tar.bz2) = 611cf39fba2945320fc7a9ec49087e69 +SHA256 (polkit-gnome-0.96.tar.bz2) = 0d96c8032d658a2e1eef8adfbeafff0f569ef0cf68b35915423acc00873c8a92 +SIZE (polkit-gnome-0.96.tar.bz2) = 362723 diff --git a/sysutils/polkit-gnome/pkg-descr b/sysutils/polkit-gnome/pkg-descr new file mode 100644 index 000000000..57dad7b5d --- /dev/null +++ b/sysutils/polkit-gnome/pkg-descr @@ -0,0 +1,5 @@ +PolicyKit is a framework for defining policy for system-wide components and +for desktop pieces to configure it. PolicyKit-gnome is a GTK+/GNOME frontend +for that framework. + +WWW: http://www.freedesktop.org/wiki/Software/PolicyKit diff --git a/sysutils/polkit-gnome/pkg-plist b/sysutils/polkit-gnome/pkg-plist new file mode 100644 index 000000000..3a4f4dddf --- /dev/null +++ b/sysutils/polkit-gnome/pkg-plist @@ -0,0 +1,47 @@ +etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop +include/polkit-gtk-1/polkitgtk/polkitgtk.h +include/polkit-gtk-1/polkitgtk/polkitgtktypes.h +include/polkit-gtk-1/polkitgtk/polkitlockbutton.h +lib/girepository-1.0/PolkitGtk-1.0.typelib +lib/libpolkit-gtk-1.a +lib/libpolkit-gtk-1.la +lib/libpolkit-gtk-1.so +lib/libpolkit-gtk-1.so.0 +libexec/polkit-gnome-authentication-agent-1 +libdata/pkgconfig/polkit-gtk-1.pc +share/gir-1.0/PolkitGtk-1.0.gir +share/locale/ar/LC_MESSAGES/polkit-gnome-1.mo +share/locale/be/LC_MESSAGES/polkit-gnome-1.mo +share/locale/ca/LC_MESSAGES/polkit-gnome-1.mo +share/locale/cs/LC_MESSAGES/polkit-gnome-1.mo +share/locale/da/LC_MESSAGES/polkit-gnome-1.mo +share/locale/de/LC_MESSAGES/polkit-gnome-1.mo +share/locale/el/LC_MESSAGES/polkit-gnome-1.mo +share/locale/en_GB/LC_MESSAGES/polkit-gnome-1.mo +share/locale/es/LC_MESSAGES/polkit-gnome-1.mo +share/locale/eu/LC_MESSAGES/polkit-gnome-1.mo +share/locale/fi/LC_MESSAGES/polkit-gnome-1.mo +share/locale/fr/LC_MESSAGES/polkit-gnome-1.mo +share/locale/gl/LC_MESSAGES/polkit-gnome-1.mo +share/locale/gu/LC_MESSAGES/polkit-gnome-1.mo +share/locale/he/LC_MESSAGES/polkit-gnome-1.mo +share/locale/hu/LC_MESSAGES/polkit-gnome-1.mo +share/locale/it/LC_MESSAGES/polkit-gnome-1.mo +share/locale/ja/LC_MESSAGES/polkit-gnome-1.mo +share/locale/lt/LC_MESSAGES/polkit-gnome-1.mo +share/locale/nb/LC_MESSAGES/polkit-gnome-1.mo +share/locale/pa/LC_MESSAGES/polkit-gnome-1.mo +share/locale/pl/LC_MESSAGES/polkit-gnome-1.mo +share/locale/pt/LC_MESSAGES/polkit-gnome-1.mo +share/locale/pt_BR/LC_MESSAGES/polkit-gnome-1.mo +share/locale/ru/LC_MESSAGES/polkit-gnome-1.mo +share/locale/sk/LC_MESSAGES/polkit-gnome-1.mo +share/locale/sl/LC_MESSAGES/polkit-gnome-1.mo +share/locale/sv/LC_MESSAGES/polkit-gnome-1.mo +share/locale/zh_CN/LC_MESSAGES/polkit-gnome-1.mo +share/locale/zh_HK/LC_MESSAGES/polkit-gnome-1.mo +share/locale/zh_TW/LC_MESSAGES/polkit-gnome-1.mo +@dirrm include/polkit-gtk-1/polkitgtk +@dirrm include/polkit-gtk-1 +@dirrmtry share/locale/zh_HK/LC_MESSAGES +@dirrmtry share/locale/zh_HK diff --git a/sysutils/polkit/Makefile b/sysutils/polkit/Makefile new file mode 100644 index 000000000..e9101e9db --- /dev/null +++ b/sysutils/polkit/Makefile @@ -0,0 +1,66 @@ +# 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.5 2009/11/26 14:22:58 mezz Exp $ +# + +PORTNAME= polkit +PORTVERSION= 0.96 +PORTREVISION= 3 +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..628723b6c --- /dev/null +++ b/sysutils/polkit/distinfo @@ -0,0 +1,3 @@ +MD5 (polkit-0.96.tar.gz) = e0a06da501b04ed3bab986a9df5b5aa2 +SHA256 (polkit-0.96.tar.gz) = 3426ca917210b2a5525732559368c18f983a4c39a6a55c5dddba26071bd8054a +SIZE (polkit-0.96.tar.gz) = 1034210 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_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_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..9c707ff65 --- /dev/null +++ b/sysutils/polkit/pkg-plist @@ -0,0 +1,88 @@ +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/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/polkitagentlistener.h +include/polkit-1/polkitagent/polkitagentsession.h +include/polkit-1/polkitagent/polkitagenttypes.h +include/polkit-1/polkitbackend/polkitbackend.h +include/polkit-1/polkitbackend/polkitbackendactionlookup.h +include/polkit-1/polkitbackend/polkitbackendactionpool.h +include/polkit-1/polkitbackend/polkitbackendauthority.h +include/polkit-1/polkitbackend/polkitbackendconfigsource.h +include/polkit-1/polkitbackend/polkitbackendinteractiveauthority.h +include/polkit-1/polkitbackend/polkitbackendlocalauthority.h +include/polkit-1/polkitbackend/polkitbackendlocalauthorizationstore.h +include/polkit-1/polkitbackend/polkitbackendsessionmonitor.h +include/polkit-1/polkitbackend/polkitbackendtypes.h +lib/girepository-1.0/Polkit-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/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 diff --git a/sysutils/upower/Makefile b/sysutils/upower/Makefile new file mode 100644 index 000000000..4b30b0a4e --- /dev/null +++ b/sysutils/upower/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: DeviceKit-power +# Date Created: 30 December 2009 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/sysutils/upower/Makefile,v 1.15 2010/05/09 17:43:53 marcus Exp $ +# + +PORTNAME= upower +PORTVERSION= 0.9.4 +PORTREVISION= 2 +CATEGORIES= sysutils +MASTER_SITES= http://upower.freedesktop.org/releases/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= D-Bus daemon for simplifying power management tasks + +BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection +LIB_DEPENDS= polkit-gobject-1.0:${PORTSDIR}/sysutils/polkit \ + dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib +RUN_DEPENDS= ${LOCALBASE}/lib/girepository-1.0/GObject-2.0.typelib:${PORTSDIR}/devel/gobject-introspection + +USE_GETTEXT= yes +USE_BZIP2= yes +USE_GMAKE= yes +USE_GNOME= gnomehack intlhack ltverhack glib20 +USE_AUTOTOOLS= libtool:22 +USE_LDCONFIG= yes +USE_PYTHON= yes +CONFIGURE_ARGS= --disable-gtk-doc \ + --with-backend=freebsd \ + --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 \ + ${LOCALBASE}/share/xml/docbook/4.1.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-sk \ + xsltproc:${PORTSDIR}/textproc/libxslt \ + ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl +MAN1= upower.1 +MAN7= UPower.7 +MAN8= upowerd.8 +.endif + +.include <bsd.port.mk> diff --git a/sysutils/upower/distinfo b/sysutils/upower/distinfo new file mode 100644 index 000000000..98dcd0b81 --- /dev/null +++ b/sysutils/upower/distinfo @@ -0,0 +1,3 @@ +MD5 (upower-0.9.4.tar.bz2) = da93329b0938a64ad55a26aa8ee9c807 +SHA256 (upower-0.9.4.tar.bz2) = 39dd138781b2a2d820f1a2bde4ca60dbf99e6def0e0010d4c3d3f4707954a57c +SIZE (upower-0.9.4.tar.bz2) = 468727 diff --git a/sysutils/upower/files/patch-src_freebsd_up-backend.c b/sysutils/upower/files/patch-src_freebsd_up-backend.c new file mode 100644 index 000000000..f6ad11815 --- /dev/null +++ b/sysutils/upower/files/patch-src_freebsd_up-backend.c @@ -0,0 +1,19 @@ +--- src/freebsd/up-backend.c.orig 2010-05-09 13:40:33.000000000 -0400 ++++ src/freebsd/up-backend.c 2010-05-09 13:42:27.000000000 -0400 +@@ -298,16 +298,6 @@ up_backend_coldplug (UpBackend *backend, + } + + /** +- * up_backend_get_powersave_command: +- **/ +-const gchar * +-up_backend_get_powersave_command (UpBackend *backend, gboolean powersave) +-{ +- /* XXX: Do we want to use powerd here? */ +- return NULL; +-} +- +-/** + * up_backend_get_suspend_command: + **/ + const gchar * diff --git a/sysutils/upower/files/patch-src_up-daemon.c b/sysutils/upower/files/patch-src_up-daemon.c new file mode 100644 index 000000000..eea72a87b --- /dev/null +++ b/sysutils/upower/files/patch-src_up-daemon.c @@ -0,0 +1,20 @@ +--- src/up-daemon.c.orig 2010-04-19 11:58:18.000000000 -0400 ++++ src/up-daemon.c 2010-05-09 13:38:28.000000000 -0400 +@@ -488,6 +488,8 @@ up_daemon_suspend_allowed (UpDaemon *dae + goto out; + + ret = up_polkit_is_allowed (priv->polkit, subject, "org.freedesktop.upower.suspend", context); ++ if (!ret) ++ goto out; + dbus_g_method_return (context, ret); + + out: +@@ -575,6 +577,8 @@ up_daemon_hibernate_allowed (UpDaemon *d + goto out; + + ret = up_polkit_is_allowed (priv->polkit, subject, "org.freedesktop.upower.hibernate", context); ++ if (!ret) ++ goto out; + dbus_g_method_return (context, ret); + + out: diff --git a/sysutils/upower/files/patch-src_up-polkit.c b/sysutils/upower/files/patch-src_up-polkit.c new file mode 100644 index 000000000..88a074e99 --- /dev/null +++ b/sysutils/upower/files/patch-src_up-polkit.c @@ -0,0 +1,20 @@ +--- src/up-polkit.c.orig 2010-04-08 21:38:56.000000000 -0400 ++++ src/up-polkit.c 2010-04-09 02:48:12.000000000 -0400 +@@ -69,7 +69,7 @@ up_polkit_check_auth (UpPolkit *polkit, + { + gboolean ret = FALSE; + GError *error; +- GError *error_local; ++ GError *error_local = NULL; + PolkitAuthorizationResult *result; + + /* check auth */ +@@ -104,7 +104,7 @@ up_polkit_is_allowed (UpPolkit *polkit, + { + gboolean ret = FALSE; + GError *error; +- GError *error_local; ++ GError *error_local = NULL; + PolkitAuthorizationResult *result; + + /* check auth */ diff --git a/sysutils/upower/pkg-descr b/sysutils/upower/pkg-descr new file mode 100644 index 000000000..348f53146 --- /dev/null +++ b/sysutils/upower/pkg-descr @@ -0,0 +1,6 @@ +UPower is an abstraction for enumerating power devices, +listening to device events and querying history and statistics. +Any application or service on the system can access the +org.freedesktop.DeviceKit.Power service via the system message bus. + +WWW: http://upower.freedesktop.org/ diff --git a/sysutils/upower/pkg-plist b/sysutils/upower/pkg-plist new file mode 100644 index 000000000..8f96cd1fc --- /dev/null +++ b/sysutils/upower/pkg-plist @@ -0,0 +1,55 @@ +bin/devkit-power +bin/upower +etc/UPower/UPower.conf +etc/dbus-1/system.d/org.freedesktop.UPower.conf +include/DeviceKit-power/devkit-power-gobject/devicekit-power.h +include/DeviceKit-power/devkit-power-gobject/dkp-client.h +include/DeviceKit-power/devkit-power-gobject/dkp-device.h +include/DeviceKit-power/devkit-power-gobject/dkp-enum.h +include/DeviceKit-power/devkit-power-gobject/dkp-history-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-qos-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-stats-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-version.h +include/DeviceKit-power/devkit-power-gobject/dkp-wakeups-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-wakeups.h +include/libupower-glib/up-client.h +include/libupower-glib/up-device.h +include/libupower-glib/up-history-item.h +include/libupower-glib/up-qos-item.h +include/libupower-glib/up-stats-item.h +include/libupower-glib/up-types.h +include/libupower-glib/up-version.h +include/libupower-glib/up-wakeup-item.h +include/libupower-glib/up-wakeups.h +include/libupower-glib/upower.h +lib/girepository-1.0/UPowerGlib-1.0.typelib +lib/libdevkit-power-gobject.a +lib/libdevkit-power-gobject.la +lib/libdevkit-power-gobject.so +lib/libdevkit-power-gobject.so.1 +lib/libupower-glib.a +lib/libupower-glib.la +lib/libupower-glib.so +lib/libupower-glib.so.1 +libdata/pkgconfig/devkit-power-gobject.pc +libdata/pkgconfig/upower-glib.pc +libexec/devkit-power-daemon +libexec/upowerd +share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml +share/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml +share/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml +share/dbus-1/interfaces/org.freedesktop.UPower.xml +share/dbus-1/system-services/org.freedesktop.UPower.service +share/gir-1.0/UPowerGlib-1.0.gir +share/locale/it/LC_MESSAGES/upower.mo +share/locale/pl/LC_MESSAGES/upower.mo +share/locale/sv/LC_MESSAGES/upower.mo +share/polkit-1/actions/org.freedesktop.upower.policy +share/polkit-1/actions/org.freedesktop.upower.qos.policy +@exec mkdir -p /var/lib/DeviceKit-power +@dirrm include/DeviceKit-power/devkit-power-gobject +@dirrm include/DeviceKit-power +@dirrm include/libupower-glib +@dirrm etc/UPower +@unexec rmdir /var/lib/DeviceKit-power 2>/dev/null || true +@unexec rmdir /var/lib 2>/dev/null || true |