Port details
battray Display notebook battery status in tray
2.3_3 sysutils Σ=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.3_3Version of this port present on the latest quarterly branch.
There is no maintainer for this port.
Any concerns regarding this port should be directed to the FreeBSD Ports mailing list via ports@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2011-08-30 17:27:53
Last Update: 2025-03-08 04:05:21
Commit Hash: 06a08e6
People watching this port, also watch: xgalaga, qemu, nginx, libmicrohttpd, codespell
Also Listed In: python
License: MIT
WWW:
https://github.com/arp242/battray
Description: #
Battray is a python program that displays a tray icon to inform you of the battery status of your notebook. It is also able to take certain actions depending on battery status. It's simple, easy, fairly environment-independent, and "just works" without tons of (Gnome|KDE|..) dependencies.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • battray>0:sysutils/battray
To install the port: #
cd /usr/ports/sysutils/battray/ && make install clean
To add the package, run one of these commands:
  • pkg install sysutils/battray
  • pkg install battray
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: battray
Package flavors (<flavor>: <package>) #
  • py311: battray
distinfo: #
TIMESTAMP = 1511432618 SHA256 (arp242-battray-version-2.3_GH0.tar.gz) = ec0517d389d74ceb6471390051079e80ae53fa287090b9f90813575b593ba56d SIZE (arp242-battray-version-2.3_GH0.tar.gz) = 68972

Packages (timestamps in pop-ups are UTC): #
battray
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest2.3_32.3_32.3_12.3_32.3_3
FreeBSD:14:quarterly2.3_32.3_3-2.3_32.3_3
FreeBSD:15:latest2.3_32.3_3n/a2.3_3n/a
FreeBSD:15:quarterly2.3_32.3_3n/a-n/a
FreeBSD:16:latest2.3_32.3_3n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. py311-pygobject>=0 : devel/py-pygobject@py311
  2. py311-setuptools>=63.1.0 : devel/py-setuptools@py311
  3. python3.11 : lang/python311
Test dependencies: #
  1. python3.11 : lang/python311
Runtime dependencies: #
  1. py311-pygobject>=0 : devel/py-pygobject@py311
  2. python3.11 : lang/python311
Library dependencies: #
  1. libglib-2.0.so : devel/glib20
  2. libintl.so : devel/gettext-runtime
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
sysutils_battray
USES: #
gnome python
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/arp242/battray/tar.gz/version-2.3?dummy=/
Collapse this list.

Number of commits found: 30 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.3_3
08 Mar 2025 04:05:21
commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303 files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal

Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2.3_2
22 Nov 2024 22:31:54
commit hash: 32a55d206da74eb98a7350e72352b2e4b55a81f9commit hash: 32a55d206da74eb98a7350e72352b2e4b55a81f9commit hash: 32a55d206da74eb98a7350e72352b2e4b55a81f9commit hash: 32a55d206da74eb98a7350e72352b2e4b55a81f9 files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
devel/py-pygobject: bump consumer PORTREVISIONs after port rename

