diff options
author | schnoebe <schnoebe> | 2009-08-01 02:41:22 +0000 |
---|---|---|
committer | schnoebe <schnoebe> | 2009-08-01 02:41:22 +0000 |
commit | 0ecc7a0599ddaa7840ad18a87c28e9c50bd56fb1 (patch) | |
tree | 5a9aa5ddc6f2781dae58c04591c7edfa8c62a19a /net | |
parent | d042cccb0e86e3b92b91530ad3ac1b42124e4893 (diff) | |
download | pkgsrc-0ecc7a0599ddaa7840ad18a87c28e9c50bd56fb1.tar.gz |
UDNS is a stub DNS resolver library with ability to perform both
synchronous and asynchronous DNS queries.
Diffstat (limited to 'net')
-rw-r--r-- | net/udns/DESCR | 2 | ||||
-rw-r--r-- | net/udns/Makefile | 35 | ||||
-rw-r--r-- | net/udns/PLIST | 8 | ||||
-rw-r--r-- | net/udns/buildlink3.mk | 13 | ||||
-rw-r--r-- | net/udns/distinfo | 6 | ||||
-rw-r--r-- | net/udns/options.mk | 14 | ||||
-rw-r--r-- | net/udns/patches/patch-aa | 47 |
7 files changed, 125 insertions, 0 deletions
diff --git a/net/udns/DESCR b/net/udns/DESCR new file mode 100644 index 00000000000..f96884e14c3 --- /dev/null +++ b/net/udns/DESCR @@ -0,0 +1,2 @@ +UDNS is a stub DNS resolver library with ability to perform both +synchronous and asynchronous DNS queries. diff --git a/net/udns/Makefile b/net/udns/Makefile new file mode 100644 index 00000000000..b8f4ece263e --- /dev/null +++ b/net/udns/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ + +DISTNAME= udns_0.0.9 +PKGNAME= ${DISTNAME:S/_/-/} +CATEGORIES= net +MASTER_SITES= http://www.corpit.ru/mjt/udns/ + +MAINTAINER= eric@cirr.com +HOMEPAGE= http://www.corpit.ru/mjt/udns.html +COMMENT= Lightweight DNS resolver supporting asynchronous queries + +LICENSE= gnu-lgpl-v2.1 +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} + +USE_LIBTOOL= yes +HAS_CONFIGURE= yes +INSTALLATION_DIRS= bin lib include ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 + +.include "options.mk" + +do-install: + ${LIBTOOL} --mode=install ${INSTALL_DATA} \ + ${WRKSRC}/libudns.la ${DESTDIR}${PREFIX}/lib + ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \ + ${WRKSRC}/dnsget ${DESTDIR}${PREFIX}/bin + ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \ + ${WRKSRC}/rblcheck ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/udns.h ${DESTDIR}${PREFIX}/include + ${INSTALL_MAN} ${WRKSRC}/udns.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3 + ${INSTALL_MAN} ${WRKSRC}/dnsget.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/rblcheck.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + +.include "../../mk/bsd.pkg.mk" diff --git a/net/udns/PLIST b/net/udns/PLIST new file mode 100644 index 00000000000..1c0896149dd --- /dev/null +++ b/net/udns/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ +bin/dnsget +bin/rblcheck +include/udns.h +lib/libudns.la +man/man1/dnsget.1 +man/man1/rblcheck.1 +man/man3/udns.3 diff --git a/net/udns/buildlink3.mk b/net/udns/buildlink3.mk new file mode 100644 index 00000000000..8786bb044ed --- /dev/null +++ b/net/udns/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ + +BUILDLINK_TREE+= udns + +.if !defined(UDNS_BUILDLINK3_MK) +UDNS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.udns+= udns>=0.0.9 +BUILDLINK_ABI_DEPENDS.udns+= udns>=0.0.9 +BUILDLINK_PKGSRCDIR.udns?= ../../net/udns +.endif # UDNS_BUILDLINK3_MK + +BUILDLINK_TREE+= -udns diff --git a/net/udns/distinfo b/net/udns/distinfo new file mode 100644 index 00000000000..c178e5cfc70 --- /dev/null +++ b/net/udns/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ + +SHA1 (udns_0.0.9.tar.gz) = 9792ac12619d23d3086f960561428238c41a25e0 +RMD160 (udns_0.0.9.tar.gz) = c2d79b97cda87614a644da6a1be2d55f354d8a22 +Size (udns_0.0.9.tar.gz) = 84307 bytes +SHA1 (patch-aa) = 0a931b98584a8b1ab83cec093de95f76b2494aa4 diff --git a/net/udns/options.mk b/net/udns/options.mk new file mode 100644 index 00000000000..5a560061409 --- /dev/null +++ b/net/udns/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.udns +PKG_SUPPORTED_OPTIONS+= inet6 +PKG_SUGGESTED_OPTIONS= inet6 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-ipv6 +.else +CONFIGURE_ARGS+= --disable-ipv6 +.endif diff --git a/net/udns/patches/patch-aa b/net/udns/patches/patch-aa new file mode 100644 index 00000000000..3736485eb8e --- /dev/null +++ b/net/udns/patches/patch-aa @@ -0,0 +1,47 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/08/01 02:41:22 schnoebe Exp $ + +# update to use libtool for portability + +--- Makefile.in.orig 2007-01-15 22:19:08.000000000 +0100 ++++ Makefile.in +@@ -34,7 +34,7 @@ DIST = COPYING.LGPL udns.h udns.3 dnsg + + OBJS = $(SRCS:.c=.o) $(GEN:.c=.o) + LIB = lib$(NAME).a +-LIBFL = -L. -l$(NAME) ++LIBFL = lib$(NAME).la + + SOVER = 0 + SOBJS = $(OBJS:.o=.lo) +@@ -63,10 +63,10 @@ all: static + static: $(LIB) $(UTILS) + staticlib: $(LIB) + $(LIB): $(OBJS) +- -rm -f $@ +- $(AR) rv $@ $(OBJS) ++ ${LIBTOOL} --mode=link ${CC} -o ${LIB:.a=.la} ${OBJS:.o=.lo} \ ++ -rpath ${PREFIX}/lib -version-info 0:9 + .c.o: +- $(CC) $(CFLAGS) $(CDEFS) -c $< ++ ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) $(CDEFS) -c $< + + shared: $(SOLIBV) $(SOUTILS) + sharedlib: $(SOLIBV) +@@ -183,14 +183,14 @@ dnsget.o dnsget.lo: dnsget.c config.h ud + rblcheck.o rblcheck.lo: rblcheck.c udns.h getopt.c + ex-rdns.o ex-rdns.lo: ex-rdns.c udns.h + dnsget: dnsget.o $(LIB) +- $(CC) $(CFLAGS) -o $@ dnsget.o $(LIBFL) ++ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) -o $@ dnsget.o $(LIBFL) + dnsget_s: dnsget.o $(SOLIB) + $(CC) $(CFLAGS) -o $@ dnsget.o $(SOLIBFL) + rblcheck: rblcheck.o $(LIB) +- $(CC) $(CFLAGS) -o $@ rblcheck.o $(LIBFL) ++ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) -o $@ rblcheck.o $(LIBFL) + rblcheck_s: rblcheck.o $(SOLIB) + $(CC) $(CFLAGS) -o $@ rblcheck.o $(SOLIBFL) + ex-rdns: ex-rdns.o $(LIB) +- $(CC) $(CFLAGS) -o $@ ex-rdns.o $(LIBFL) ++ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) -o $@ ex-rdns.o $(LIBFL) + ex-rdns_s: ex-rdns.o $(SOLIB) + $(CC) $(CFLAGS) -o $@ ex-rdns.o $(SOLIBFL) |