GNOME panel applet that displays the CPU + memory load

This commit is contained in:
todd 2001-09-13 20:51:03 +00:00
parent e2faf76c55
commit 5f5434d3f1
7 changed files with 208 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/09/13 20:51:03 todd Exp $
COMMENT= "GNOME panel applet that displays the CPU + memory load"
V= 1.0.5
DISTNAME= bubblemon-${V}
CATEGORIES= x11
NEED_VERSION= 1.384
HOMEPAGE= http://www.d.kth.se/~d92-jwa/code/
MAINTAINER= Nils Nordman <nino@nforced.com>
MASTER_SITES= http://www.d.kth.se/~d92-jwa/code/bubblemon/ \
http://nforced.com/openbsd/distfiles/
LIB_DEPENDS= panel_applet::x11/gnome/core \
gtop.1::devel/libgtop,gnome
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
USE_X11= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
@install -d ${PREFIX}/share/bubblemon; \
cp -r ${PREFIX}/../../etc/* ${PREFIX}/share/bubblemon/
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (bubblemon-1.0.5.tar.gz) = b04378ed3966f3053814a07145d21a9b
RMD160 (bubblemon-1.0.5.tar.gz) = 4e12f4b2bb49713a1bb8a7bd9d54d2892c7250e6
SHA1 (bubblemon-1.0.5.tar.gz) = d50bf58c4386e8ee70e300d630faee89b2a67465

View File

@ -0,0 +1,42 @@
--- src/bubblemon.c.orig Sun Apr 22 21:21:38 2001
+++ src/bubblemon.c Sun Jun 17 17:37:13 2001
@@ -27,7 +27,6 @@
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <sys/sysinfo.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
@@ -239,16 +238,16 @@
if (divisor_char)
{
- sprintf(string, "%Ld/%Ld%cb",
- used >> shiftme,
- max >> shiftme,
+ sprintf(string, "%lu/%lu%cb",
+ (unsigned long) used >> shiftme,
+ (unsigned long) max >> shiftme,
divisor_char);
}
else
{
- sprintf(string, "%Ld/%Ld bytes",
- used >> shiftme,
- max >> shiftme);
+ sprintf(string, "%lu/%lu bytes",
+ (unsigned long) used >> shiftme,
+ (unsigned long) max >> shiftme);
}
}
@@ -1106,7 +1105,7 @@
bm);
/* Determine number of CPUs we will monitor */
- bm->number_of_cpus = glibtop_get_sysinfo()->ncpu;
+ bm->number_of_cpus = 1;
g_assert(bm->number_of_cpus != 0);
/* Initialize the CPU load metering... */

View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/09/13 20:51:03 todd Exp $
#
echo
echo "*=================[ $1"
echo "* To really remove $1 from your system you should also"
echo "* remove the configuration files from the /etc directory."
echo "* If you are planning on installing $1 again in the future"
echo "* you can leave it as it is."
echo "*"
echo "* FYI, the following configuration files belongs to this package:"
echo "*"
for f in \
CORBA/servers/bubblemon_applet.gnorba
do
echo "* /etc/$f"
done
echo "*================= $1 ]"
echo
exit 0

View File

@ -0,0 +1,10 @@
The Bubbling Load Monitor is a system CPU and memory load monitor for the
GNOME panel. It displays something that looks like a vial containing water.
The water level indicates how much memory is in use. The color of the liquid
indicates how much swap space is used (watery blue means none and angry red
means all). The system CPU load is indicated by bubbles floating up through
the liquid; lots of bubbles means high CPU load.
For more information about bubblemon, visit:
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,76 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1.1.1 2001/09/13 20:51:03 todd Exp $
PKGNAME=bubblemon
PREFIX=${PKG_PREFIX:-/usr/local}
DEST_PFX=/etc
SOURCE_PFX=${PREFIX}/share/${PKGNAME}
do_post() {
echo
echo "*=================[ ${PKGNAME}"
# install or take note of existing config files
for f in \
CORBA/servers/bubblemon_applet.gnorba
do
if [ -f "${DEST_PFX}/$f" ]; then
OLD_CONFS="${OLD_CONFS} $f"
else
if ! install -m 644 ${SOURCE_PFX}/$f ${DEST_PFX}/$f; then
echo "* ERROR: The following file could not be installed, exiting: ${DEST_PFX}/$f"
exit 1
fi
NEW_CONFS="${NEW_CONFS} $f"
fi
done
# print status report
if [ -n "${NEW_CONFS}" ]; then
echo "* The following NEW configuration files have been installed:"
echo "*"
for f in ${NEW_CONFS}; do
echo "* ${DEST_PFX}/$f"
done
fi
if [ -n "${OLD_CONFS}" ]; then
if [ -n "${NEW_CONFS}" ]; then
echo "*"
fi
echo "* The following OLD configuration files was found and have NOT been overwritten:"
echo "* You should however manually compare it to it's equivalent in ${SOURCE_PFX}"
echo "* and update your configuration if needed."
echo "*"
for f in ${OLD_CONFS}; do
echo "* ${DEST_PFX}/$f"
done
fi
echo "*================= ${PKGNAME} ]"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
do_post
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,21 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/09/13 20:51:03 todd Exp $
bin/bubblemon_applet
man/man1/bubblemon_applet.1
share/applets/Monitors/bubblemon_applet.desktop
share/bubblemon/CORBA/servers/bubblemon_applet.gnorba
share/locale/da/LC_MESSAGES/bubblemon.mo
share/locale/de/LC_MESSAGES/bubblemon.mo
share/locale/es/LC_MESSAGES/bubblemon.mo
share/locale/fi/LC_MESSAGES/bubblemon.mo
share/locale/fr/LC_MESSAGES/bubblemon.mo
share/locale/ko/LC_MESSAGES/bubblemon.mo
share/locale/no/LC_MESSAGES/bubblemon.mo
share/locale/pl/LC_MESSAGES/bubblemon.mo
share/locale/pt/LC_MESSAGES/bubblemon.mo
share/locale/ro/LC_MESSAGES/bubblemon.mo
share/locale/sh/LC_MESSAGES/bubblemon.mo
share/locale/sv/LC_MESSAGES/bubblemon.mo
share/pixmaps/bubblemon.png
@dirrm share/bubblemon/CORBA/servers
@dirrm share/bubblemon/CORBA
@dirrm share/bubblemon