svn commit: r330948 - in head/sysutils: . nfsping nfsping/files
Bryan Drewery
bdrewery at FreeBSD.org
Sun Oct 20 00:18:18 UTC 2013
Author: bdrewery
Date: Sun Oct 20 00:18:16 2013
New Revision: 330948
URL: http://svnweb.freebsd.org/changeset/ports/330948
Log:
Add sysutils/nfsping
NFSping is a command line utility for measuring the response time of an NFS
server. It's basically a copy of the fping interface but doesn't share any code
with that project.
On modern NFS servers, the network stack and filesystem are often being run on
separate cores or even hardware components. This means in practise that a fast
ICMP ping response isn't indicative of how quickly the NFS filesystem is
responding. This tool more directly tests the responsiveness of the server's
operating system's NFS component.
WWW: https://github.com/mprovost/NFSping
Added:
head/sysutils/nfsping/
head/sysutils/nfsping/Makefile (contents, props changed)
head/sysutils/nfsping/distinfo (contents, props changed)
head/sysutils/nfsping/files/
head/sysutils/nfsping/files/patch-Makefile (contents, props changed)
head/sysutils/nfsping/pkg-descr (contents, props changed)
head/sysutils/nfsping/pkg-plist (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Sat Oct 19 23:28:06 2013 (r330947)
+++ head/sysutils/Makefile Sun Oct 20 00:18:16 2013 (r330948)
@@ -553,6 +553,7 @@
SUBDIR += nepomuk-widgets
SUBDIR += netident
SUBDIR += news
+ SUBDIR += nfsping
SUBDIR += nitrogen
SUBDIR += no-login
SUBDIR += npadmin
Added: head/sysutils/nfsping/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nfsping/Makefile Sun Oct 20 00:18:16 2013 (r330948)
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+PORTNAME= nfsping
+PORTVERSION= 0.1.20131017
+CATEGORIES= sysutils net-mgmt
+MASTER_SITES= GH \
+ LOCAL/bdrewery/${PORTNAME}/
+
+MAINTAINER= bdrewery at FreeBSD.org
+COMMENT= Command line tool to check NFS server response times
+
+LICENSE= BSD
+
+OPTIONS_DEFINE= DOCS SMOKEPING
+OPTIONS_DEFAULT=SMOKEPING
+OPTIONS_SUB= yes
+SMOKEPING_DESC= Install Smokeping probe
+
+USES= gmake
+
+USE_GITHUB= yes
+GH_ACCOUNT= mprovost
+GH_PROJECT= NFSping
+GH_COMMIT= 460c382
+GH_TAGNAME= ${GH_COMMIT}
+
+PORTDOCS= README
+
+.include <bsd.port.options.mk>
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+.endif
+.if ${PORT_OPTIONS:MSMOKEPING}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/smokeping/lib/Smokeping/probes
+ ${INSTALL_DATA} ${WRKSRC}/Smokeping/NFSping.pm \
+ ${STAGEDIR}${PREFIX}/smokeping/lib/Smokeping/probes
+.endif
+
+.include <bsd.port.mk>
Added: head/sysutils/nfsping/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nfsping/distinfo Sun Oct 20 00:18:16 2013 (r330948)
@@ -0,0 +1,2 @@
+SHA256 (nfsping-0.1.20131017.tar.gz) = 0ddd7296d57721b0e93e23e1e0f6260f19fa901a723161daef3ebd977ac9755c
+SIZE (nfsping-0.1.20131017.tar.gz) = 27123
Added: head/sysutils/nfsping/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nfsping/files/patch-Makefile Sun Oct 20 00:18:16 2013 (r330948)
@@ -0,0 +1,38 @@
+--- ./Makefile.orig 2013-10-19 17:19:23.064145798 -0500
++++ ./Makefile 2013-10-19 17:19:37.904136233 -0500
+@@ -3,27 +3,27 @@
+ CFLAGS=-Werror -g -I src -I.
+
+ nfsping: src/nfsping.c src/nfsping.h src/nfs_prot_clnt.c src/mount_clnt.c src/util.c src/rpc.c
+- gcc ${CFLAGS} src/nfsping.c src/nfs_prot_clnt.c src/nfs_prot_xdr.c src/mount_clnt.c src/mount_xdr.c src/util.c src/rpc.c -o $@
++ $(CC) ${CFLAGS} src/nfsping.c src/nfs_prot_clnt.c src/nfs_prot_xdr.c src/mount_clnt.c src/mount_xdr.c src/util.c src/rpc.c -o $@
+
+ src/nfs_prot.h src/nfs_prot_clnt.c src/nfs_prot_svc.c src/nfs_prot_xdr.c: src/nfs_prot.x
+- rpcgen -DWANT_NFS3 $<
++ cd src && rpcgen -DWANT_NFS3 `basename $<`
+
+ src/mount.h src/mount_clnt.c src/mount_svc.c src/mount_xdr.c: src/mount.x
+- rpcgen -DWANT_NFS3 $<
++ cd src && rpcgen -DWANT_NFS3 `basename $<`
+
+ nfsmount: src/mount.c src/nfsping.h src/mount_clnt.c src/mount_xdr.c src/rpc.c
+- gcc ${CFLAGS} $^ -o $@
++ $(CC) ${CFLAGS} $^ -o $@
+
+ nfsdf: src/df.c src/nfsping.h src/nfs_prot_clnt.c src/nfs_prot_xdr.c src/util.c
+- gcc ${CFLAGS} $^ -o $@
++ $(CC) ${CFLAGS} $^ -o $@
+
+ nfsls: src/ls.c src/nfs_prot_clnt.c src/nfs_prot_xdr.c src/util.c src/rpc.c
+- gcc ${CFLAGS} $^ -o $@
++ $(CC) ${CFLAGS} $^ -o $@
+
+ nfscat: src/cat.c src/nfs_prot_clnt.c src/nfs_prot_xdr.c src/util.c src/rpc.c
+- gcc ${CFLAGS} $^ -o $@
++ $(CC) ${CFLAGS} $^ -o $@
+
+ tests: tests/util_tests
+
+ tests/util_tests: tests/util_tests.c tests/minunit.h src/util.c src/util.h
+- gcc ${CFLAGS} tests/util_tests.c src/util.c -o $@
++ $(CC) ${CFLAGS} tests/util_tests.c src/util.c -o $@
Added: head/sysutils/nfsping/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nfsping/pkg-descr Sun Oct 20 00:18:16 2013 (r330948)
@@ -0,0 +1,11 @@
+NFSping is a command line utility for measuring the response time of an NFS
+server. It's basically a copy of the fping interface but doesn't share any code
+with that project.
+
+On modern NFS servers, the network stack and filesystem are often being run on
+separate cores or even hardware components. This means in practise that a fast
+ICMP ping response isn't indicative of how quickly the NFS filesystem is
+responding. This tool more directly tests the responsiveness of the server's
+operating system's NFS component.
+
+WWW: https://github.com/mprovost/NFSping
Added: head/sysutils/nfsping/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nfsping/pkg-plist Sun Oct 20 00:18:16 2013 (r330948)
@@ -0,0 +1,6 @@
+bin/nfsping
+%%SMOKEPING%%smokeping/lib/Smokeping/probes/NFSping.pm
+%%SMOKEPING%%@dirrmtry smokeping/lib/Smokeping/probes
+%%SMOKEPING%%@dirrmtry smokeping/lib/Smokeping
+%%SMOKEPING%%@dirrmtry smokeping/lib
+%%SMOKEPING%%@dirrmtry smokeping
More information about the svn-ports-all
mailing list