mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add host, an utility to query DNS servers (similar to one found in the BIND
distribution).
This commit is contained in:
parent
00e501d1bc
commit
48dba8c86f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44587
13 changed files with 221 additions and 0 deletions
22
dns/host/Makefile
Normal file
22
dns/host/Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# New ports collection makefile for: host
|
||||
# Date created: 29 June 2001
|
||||
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= host
|
||||
PORTVERSION= 991529
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.dtek.chalmers.se/~d3august/xt/ \
|
||||
ftp://ftp.nikhef.nl/pub/network/
|
||||
DISTNAME= ${PORTNAME}
|
||||
EXTRACT_SUFX= .tar.Z
|
||||
|
||||
MAINTAINER= sobomax@FreeBSD.org
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
MAN1= host.1
|
||||
|
||||
.include <bsd.port.mk>
|
1
dns/host/distinfo
Normal file
1
dns/host/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (host.tar.Z) = f3c5589cbe168a49581e856fe26b4808
|
84
dns/host/files/patch-Makefile
Normal file
84
dns/host/files/patch-Makefile
Normal file
|
@ -0,0 +1,84 @@
|
|||
|
||||
$FreeBSD$
|
||||
|
||||
--- Makefile.orig Wed Mar 15 23:51:39 2000
|
||||
+++ Makefile Fri Jun 29 13:42:36 2001
|
||||
@@ -5,10 +5,10 @@
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
# This is where the host executable will go.
|
||||
-DESTBIN = /usr/local/bin
|
||||
+DESTBIN = $(PREFIX)/bin
|
||||
|
||||
# This is where the host manual page will go.
|
||||
-DESTMAN = /usr/local/man
|
||||
+DESTMAN = $(PREFIX)/man
|
||||
|
||||
BINDIR = $(DESTBIN)
|
||||
MANDIR = $(DESTMAN)/man1
|
||||
@@ -82,16 +82,16 @@
|
||||
|
||||
COPTS =
|
||||
COPTS = -O -DDEBUG
|
||||
-COPTS = -O
|
||||
+COPTS =
|
||||
|
||||
-CFLAGS = $(COPTS) $(DEFS)
|
||||
+#CFLAGS = $(COPTS) $(DEFS)
|
||||
|
||||
# Select your favorite compiler.
|
||||
-CC = /usr/ucb/cc #if defined(solaris) && BSD
|
||||
-CC = /bin/cc -arch m68k -arch i386 #if defined(next)
|
||||
-CC = /bin/cc -Olimit 1000 #if defined(ultrix)
|
||||
-CC = /bin/cc
|
||||
-CC = cc
|
||||
+CC ?= /usr/ucb/cc #if defined(solaris) && BSD
|
||||
+CC ?= /bin/cc -arch m68k -arch i386 #if defined(next)
|
||||
+CC ?= /bin/cc -Olimit 1000 #if defined(ultrix)
|
||||
+CC ?= /bin/cc
|
||||
+CC ?= cc
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Linking definitions.
|
||||
@@ -109,8 +109,8 @@
|
||||
|
||||
RES = -lsocket #if defined(SCO) && default
|
||||
RES =
|
||||
-RES = ../../res/libresolv.a
|
||||
-RES = -lresolv
|
||||
+#RES = ../../res/libresolv.a
|
||||
+#RES = -lresolv
|
||||
|
||||
COMPLIB = ../../compat/lib/lib44bsd.a
|
||||
COMPLIB = -lnet
|
||||
@@ -130,13 +130,13 @@
|
||||
# redefined by bind
|
||||
CDEBUG = $(COPTS) $(CONFIGDEFS)
|
||||
CDEFS = $(SYSDEFS) $(INCLUDES)
|
||||
-CFLAGS = $(CDEBUG) $(CDEFS)
|
||||
+CFLAGS += $(CDEBUG) $(CDEFS)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Miscellaneous definitions.
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
-MAKE = make $(MFLAGS)
|
||||
+MAKE += $(MFLAGS)
|
||||
|
||||
# This assumes the BSD install.
|
||||
INSTALL = install -c
|
||||
@@ -183,11 +183,9 @@
|
||||
$(PROG): $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBRARIES)
|
||||
|
||||
-install: $(PROG)
|
||||
- $(INSTALL) -m $(MODE) -o $(OWNER) -g $(GROUP) $(STRIP) $(PROG) $(BINDIR)
|
||||
-
|
||||
-man: $(MANS)
|
||||
- $(INSTALL) -m 444 host.1 $(MANDIR)
|
||||
+install: $(PROG) $(MANS)
|
||||
+ $(BSD_INSTALL_PROGRAM) $(PROG) $(BINDIR)
|
||||
+ $(BSD_INSTALL_MAN) host.1 $(MANDIR)
|
||||
|
||||
clean:
|
||||
rm -f $(CLEANUP) *.o a.out core
|
1
dns/host/pkg-comment
Normal file
1
dns/host/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
An utility to query DNS servers
|
1
dns/host/pkg-descr
Normal file
1
dns/host/pkg-descr
Normal file
|
@ -0,0 +1 @@
|
|||
An utility to query DNS servers, similar to one found in the BIND distribution.
|
1
dns/host/pkg-plist
Normal file
1
dns/host/pkg-plist
Normal file
|
@ -0,0 +1 @@
|
|||
bin/host
|
|
@ -129,6 +129,7 @@
|
|||
SUBDIR += h2n
|
||||
SUBDIR += hagelslag
|
||||
SUBDIR += hesiod
|
||||
SUBDIR += host
|
||||
SUBDIR += hx
|
||||
SUBDIR += icb
|
||||
SUBDIR += icmpinfo
|
||||
|
|
22
net/host/Makefile
Normal file
22
net/host/Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# New ports collection makefile for: host
|
||||
# Date created: 29 June 2001
|
||||
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= host
|
||||
PORTVERSION= 991529
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.dtek.chalmers.se/~d3august/xt/ \
|
||||
ftp://ftp.nikhef.nl/pub/network/
|
||||
DISTNAME= ${PORTNAME}
|
||||
EXTRACT_SUFX= .tar.Z
|
||||
|
||||
MAINTAINER= sobomax@FreeBSD.org
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
MAN1= host.1
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/host/distinfo
Normal file
1
net/host/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (host.tar.Z) = f3c5589cbe168a49581e856fe26b4808
|
84
net/host/files/patch-Makefile
Normal file
84
net/host/files/patch-Makefile
Normal file
|
@ -0,0 +1,84 @@
|
|||
|
||||
$FreeBSD$
|
||||
|
||||
--- Makefile.orig Wed Mar 15 23:51:39 2000
|
||||
+++ Makefile Fri Jun 29 13:42:36 2001
|
||||
@@ -5,10 +5,10 @@
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
# This is where the host executable will go.
|
||||
-DESTBIN = /usr/local/bin
|
||||
+DESTBIN = $(PREFIX)/bin
|
||||
|
||||
# This is where the host manual page will go.
|
||||
-DESTMAN = /usr/local/man
|
||||
+DESTMAN = $(PREFIX)/man
|
||||
|
||||
BINDIR = $(DESTBIN)
|
||||
MANDIR = $(DESTMAN)/man1
|
||||
@@ -82,16 +82,16 @@
|
||||
|
||||
COPTS =
|
||||
COPTS = -O -DDEBUG
|
||||
-COPTS = -O
|
||||
+COPTS =
|
||||
|
||||
-CFLAGS = $(COPTS) $(DEFS)
|
||||
+#CFLAGS = $(COPTS) $(DEFS)
|
||||
|
||||
# Select your favorite compiler.
|
||||
-CC = /usr/ucb/cc #if defined(solaris) && BSD
|
||||
-CC = /bin/cc -arch m68k -arch i386 #if defined(next)
|
||||
-CC = /bin/cc -Olimit 1000 #if defined(ultrix)
|
||||
-CC = /bin/cc
|
||||
-CC = cc
|
||||
+CC ?= /usr/ucb/cc #if defined(solaris) && BSD
|
||||
+CC ?= /bin/cc -arch m68k -arch i386 #if defined(next)
|
||||
+CC ?= /bin/cc -Olimit 1000 #if defined(ultrix)
|
||||
+CC ?= /bin/cc
|
||||
+CC ?= cc
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Linking definitions.
|
||||
@@ -109,8 +109,8 @@
|
||||
|
||||
RES = -lsocket #if defined(SCO) && default
|
||||
RES =
|
||||
-RES = ../../res/libresolv.a
|
||||
-RES = -lresolv
|
||||
+#RES = ../../res/libresolv.a
|
||||
+#RES = -lresolv
|
||||
|
||||
COMPLIB = ../../compat/lib/lib44bsd.a
|
||||
COMPLIB = -lnet
|
||||
@@ -130,13 +130,13 @@
|
||||
# redefined by bind
|
||||
CDEBUG = $(COPTS) $(CONFIGDEFS)
|
||||
CDEFS = $(SYSDEFS) $(INCLUDES)
|
||||
-CFLAGS = $(CDEBUG) $(CDEFS)
|
||||
+CFLAGS += $(CDEBUG) $(CDEFS)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Miscellaneous definitions.
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
-MAKE = make $(MFLAGS)
|
||||
+MAKE += $(MFLAGS)
|
||||
|
||||
# This assumes the BSD install.
|
||||
INSTALL = install -c
|
||||
@@ -183,11 +183,9 @@
|
||||
$(PROG): $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBRARIES)
|
||||
|
||||
-install: $(PROG)
|
||||
- $(INSTALL) -m $(MODE) -o $(OWNER) -g $(GROUP) $(STRIP) $(PROG) $(BINDIR)
|
||||
-
|
||||
-man: $(MANS)
|
||||
- $(INSTALL) -m 444 host.1 $(MANDIR)
|
||||
+install: $(PROG) $(MANS)
|
||||
+ $(BSD_INSTALL_PROGRAM) $(PROG) $(BINDIR)
|
||||
+ $(BSD_INSTALL_MAN) host.1 $(MANDIR)
|
||||
|
||||
clean:
|
||||
rm -f $(CLEANUP) *.o a.out core
|
1
net/host/pkg-comment
Normal file
1
net/host/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
An utility to query DNS servers
|
1
net/host/pkg-descr
Normal file
1
net/host/pkg-descr
Normal file
|
@ -0,0 +1 @@
|
|||
An utility to query DNS servers, similar to one found in the BIND distribution.
|
1
net/host/pkg-plist
Normal file
1
net/host/pkg-plist
Normal file
|
@ -0,0 +1 @@
|
|||
bin/host
|
Loading…
Add table
Reference in a new issue