With hat: gnome
PR: 273722
2.3_1
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2.3_1
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.3_1
20 Jul 2022 14:23:05
commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
sysutils: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  <jsmith@resonatingmedia.com>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Aaron Landwehr <aaron@snaphat.com>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Adrian Chadd
  *  Adrian Chadd <adrian@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alan Eldridge <alane@FreeBSD.org>
  *  Alan Eldridge <alane@geeksrus.net>
  *  Aldis Berjoza <aldis@bsdroot.lv>
  *  Alex Deiter <alex.deiter@gmail.com>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.3_1
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
2.3_1
08 Nov 2019 13:11:05
Revision:517057commit hash: b4f4d38cda284d4322386d518d01a1032ed14ddccommit hash: b4f4d38cda284d4322386d518d01a1032ed14ddccommit hash: b4f4d38cda284d4322386d518d01a1032ed14ddccommit hash: b4f4d38cda284d4322386d518d01a1032ed14ddcOriginal commit files touched by this commit
tobik search for other commits by this committer
sysutils: Add missing USES={gnome,mate,php}
2.3_1
17 Aug 2019 09:02:38
Revision:509145commit hash: 67540693d8f53503c97df37d00a19baee2621215commit hash: 67540693d8f53503c97df37d00a19baee2621215commit hash: 67540693d8f53503c97df37d00a19baee2621215commit hash: 67540693d8f53503c97df37d00a19baee2621215Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Pet portlint
- Add LICENSE_FILE
- Update WWW and chase moved GitHub account (old account explicitly points to
the new one)
- Checksum unchanged
2.3_1
17 May 2018 09:56:55
Revision:470213commit hash: 78cabb9634d94e4d9598260f0e0da8a26356ce9acommit hash: 78cabb9634d94e4d9598260f0e0da8a26356ce9acommit hash: 78cabb9634d94e4d9598260f0e0da8a26356ce9acommit hash: 78cabb9634d94e4d9598260f0e0da8a26356ce9aOriginal commit files touched by this commit
tz search for other commits by this committer
Drop MAINTAINERship for these ports:

- databases/postgresql-plproxy
- devel/fpp
- devel/gnu-efi
- games/nlarn
- games/wesnoth
- mail/phpmailer
- mail/tlb
- ports-mgmt/pkg-plist
- sysutils/battray
- textproc/xml-parse.el
2.3_1
03 Jan 2018 13:22:32
Revision:457964commit hash: d0cba2b7971cb52f3eeeee96d0b270e4cdc7c221commit hash: d0cba2b7971cb52f3eeeee96d0b270e4cdc7c221commit hash: d0cba2b7971cb52f3eeeee96d0b270e4cdc7c221commit hash: d0cba2b7971cb52f3eeeee96d0b270e4cdc7c221Original commit files touched by this commit
mat search for other commits by this committer
Cleanup Mk/Uses/gnome.mk.

- Remove the use of comp_DETECT.
- Remove all comp_DETECT variables.
- Remove a use of comp_DETECT outside of gnome.mk
- Remove py3gobject3.
- Have ports depending directly on devel/py-gobject3 use gnome to do it.

PR:		224618
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13550
2.3_1
30 Nov 2017 15:50:34
Revision:455210commit hash: 551be3c7231225ed9c26479af2b8914fb2ef0ea8commit hash: 551be3c7231225ed9c26479af2b8914fb2ef0ea8commit hash: 551be3c7231225ed9c26479af2b8914fb2ef0ea8commit hash: 551be3c7231225ed9c26479af2b8914fb2ef0ea8Original commit files touched by this commit Sanity Test Failure
mat search for other commits by this committer
Convert Python ports to FLAVORS.

  Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.3_1
23 Nov 2017 10:35:16
Revision:454752commit hash: 5c2556c036ae2b3cef670dda21c3e80b6b02e671commit hash: 5c2556c036ae2b3cef670dda21c3e80b6b02e671commit hash: 5c2556c036ae2b3cef670dda21c3e80b6b02e671commit hash: 5c2556c036ae2b3cef670dda21c3e80b6b02e671Original commit files touched by this commit
tz search for other commits by this committer
sysutils/battray: Fix distinfo after switch to DISTVERSIONPREFIX

Switch resulted in change of name in distinfo
2.3_1
22 Nov 2017 14:50:22
Revision:454690commit hash: d7b83c2e582339b57a635133287a5c55920d70e7commit hash: d7b83c2e582339b57a635133287a5c55920d70e7commit hash: d7b83c2e582339b57a635133287a5c55920d70e7commit hash: d7b83c2e582339b57a635133287a5c55920d70e7Original commit files touched by this commit
tz search for other commits by this committer
sysutils/battray: Replace GH_TAGNAME with DISTVERSIONPREFIX

Reported by: mat
2.3_1
21 Nov 2017 11:05:14
Revision:454594commit hash: 523889f4a4844b4aea4c97ed500d40046d68e345commit hash: 523889f4a4844b4aea4c97ed500d40046d68e345commit hash: 523889f4a4844b4aea4c97ed500d40046d68e345commit hash: 523889f4a4844b4aea4c97ed500d40046d68e345Original commit files touched by this commit
tz search for other commits by this committer
sysutils/battray: Update to 2.3

