summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-04-02 05:37:29 +0000
committerWill Andrews <will@FreeBSD.org>2000-04-02 05:37:29 +0000
commit63eef36fd6230244ab5eda1670ba2bede924dac0 (patch)
treee732292ec694e49eed121a217ff8e658a70e79d3 /net
parentOoops, I forgot to add MAN8 for oidentd.8 after removing it from the (diff)
Add adns, an asynchronous DNS resolver library that provides a way to do
nslookups in a non-blocking manner. The adns distribution also comes with some utilities similar to dig, host, nslookup, etc. The port that I'm importing rips out the ${PORTOBJFORMAT} checking and also trims the extra stuff in pkg/DESCR, which the original submission contained. PR: 17510 Submitted by: Kostya Lukin <lukin@sapa.ivcme.elektra.ru> Reviewed by: billf, mharo
Notes
Notes: svn path=/head/; revision=27277
Diffstat (limited to 'net')
-rw-r--r--net/adns/Makefile23
-rw-r--r--net/adns/distinfo1
-rw-r--r--net/adns/files/patch-aa11
-rw-r--r--net/adns/files/patch-ab30
-rw-r--r--net/adns/pkg-comment1
-rw-r--r--net/adns/pkg-descr15
-rw-r--r--net/adns/pkg-plist8
7 files changed, 89 insertions, 0 deletions
diff --git a/net/adns/Makefile b/net/adns/Makefile
new file mode 100644
index 000000000000..f0ea2209d6bd
--- /dev/null
+++ b/net/adns/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: adns
+# Version required: 0.7
+# Date created: Mon Mar 3, 2000
+# Whom: Kostya Lukin <lukin@okbmei.msk.su>
+#
+# $FreeBSD$
+#
+
+DISTNAME= adns-0.7
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GNU} \
+ ftp://ftp.chiark.greenend.org.uk/users/ian/adns/
+MASTER_SITE_SUBDIR= adns
+
+MAINTAINER= lukin@okbmei.msk.su
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+
+post-install:
+ strip ${PREFIX}/bin/adnstest ${PREFIX}/bin/adnslogres ${PREFIX}/bin/adnshost
+
+.include <bsd.port.mk>
diff --git a/net/adns/distinfo b/net/adns/distinfo
new file mode 100644
index 000000000000..250b26711cdd
--- /dev/null
+++ b/net/adns/distinfo
@@ -0,0 +1 @@
+MD5 (adns-0.7.tar.gz) = dbf31b805b3d993d116a2ef9e45b93ae
diff --git a/net/adns/files/patch-aa b/net/adns/files/patch-aa
new file mode 100644
index 000000000000..5dbb8a59cec4
--- /dev/null
+++ b/net/adns/files/patch-aa
@@ -0,0 +1,11 @@
+--- configure.orig Wed Nov 24 19:57:32 1999
++++ configure Mon Mar 20 18:35:47 2000
+@@ -1457,7 +1457,7 @@
+
+ SHLIBFORLINK='libadns.so'
+ SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)'
+-SHLIBFILE='$(SHLIBSONAME).$(MINOR)'
++SHLIBFILE='$(SHLIBSONAME)'
+
+ SHLIBCC='$(CC) $(CFLAGS) -fpic'
+ MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o'
diff --git a/net/adns/files/patch-ab b/net/adns/files/patch-ab
new file mode 100644
index 000000000000..fbda698f88cc
--- /dev/null
+++ b/net/adns/files/patch-ab
@@ -0,0 +1,30 @@
+--- dynamic/Makefile.in.orig Fri Oct 15 21:57:50 1999
++++ dynamic/Makefile.in Mon Mar 20 18:41:21 2000
+@@ -24,7 +24,7 @@
+ srcdir= @srcdir@
+ VPATH= @srcdir@
+
+-TARGETS= $(SHLIBFILE) $(SHLIBSONAME) $(SHLIBFORLINK)
++TARGETS= $(SHLIBFILE) $(SHLIBFORLINK)
+ include $(srcdir)/../settings.make
+ include $(srcdir)/../src/adns.make
+
+@@ -32,16 +32,12 @@
+
+ install:
+ $(INSTALL_PROGRAM) $(SHLIBFILE) $(lib_dir)/$(SHLIBFILE)
+- ln -sf $(SHLIBFILE) $(lib_dir)/$(SHLIBSONAME)
+
+ uninstall:
+- rm -f $(lib_dir)/$(SHLIBFILE) $(lib_dir)/$(SHLIBSONAME)
++ rm -f $(lib_dir)/$(SHLIBFILE)
+
+ $(SHLIBFORLINK):
+- ln -s $(SHLIBSONAME) $(SHLIBFORLINK)
+-
+-$(SHLIBSONAME):
+- ln -s $(SHLIBFILE) $(SHLIBSONAME)
++ ln -s $(SHLIBFILE) $(SHLIBFORLINK)
+
+ $(SHLIBFILE): $(ALLOBJS)
+ rm -f $@
diff --git a/net/adns/pkg-comment b/net/adns/pkg-comment
new file mode 100644
index 000000000000..ec85d4bc47b9
--- /dev/null
+++ b/net/adns/pkg-comment
@@ -0,0 +1 @@
+Easy to use, asynchronous-capable DNS client library and utilities
diff --git a/net/adns/pkg-descr b/net/adns/pkg-descr
new file mode 100644
index 000000000000..cfa788211c2c
--- /dev/null
+++ b/net/adns/pkg-descr
@@ -0,0 +1,15 @@
+adns is a resolver library for C (and C++) programs. In contrast with
+the existing interfaces, gethostbyname et al and libresolv, it has the
+following features:
+
+* It is reasonably easy to use for simple programs which just want
+ to translate names to addresses, look up MX records, etc.
+* It can be used in an asynchronous, non-blocking, manner. Many
+ queries can be handled simultaneously.
+
+Technical note: adns requires a real nameserver like BIND or
+Dents running on the same system or a nearby one, which must be
+willing to provide `recursive service'. I.e., adns is a `stub
+resolver'.
+
+WWW: http://www.chiark.greenend.org.uk/~ian/adns/
diff --git a/net/adns/pkg-plist b/net/adns/pkg-plist
new file mode 100644
index 000000000000..34413637cc04
--- /dev/null
+++ b/net/adns/pkg-plist
@@ -0,0 +1,8 @@
+bin/adnstest
+bin/adnslogres
+bin/adnshost
+include/adns.h
+lib/libadns.a
+lib/libadns.so.0
+@exec /sbin/ldconfig -m %D/lib
+@unexec /sbin/ldconfig -R