diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-02-14 03:22:09 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-02-14 03:22:09 +0800 |
commit | 3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc (patch) | |
tree | 2cce4aee3afd5cf944715a6eae9cfb5c11121e37 /sysutils | |
parent | d8e0267a993899e6a1405f1c040b0cf093887f69 (diff) | |
download | marcuscom-ports-3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc.tar marcuscom-ports-3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc.tar.gz marcuscom-ports-3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc.tar.bz2 marcuscom-ports-3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc.tar.lz marcuscom-ports-3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc.tar.xz marcuscom-ports-3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc.tar.zst marcuscom-ports-3de9afa0536ff9ea1a0f36e13aed6f046c78e0cc.zip |
Remove devicekit-power after the repocopy to upower.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13623 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/devicekit-power/Makefile | 44 | ||||
-rw-r--r-- | sysutils/devicekit-power/distinfo | 3 | ||||
-rw-r--r-- | sysutils/devicekit-power/files/patch-0003-add-backend-support-for-obtaining-kernel-info | 221 | ||||
-rw-r--r-- | sysutils/devicekit-power/pkg-descr | 6 | ||||
-rw-r--r-- | sysutils/devicekit-power/pkg-plist | 30 |
5 files changed, 0 insertions, 304 deletions
diff --git a/sysutils/devicekit-power/Makefile b/sysutils/devicekit-power/Makefile deleted file mode 100644 index 51f15fd26..000000000 --- a/sysutils/devicekit-power/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# New ports collection makefile for: DeviceKit-power -# Date Created: 30 December 2009 -# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> -# -# $FreeBSD$ -# $MCom: ports/sysutils/devicekit-power/Makefile,v 1.6 2010/01/09 06:41:35 marcus Exp $ -# - -PORTNAME= DeviceKit-power -DISTVERSION= 014 -CATEGORIES= sysutils -MASTER_SITES= http://hal.freedesktop.org/releases/ - -MAINTAINER= gnome@FreeBSD.org -COMMENT= D-Bus daemon for simplifying power management tasks - -LIB_DEPENDS= polkit-gobject-1.0:${PORTSDIR}/sysutils/polkit \ - dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib - -USE_GETTEXT= 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 \ - xsltproc:${PORTSDIR}/textproc/libxslt \ - ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl -MAN1= devkit-power.1 -MAN7= DeviceKit-power.7 -MAN8= devkit-power-daemon.8 -.endif - -.include <bsd.port.mk> diff --git a/sysutils/devicekit-power/distinfo b/sysutils/devicekit-power/distinfo deleted file mode 100644 index 85cd66920..000000000 --- a/sysutils/devicekit-power/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (DeviceKit-power-014.tar.gz) = 935d37f1e14b3c8a1d6dabcd9a38d3ca -SHA256 (DeviceKit-power-014.tar.gz) = ad3e9a8bd9525d66fadc7fa53ef99e0632aa8cca8fd5bc27483956261153b373 -SIZE (DeviceKit-power-014.tar.gz) = 545297 diff --git a/sysutils/devicekit-power/files/patch-0003-add-backend-support-for-obtaining-kernel-info b/sysutils/devicekit-power/files/patch-0003-add-backend-support-for-obtaining-kernel-info deleted file mode 100644 index 4e1f23282..000000000 --- a/sysutils/devicekit-power/files/patch-0003-add-backend-support-for-obtaining-kernel-info +++ /dev/null @@ -1,221 +0,0 @@ -From 83a4bda6bfc4da2b454a4916f262dc025503b47a Mon Sep 17 00:00:00 2001 -From: Joe Marcus Clarke <marcus@FreeBSD.org> -Date: Sat, 2 Jan 2010 14:04:57 -0500 -Subject: [PATCH 3/3] add backend support for obtaining kernel info - -Add FreeBSD-only support for pulling information about supported -suspend states, commands, swap, etc. from the backend. ---- - src/dkp-backend.h | 14 +++++++ - src/dkp-daemon.c | 99 ++++++++++++++++++++++++++++++++++++----------------- - 2 files changed, 81 insertions(+), 32 deletions(-) - -diff --git a/src/dkp-backend.h b/src/dkp-backend.h -index c03bac9..f4e488f 100644 ---- src/dkp-backend.h -+++ src/dkp-backend.h -@@ -68,6 +68,20 @@ void dkp_backend_test (gpointer user_data); - gboolean dkp_backend_coldplug (DkpBackend *backend, - DkpDaemon *daemon); - -+gboolean dkp_backend_can_suspend (DkpBackend *backend); -+ -+gboolean dkp_backend_can_hibernate (DkpBackend *backend); -+ -+gboolean dkp_backend_has_encrypted_swap (DkpBackend *backend); -+ -+gfloat dkp_backend_get_used_swap (DkpBackend *backend); -+ -+gchar *dkp_backend_get_powersave_command (DkpBackend *backend, gboolean powersave); -+ -+gchar *dkp_backend_get_suspend_command (DkpBackend *backend); -+ -+gchar *dkp_backend_get_hibernate_command (DkpBackend *backend); -+ - G_END_DECLS - - #endif /* __DKP_BACKEND_H */ -diff --git a/src/dkp-daemon.c b/src/dkp-daemon.c -index 47d84d5..4085fb3 100644 ---- src/dkp-daemon.c -+++ src/dkp-daemon.c -@@ -109,6 +109,7 @@ G_DEFINE_TYPE (DkpDaemon, dkp_daemon, G_TYPE_OBJECT) - static gboolean - dkp_daemon_check_sleep_states (DkpDaemon *daemon) - { -+#ifndef __FreeBSD__ - gchar *contents = NULL; - GError *error = NULL; - gboolean ret; -@@ -128,6 +129,12 @@ dkp_daemon_check_sleep_states (DkpDaemon *daemon) - out: - g_free (contents); - return ret; -+#else -+ daemon->priv->kernel_can_suspend = dkp_backend_can_suspend (daemon->priv->backend); -+ daemon->priv->kernel_can_hibernate = dkp_backend_can_hibernate (daemon->priv->backend); -+ -+ return TRUE; -+#endif - } - - /** -@@ -146,6 +153,7 @@ out: - static gboolean - dkp_daemon_check_encrypted_swap (DkpDaemon *daemon) - { -+#ifndef __FreeBSD__ - gchar *contents_swaps = NULL; - gchar *contents_crypttab = NULL; - gchar **lines_swaps = NULL; -@@ -235,6 +243,9 @@ out: - g_strfreev (lines_swaps); - g_strfreev (lines_crypttab); - return encrypted_swap; -+#else -+ return dkp_backend_has_encrypted_swap (daemon->priv->backend); -+#endif - } - - /** -@@ -243,6 +254,7 @@ out: - static gfloat - dkp_daemon_check_swap_space (DkpDaemon *daemon) - { -+#ifndef __FreeBSD__ - gchar *contents = NULL; - gchar **lines = NULL; - GError *error = NULL; -@@ -295,6 +297,9 @@ out: - g_free (contents); - g_strfreev (lines); - return percentage; -+#else -+ return dkp_backend_get_used_swap (daemon->priv->backend); -+#endif - } - - /** -@@ -423,13 +428,21 @@ dkp_daemon_set_pmutils_powersave (DkpDaemon *daemon, gboolean powersave) - GError *error = NULL; - - /* run script from pm-utils */ -+#ifndef __FreeBSD__ - command = g_strdup_printf ("/usr/sbin/pm-powersave %s", powersave ? "true" : "false"); -- egg_debug ("excuting command: %s", command); -- ret = g_spawn_command_line_async (command, &error); -- if (!ret) { -- egg_warning ("failed to run script: %s", error->message); -- g_error_free (error); -- goto out; -+#else -+ command = dkp_backend_get_powersave_command (daemon->priv->backend, powersave); -+#endif -+ if (command != NULL) { -+ egg_debug ("excuting command: %s", command); -+ ret = g_spawn_command_line_async (command, &error); -+ if (!ret) { -+ egg_warning ("failed to run script: %s", error->message); -+ g_error_free (error); -+ goto out; -+ } -+ } else { -+ return TRUE; - } - out: - g_free (command); -@@ -501,6 +514,7 @@ dkp_daemon_suspend (DkpDaemon *daemon, DBusGMethodInvocation *context) - GError *error; - GError *error_local = NULL; - PolkitSubject *subject = NULL; -+ gchar *command = NULL; - gchar *stdout = NULL; - gchar *stderr = NULL; - -@@ -521,19 +535,29 @@ dkp_daemon_suspend (DkpDaemon *daemon, DBusGMethodInvocation *context) - if (!dkp_polkit_check_auth (daemon->priv->polkit, subject, "org.freedesktop.devicekit.power.suspend", context)) - goto out; - -- ret = g_spawn_command_line_sync ("/usr/sbin/pm-suspend", &stdout, &stderr, NULL, &error_local); -- if (!ret) { -- error = g_error_new (DKP_DAEMON_ERROR, -- DKP_DAEMON_ERROR_GENERAL, -- "Failed to spawn: %s, stdout:%s, stderr:%s", error_local->message, stdout, stderr); -- g_error_free (error_local); -- dbus_g_method_return_error (context, error); -- goto out; -+#ifndef __FreeBSD__ -+ command = g_strdup ("/usr/sbin/pm-suspend"); -+#else -+ command = dkp_backend_get_suspend_command (daemon->priv->backend); -+#endif -+ if (command != NULL) { -+ ret = g_spawn_command_line_sync (command, &stdout, &stderr, NULL, &error_local); -+ if (!ret) { -+ error = g_error_new (DKP_DAEMON_ERROR, -+ DKP_DAEMON_ERROR_GENERAL, -+ "Failed to spawn: %s, stdout:%s, stderr:%s", error_local->message, stdout, stderr); -+ g_error_free (error_local); -+ dbus_g_method_return_error (context, error); -+ goto out; -+ } -+ } else { -+ ret = TRUE; - } - dbus_g_method_return (context, NULL); - out: - g_free (stdout); - g_free (stderr); -+ g_free (command); - if (subject != NULL) - g_object_unref (subject); - return TRUE; -@@ -549,6 +573,7 @@ dkp_daemon_hibernate (DkpDaemon *daemon, DBusGMethodInvocation *context) - GError *error; - GError *error_local = NULL; - PolkitSubject *subject = NULL; -+ gchar *command = NULL; - gchar *stdout = NULL; - gchar *stderr = NULL; - -@@ -589,19 +614,29 @@ dkp_daemon_hibernate (DkpDaemon *daemon, DBusGMethodInvocation *context) - if (!dkp_polkit_check_auth (daemon->priv->polkit, subject, "org.freedesktop.devicekit.power.hibernate", context)) - goto out; - -- ret = g_spawn_command_line_sync ("/usr/sbin/pm-hibernate", &stdout, &stderr, NULL, &error_local); -- if (!ret) { -- error = g_error_new (DKP_DAEMON_ERROR, -- DKP_DAEMON_ERROR_GENERAL, -- "Failed to spawn: %s, stdout:%s, stderr:%s", error_local->message, stdout, stderr); -- g_error_free (error_local); -- dbus_g_method_return_error (context, error); -- goto out; -+#ifndef __FreeBSD__ -+ command = g_strdup ("/usr/sbin/pm-hibernate"); -+#else -+ command = dkp_backend_get_hibernate_command (daemon->priv->backend); -+#endif -+ if (command != NULL) { -+ ret = g_spawn_command_line_sync (command, &stdout, &stderr, NULL, &error_local); -+ if (!ret) { -+ error = g_error_new (DKP_DAEMON_ERROR, -+ DKP_DAEMON_ERROR_GENERAL, -+ "Failed to spawn: %s, stdout:%s, stderr:%s", error_local->message, stdout, stderr); -+ g_error_free (error_local); -+ dbus_g_method_return_error (context, error); -+ goto out; -+ } -+ } else { -+ ret = TRUE; - } - dbus_g_method_return (context, NULL); - out: - g_free (stdout); - g_free (stderr); -+ g_free (command); - if (subject != NULL) - g_object_unref (subject); - return TRUE; --- -1.6.5.7 - diff --git a/sysutils/devicekit-power/pkg-descr b/sysutils/devicekit-power/pkg-descr deleted file mode 100644 index cef53e05c..000000000 --- a/sysutils/devicekit-power/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -DeviceKit-power 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://www.freedesktop.org/wiki/Software/DeviceKit diff --git a/sysutils/devicekit-power/pkg-plist b/sysutils/devicekit-power/pkg-plist deleted file mode 100644 index 619d0048c..000000000 --- a/sysutils/devicekit-power/pkg-plist +++ /dev/null @@ -1,30 +0,0 @@ -bin/devkit-power -etc/dbus-1/system.d/org.freedesktop.DeviceKit.Power.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 -lib/libdevkit-power-gobject.a -lib/libdevkit-power-gobject.la -lib/libdevkit-power-gobject.so -lib/libdevkit-power-gobject.so.1 -libdata/pkgconfig/devkit-power-gobject.pc -libexec/devkit-power-daemon -share/dbus-1/interfaces/org.freedesktop.DeviceKit.Power.Device.xml -share/dbus-1/interfaces/org.freedesktop.DeviceKit.Power.QoS.xml -share/dbus-1/interfaces/org.freedesktop.DeviceKit.Power.Wakeups.xml -share/dbus-1/interfaces/org.freedesktop.DeviceKit.Power.xml -share/dbus-1/system-services/org.freedesktop.DeviceKit.Power.service -share/polkit-1/actions/org.freedesktop.devicekit.power.policy -share/polkit-1/actions/org.freedesktop.devicekit.power.qos.policy -@exec mkdir -p /var/lib/DeviceKit-power -@dirrm include/DeviceKit-power/devkit-power-gobject -@dirrm include/DeviceKit-power -@unexec rmdir /var/lib/DeviceKit-power 2>/dev/null || true -@unexec rmdir /var/lib 2>/dev/null || true |