aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-04-02 13:37:29 +0800
committerwill <will@FreeBSD.org>2000-04-02 13:37:29 +0800
commitec12872aad0dc71d676c622f047a3211fa397873 (patch)
tree619129d20ab0b480bc737bbd5659c07cc079b149 /net
parent6fbf756414a3f2119e7a2cb66e4ed3a799b0ff00 (diff)
downloadfreebsd-ports-gnome-ec12872aad0dc71d676c622f047a3211fa397873.tar.gz
freebsd-ports-gnome-ec12872aad0dc71d676c622f047a3211fa397873.tar.zst
freebsd-ports-gnome-ec12872aad0dc71d676c622f047a3211fa397873.zip
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
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