The last update was a no-op. Pointy hat to myself.

Switch to GitHub and mitigate the need of a manual commit-adjustment
for an update.

PR:          223624
Reported by: mat, bsd@mkfs.nl
Reviewed by: bsd@mkfs.nl
MFH:         2017Q4
2.3
09 Nov 2017 14:01:32
Revision:453808commit hash: 7a8e6e064cd25d6ae1ce14a12af22b4eb875a488commit hash: 7a8e6e064cd25d6ae1ce14a12af22b4eb875a488commit hash: 7a8e6e064cd25d6ae1ce14a12af22b4eb875a488commit hash: 7a8e6e064cd25d6ae1ce14a12af22b4eb875a488Original commit files touched by this commit
tz search for other commits by this committer
sysutils/battray: Update from 2.1 to 2.3

Fixes this Python 3 issue on FreeBSD 11.1:

battray error: a bytes-like object is required, not 'str'
  File "/usr/local/lib/python3.6/site-packages/battray/__init__.py", line 135,
in update_status
    self.data['lifetime']) =  self.platform()
  File "/usr/local/lib/python3.6/site-packages/battray/platforms.py", line 38,
in freebsd
    for line in o.split('\n'):

PR:          222980
Reported by: bsd@mkfs.nl
MFH:         2017Q4
2.1
10 Jun 2016 09:08:02
Revision:416662commit hash: fa23faa40b41c9670ad2e4080c0531a64eba2969commit hash: fa23faa40b41c9670ad2e4080c0531a64eba2969commit hash: fa23faa40b41c9670ad2e4080c0531a64eba2969commit hash: fa23faa40b41c9670ad2e4080c0531a64eba2969Original commit files touched by this commit
tz search for other commits by this committer
Change MAINTAINER from ports@toco-domains.de to tz@FreeBSD.org

Approved by:	junovitch (mentor)
2.1
19 May 2016 10:53:06
Revision:415500commit hash: 1f8b48b772b2d0ac0ed48a8259d2117ea3236a90commit hash: 1f8b48b772b2d0ac0ed48a8259d2117ea3236a90commit hash: 1f8b48b772b2d0ac0ed48a8259d2117ea3236a90commit hash: 1f8b48b772b2d0ac0ed48a8259d2117ea3236a90Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Fix trailing whitespace in pkg-descrs, categories [p-x]*

Approved by:	portmgr blanket
2.1
02 Feb 2016 20:01:44
Revision:407841commit hash: 1d86d24911c97521bee5594fcace862d0e47a106commit hash: 1d86d24911c97521bee5594fcace862d0e47a106commit hash: 1d86d24911c97521bee5594fcace862d0e47a106commit hash: 1d86d24911c97521bee5594fcace862d0e47a106Original commit files touched by this commit
rm search for other commits by this committer
Bump minimal python3 version to 3.3 in USES

Because we are going to remove python 3.2 from the ports tree

With hat:   python
2.1
22 Dec 2015 02:00:48
Revision:404201commit hash: 4c1a479a7c6da618b6598d0e5c0146a1e49e10a4commit hash: 4c1a479a7c6da618b6598d0e5c0146a1e49e10a4commit hash: 4c1a479a7c6da618b6598d0e5c0146a1e49e10a4commit hash: 4c1a479a7c6da618b6598d0e5c0146a1e49e10a4Original commit files touched by this commit
miwi search for other commits by this committer
- Update to 2.1
- Switch to autoplist
- Pass maintainership to submitter

