aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoravilla <avilla@FreeBSD.org>2013-02-10 01:53:53 +0800
committeravilla <avilla@FreeBSD.org>2013-02-10 01:53:53 +0800
commit1c94dafffda342e4ba404b111e38dea890a30f80 (patch)
treee77e4e11620e601a25a7f778422eddf00db3d829 /sysutils
parent4d95873a36a17d1f491f1bd9b5acb8b3f0a44e31 (diff)
downloadfreebsd-ports-gnome-1c94dafffda342e4ba404b111e38dea890a30f80.tar.gz
freebsd-ports-gnome-1c94dafffda342e4ba404b111e38dea890a30f80.tar.zst
freebsd-ports-gnome-1c94dafffda342e4ba404b111e38dea890a30f80.zip
- Correctly detect laptop lid.
- Bump PORTREVISION. Among other things, this commit lets KDE Workspaces react on lid closing (e.g., sleep/lock on lid closing). PR: 175531 Submitted by: avilla (myself) Approved by: gnome (maintainer timeout)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/upower/Makefile7
-rw-r--r--sysutils/upower/files/patch-src__freebsd__up-backend.c11
2 files changed, 13 insertions, 5 deletions
diff --git a/sysutils/upower/Makefile b/sysutils/upower/Makefile
index df0b57a5f25c..b3a023b006f6 100644
--- a/sysutils/upower/Makefile
+++ b/sysutils/upower/Makefile
@@ -1,13 +1,10 @@
-# New ports collection makefile for: DeviceKit-power
-# Date Created: 30 December 2009
-# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
-#
+# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/sysutils/upower/Makefile,v 1.19 2010/10/05 08:30:15 kwm Exp $
-#
PORTNAME= upower
PORTVERSION= 0.9.7
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://upower.freedesktop.org/releases/
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 000000000000..e08fa23f8f21
--- /dev/null
+++ b/sysutils/upower/files/patch-src__freebsd__up-backend.c
@@ -0,0 +1,11 @@
+--- ./src/freebsd/up-backend.c.orig 2010-11-01 12:28:43.000000000 +0100
++++ ./src/freebsd/up-backend.c 2013-01-23 02:42:21.293236052 +0100
+@@ -227,7 +227,7 @@
+ gchar *lid_state;
+
+ lid_state = up_get_string_sysctl (NULL, "hw.acpi.lid_switch_state");
+- if (lid_state && strcmp (lid_state, "NONE")) {
++ if (lid_state) {
+ up_daemon_set_lid_is_present (backend->priv->daemon, TRUE);
+ }
+ g_free (lid_state); \ No newline at end of file