From 95ab1a6bbaf203f931376a8cf5a790fe51a24196 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 5 Mar 2000 09:38:56 +0000 Subject: nsping 0.8 is a tool for 'pinging' DNS servers. Obtained from: OpenBSD --- dns/nsping/Makefile | 23 +++++++++++++++++++++++ dns/nsping/distinfo | 3 +++ dns/nsping/files/patch-aa | 17 +++++++++++++++++ dns/nsping/files/patch-ab | 28 ++++++++++++++++++++++++++++ dns/nsping/pkg-comment | 1 + dns/nsping/pkg-descr | 7 +++++++ dns/nsping/pkg-plist | 1 + 7 files changed, 80 insertions(+) create mode 100644 dns/nsping/Makefile create mode 100644 dns/nsping/distinfo create mode 100644 dns/nsping/files/patch-aa create mode 100644 dns/nsping/files/patch-ab create mode 100644 dns/nsping/pkg-comment create mode 100644 dns/nsping/pkg-descr create mode 100644 dns/nsping/pkg-plist (limited to 'dns/nsping') 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 +# +# $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 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 | -h ] -p -t \n" +- "\t\t-a -P \n" +- "\t\t-T <-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 -- cgit v1.2.3