--- loadmeter-1.20.orig/Makefile +++ loadmeter-1.20/Makefile @@ -3,41 +3,23 @@ # Edit the lines below to reflect your setup/preferences CC = gcc -CFLAGS = -O2 -Wall $(DEFINES) $(INCLUDES) -BINDIR = /usr/local/bin/ + +BINDIR = $(DESTDIR)/usr/bin INSTALL = install -MANDIR = /usr/local/man/man1/ OBJS = loadmeter.o getinfo.o popup.o -all: - @(SYSTYPE=`uname` ; \ - case $$SYSTYPE in \ - Linux) \ - echo Making loadmeter for Linux ; \ - $(MAKE) LIBS="-L/usr/X11R6/lib -lX11" DEFINES=-DLINUX \ - loadmeter ;;\ - SunOS) \ - echo Making loadmeter for Solaris ; \ - $(MAKE) LIBS="-L/usr/openwin/lib -lX11 -lkvm -lelf" \ - DEFINES=-DSOLARIS INCLUDES=-I/usr/openwin/include \ - loadmeter ; \ - echo '\nPlease help debug the Solaris version! Read README.\n' ;; \ - esac \ - ) - -loadmeter: $(OBJS) - $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) - -loadmeter.o: loadmeter.h -getinfo.o: loadmeter.h -popup.o: loadmeter.h +all: loadmeter + +loadmeter: $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) -L/usr/X11R6/lib -lX11 -DLINUX +%.o: %.c loadmeter.h + $(CC) -c $(CFLAGS) -o $@ $< -L/usr/X11R6/lib -DLINUX clean: rm -f *.o core loadmeter -install: loadmeter +install: loadmeter ${INSTALL} loadmeter ${BINDIR} - cp loadmeter.1 ${MANDIR} --- loadmeter-1.20.orig/README +++ loadmeter-1.20/README @@ -1,5 +1,5 @@ -Loadmeter v1.20 -============== +Loadmeter +========= This is a useful little system monitoring utility I've hacked up to keep track of various system stats. It monitors: @@ -11,7 +11,7 @@ In its normal state it displays a window with a coloured bar graph showing the load average for the past minute. This is also shown -in digits at the top of the window. both are updated every second. A red +in digits at the top of the window. Both are updated every second. A red 'notch' marks the maximum load since it was started, and can be reset by pressing button2 or hidden with button3. The blue notch shows the 5 minute load average. @@ -21,8 +21,8 @@ info on each filesystem is available by highlighting the corresponding one. The way this window pops down is intentional, just to make it interesting. :) -Any filesystems with higher usage than specified by the -warn option (default -90%) are shown with a (default)green background. The '-disk' option +Any filesystems with higher usage than specified by the -warn option +(default 90%) are shown with a (default) green background. The '-disk' option can also be used as an 'instant warn' feature. Press Escape in the top level window to exit. @@ -30,7 +30,7 @@ Loadmeter also has the ability to override window managers. Giving the option '-override' causes the top-level window to have the override_redirect bit set. This is useful for window managers that -insist upon decorating standard clients (eg Enlightenment, at +insist upon decorating standard clients (e.g. Enlightenment, at least up to DR0.9). If you've given this option, then you can still resize and move the window. During moving and resizing, the cursor displays the geometry. @@ -44,33 +44,33 @@ window (in decimal or hex form) to use as the parent for the toplevel one (default is the root). This is useful for banking several together inside another window for easy positioning, etc. The 'lower' function -doesnt work if -parent is specified. Also note that you can't use +doesnt work if -parent is specified. Also note that you can't use both -override and -parent at the same time. Command-line options: --disp Specify which X server to connect to --geom <+x+y> Specify position on the screen --sync Call sync() when checking disk usage --numfont Use for the load digits --labelfont Use for the hostname label --popupfont Use for the cursor and popup window --popupbg Use for the popup background --popupfg Use for the foreground of the popup --warnbg Use for the high disk usage warning colour --meter Use for the disk usage meter bar --warn Min percent capacity reqd to highlight a filesystem --label