pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/gkrellm Initial import of gkrellm, version 2....
details: https://anonhg.NetBSD.org/pkgsrc/rev/ca74a02da2f9
branches: trunk
changeset: 469523:ca74a02da2f9
user: cube <cube%pkgsrc.org@localhost>
date: Tue Feb 24 22:11:28 2004 +0000
description:
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:
sysutils/gkrellm/DESCR | 3 +
sysutils/gkrellm/Makefile.common | 32 +++++
sysutils/gkrellm/buildlink3.mk | 20 +++
sysutils/gkrellm/files/gkrellmd.sh | 17 +++
sysutils/gkrellm/files/po.Makefile | 36 ++++++
sysutils/gkrellm/files/server.Makefile | 85 +++++++++++++++
sysutils/gkrellm/files/src.Makefile | 181 ++++++++++++++++++++++++++++++++
sysutils/gkrellm/files/top.Makefile | 45 +++++++
sysutils/gkrellm/files/top.Makefile.inc | 150 ++++++++++++++++++++++++++
sysutils/gkrellm/patches/patch-af | 13 ++
10 files changed, 582 insertions(+), 0 deletions(-)
diffs (truncated from 625 to 300 lines):
diff -r e80eb97b5f39 -r ca74a02da2f9 sysutils/gkrellm/DESCR
--- a/sysutils/gkrellm/DESCR Tue Feb 24 22:10:39 2004 +0000
+++ b/sysutils/gkrellm/DESCR Tue Feb 24 22:11:28 2004 +0000
@@ -22,3 +22,6 @@
* 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 gkrellm2-server.
diff -r e80eb97b5f39 -r ca74a02da2f9 sysutils/gkrellm/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gkrellm/Makefile.common Tue Feb 24 22:11:28 2004 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/02/24 22:11:28 cube Exp $
+
+DISTNAME= ${GKRELLM_DISTBASE}
+PKGNAME= ${GKRELLM_PKGBASE}-${GKRELLM_VERSION}
+CATEGORIES= sysutils
+MASTER_SITES= http://web.wt.net/~billw/gkrellm/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= cube%NetBSD.org@localhost
+HOMEPAGE= http://gkrellm.net/
+
+CONFLICTS+= gkrellm-1*
+
+USE_GNU_TOOLS+= make
+USE_PKGLOCALEDIR= YES
+
+MAKE_ENV+= LOCALEDIR=${PREFIX}/${PKGLOCALEDIR}/locale
+
+GKRELLM_VERSION= 2.1.25
+GKRELLM_DISTBASE= gkrellm-${GKRELLM_VERSION}
+GKRELLM_SRCDIR= ${WRKDIR}/${GKRELLM_DISTBASE}
+
+FILESDIR= ${.CURDIR}/../../sysutils/gkrellm/files
+PATCHDIR= ${.CURDIR}/../../sysutils/gkrellm/patches
+DISTINFO_FILE= ${.CURDIR}/../../sysutils/gkrellm/distinfo
+
+post-extract:
+ ${CP} ${FILESDIR}/top.Makefile ${WRKSRC}/Makefile
+ ${CP} ${FILESDIR}/top.Makefile.inc ${WRKSRC}/Makefile.inc
+ ${CP} ${FILESDIR}/po.Makefile ${WRKSRC}/po/Makefile
+ ${CP} ${FILESDIR}/server.Makefile ${WRKSRC}/server/Makefile
+ ${CP} ${FILESDIR}/src.Makefile ${WRKSRC}/src/Makefile
diff -r e80eb97b5f39 -r ca74a02da2f9 sysutils/gkrellm/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gkrellm/buildlink3.mk Tue Feb 24 22:11:28 2004 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/02/24 22:11:28 cube Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GKRELLM_BUILDLINK3_MK:= ${GKRELLM_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= gkrellm
+.endif
+
+.if !empty(GKRELLM_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= gkrellm
+BUILDLINK_DEPENDS.gkrellm+= gkrellm>=2.1.22
+BUILDLINK_PKGSRCDIR.gkrellm?= ../../sysutils/gkrellm
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+
+.endif # GKRELLM_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r e80eb97b5f39 -r ca74a02da2f9 sysutils/gkrellm/files/gkrellmd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gkrellm/files/gkrellmd.sh Tue Feb 24 22:11:28 2004 +0000
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: gkrellmd.sh,v 1.1.1.1 2004/02/24 22:11:28 cube Exp $
+#
+
+# PROVIDE: gkrellmd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="gkrellmd"
+rcvar=$name
+command="@PREFIX@/bin/gkrellmd"
+gkrellmd_flags="-d"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r e80eb97b5f39 -r ca74a02da2f9 sysutils/gkrellm/files/po.Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gkrellm/files/po.Makefile Tue Feb 24 22:11:28 2004 +0000
@@ -0,0 +1,36 @@
+include ../Makefile.inc
+
+PACKAGE?= gkrellm
+
+ifeq ($(ENABLE_NLS),yes)
+FILES_PO:= $(wildcard *.po)
+FILES_MO:= $(FILES_PO:.po=.mo)
+else
+FILES_MO=
+endif
+
+all: build
+
+build: $(FILES_MO)
+
+install: $(FILES_MO)
+ for f in $(FILES_MO); do \
+ $(INSTALL_DIR) $(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES; \
+ $(INSTALL_DATA) $$f $(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(PACKAGE).mo; \
+ done
+
+uninstall:
+ifneq ($(FILES_MO),)
+ for f in $(FILES_MO) ; do \
+ rm -f $(INSTALL_PREFIX)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(PACKAGE).mo ; done
+endif
+
+clean:
+ifneq ($(FILES_MO),)
+ $(RM) $(FILES_MO)
+endif
+
+%.mo: %.po
+ $(MSGFMT) $(MSGFMT_OPT) -o $@ $<
+
+.PHONY: all build install clean uninstall
diff -r e80eb97b5f39 -r ca74a02da2f9 sysutils/gkrellm/files/server.Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gkrellm/files/server.Makefile Tue Feb 24 22:11:28 2004 +0000
@@ -0,0 +1,85 @@
+include ../Makefile.inc
+
+PACKAGE_D ?= gkrellmd
+
+PKG_INCLUDE = `$(PKG_CONFIG) --cflags glib-2.0 gthread-2.0`
+PKG_LIB = `$(PKG_CONFIG) --libs glib-2.0 gthread-2.0`
+
+GLIB12_INCLUDE = `glib-config --cflags gthread`
+GLIB12_LIB = `glib-config --libs gthread`
+
+USE_GLIB12?= no
+ifeq ($(glib12),1)
+USE_GLIB12= yes
+endif
+ifeq ($(glib12),yes)
+USE_GLIB12= yes
+endif
+
+CFLAGS?= -O2
+FLAGS = -I.. $(PKG_INCLUDE) $(GTOP_INCLUDE)
+ifeq ($(USE_GLIB12),yes)
+FLAGS = -I.. $(GLIB12_INCLUDE) $(GTOP_INCLUDE)
+endif
+
+FLAGS+= $(PTHREAD_INC)
+
+LIBS = $(PKG_LIB) $(GTOP_LIBS_D) $(SYS_LIBS)
+ifeq ($(USE_GLIB12),yes)
+LIBS = $(GLIB12_LIB) $(GTOP_LIBS_D) $(SYS_LIBS)
+endif
+
+ifeq ($(DEBUG),yes)
+ FLAGS += -g
+endif
+
+ifeq ($(PROFILE),yes)
+ FLAGS += -g -pg
+endif
+
+ifeq ($(ENABLE_NLS),1)
+ FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
+endif
+ifneq ($(PACKAGE_D),gkrellmd)
+ FLAGS += -DPACKAGE_D=\"$(PACKAGE_D)\"
+endif
+
+ifeq ($(HAVE_GETADDRINFO),1)
+ FLAGS += -DHAVE_GETADDRINFO
+endif
+
+
+override CFLAGS += -Wall $(FLAGS)
+
+OBJS = main.o monitor.o mail.o glib.o sysdeps-unix.o
+
+all: build
+
+build: gkrellmd
+
+gkrellmd static: $(OBJS)
+ $(CC) $(OBJS) -o gkrellmd$(if $(findstring static,$@),.static -static) $(LIBS) $(LINK_FLAGS)
+
+install:
+ $(INSTALL_DIR) $(SINSTALLDIR)
+ $(INSTALL_DIR) $(SMANDIR)
+ $(INSTALL_BIN) $(STRIP) gkrellmd $(SINSTALLDIR)/$(PACKAGE_D)
+ $(INSTALL_DATA) ../gkrellmd.1 $(SMANDIR)/$(PACKAGE_D).1
+
+uninstall:
+ rm -f $(SINSTALLDIR)/$(PACKAGE_D)
+ rm -f $(SMANDIR)/$(PACKAGE_D).1
+
+clean:
+ rm -f *.o *~ *.bak gkrellmd core
+
+SYSDEPS = ../src/sysdeps/bsd-common.c ../src/sysdeps/bsd-net-open.c \
+ ../src/sysdeps/freebsd.c ../src/sysdeps/gtop.c \
+ ../src/sysdeps/linux.c ../src/sysdeps/netbsd.c \
+ ../src/sysdeps/openbsd.c ../src/sysdeps/solaris.c ../src/sysdeps/darwin.c
+
+main.o: main.c gkrellmd.h
+monitor.o: monitor.c gkrellmd.h
+mail.o: mail.c gkrellmd.h
+glib.o: glib.c gkrellmd.h
+sysdeps-unix.o: sysdeps-unix.c gkrellmd.h ../src/gkrellm-sysdeps.h $(SYSDEPS)
diff -r e80eb97b5f39 -r ca74a02da2f9 sysutils/gkrellm/files/src.Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gkrellm/files/src.Makefile Tue Feb 24 22:11:28 2004 +0000
@@ -0,0 +1,181 @@
+include ../Makefile.inc
+
+PACKAGE ?= gkrellm
+
+SMC_LIBS ?= -L$(X11BASE)/lib -Wl,-R$(X11BASE)/lib -lSM -lICE
+
+GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h
+
+PKG_INCLUDE = `$(PKG_CONFIG) --cflags gtk+-2.0 gthread-2.0`
+PKG_LIB = `$(PKG_CONFIG) --libs gtk+-2.0 gthread-2.0`
+
+CFLAGS?= -O2
+FLAGS = -I.. $(PKG_INCLUDE) $(GTOP_INCLUDE)
+FLAGS+= $(PTHREAD_INC)
+
+ifeq ($(debug),yes)
+ FLAGS += -g
+endif
+
+ifeq ($(ENABLE_NLS),yes)
+ FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
+endif
+ifneq ($(PACKAGE),gkrellm)
+ FLAGS += -DPACKAGE=\"$(PACKAGE)\"
+endif
+
+ifeq ($(HAVE_GETADDRINFO),1)
+ FLAGS += -DHAVE_GETADDRINFO
+endif
+
+WITHOUT_SSL?= no
+ifeq ($(without-ssl),1)
+WITHOUT_SSL= yes
+endif
+ifeq ($(without-ssl),yes)
+WITHOUT_SSL= yes
+endif
+ifeq ($(WITHOUT_SSL),yes)
+CONFIGURE_ARGS+= --without-ssl
+endif
+GREP?= grep
+
+DUMMY_VAR:= $(shell ./configure $(CONFIGURE_ARGS))
+HAVE_SSL= $(shell $(GREP) -c HAVE_SSL configure.h)
+
+ifeq ($(HAVE_SSL),1)
+SSL_LIBS?= -lssl -lcrypto
+NEED_MD5= no
+MD5_LIBS=
+endif
+
+LIBS = $(PKG_LIB) $(GTOP_LIBS) $(SMC_LIBS) $(SYS_LIBS) $(MD5_LIBS) $(SSL_LIBS)
+
+override CFLAGS += -Wall $(FLAGS)
+
+OBJS = main.o alerts.o battery.o base64.o clock.o cpu.o disk.o fs.o \
+ hostname.o inet.o mail.o mem.o net.o proc.o sensors.o uptime.o \
+ chart.o panel.o config.o gui.o krell.o plugins.o pixops.o \
+ smbdes.o smbencrypt.o smbmd4.o smbutil.o \
+ client.o utils.o winops-x11.o sysdeps-unix.o deprecated.o
+
+ifeq ($(NEED_MD5),yes)
+OBJS+= md5c.c
+endif
+
+all: build
+
+build: gkrellm
+
+gkrellm static: $(OBJS)
+ $(CC) $(OBJS) -o gkrellm$(if $(findstring static,$@),.static -static) $(LIBS) $(LINK_FLAGS)
+
+install: gkrellm
+ $(INSTALL_DIR) $(INSTALLDIR)
+ $(INSTALL_DIR) $(INCLUDEDIR)/gkrellm2
+ $(INSTALL_DIR) $(MANDIR)
Home |
Main Index |
Thread Index |
Old Index