summaryrefslogtreecommitdiff
path: root/net/gethost
diff options
context:
space:
mode:
authorkim <kim>2002-07-10 02:12:00 +0000
committerkim <kim>2002-07-10 02:12:00 +0000
commit6cd0e1676716c124e33503a81c8b78b5dc7dc3cd (patch)
treea24e4d47d6103b4c672f89bdb348425334fd9385 /net/gethost
parent8feafd486070b12d7c7d01e5f16b0fcb95c9c704 (diff)
downloadpkgsrc-6cd0e1676716c124e33503a81c8b78b5dc7dc3cd.tar.gz
Add net/gethost submitted by reed@reedmedia.net, with minor mods by me.
Closes PR 17489.
Diffstat (limited to 'net/gethost')
-rw-r--r--net/gethost/DESCR6
-rw-r--r--net/gethost/Makefile17
-rw-r--r--net/gethost/PLIST3
-rw-r--r--net/gethost/distinfo5
-rw-r--r--net/gethost/patches/patch-aa12
5 files changed, 43 insertions, 0 deletions
diff --git a/net/gethost/DESCR b/net/gethost/DESCR
new file mode 100644
index 00000000000..c8c1a0ccd74
--- /dev/null
+++ b/net/gethost/DESCR
@@ -0,0 +1,6 @@
+gethost does hostname and IP lookups. It supports IPv6.
+It uses standard libraries and it doesn't necessarily
+use DNS resolver only. So it is useful for troubleshooting
+/etc/hosts, for example. gethost can also time each lookup
+to show the elapsed time in seconds. Multiple lookups
+can be done on one command-line.
diff --git a/net/gethost/Makefile b/net/gethost/Makefile
new file mode 100644
index 00000000000..7392a4e1435
--- /dev/null
+++ b/net/gethost/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/07/10 02:12:00 kim Exp $
+
+CATEGORIES= net
+DISTNAME= gethost-0.03
+
+MASTER_SITES= http://www.reedmedia.net/software/gethost/
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://www.reedmedia.net/software/gethost/
+COMMENT= A hostname and IP resolver for testing /etc/hosts, nsswitch.conf
+
+ALL_TARGET= gethost
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gethost ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/gethost.1 ${PREFIX}/man/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/gethost/PLIST b/net/gethost/PLIST
new file mode 100644
index 00000000000..53c45490b85
--- /dev/null
+++ b/net/gethost/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/10 02:12:00 kim Exp $
+bin/gethost
+man/man1/gethost.1
diff --git a/net/gethost/distinfo b/net/gethost/distinfo
new file mode 100644
index 00000000000..94abe2892e7
--- /dev/null
+++ b/net/gethost/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/07/10 02:12:00 kim Exp $
+
+SHA1 (gethost-0.03.tar.gz) = af14f462f3019b5d133d7677e015fa0db2db65b9
+Size (gethost-0.03.tar.gz) = 4226 bytes
+SHA1 (patch-aa) = ea90d5d713088c9dc17df328dbc2e59445c9a502
diff --git a/net/gethost/patches/patch-aa b/net/gethost/patches/patch-aa
new file mode 100644
index 00000000000..204f5e8b295
--- /dev/null
+++ b/net/gethost/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/07/10 02:12:00 kim Exp $
+
+--- Makefile.orig Fri Jul 5 20:40:46 2002
++++ Makefile Tue Jul 9 22:08:03 2002
+@@ -1,5 +1,5 @@
+-CC = gcc
+-CFLAGS = -g -Wall -ansi -pedantic
++#CC = gcc
++#CFLAGS = -g -Wall -ansi -pedantic
+
+ gethost: gethost.c
+ $(CC) $(CFLAGS) -o gethost gethost.c