Date: Sat, 9 Feb 2013 17:53:53 +0000 (UTC) From: Alberto Villa <avilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311989 - in head/sysutils/upower: . files Message-ID: <201302091753.r19Hrrw6018001@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avilla Date: Sat Feb 9 17:53:53 2013 New Revision: 311989 URL: http://svnweb.freebsd.org/changeset/ports/311989 Log: - 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) Added: head/sysutils/upower/files/ head/sysutils/upower/files/patch-src__freebsd__up-backend.c (contents, props changed) Modified: head/sysutils/upower/Makefile (contents, props changed) Modified: head/sysutils/upower/Makefile ============================================================================== --- head/sysutils/upower/Makefile Sat Feb 9 17:17:54 2013 (r311988) +++ head/sysutils/upower/Makefile Sat Feb 9 17:53:53 2013 (r311989) @@ -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/ Added: head/sysutils/upower/files/patch-src__freebsd__up-backend.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/upower/files/patch-src__freebsd__up-backend.c Sat Feb 9 17:53:53 2013 (r311989) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302091753.r19Hrrw6018001>