From ac362721f4e7c827bddc25e16ccabf4b9782c5af Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 4 Jan 1999 03:40:06 +0000 Subject: Fix for monitoring of disk I/O in -current. PR: 9262 Submitted by: maintainer --- sysutils/wmmon/Makefile | 26 ++++++++++++++++++-------- sysutils/wmmon/distinfo | 2 +- sysutils/wmmon/files/patch-aa | 28 +++++++++++++++++++++++----- sysutils/wmmon/files/patch-ab | 31 +++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+), 14 deletions(-) create mode 100644 sysutils/wmmon/files/patch-ab (limited to 'sysutils') diff --git a/sysutils/wmmon/Makefile b/sysutils/wmmon/Makefile index 1430627..3405ca5 100644 --- a/sysutils/wmmon/Makefile +++ b/sysutils/wmmon/Makefile @@ -3,13 +3,17 @@ # Date created: 27 November 1998 # Whom: Kris Kennaway # -# $Id: Makefile,v 1.1.1.1 1998/12/11 15:22:46 flathill Exp $ +# $Id: Makefile,v 1.2 1998/12/16 04:51:54 flathill Exp $ # DISTNAME= wmmon-1.0b2 CATEGORIES= sysutils -MASTER_SITES= ftp://ftp.mezaway.org/pub/ -DISTFILES= wmmon-1.0b2.tar.gz wmmon-1.0b2-bsd.tar.gz +MASTER_SITES= ftp://ftp.mezaway.org/pub/ \ + http://www.physics.adelaide.edu.au/~kkennawa/ \ + ftp://ftp.tecnogi.com/pub/linux/WindowMaker/ \ + ftp://ftp.deva.net/pub/sources/X11/WindowMaker/dockapps/ \ + ftp://ftp.paco.odessa.ua/.2/x11/wm/WindowMaker/apps/ +DISTFILES= wmmon-1.0b2.tar.gz wmmon-1.0b2-freebsd.tar.gz MAINTAINER= kkennawa@physics.adelaide.edu.au @@ -19,18 +23,24 @@ USE_X_PREFIX= yes WRKSRC= ${WRKDIR}/wmmon.app/wmmon +.include + pre-patch: - cd ${WRKDIR}/wmmon.app && ${PATCH} -p < ${WRKDIR}/wmmon-freebsd.patch + @cd ${WRKDIR}/wmmon.app && ${PATCH} -p < ${WRKDIR}/wmmon-freebsd.patch -post-extract: - ${CP} ${WRKDIR}/wmmon/Makefile.FreeBSD ${WRKSRC}/Makefile +post-patch: +.if ${OSVERSION} >= 300000 + @${CP} ${WRKDIR}/wmmon/Makefile.FreeBSD-3.0 ${WRKSRC}/Makefile +.else + @${CP} ${WRKDIR}/wmmon/Makefile.FreeBSD-2.2 ${WRKSRC}/Makefile +.endif post-install: - strip ${PREFIX}/bin/wmmon + @strip ${PREFIX}/bin/wmmon .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/wmmon ${INSTALL_MAN} ${WRKSRC}/../HINTS ${PREFIX}/share/doc/wmmon .endif -.include +.include diff --git a/sysutils/wmmon/distinfo b/sysutils/wmmon/distinfo index 0c9f4ec..a3edfcc 100644 --- a/sysutils/wmmon/distinfo +++ b/sysutils/wmmon/distinfo @@ -1,2 +1,2 @@ MD5 (wmmon-1.0b2.tar.gz) = 1b8c780b8c24a6958c69330fef4171df -MD5 (wmmon-1.0b2-bsd.tar.gz) = 8da39c1a9ec24c8cf0857c7fa3f8582c +MD5 (wmmon-1.0b2-freebsd.tar.gz) = 6bb7022610d8834bc4764b0b3f03fee6 diff --git a/sysutils/wmmon/files/patch-aa b/sysutils/wmmon/files/patch-aa index edfa6ce..6241f6f 100644 --- a/sysutils/wmmon/files/patch-aa +++ b/sysutils/wmmon/files/patch-aa @@ -1,13 +1,31 @@ -*** Makefile2 Mon Nov 30 21:31:27 1998 ---- Makefile Mon Nov 30 21:34:18 1998 +*** ../../wmmon/Makefile.FreeBSD-3.0~ Thu Nov 12 18:39:57 1998 +--- ../../wmmon/Makefile.FreeBSD-3.0 Fri Jan 1 23:33:27 1999 *************** -*** 21,24 **** +*** 3,9 **** + # + LIBDIR = -L/usr/X11R6/lib + LIBS = -lXpm -lXext -lX11 -lkvm -ldevstat +! CFLAGS = -g -Wall -I/usr/X11R6/include + OBJS = wmmon.o \ + ../wmgeneral/wmgeneral.o \ + ../wmgeneral/misc.o \ +--- 3,10 ---- + # + LIBDIR = -L/usr/X11R6/lib + LIBS = -lXpm -lXext -lX11 -lkvm -ldevstat +! CFLAGS ?= -O2 +! CFLAGS += -g -Wall -I/usr/X11R6/include + OBJS = wmmon.o \ + ../wmgeneral/wmgeneral.o \ + ../wmgeneral/misc.o \ +*************** +*** 24,27 **** rm -f $(PROG) install:: ! install -c -g kmem -m 4755 -o root $(PROG) /usr/X11R6/bin ---- 21,24 ---- +--- 25,28 ---- rm -f $(PROG) install:: -! install -c -g kmem -m 4755 -o root $(PROG) $(PREFIX)/bin +! install -c -g kmem -m 4755 -o root $(PROG) ${PREFIX}/bin diff --git a/sysutils/wmmon/files/patch-ab b/sysutils/wmmon/files/patch-ab new file mode 100644 index 0000000..c838e70 --- /dev/null +++ b/sysutils/wmmon/files/patch-ab @@ -0,0 +1,31 @@ +*** ../../wmmon/Makefile.FreeBSD-2.2~ Thu Nov 12 18:39:39 1998 +--- ../../wmmon/Makefile.FreeBSD-2.2 Fri Jan 1 23:34:03 1999 +*************** +*** 3,9 **** + # + LIBDIR = -L/usr/X11R6/lib + LIBS = -lXpm -lXext -lX11 -lkvm +! CFLAGS = -g -Wall -I/usr/X11R6/include + OBJS = wmmon.o \ + ../wmgeneral/wmgeneral.o \ + ../wmgeneral/misc.o \ +--- 3,10 ---- + # + LIBDIR = -L/usr/X11R6/lib + LIBS = -lXpm -lXext -lX11 -lkvm +! CFLAGS ?= -O2 +! CFLAGS += -g -Wall -I/usr/X11R6/include + OBJS = wmmon.o \ + ../wmgeneral/wmgeneral.o \ + ../wmgeneral/misc.o \ +*************** +*** 24,27 **** + rm -f $(PROG) + + install:: +! install -c -g kmem -m 4755 -o root $(PROG) /usr/X11R6/bin +--- 25,28 ---- + rm -f $(PROG) + + install:: +! install -c -g kmem -m 4755 -o root $(PROG) ${PREFIX}/bin -- cgit v1.1