pkgsrc/net/wminet/patches/patch-aa
hubertf efa82f9463 [Re-import after typo in previous]
Add wminet-1.2:

Once a second, the network interfaces are queried for the amount of
data that was exchanged. The data from the selected interface is drawn
in the graph. As data is sampled, the scale of the graph will change
and is set to the maximum value seen in the data "window". The value
of the maximum data rate (in bytes per second) is displayed in the
lower left corner. A K or M is appended to the data rate for kilobytes
or megabytes, respectively.

You can cycle through the configured network interfaces by clicking
the mouse on the interface name. There is also a command line option
to specify which interface should be displayed first.

Contributed by Thomas Runge <coto@core.de> on IRC.
2001-02-28 15:37:25 +00:00

53 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.1.1.1 2001/02/28 15:37:25 hubertf Exp $
--- Makefile.orig Thu Dec 3 16:33:58 1998
+++ Makefile Sat Feb 24 19:45:15 2001
@@ -2,22 +2,21 @@
# Makefile,v 1.8 1998/12/03 15:33:58 rneswold Exp
#
-PREFIX=/usr/local
-MANDIR=${PREFIX}/man
-BINDIR=${PREFIX}/bin
-
-LIBDIR = -L/usr/X11R6/lib -L/usr/local/lib
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11 -lkvm
OBJS = main.o if.o wmgeneral.o
INCDIR = -I${X11BASE}/include
.c.o :
- cc -c -g -O1 -Wall ${INCDIR} $< -o $*.o
+ ${CC} -c ${CFLAGS} ${INCDIR} $< -o $*.o
+
+all :: wminet
-all :: wmnet
+wminet : $(OBJS)
+ ${CC} ${LDFLAGS} -o wminet $(OBJS) $(LIBDIR) $(LIBS) ${INCDIR}
-wmnet : $(OBJS)
- cc -o wmnet $(OBJS) $(LIBDIR) $(LIBS) ${INCDIR}
+wminet.1 : wmnet.1
+ sed -e 's/wmnet/wminet/g' wmnet.1 > wminet.1
main.o : wmnet-mask.xbm wmnet-master.xpm wmnet.h wmgeneral.h
@@ -26,12 +25,12 @@
wmgeneral.o : wmgeneral.c wmgeneral.h
clean :
- rm -f $(OBJS) wmnet
+ rm -f $(OBJS) wminet
-install.man : wmnet.1
- install -c -m 644 -o man -g man wmnet.1 ${MANDIR}/man1
+install.man : wminet.1
+ install -c -m 644 -o root -g wheel wminet.1 ${PREFIX}/man/man1
-install.bin : wmnet
- install -s -c -m 2555 -o bin -g kmem wmnet ${BINDIR}
+install.bin : wminet
+ install -s -c -m 2555 -o bin -g kmem wminet ${PREFIX}/bin
install : install.bin install.man