diff options
author | cube <cube@pkgsrc.org> | 2004-02-24 22:21:15 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2004-02-24 22:21:15 +0000 |
commit | cebf9dfdd65bc1612d9c8d355c93d96d92aac6f0 (patch) | |
tree | 43953e31156349fb71bcb6866c3694ea0627516e /sysutils/gkrellm/patches | |
parent | 38dc00993c065d41fb01bea0df4668e5b039d327 (diff) | |
download | pkgsrc-cebf9dfdd65bc1612d9c8d355c93d96d92aac6f0.tar.gz |
Merge import of gkrellm2.
Diffstat (limited to 'sysutils/gkrellm/patches')
-rw-r--r-- | sysutils/gkrellm/patches/patch-aa | 80 | ||||
-rw-r--r-- | sysutils/gkrellm/patches/patch-ab | 87 | ||||
-rw-r--r-- | sysutils/gkrellm/patches/patch-ac | 43 |
3 files changed, 15 insertions, 195 deletions
diff --git a/sysutils/gkrellm/patches/patch-aa b/sysutils/gkrellm/patches/patch-aa deleted file mode 100644 index 31d4d80c56a..00000000000 --- a/sysutils/gkrellm/patches/patch-aa +++ /dev/null @@ -1,80 +0,0 @@ -$NetBSD: patch-aa,v 1.9 2003/02/15 09:33:03 salo Exp $ - ---- Makefile.top_enable_nls.orig Wed Dec 5 08:41:15 2001 -+++ Makefile.top_enable_nls -@@ -31,8 +31,11 @@ - # Default - #-------- - GTK_CONFIG = gtk-config -+IMLIB_CONFIG = imlib-config - EXTRAOBJS = md5c.o - BINMODE = 755 -+BINGRP = wheel -+PREFIX ?= /usr/local - - # FreeBSD 2.X - #------------ -@@ -53,12 +56,17 @@ - - # NetBSD or OpenBSD - #------------------ --#GTK_CONFIG= gtk-config --#GTOP_LIBS= --#PTHREAD_INC=-I/usr/local/include --#SYS_LIBS=-lkvm --#EXTRAOBJS = --#BINMODE=2755 -+GTK_CONFIG ?= gtk-config -+IMLIB_CONFIG ?= imlib-config -+GTOP_INCLUDE = -+GTOP_LIBS = -+PTHREAD_INC ?= -I/usr/pkg/include -+EXTRAOBJS = -+LINK_FLAGS = $(EXPORT_SYMBOLS_LDFLAGS) -+LOCALEDIR = ${PREFIX}/share/locale -+MANDIR = ${PREFIX}/man/man1 -+BINMODE = 2755 -+BINGRP = kmem - - # Solaris 2.x - #------------ -@@ -75,21 +83,23 @@ - # used if you "make gnome-gtop" or "make gtop". - #----------------------------------- - GTOP_PREFIX = /usr --GTOP_INCLUDE = -I$(GTOP_PREFIX)/include --GTOP_LIBS = -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps -lXau -+GTOP_INCLUDE ?= -I$(GTOP_PREFIX)/include -+GTOP_LIBS ?= -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps -lXau - - --INSTALLDIR=/usr/local/bin --MANDIR=/usr/local/share/man/man1 -+PREFIX ?= /usr/local -+INSTALLDIR ?= ${PREFIX}/bin -+MANDIR ?= ${PREFIX}/share/man/man1 - MANMODE = 644 - MANDIRMODE = 755 --INCLUDEDIR=/usr/local/include -+INCLUDEDIR ?= ${PREFIX}/include - INCLUDEMODE = 644 - INCLUDEDIRMODE = 755 - - LOCALEDIR ?= /usr/share/locale - - export GTK_CONFIG GTOP_INCLUDE GTOP_LIBS SYS_LIBS EXTRAOBJS BINMODE -+export BINGRP IMLIB_CONFIG LINK_FLAGS PREFIX - export INSTALLDIR INCLUDEDIR INCLUDEMODE INCLUDEDIRMODE LOCALEDIR - export MANDIR MANDIRMODE MANMODE - -@@ -132,9 +142,7 @@ - - netbsd: - (cd po && ${MAKE} all) -- (cd src && ${MAKE} GTK_CONFIG=gtk-config GTOP_LIBS= GTOP_INCLUDE= \ -- PTHREAD_INC=-I/usr/local/include EXTRAOBJS= \ -- SYS_LIBS="-lkvm" gkrellm ) -+ (cd src && ${MAKE} SYS_LIBS="-lkvm" gkrellm ) - - openbsd: - (cd po && ${MAKE} all) diff --git a/sysutils/gkrellm/patches/patch-ab b/sysutils/gkrellm/patches/patch-ab deleted file mode 100644 index bc14e7334b0..00000000000 --- a/sysutils/gkrellm/patches/patch-ab +++ /dev/null @@ -1,87 +0,0 @@ -$NetBSD: patch-ab,v 1.8 2003/02/15 09:33:03 salo Exp $ - ---- src/Makefile.src.orig Mon Jul 1 04:13:04 2002 -+++ src/Makefile.src Sat Feb 15 10:06:54 2003 -@@ -1,30 +1,36 @@ - GTK_CONFIG ?= gtk-config -+IMLIB_CONFIG ?= imlib-config -+PREFIX ?= /usr/local - EXTRAOBJS ?= md5c.o - BINMODE ?= 755 --INSTALLDIR ?= /usr/local/bin --INCLUDEDIR ?= /usr/local/include -+BINGRP ?= wheel -+INSTALLDIR ?= ${PREFIX}/bin -+INCLUDEDIR ?= ${PREFIX}/include - INCLUDEMODE ?= 644 - INCLUDEDIRMODE ?= 755 --MANDIR ?= /usr/local/share/man/man1 -+MANDIR ?= ${PREFIX}/man/man1 - MANMODE ?= 644 - MANDIRMODE ?= 755 - INSTALL ?= install --LINK_FLAGS ?= -Wl,-E -+LINK_FLAGS ?= $(EXPORT_SYMBOLS_LDFLAGS) - CC ?= gcc - STRIP ?= -s - - GKRELLM_INCLUDES = gkrellm.h gkrellm_public_proto.h - - GTK_INCLUDE = `$(GTK_CONFIG) --cflags gthread` --IMLIB_INCLUDE = `imlib-config --cflags-gdk` -+IMLIB_INCLUDE = `$(IMLIB_CONFIG) --cflags-gdk` - - GTK_LIB = `$(GTK_CONFIG) --libs gthread` --IMLIB_LIB = `imlib-config --libs-gdk` -+IMLIB_LIB = `$(IMLIB_CONFIG) --libs-gdk` - --FLAGS = -O2 -I.. $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GTOP_INCLUDE) -+FLAGS = -I.. $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GTOP_INCLUDE) - FLAGS+= $(PTHREAD_INC) -+FLAGS+= -DSYSTEM_PLUGINS_DIR=\"${PREFIX}/lib/gkrellm/plugins\" -+FLAGS+= -DSYSTEM_THEMES_DIR=\"${PREFIX}/share/gkrellm/themes\" -+ -+LIBS = $(GTK_LIB) $(IMLIB_LIB) $(GTOP_LIBS) $(SYS_LIBS) $(LINK_FLAGS) - --LIBS = $(GTK_LIB) $(IMLIB_LIB) $(GTOP_LIBS) $(SYS_LIBS) - - ifeq ($(debug),1) - FLAGS += -g -@@ -38,7 +44,9 @@ - FLAGS += -DHAVE_GETADDRINFO - endif - --CC += -Wall $(FLAGS) -+CC ?= gcc -+CFLAGS ?= -O2 -+CC += -Wall $(FLAGS) $(CFLAGS) - - OBJS = main.o alerts.o apm.o base64.o clock.o cpu.o disk.o fs.o hostname.o \ - inet.o mail.o meminfo.o net.o proc.o sensors.o uptime.o \ -@@ -68,15 +76,14 @@ - gkrellm - - netbsd: -- $(MAKE) PTHREAD_INC=-I/usr/local/include \ -- GTK_CONFIG=gtk-config GTOP_LIBS= EXTRAOBJS= SYS_LIBS="-lkvm" gkrellm -+ $(MAKE) GTOP_LIBS= EXTRAOBJS= SYS_LIBS="-lkvm" gkrellm - - solaris: - $(MAKE) CFLAGS="-Wno-implicit-int" \ - SYS_LIBS="-lkstat -lkvm -ldevinfo" gkrellm - - install: -- $(INSTALL) -c $(STRIP) -m $(BINMODE) gkrellm $(INSTALLDIR)/gkrellm -+ $(INSTALL) -c $(STRIP) -m $(BINMODE) -g $(BINGRP) gkrellm $(INSTALLDIR)/gkrellm - $(INSTALL) -d -m $(INCLUDEDIRMODE) $(INCLUDEDIR)/gkrellm - $(INSTALL) -c -m $(INCLUDEMODE) $(GKRELLM_INCLUDES) $(INCLUDEDIR)/gkrellm - $(INSTALL) -d -m $(MANDIRMODE) $(MANDIR) -@@ -87,8 +94,6 @@ - - install_netbsd: - $(MAKE) install -- chgrp kmem $(INSTALLDIR)/gkrellm -- chmod g+s $(INSTALLDIR)/gkrellm - - install_openbsd: - $(MAKE) install diff --git a/sysutils/gkrellm/patches/patch-ac b/sysutils/gkrellm/patches/patch-ac index be0e2740b04..2c59ca8a584 100644 --- a/sysutils/gkrellm/patches/patch-ac +++ b/sysutils/gkrellm/patches/patch-ac @@ -1,31 +1,18 @@ -$NetBSD: patch-ac,v 1.3 2002/11/07 15:07:46 fredb Exp $ +$NetBSD: patch-ac,v 1.4 2004/02/24 22:21:15 cube Exp $ ---- src/disk.c.orig Tue Jan 1 15:08:07 2002 -+++ src/disk.c -@@ -446,10 +446,24 @@ - * d.xfer value (number of transfers) but there a scaling problem: - * d.xfer is usually much more smaller thant d.dk_bytes... */ +--- src/gkrellm.h.orig 2003-03-10 06:59:37.000000000 +0100 ++++ src/gkrellm.h +@@ -115,11 +115,11 @@ -+ /* Separate read/write stats were implemented in NetBSD 1.6K. */ -+ - disk = (DiskMon *) list->data; -- disk->rblk = d.dk_bytes / 512; /* block size hardcoded : -- * d.dk_byteshift is always 0 ?? */ -+#if __NetBSD_Version__ >= 106110000 -+ /* d.dk_byteshift is not set in, or used, by the kernel as of -+ * NetBSD 1.6K, but maybe one day... In the meantime, NetBSD -+ * only supports a blocksize of 512 == 2^^9, so assume that. */ -+ if (d.dk_byteshift == 0) { -+ disk->rblk = d.dk_rbytes >> 9; -+ disk->wblk = d.dk_wbytes >> 9; -+ } else { -+ disk->rblk = d.dk_rbytes / d.dk_byteshift; -+ disk->wblk = d.dk_wbytes / d.dk_byteshift; -+ } -+#else -+ disk->rblk = d.dk_bytes >> 9; - disk->wblk = 0; -+#endif + #define LOCAL_THEMES_DIR "/usr/local/share/gkrellm2/themes" + #if !defined(SYSTEM_THEMES_DIR) +-#define SYSTEM_THEMES_DIR "/usr/share/gkrellm2/themes" ++#define SYSTEM_THEMES_DIR "@@PREFIX@@/share/gkrellm2/themes" + #endif + #define LOCAL_PLUGINS_DIR "/usr/local/lib/gkrellm2/plugins" + #if !defined(SYSTEM_PLUGINS_DIR) +-#define SYSTEM_PLUGINS_DIR "/usr/lib/gkrellm2/plugins" ++#define SYSTEM_PLUGINS_DIR "@@PREFIX@@/lib/gkrellm2/plugins" + #endif - composite_disk->rblk += disk->rblk; - composite_disk->wblk += disk->wblk; /* useless, isn't it ? :-D */ + #else |