import udns: stub DNS resolver library

UDNS is a stub DNS resolver library with ability to perform both
syncronous and asyncronous DNS queries.
This commit is contained in:
sebastia 2010-10-23 22:55:01 +00:00
parent f3de428da8
commit ca14db0393
6 changed files with 83 additions and 0 deletions

51
net/udns/Makefile Normal file
View File

@ -0,0 +1,51 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/10/23 22:55:01 sebastia Exp $
COMMENT= stub DNS resolver library
VERSION= 0.0.9
DISTNAME= udns_${VERSION}
PKGNAME= udns-${VERSION}
CATEGORIES= net
SHARED_LIBS+= udns 0.0
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
HOMEPAGE= http://www.corpit.ru/mjt/udns.html
MASTER_SITES= http://www.corpit.ru/mjt/udns/
WANTLIB += c
.if ${MACHINE_ARCH} != "vax" && ${MACHINE_ARCH} != "m88k"
ALL_TARGET= sharedlib shared staticlib
MAKE_FLAGS= SOVER=${LIBudns_VERSION}
.else
ALL_TARGET= staticlib static
.endif
CONFIGURE_STYLE= simple
WRKDIST= ${WRKDIR}/udns-${VERSION}
NO_REGRESS= Yes
do-install:
${INSTALL_DATA} ${WRKSRC}/udns.h ${PREFIX}/include
${INSTALL_MAN} ${WRKSRC}/udns.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/dnsget.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/rblcheck.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/libudns.a ${PREFIX}/lib
.if ${MACHINE_ARCH} != "vax" && ${MACHINE_ARCH} != "m88k"
${INSTALL_PROGRAM} ${WRKSRC}/dnsget_s ${PREFIX}/bin/dnsget
${INSTALL_PROGRAM} ${WRKSRC}/rblcheck_s ${PREFIX}/bin/rblcheck
${INSTALL_DATA} ${WRKSRC}/libudns.so.${LIBudns_VERSION} ${PREFIX}/lib
.else
${INSTALL_PROGRAM} ${WRKSRC}/dnsget ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/rblcheck ${PREFIX}/bin
.endif
.include <bsd.port.mk>

5
net/udns/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (udns_0.0.9.tar.gz) = eIQ63e1va2kLxgGauO8DyQ==
RMD160 (udns_0.0.9.tar.gz) = wtebl82odhSmRNpqG+LVXzVNiiI=
SHA1 (udns_0.0.9.tar.gz) = l5KsEmGdI9MIb5YFYUKCOMQaJeA=
SHA256 (udns_0.0.9.tar.gz) = z8X5tTh/luSPyceqXvZRGAnmxywN8NUzzxUAFoFuqtI=
SIZE (udns_0.0.9.tar.gz) = 84307

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2010/10/23 22:55:01 sebastia Exp $
run ranlib to fix build on vax and m88k
--- Makefile.in.orig Sat Oct 23 11:42:57 2010
+++ Makefile.in Sat Oct 23 11:43:17 2010
@@ -65,6 +65,7 @@ staticlib: $(LIB)
$(LIB): $(OBJS)
-rm -f $@
$(AR) rv $@ $(OBJS)
+ $(RANLIB) $(LIB)
.c.o:
$(CC) $(CFLAGS) $(CDEFS) -c $<

2
net/udns/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
UDNS is a stub DNS resolver library with ability to perform both
syncronous and asyncronous DNS queries.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/10/23 22:55:01 sebastia Exp $
@lib lib/libudns.so.${LIBudns_VERSION}

9
net/udns/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/10/23 22:55:01 sebastia Exp $
%%SHARED%%
@bin bin/dnsget
@bin bin/rblcheck
include/udns.h
lib/libudns.a
@man man/man1/dnsget.1
@man man/man1/rblcheck.1
@man man/man3/udns.3