From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 31 14:10:19 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91CBA37B404 for ; Thu, 31 Jul 2003 14:10:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49B1343F93 for ; Thu, 31 Jul 2003 14:10:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6VLAHUp016261 for ; Thu, 31 Jul 2003 14:10:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6VLAHAn016260; Thu, 31 Jul 2003 14:10:17 -0700 (PDT) Resent-Date: Thu, 31 Jul 2003 14:10:17 -0700 (PDT) Resent-Message-Id: <200307312110.h6VLAHAn016260@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thorsten Greiner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE1D137B401 for ; Thu, 31 Jul 2003 14:05:08 -0700 (PDT) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1064343FA3 for ; Thu, 31 Jul 2003 14:05:08 -0700 (PDT) (envelope-from thorsten.greiner@web.de) Received: from [80.141.9.22] (helo=tybalt) by smtp.web.de with asmtp (WEB.DE 4.99 #433) id 19iKbi-0006Ar-00 for FreeBSD-gnats-submit@freebsd.org; Thu, 31 Jul 2003 23:05:06 +0200 Message-Id: <20030731210505.GA9461@tybalt> Date: Thu, 31 Jul 2003 23:05:05 +0200 From: Thorsten Greiner Sender: thorsten.greiner@web.de To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55132: New port: sysutils/xfce4-battery-plugin X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 21:10:19 -0000 >Number: 55132 >Category: ports >Synopsis: New port: sysutils/xfce4-battery-plugin >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 31 14:10:16 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Thorsten Greiner >Release: FreeBSD 5.1-CURRENT i386 >Organization: n/a >Environment: System: FreeBSD tybalt 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Jul 30 21:02:42 CEST 2003 root@tybalt:/usr/src/sys/i386/compile/TYBALT i386 >Description: Battery monitor panel plugin for XFce4 >How-To-Repeat: n/a >Fix: Unpack the shar archive # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # xfce4-battery-plugin # xfce4-battery-plugin/Makefile # xfce4-battery-plugin/distinfo # xfce4-battery-plugin/files # xfce4-battery-plugin/files/patch-battmon.c # xfce4-battery-plugin/files/patch-apmlib.c # xfce4-battery-plugin/pkg-plist # xfce4-battery-plugin/pkg-descr # echo c - xfce4-battery-plugin mkdir -p xfce4-battery-plugin > /dev/null 2>&1 echo x - xfce4-battery-plugin/Makefile sed 's/^X//' >xfce4-battery-plugin/Makefile << 'END-of-xfce4-battery-plugin/Makefile' X# New ports collection makefile for: xfce-battery-plugin X# Date created: 31 June 2003 X# Whom: Thorsten Greiner X# X# $FreeBSD$ X# X XPORTNAME= xfce4-battery-plugin XPORTVERSION= 0.1.2 XCATEGORIES= sysutils XMASTER_SITES= http://download.berlios.de/xfce-goodies/ XDISTNAME= xfce4-battery-plugin-${PORTVERSION} XDIST_SUBDIR= xfce4 X XMAINTAINER= ports@FreeBSD.org XCOMMENT= Battery monitor panel plugin for XFce4 X XBUILD_DEPENDS= xfce4-panel:${PORTSDIR}/x11-wm/xfce4-panel XLIB_DEPENDS= xfce4util:${PORTSDIR}/x11/libxfce4util X XUSE_GNOME= gtk20 XUSE_X_PREFIX= yes XGNU_CONFIGURE= yes XCONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} X X.include END-of-xfce4-battery-plugin/Makefile echo x - xfce4-battery-plugin/distinfo sed 's/^X//' >xfce4-battery-plugin/distinfo << 'END-of-xfce4-battery-plugin/distinfo' XMD5 (xfce4/xfce4-battery-plugin-0.1.2.tar.gz) = 387ddb80deff5b9cbf5c5ac94dddbd8f END-of-xfce4-battery-plugin/distinfo echo c - xfce4-battery-plugin/files mkdir -p xfce4-battery-plugin/files > /dev/null 2>&1 echo x - xfce4-battery-plugin/files/patch-battmon.c sed 's/^X//' >xfce4-battery-plugin/files/patch-battmon.c << 'END-of-xfce4-battery-plugin/files/patch-battmon.c' X--- panel-plugin/battmon.c.orig Thu Jul 31 09:34:31 2003 X+++ panel-plugin/battmon.c Thu Jul 31 09:22:21 2003 X@@ -32,6 +32,10 @@ X X #ifdef __FreeBSD__ X #include X+#include X+#ifndef APMDEVICE X+#define APMDEVICE "/dev/apm" X+#endif X #elif __OpenBSD__ X #include X #include X@@ -232,6 +236,14 @@ X time_remaining = apm.ai_batt_time; X time_remaining = time_remaining / 60; /* convert from seconds to minutes */ X charge = apm.ai_batt_life; X+ X+ /* X+ * Work around a bug in the FreeBSD ACPI APM emulation layer which will X+ * sometimes return funny values for the battery life. X+ */ X+ if(charge > 100) { X+ charge = 100; X+ } X #elif __OpenBSD__ X /* Code for OpenBSD by Joe Ammond . Using the same X procedure as for FreeBSD. END-of-xfce4-battery-plugin/files/patch-battmon.c echo x - xfce4-battery-plugin/files/patch-apmlib.c sed 's/^X//' >xfce4-battery-plugin/files/patch-apmlib.c << 'END-of-xfce4-battery-plugin/files/patch-apmlib.c' X--- panel-plugin/apmlib.c.orig Thu Jul 31 09:34:47 2003 X+++ panel-plugin/apmlib.c Thu Jul 31 09:18:25 2003 X@@ -18,6 +18,9 @@ X * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. X * X */ X+ X+#if defined(__linux__) X+ X #include X #include X #include X@@ -463,3 +466,5 @@ X X return buffer; X } X+ X+#endif END-of-xfce4-battery-plugin/files/patch-apmlib.c echo x - xfce4-battery-plugin/pkg-plist sed 's/^X//' >xfce4-battery-plugin/pkg-plist << 'END-of-xfce4-battery-plugin/pkg-plist' Xlib/xfce4/panel-plugins/libbattmon.a Xlib/xfce4/panel-plugins/libbattmon.la Xlib/xfce4/panel-plugins/libbattmon.so X@unexec rmdir %D/lib/xfce4/panel-plugins 2>/dev/null || true X@unexec rmdir %D/lib/xfce4 2>/dev/null || true END-of-xfce4-battery-plugin/pkg-plist echo x - xfce4-battery-plugin/pkg-descr sed 's/^X//' >xfce4-battery-plugin/pkg-descr << 'END-of-xfce4-battery-plugin/pkg-descr' XBattery monitor panel plugin for XFce4. X XWWW: http://www.xfce.org END-of-xfce4-battery-plugin/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted: