[csw-devel] SF.net SVN: gar:[7207] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Nov 10 16:11:30 CET 2009


Revision: 7207
          http://gar.svn.sourceforge.net/gar/?rev=7207&view=rev
Author:   dmichelsen
Date:     2009-11-10 15:11:27 +0000 (Tue, 10 Nov 2009)

Log Message:
-----------
nfswatch: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/nfswatch/
    csw/mgar/pkg/nfswatch/branches/
    csw/mgar/pkg/nfswatch/tags/
    csw/mgar/pkg/nfswatch/trunk/
    csw/mgar/pkg/nfswatch/trunk/Makefile
    csw/mgar/pkg/nfswatch/trunk/checksums
    csw/mgar/pkg/nfswatch/trunk/files/
    csw/mgar/pkg/nfswatch/trunk/files/0001-Add-missing-ifdefs-to-shield-Linux.patch


Property changes on: csw/mgar/pkg/nfswatch/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/nfswatch/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nfswatch/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/nfswatch/trunk/Makefile	2009-11-10 15:11:27 UTC (rev 7207)
@@ -0,0 +1,37 @@
+GARNAME = nfswatch
+GARVERSION = 4.99.10
+CATEGORIES = utils
+
+DESCRIPTION = Monitors NFS client traffic and response time
+define BLURB
+  NFSwatch lets you monitor NFS requests to any givenmachine, or the entire
+  local network. It mostly monitors NFS client traffic (NFS requests); it also
+  monitors the NFS reply traffic from a server inorder to measure the response
+  time for each RPC.
+endef
+
+MASTER_SITES = $(SF_MIRRORS)
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+PATCHFILES = 0001-Add-missing-ifdefs-to-shield-Linux.patch
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+SPKG_SOURCEURL = http://nfswatch.sourceforge.net/
+
+LICENSE = LICENSE
+
+CONFIGURE_SCRIPTS =
+
+BUILD_ARGS = CFLAGS="-DSUNOS58 -DSUNOS5 $(CFLAGS)"
+BUILD_ARGS += LIBS="-lcurses -lnsl -lsocket -lm"
+BUILD_ARGS += nfswatch nfslogsum
+
+TEST_SCRIPTS =
+
+INSTALL_OVERRIDE_VARS = INSTALL BINDIR MANDIR
+INSTALL_OVERRIDE_VAR_INSTALL = /usr/ucb/install
+INSTALL_OVERRIDE_VAR_BINDIR = $(bindir)
+INSTALL_OVERRIDE_VAR_MANDIR = $(mandir)/man8
+
+include gar/category.mk

Added: csw/mgar/pkg/nfswatch/trunk/checksums
===================================================================
--- csw/mgar/pkg/nfswatch/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/nfswatch/trunk/checksums	2009-11-10 15:11:27 UTC (rev 7207)
@@ -0,0 +1,2 @@
+645f230be6f77138c97fac9a1afa6ccf  0001-Add-missing-ifdefs-to-shield-Linux.patch
+c20e510464f12384fdac330d8c84d127  nfswatch-4.99.10.tar.gz

Added: csw/mgar/pkg/nfswatch/trunk/files/0001-Add-missing-ifdefs-to-shield-Linux.patch
===================================================================
--- csw/mgar/pkg/nfswatch/trunk/files/0001-Add-missing-ifdefs-to-shield-Linux.patch	                        (rev 0)
+++ csw/mgar/pkg/nfswatch/trunk/files/0001-Add-missing-ifdefs-to-shield-Linux.patch	2009-11-10 15:11:27 UTC (rev 7207)
@@ -0,0 +1,51 @@
+From 500575a6535481ebb2b5067c7e47ada6d7338152 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 10 Nov 2009 16:02:20 +0100
+Subject: [PATCH] Add missing ifdefs to shield Linux
+
+---
+ nfswatch.c  |    2 +-
+ pktfilter.c |    2 ++
+ 2 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/nfswatch.c b/nfswatch.c
+index abb595e..0607b4e 100644
+--- a/nfswatch.c
++++ b/nfswatch.c
+@@ -637,12 +637,12 @@ main(int argc, char **argv)
+ 		finish(-1);
+ 	    }
+ 	}
+-#endif /* USE_LINUX */
+ 
+ 	if (ls.pcap == NULL) {
+ 		fprintf(stderr, "%s: no valid interfaces.\n", pname);
+ 		finish(-1);
+ 	}
++#endif /* USE_LINUX */
+ 
+ 	/*
+ 	 * Now lose super-user permission, since we
+diff --git a/pktfilter.c b/pktfilter.c
+index 2005012..eafcc63 100644
+--- a/pktfilter.c
++++ b/pktfilter.c
+@@ -196,6 +196,7 @@ pkt_filter_fddi(char *cp, u_int length, struct timeval *tstamp)
+ 	pkt_dispatch(packet, bdcst, etype, tstamp);
+ }
+ 
++#ifdef LINUX
+ /*
+  * A DLT_LINUX_SLL fake link-layer header.
+  */
+@@ -244,6 +245,7 @@ pkt_filter_sll(char *cp, u_int length, struct timeval *tstamp)
+ 	 */
+ 	pkt_dispatch(packet, bdcst, sheader.sll_protocol, tstamp);
+ }
++#endif
+ 
+ /*
+  * pkt_dispatch - count a packet, and pass it off to the appropriate filter.
+-- 
+1.6.5.1
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list