PR:		204523
Submitted by:	Torsten Zuehlsdorff
Approved by:	mat (mentor), maintainer timeout
Differential Revision:	D4654
1.5
14 May 2015 10:15:09
Revision:386312commit hash: 60d1a83c2a113150cedbc43ff12a7375144f741acommit hash: 60d1a83c2a113150cedbc43ff12a7375144f741acommit hash: 60d1a83c2a113150cedbc43ff12a7375144f741acommit hash: 60d1a83c2a113150cedbc43ff12a7375144f741aOriginal commit files touched by this commit
mat search for other commits by this committer
MASTER_SITES cleanup.

- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
1.5
11 Dec 2014 00:40:17
Revision:374505commit hash: 52425cd450f57306fb9841a38f07c36322a1ffd5commit hash: 52425cd450f57306fb9841a38f07c36322a1ffd5commit hash: 52425cd450f57306fb9841a38f07c36322a1ffd5commit hash: 52425cd450f57306fb9841a38f07c36322a1ffd5Original commit files touched by this commit
feld search for other commits by this committer
Update "BSD" license in sysutils category
1.5
22 Nov 2014 09:13:36
Revision:373038commit hash: 23b328aaf92d41146bb67d97e1b60088eab480e0commit hash: 23b328aaf92d41146bb67d97e1b60088eab480e0commit hash: 23b328aaf92d41146bb67d97e1b60088eab480e0commit hash: 23b328aaf92d41146bb67d97e1b60088eab480e0Original commit files touched by this commit
antoine search for other commits by this committer
Cleanup plist
1.5
24 Oct 2014 16:56:10
Revision:371454commit hash: fae188751b59d1700f6a3231d48e1eb5e4959e90commit hash: fae188751b59d1700f6a3231d48e1eb5e4959e90commit hash: fae188751b59d1700f6a3231d48e1eb5e4959e90commit hash: fae188751b59d1700f6a3231d48e1eb5e4959e90Original commit files touched by this commit
mva search for other commits by this committer
- Convert ports of sysutils/ to new USES=python

Approved by:	portmgr (implicit)
1.5
26 Jun 2014 15:35:24
Revision:359375commit hash: ea91cdc1ad8dbf3a80ffede25f7bad55fa9d5e30commit hash: ea91cdc1ad8dbf3a80ffede25f7bad55fa9d5e30commit hash: ea91cdc1ad8dbf3a80ffede25f7bad55fa9d5e30commit hash: ea91cdc1ad8dbf3a80ffede25f7bad55fa9d5e30Original commit files touched by this commit
vanilla search for other commits by this committer
Stagify.

Approved by:	portmgr@ (blanket approval)
1.5
20 Sep 2013 23:06:00
Revision:327772commit hash: 83f65384c9041fa9a31c84b5e21b643fa2bf97c6commit hash: 83f65384c9041fa9a31c84b5e21b643fa2bf97c6commit hash: 83f65384c9041fa9a31c84b5e21b643fa2bf97c6commit hash: 83f65384c9041fa9a31c84b5e21b643fa2bf97c6Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
sysutils)
1.5
12 Jul 2012 13:05:40
Original commit files touched by this commit
culot search for other commits by this committer
- Update to 1.5

PR:             ports/169793
Submitted by:   Martin Tournoij <martin@arp242.net> (maintainer)
1.4_1
01 Jun 2012 05:26:28
Original commit files touched by this commit
dinoex search for other commits by this committer
- update png to 1.5.10
1.4
28 Sep 2011 19:25:51
Original commit files touched by this commit
pawel search for other commits by this committer
Update to version 1.4

PR:             ports/161024
Submitted by:   Martin Tournoij <martin@arp242.net> (maintainer)
Approved by:    miwi, wen (mentors implicit)
1.3
30 Aug 2011 17:27:36
Original commit files touched by this commit
eadler search for other commits by this committer
Battray is a python program that displays a tray icon to inform you of the
battery status of your notebook.

It is also able to take certain actions depending on battery status.

It's simple, easy, fairly environment-independent, and "just works" without
tons of (Gnome|KDE|..) dependencies.

WWW: http://code.google.com/p/battray/

PR:             ports/159152
Submitted by:   Martin Tournoij <carpetsmoker@daemonforums.org>
Approved by:    bapt (mentor)

Number of commits found: 30