aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorAlberto Villa <avilla@FreeBSD.org>2013-02-09 17:53:53 +0000
committerAlberto Villa <avilla@FreeBSD.org>2013-02-09 17:53:53 +0000
commit132fb9254f55d6cfe1c409a8db0f98de85d1a486 (patch)
treee77e4e11620e601a25a7f778422eddf00db3d829 /sysutils
parent427b4447cc2dc82d2325a315116d502e36a6da96 (diff)
downloadports-132fb9254f55d6cfe1c409a8db0f98de85d1a486.tar.gz
ports-132fb9254f55d6cfe1c409a8db0f98de85d1a486.zip
Notes
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