Update sysutils/dsbbatmon to 1.0

The following changes have been made:

- Switch from GTK+ to Qt.
- Change tray icon depending on battery status.
- Generate tray icons if no theme icons are available.
- Detect if battery was added to or removed from the system.
- Let the user choose between auto-shutdown and auto-suspend.
- Let the user configure the ACPI poll interval.

PR:		221912
Submitted by:	Marcel Kaiser <mk@nic-nac-project.org> (maintainer)
This commit is contained in:
Tobias C. Berner 2017-10-01 07:43:22 +00:00
parent c72b9d105d
commit c6e0b8867f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=451026
5 changed files with 27 additions and 15 deletions

View file

@ -1,23 +1,19 @@
# $FreeBSD$
PORTNAME= dsbbatmon
PORTVERSION= 0.1.2
PORTVERSION= 1.0
CATEGORIES= sysutils
MASTER_SITES= http://freeshell.de/~mk/download/
MAINTAINER= mk@nic-nac-project.org
COMMENT= GTK+ battery monitor
COMMENT= Qt battery monitor
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= pkgconfig tar:tgz
USE_GNOME= gtk20
USES= tar:tgz qmake
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_MAKE_ARGS_OFF= -DWITHOUT_GETTEXT
USE_GL= gl
USE_QT5= buildtools_build core gui linguisttools_build widgets
.include <bsd.port.mk>

View file

@ -1,2 +1,3 @@
SHA256 (dsbbatmon-0.1.2.tgz) = 298f63f18cf371bc4c75d82f5dbe3191fe539feb40441ca22e0d00da026ed31d
SIZE (dsbbatmon-0.1.2.tgz) = 74240
TIMESTAMP = 1504017664
SHA256 (dsbbatmon-1.0.tgz) = fb630d3618dfa41665a6fa852a0a61feef2eee040c4534673c790154198235a3
SIZE (dsbbatmon-1.0.tgz) = 21044

View file

@ -1,6 +1,6 @@
DSBBatmon is a GTK+ battery monitor for FreeBSD. It displays the battery's
DSBBatmon is a Qt battery monitor for FreeBSD. It displays the battery's
current status, capacity, and remaining time. It warns the user if the battery
capacity is low, and can automatically shut down the system if a critical
capacity is reached.
capacity is low, and can automatically shut down or suspend the system if a
critical capacity is reached.
WWW: http://freeshell.de/~mk/projects/dsbbatmon.html

View file

@ -0,0 +1,15 @@
**************************************************************************
In order to be able to execute shutdown as regular user, you can either
use sudo(8) (see below), or you can add your username to the operator
group:
# pw groupmod operator -m yourusername
If you want to be able to suspend your system as regular user who is
member of the wheel group, you can use sudo(8). Add
%wheel ALL=(ALL) NOPASSWD: /usr/sbin/acpiconf *
to ${PREFIX}/etc/sudoers.
**************************************************************************

View file

@ -1,3 +1,3 @@
bin/dsbbatmon
share/applications/dsbbatmon.desktop
%%NLS%%share/locale/de/LC_MESSAGES/dsbbatmon.mo
%%DATADIR%%/dsbbatmon_de.qm