diff options
author | cube <cube> | 2004-02-24 22:11:28 +0000 |
---|---|---|
committer | cube <cube> | 2004-02-24 22:11:28 +0000 |
commit | 5e8fc228f95b64518f365fcd9e1e95a06774a69d (patch) | |
tree | 63919ba1ebcb1510c57915c32482d6f2e0edb61c /sysutils/gkrellm/files/top.Makefile.inc | |
parent | e4938ada402d573582d5e2a8a9b6301090583bb5 (diff) | |
download | pkgsrc-5e8fc228f95b64518f365fcd9e1e95a06774a69d.tar.gz |
Initial import of gkrellm, version 2.1.25, into the NetBSD Package
Collection. This is the GTK+2 port of old gkrellm1.
Package imported from pkgsrc-wip.
With a single process, GKrellM manages multiple stacked monitors and supports
applying themes to match the monitors appearance to your window manager,
Gtk, or any other theme.
* SMP CPU, Disk, Proc, and active net interface monitors with LEDs.
* Internet monitor that displays current and charts historical port hits
* Memory and swap space usage meters and a system uptime monitor.
* File system meters show capacity/free space and can mount/umount.
* A mailbox monitor which can launch mail reader, remote mail fetch.
* Clock/calendar and hostname display.
* APM laptop battery monitor.
* CPU/motherboard temperature display if lm_sensors modules installed.
* Multiple monitors managed by a single process to reduce system load.
* A timer button that can execute PPP or ISDN logon/logoff scripts.
* Charts are autoscaling with configurable grid line resolution, or
can be set to a fixed scale mode.
* Separate colors for "in" and "out" data. The in color is used for
CPU user time, disk read, forks, and net receive data. The out color
is used for CPU sys time, disk write, load, and net transmit data.
* Commands can be configured to run when monitor labels are clicked.
* GKrellM is plugin capable so special interest monitors can be created.
* A different theme can be created with the GIMP.
While GKrellM monitors the host it is running on, it can poll a server
over the network. The server package is named gkrellm-server.
Diffstat (limited to 'sysutils/gkrellm/files/top.Makefile.inc')
-rw-r--r-- | sysutils/gkrellm/files/top.Makefile.inc | 150 |
1 files changed, 150 insertions, 0 deletions
diff --git a/sysutils/gkrellm/files/top.Makefile.inc b/sysutils/gkrellm/files/top.Makefile.inc new file mode 100644 index 00000000000..d8661b93ab8 --- /dev/null +++ b/sysutils/gkrellm/files/top.Makefile.inc @@ -0,0 +1,150 @@ +VERSION= 2.1.25 + +# Path options +PREFIX?= /usr/local +X11BASE?= /nonexistent +INSTALLROOT?= $(DESTDIR)$(PREFIX) +INSTALLDIR?= $(INSTALLROOT)/bin +INCLUDEDIR?= $(INSTALLROOT)/include +LOCALEDIR?= $(INSTALLROOT)/share/locale +PKGCONFIGDIR?= $(INSTALLROOT)/lib/pkgconfig +MANDIR?= $(INSTALLROOT)/man/man1 +SMANDIR?= $(INSTALLROOT)/man/man1 +SINSTALLDIR?= $(INSTALLROOT)/bin + +# Ownership and mode options +DATAMODE?= 0644 +BINMODE?= 0755 +BINOWNER?= root +BINGROUP?= root + +# Tools paths +MSGFMT?= msgfmt +MSGFMT_OPT?= -f -v +INSTALL?= install +PKG_CONFIG?= pkg-config +STRIP?= -s + +# Helpers +INSTALL_DIR= $(INSTALL) -d +INSTALL_DATA= $(INSTALL) -c -m $(DATAMODE) +INSTALL_BIN= $(INSTALL) -c -m $(BINMODE) -o $(BINOWNER) -g $(BINGROUP) + +# Compilation options +ENABLE_NLS?= yes +DEBUG?= no +PROFILE?= no +NEED_MD5?= yes +MD5_LIBS?= +GKRELLM_CFLAGS?= +GTOP?= + +# Vanilla GKrellM compatibility +ifeq ($(enable_nls),1) +ENABLE_NLS= yes +endif +ifeq ($(enable_nls),yes) +ENABLE_NLS= yes +endif +ifeq ($(debug),1) +DEBUG= yes +endif +ifeq ($(debug),yes) +DEBUG= yes +endif +ifeq ($(profile),1) +PROFILE= yes +endif +ifeq ($(profile),yes) +PROFILE= yes +endif + +ifeq ($(GTOP),) +# OS-specific overrides +SUPPORTED_OSES= Linux NetBSD FreeBSD OpenBSD Darwin Solaris + +REALOPSYS= $(shell uname -s) +OPSYS= $(if $(findstring $(REALOPSYS),$(SUPPORTED_OSES)),$(REALOPSYS),Linux) +OSREV= $(shell uname -r) + +# Isn't this ugly? + +ifeq ($(OPSYS),NetBSD) +SYS_LIBS= -lkvm +BINGROUP= kmem +NEED_MD5= no +MD5_LIBS= +else + ifeq ($(OPSYS),OpenBSD) +SYS_LIBS= -lkvm -pthread +BINGROUP= kmem + else + ifeq ($(OPSYS),FreeBSD) +BINGROUP= kmem +NEED_MD5= no +MD5_LIBS= -lmd + ifeq ($(filter 2.%,$(OSREV)),) +SYS_LIBS= -lkvm -ldevstat + else +SYS_LIBS= -lkvm + endif + else + ifeq ($(OPSYS),Darwin) +SYS_LIBS= -lkvm -framework IOKit +LINK_FLAGS+= -prebind -Wl,-bind_at_load -framework CoreFoundation -lX11 +GTK_CONFIG= gtk-config +STRIP= +NEED_MD5= no +MD5_LIBS= -lmd5 + ifeq ($(MODULE),src) +LINK_FLAGS+= -lX11 + endif + else + ifeq ($(OPSYS),Solaris) +MSGFMT_OPT= -v +CC?= gcc +GKRELLM_CFLAGS= -Wno-implicit-int +SYS_LIBS= -lkstat -lkvm -ldevinfo + ifeq ($(OSREV),5.8) +LINK_FLAGS= +SYS_LIBS+= -lsocket -lintl + ifeq ($(MODULE),src) +SYS_LIBS+= -lresolv -lX11 + else # Well, we don't really care about po +SYS_LIBS+= -lnsl +GKRELLM_CFLAGS= -DSOLARIS_8 + endif + else + ifeq ($(MODULE),src) +SYS_LIBS+= -lresolv + else +SYS_LIBS+= -lsocket -lnsl + endif + endif + endif + endif + endif + endif +endif +else # GTOP +LINK_FLAGS= +MD5_LIBS= + ifeq ($(GTOP), gnome-gtop) +SYS_LIBS= `gnome-config --libs libgtop` +GKRELLM_CFLAGS= `gnome-config --cflags libgtop` + else + ifeq ($(GTOP), gtop) +SYS_LIBS= `libgtop-config --libs` +GKRELLM_CFLAGS= `libgtop-config --cflags` + else # gtop1.0 by default +GTOP_PREFIX?= /usr +GKRELLM_CFLAGS= -I$(GTOP_PREFIX)/include +SYS_LIBS= -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps + ifeq ($(MODULE),src) +SYS_LIBS+= -lXau + endif + endif + endif +endif + +CFLAGS+= $(GKRELLM_CFLAGS) |