WMMemFree shows system memory usage. It runs as a dockapp for window
manager like WindowMaker or some other which supports dockapps. On
the top side you have your physical memory usage and on the bottom there
is your swap space usage.
sysutils/wmmemfree: modernize, unbreak, undeprecate the port (+)
When I ported this dockapp 20 years ago, it was not uncommon to
peek inside ``struct vmmeter'' and other kernel structures with
kvm_read(3) to obtain various data (e.g. page counters).
These interfaces had always been fragile and potentially unsafe
(due to sgid-to-kmem requirement), so let's switch to sysctl(3)
instead as it provides the same data via documented, stable API.
Address another problem while here: the dockapp tried to update
the window from the signal handler, and no Xlib function can be
safely called within a signal handler*. Do as advised and only
raise a "need update" flag upon receiving a signal, then gather
new data and redraw the window in the main loop. This approach,
however, cannot work without modifying process_events() because
of the blocking nature of XNextEvent(3) -- put another select(2)
call in front so it can relinquish control to the outer loop.
[*] http://www-h.eng.cam.ac.uk/help/tpl/graphics/X/signals.html
sysutils/wmmemfree: clean the port up prior to unbreaking it (+)
Ditch most of the gratuitous patching of the program's Makefile
as we only need to adjust object files, compiler, and libraries.
Add USES=xorg USES=gl, ports categories s
Add USES=xorg and USES=gl to ports in categories starting with 's'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
For ports that are marked BROKEN on armv6, and also fail to build on
armv7, mark them so.
This is part two of a multipart commit to bring armv7 ports to parity
with armv6.
Approved by: portmgr (tier-2 blanket)
Obtained from: lonesome.com -exp run
Mark some ports failing on power64. In cases where the error message
was a stub, provide a real one.
While here, pet portlint.
Approved by: portmgr (tier-2 blanket)
Reported by: swills
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
Update my email address to `@FreeBSD.org'.
Relinquish ports I happen to no longer use. They seem to be of the latest
versions, and non-broken, so this is a "clean" dump.
Approved by: fjoe (mentor)
New port: wmmemfree
WMMemFree shows system memory usage. It runs as a dockapp for window
manager like WindowMaker or some other which supports dockapps. On
the top side you have your physical memory usage and on the bottom there
is your swap space usage.
Submitted by: Alexey Dokuchaev