aboutsummaryrefslogtreecommitdiff
path: root/net/nsping
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-03-05 09:38:56 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-03-05 09:38:56 +0000
commit95ab1a6bbaf203f931376a8cf5a790fe51a24196 (patch)
tree6e9b1302089ac05921b380b3d7fb3c59671eed4e /net/nsping
parentcf3d05cb927395f57268d4c69af78d82e622830e (diff)
downloadports-95ab1a6bbaf203f931376a8cf5a790fe51a24196.tar.gz
ports-95ab1a6bbaf203f931376a8cf5a790fe51a24196.zip
Notes
Diffstat (limited to 'net/nsping')
-rw-r--r--net/nsping/Makefile23
-rw-r--r--net/nsping/distinfo3
-rw-r--r--net/nsping/files/patch-aa17
-rw-r--r--net/nsping/files/patch-ab28
-rw-r--r--net/nsping/pkg-comment1
-rw-r--r--net/nsping/pkg-descr7
-rw-r--r--net/nsping/pkg-plist1
7 files changed, 80 insertions, 0 deletions
diff --git a/net/nsping/Makefile b/net/nsping/Makefile
new file mode 100644
index 000000000000..797cb44f4349
--- /dev/null
+++ b/net/nsping/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: nsping
+# Version required: 0.8
+# Date created: 04 March 2000
+# Whom: Kris Kennaway <kris@FreeBSD.org>
+#
+# $FreeBSD$
+
+DISTNAME= nsping
+PKGNAME= nsping-0.8
+CATEGORIES= net
+MASTER_SITES= http://www.enteract.com/~tqbf/
+
+MAINTAINER= kris@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+MAN8= nsping.8
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/nsping ${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/nsping.8 ${PREFIX}/man/man8
+
+.include <bsd.port.mk>
diff --git a/net/nsping/distinfo b/net/nsping/distinfo
new file mode 100644
index 000000000000..c0d519e6d4a1
--- /dev/null
+++ b/net/nsping/distinfo
@@ -0,0 +1,3 @@
+MD5 (nsping.tar.gz) = 64785a50eb065a9b28ee33ec8c1ccab2
+RMD160 (nsping.tar.gz) = 6f64f04a3b97c04ab978dcd170e0f9f590f2952a
+SHA1 (nsping.tar.gz) = 3e85186a1db7566728426b13c5683afe5ed96752
diff --git a/net/nsping/files/patch-aa b/net/nsping/files/patch-aa
new file mode 100644
index 000000000000..6b3d4f607e20
--- /dev/null
+++ b/net/nsping/files/patch-aa
@@ -0,0 +1,17 @@
+--- Makefile.orig Mon Nov 24 04:56:28 1997
++++ Makefile Fri Nov 12 15:53:26 1999
+@@ -1,4 +1,4 @@
+-CFLAGS= -g
++#CFLAGS= -g
+ #Solaris
+ #CFLAGS= -g -Dsys5
+ LDFLAGS=
+@@ -10,6 +10,8 @@
+ OBJS= nsping.o dns-lib.o dns-rr.o
+ SRCS= nsping.c dns-lib.c dns-rr.c
+ HEADERS= nsping.h dns-lib.h dns-rr.h
++
++all: ${TARGET}
+
+ ${TARGET} : ${OBJS}
+ ${CC} ${CFLAGS} -o ${TARGET} ${OBJS} ${LDFLAGS} ${LIBS}
diff --git a/net/nsping/files/patch-ab b/net/nsping/files/patch-ab
new file mode 100644
index 000000000000..970acc7d39cc
--- /dev/null
+++ b/net/nsping/files/patch-ab
@@ -0,0 +1,28 @@
+--- nsping.c.orig Fri Nov 12 15:30:42 1999
++++ nsping.c Fri Nov 12 15:44:06 1999
+@@ -189,10 +189,14 @@
+
+ int guess_zone() {
+ char lhn[MAXDNAME];
++ struct hostent *hp;
+ char *cp;
+
+ if(gethostname(lhn, MAXDNAME) < 0)
+ return(0);
++ if((hp = gethostbyname(lhn)) == NULL)
++ return(0);
++ strlcpy(lhn, hp->h_name, sizeof(lhn));
+
+ cp = strchr(lhn, '.');
+ if(!cp || !(*(++cp)))
+@@ -679,9 +683,7 @@
+ /* -------------------------------------------------------------------------- */
+
+ void usage() {
+- fprintf(stderr, "nsping [ -z <zone> | -h <hostname> ] -p <port> -t <timeout>\n"
+- "\t\t-a <local address> -P <local port>\n"
+- "\t\t-T <type> <-r | -R, recurse?>\n");
++ fprintf(stderr, "Usage: nsping [-dR] [-c count] [-z zone | -h hostname] [-t timeout] [-p dport] [-P sport] [-a saddr] [-T querytype]\n");
+ return;
+ }
+
diff --git a/net/nsping/pkg-comment b/net/nsping/pkg-comment
new file mode 100644
index 000000000000..7ea95bbb5d7b
--- /dev/null
+++ b/net/nsping/pkg-comment
@@ -0,0 +1 @@
+DNS "ping"
diff --git a/net/nsping/pkg-descr b/net/nsping/pkg-descr
new file mode 100644
index 000000000000..f367812a6614
--- /dev/null
+++ b/net/nsping/pkg-descr
@@ -0,0 +1,7 @@
+from nsping.8:
+
+ Nsping uses DNS queries to monitor reachability and operation of name-
+ servers, as well as the latency of DNS queries. It does this by sending
+ random recursive DNS queries to the nameserver (avoiding the effects of
+ DNS caching) and measuring the amount of time between the sending of the
+ query and the receipt of the response packet.
diff --git a/net/nsping/pkg-plist b/net/nsping/pkg-plist
new file mode 100644
index 000000000000..af88623b47cd
--- /dev/null
+++ b/net/nsping/pkg-plist
@@ -0,0 +1 @@
+sbin/nsping