diff options
author | dougb <dougb@FreeBSD.org> | 2010-04-02 10:46:11 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2010-04-02 10:46:11 +0800 |
commit | ff563d336238aaed9399d88482bac381fcc19c9f (patch) | |
tree | 3099fe43d358338e51262617849e52ecb1b0156d /dns | |
parent | 0396f9ba6e9c8f45888116efd559a027113b337c (diff) | |
download | freebsd-ports-gnome-ff563d336238aaed9399d88482bac381fcc19c9f.tar.gz freebsd-ports-gnome-ff563d336238aaed9399d88482bac381fcc19c9f.tar.zst freebsd-ports-gnome-ff563d336238aaed9399d88482bac381fcc19c9f.zip |
Add bind-tools:
The user space command line tools from the latest version of BIND:
dig, host, and nslookup
WWW: https://www.isc.org/software/bind
Diffstat (limited to 'dns')
-rw-r--r-- | dns/Makefile | 1 | ||||
-rw-r--r-- | dns/bind-tools/Makefile | 114 | ||||
-rw-r--r-- | dns/bind-tools/distinfo | 6 | ||||
-rw-r--r-- | dns/bind-tools/pkg-descr | 7 |
4 files changed, 128 insertions, 0 deletions
diff --git a/dns/Makefile b/dns/Makefile index f04cff9a812b..95d742ac16dd 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -6,6 +6,7 @@ SUBDIR += adns SUBDIR += ares SUBDIR += autotrust + SUBDIR += bind-tools SUBDIR += bind9 SUBDIR += bind9-sdb-ldap SUBDIR += bind9-sdb-postgresql diff --git a/dns/bind-tools/Makefile b/dns/bind-tools/Makefile new file mode 100644 index 000000000000..acb28e5bff12 --- /dev/null +++ b/dns/bind-tools/Makefile @@ -0,0 +1,114 @@ +# New ports collection makefile for: BIND Tools +# Date created: 1 April 2010 +# Whom: dougb +# +# $FreeBSD$ +# + +PORTNAME= bind-tools +PORTVERSION= 9.7.0.1 +CATEGORIES= dns net ipv6 +MASTER_SITES= ${MASTER_SITE_ISC} \ + http://dougbarton.us/Downloads/%SUBDIR%/ +MASTER_SITE_SUBDIR= bind9/${ISCVERSION} +DISTNAME= bind-${ISCVERSION} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= dougb@FreeBSD.org +COMMENT= The command line tools from BIND: dig, host, and nslookup + +# ISC releases things like 9.4.0b3, which our versioning doesn't like +ISCVERSION= 9.7.0-P1 + +MAKE_JOBS_UNSAFE= yes + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps \ + --disable-symtable \ + --disable-shared \ + --with-randomdev=/dev/random + +CONFLICTS= bind9*-9.[34567].* bind9-sdb-* host-* + +OPTIONS= SSL "Building without OpenSSL removes DNSSEC" on \ + IDN "Add IDN support to dig, host, etc." off \ + REPLACE_BASE "Replace base BIND with this version" off \ + LARGE_FILE "64-bit file support" off \ + SIGCHASE "dig/host/nslookup will do DNSSEC validation" off \ + IPV6 "IPv6 Support (autodetected by default)" off + +# Just in case +USE_OPENSSL= yes + +PLIST_FILES= bin/dig bin/host bin/nslookup + +.include <bsd.port.pre.mk> + +.if (${ARCH} == "amd64") +ARCH= x86_64 +.endif + +# We are ok by default from 7.0-RELEASE on +.if ${OSVERSION} >= 700055 +OPTIONS+= THREADS "Compile with thread support" on +.else +OPTIONS+= THREADS "Compile w/threads (Not Recommended <FreeBSD-7)" off +.endif + +.if !defined(WITHOUT_SSL) +CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} +.else +CONFIGURE_ARGS+= --disable-openssl-version-check +CONFIGURE_ARGS+= --without-openssl +.endif + +.if defined(WITH_IDN) +CONFIGURE_ARGS+= --with-idn=${LOCALBASE} --with-libiconv=${LOCALBASE} +LIB_DEPENDS+= idnkit.1:${PORTSDIR}/dns/idnkit +.else +CONFIGURE_ARGS+= --without-idn +.endif + +.if defined(WITH_LARGE_FILE) +CONFIGURE_ARGS+= --enable-largefile +.endif + +.if defined(WITH_SIGCHASE) +CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1" +.endif + +.if defined(WITH_IPV6) +CONFIGURE_ARGS+= --enable-ipv6 +.endif + +.if defined(WITH_REPLACE_BASE) +PKGNAMESUFFIX= -base +PREFIX= /usr +CONFIGURE_ARGS+= --prefix=${PREFIX} +.endif + +MAN1= dig.1 host.1 nslookup.1 + +verify: checksum + gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc + +post-patch: + @${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed + @${SED} -e 's#^SUBDIRS.*#SUBDIRS = lib bin#' \ + -e 's#isc-config.sh installdirs#installdirs#' \ + -e 's#.*INSTALL.*isc-config.*##' \ + -e 's#.*INSTALL.*bind.keys.*##' \ + ${WRKSRC}/Makefile.in.presed > ${WRKSRC}/Makefile.in + @${MV} ${WRKSRC}/bin/Makefile.in ${WRKSRC}/bin/Makefile.in.presed + @${SED} -e 's#^SUBDIRS.*#SUBDIRS = dig#' \ + -e 's#^ .*check confgen ##' \ + ${WRKSRC}/bin/Makefile.in.presed > ${WRKSRC}/bin/Makefile.in + +do-install: +.for file in dig host nslookup + ${INSTALL_PROGRAM} ${WRKSRC}/bin/dig/${file} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/bin/dig/${file}.1 ${MANPREFIX}/man/man1 +.endfor + +.include <bsd.port.post.mk> diff --git a/dns/bind-tools/distinfo b/dns/bind-tools/distinfo new file mode 100644 index 000000000000..8945dac2aab4 --- /dev/null +++ b/dns/bind-tools/distinfo @@ -0,0 +1,6 @@ +MD5 (bind-9.7.0-P1.tar.gz) = 78e3e38c6252e41ded1afa1aeb183622 +SHA256 (bind-9.7.0-P1.tar.gz) = d84b63f71bfc249e5bf1a14ba34af37981b2ee6068d1224066062cfa5d086fcf +SIZE (bind-9.7.0-P1.tar.gz) = 7125947 +MD5 (bind-9.7.0-P1.tar.gz.asc) = 236cef1f4a1bbf08764bd7a6c845a86d +SHA256 (bind-9.7.0-P1.tar.gz.asc) = 80d83025309c4687530eec691a2e29e11fdb6709e735fc7d67c09dca0cc5df61 +SIZE (bind-9.7.0-P1.tar.gz.asc) = 480 diff --git a/dns/bind-tools/pkg-descr b/dns/bind-tools/pkg-descr new file mode 100644 index 000000000000..d1f59026f164 --- /dev/null +++ b/dns/bind-tools/pkg-descr @@ -0,0 +1,7 @@ +The user space command line tools from the latest version of BIND: + dig, host, and nslookup + +WWW: https://www.isc.org/software/bind + +- Doug Barton +DougB@FreeBSD.org |