aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-03-05 17:38:56 +0800
committerkris <kris@FreeBSD.org>2000-03-05 17:38:56 +0800
commit6daf724843550ca83b40248db462e198dbdff561 (patch)
tree9edb5b888bc08e9bfb8c15f6e2acf9fabca94ab5 /dns
parent4642c7dccb539dff82acfe343a69087adb0cc4b0 (diff)
downloadfreebsd-ports-gnome-6daf724843550ca83b40248db462e198dbdff561.tar.gz
freebsd-ports-gnome-6daf724843550ca83b40248db462e198dbdff561.tar.zst
freebsd-ports-gnome-6daf724843550ca83b40248db462e198dbdff561.zip
nsping 0.8 is a tool for 'pinging' DNS servers.
Obtained from: OpenBSD
Diffstat (limited to 'dns')
-rw-r--r--dns/nsping/Makefile23
-rw-r--r--dns/nsping/distinfo3
-rw-r--r--dns/nsping/files/patch-aa17
-rw-r--r--dns/nsping/files/patch-ab28
-rw-r--r--dns/nsping/pkg-comment1
-rw-r--r--dns/nsping/pkg-descr7
-rw-r--r--dns/nsping/pkg-plist1
7 files changed, 80 insertions, 0 deletions
diff --git a/dns/nsping/Makefile b/dns/nsping/Makefile
new file mode 100644
index 000000000000..797cb44f4349
--- /dev/null
+++ b/dns/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/dns/nsping/distinfo b/dns/nsping/distinfo
new file mode 100644
index 000000000000..c0d519e6d4a1
--- /dev/null
+++ b/dns/nsping/distinfo
@@ -0,0 +1,3 @@
+MD5 (nsping.tar.gz) = 64785a50eb065a9b28ee33ec8c1ccab2
+RMD160 (nsping.tar.gz) = 6f64f04a3b97c04ab978dcd170e0f9f590f2952a
+SHA1 (nsping.tar.gz) = 3e85186a1db7566728426b13c5683afe5ed96752
diff --git a/dns/nsping/files/patch-aa b/dns/nsping/files/patch-aa
new file mode 100644
index 000000000000..6b3d4f607e20
--- /dev/null
+++ b/dns/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/dns/nsping/files/patch-ab b/dns/nsping/files/patch-ab
new file mode 100644
index 000000000000..970acc7d39cc
--- /dev/null
+++ b/dns/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/dns/nsping/pkg-comment b/dns/nsping/pkg-comment
new file mode 100644
index 000000000000..7ea95bbb5d7b
--- /dev/null
+++ b/dns/nsping/pkg-comment
@@ -0,0 +1 @@
+DNS "ping"
diff --git a/dns/nsping/pkg-descr b/dns/nsping/pkg-descr
new file mode 100644
index 000000000000..f367812a6614
--- /dev/null
+++ b/dns/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/dns/nsping/pkg-plist b/dns/nsping/pkg-plist
new file mode 100644
index 000000000000..af88623b47cd
--- /dev/null
+++ b/dns/nsping/pkg-plist
@@ -0,0 +1 @@
+sbin/nsping