summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2017-10-01 07:43:22 +0000
committertcberner <tcberner@FreeBSD.org>2017-10-01 07:43:22 +0000
commit3795c08af452bf493f114ec273f604485a91c23f (patch)
treee57d55d9dff031e707e42e4b5be06a6927380e5e
parentaa86c2dd596c5696fcb11e7e7b09334fdd1e5d52 (diff)
downloadFreeBSD-ports-3795c08af452bf493f114ec273f604485a91c23f.zip
FreeBSD-ports-3795c08af452bf493f114ec273f604485a91c23f.tar.gz
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)
-rw-r--r--sysutils/dsbbatmon/Makefile14
-rw-r--r--sysutils/dsbbatmon/distinfo5
-rw-r--r--sysutils/dsbbatmon/pkg-descr6
-rw-r--r--sysutils/dsbbatmon/pkg-message15
-rw-r--r--sysutils/dsbbatmon/pkg-plist2
5 files changed, 27 insertions, 15 deletions
diff --git a/sysutils/dsbbatmon/Makefile b/sysutils/dsbbatmon/Makefile
index 2a9c904..8a9f580 100644
--- a/sysutils/dsbbatmon/Makefile
+++ b/sysutils/dsbbatmon/Makefile
@@ -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>
diff --git a/sysutils/dsbbatmon/distinfo b/sysutils/dsbbatmon/distinfo
index 381157e..4944fe4 100644
--- a/sysutils/dsbbatmon/distinfo
+++ b/sysutils/dsbbatmon/distinfo
@@ -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
diff --git a/sysutils/dsbbatmon/pkg-descr b/sysutils/dsbbatmon/pkg-descr
index ffe1138..9e32724 100644
--- a/sysutils/dsbbatmon/pkg-descr
+++ b/sysutils/dsbbatmon/pkg-descr
@@ -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
diff --git a/sysutils/dsbbatmon/pkg-message b/sysutils/dsbbatmon/pkg-message
new file mode 100644
index 0000000..9055f4c
--- /dev/null
+++ b/sysutils/dsbbatmon/pkg-message
@@ -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.
+
+**************************************************************************
diff --git a/sysutils/dsbbatmon/pkg-plist b/sysutils/dsbbatmon/pkg-plist
index 3d1b32e..85604b4 100644
--- a/sysutils/dsbbatmon/pkg-plist
+++ b/sysutils/dsbbatmon/pkg-plist
@@ -1,3 +1,3 @@
bin/dsbbatmon
share/applications/dsbbatmon.desktop
-%%NLS%%share/locale/de/LC_MESSAGES/dsbbatmon.mo
+%%DATADIR%%/dsbbatmon_de.qm
OpenPOWER on IntegriCloud