Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2014 13:34:48 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338877 - in head/dns: bind-tools bind98 bind99
Message-ID:  <201401061334.s06DYmpa062143@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Mon Jan  6 13:34:48 2014
New Revision: 338877
URL: http://svnweb.freebsd.org/changeset/ports/338877

Log:
  Convert to staging and new options.

Modified:
  head/dns/bind-tools/Makefile
  head/dns/bind-tools/pkg-plist
  head/dns/bind98/Makefile
  head/dns/bind98/pkg-install
  head/dns/bind98/pkg-plist
  head/dns/bind99/Makefile
  head/dns/bind99/pkg-install
  head/dns/bind99/pkg-plist

Modified: head/dns/bind-tools/Makefile
==============================================================================
--- head/dns/bind-tools/Makefile	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind-tools/Makefile	Mon Jan  6 13:34:48 2014	(r338877)
@@ -12,12 +12,10 @@ MASTERDIR=	${.CURDIR}/../../dns/bind99
 
 DESCR=		${.CURDIR}/pkg-descr
 PLIST=		${.CURDIR}/pkg-plist
+PKGINSTALL=	/nonexistent
 
 BIND_TOOLS_SLAVE=	YES
 
-MAN1=	dig.1 host.1 nslookup.1
-
-NO_STAGE=	yes
 post-patch:
 	@${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed
 	@${SED} -e 's#^SUBDIRS.*#SUBDIRS = lib bin#' \
@@ -32,8 +30,8 @@ post-patch:
 
 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
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/dig/${file} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/bin/dig/${file}.1 ${STAGEDIR}${MANPREFIX}/man/man1
 .endfor
 
 .include "${MASTERDIR}/Makefile"

Modified: head/dns/bind-tools/pkg-plist
==============================================================================
--- head/dns/bind-tools/pkg-plist	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind-tools/pkg-plist	Mon Jan  6 13:34:48 2014	(r338877)
@@ -1,3 +1,6 @@
 bin/dig
 bin/host
 bin/nslookup
+%%SHARE_MAN%%man/man1/dig.1.gz
+%%SHARE_MAN%%man/man1/host.1.gz
+%%SHARE_MAN%%man/man1/nslookup.1.gz

Modified: head/dns/bind98/Makefile
==============================================================================
--- head/dns/bind98/Makefile	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind98/Makefile	Mon Jan  6 13:34:48 2014	(r338877)
@@ -2,7 +2,7 @@
 
 PORTNAME=	bind98
 PORTVERSION=	9.8.6
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	dns net ipv6
 MASTER_SITES=	${MASTER_SITE_ISC}
 MASTER_SITE_SUBDIR=	bind9/${ISCVERSION}
@@ -52,101 +52,64 @@ DLZ_LDAP_DESC=		DLZ LDAP driver
 DLZ_FILESYSTEM_DESC=	DLZ filesystem driver
 DLZ_STUB_DESC=		DLZ stub driver
 
-NO_STAGE=		yes
-.include <bsd.port.options.mk>
+SSL_CONFIGURE_ON=	--with-openssl=${OPENSSLBASE}
+SSL_USE=	openssl=yes
+SSL_CONFIGURE_OFF=	--disable-openssl-version-check --without-openssl
 
-.if (${ARCH} == "amd64")
-ARCH=		x86_64
-.endif
+XML_CONFIGURE_ON=	--with-libxml2=${LOCALBASE}
+XML_CONFIGURE_OFF=	--without-libxml2
+XML_LIB_DEPENDS=	libxml2.so:${PORTSDIR}/textproc/libxml2
 
-.if ${PORT_OPTIONS:MSSL}
-CONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
-USE_OPENSSL=		yes
-.else
-CONFIGURE_ARGS+=	--disable-openssl-version-check
-CONFIGURE_ARGS+=	--without-openssl
-.endif
+IDN_USES=		iconv
+IDN_CONFIGURE_ON=	--with-idn=${LOCALBASE} ${ICONV_CONFIGURE_BASE}
+IDN_CONFIGURE_OFF=	--without-idn
+IDN_LIB_DEPENDS=	libidnkit.so:${PORTSDIR}/dns/idnkit
 
-.if ${PORT_OPTIONS:MXML}
-CONFIGURE_ARGS+=	--with-libxml2=${LOCALBASE}
-LIB_DEPENDS+=		xml2.5:${PORTSDIR}/textproc/libxml2
-.else
-CONFIGURE_ARGS+=	--without-libxml2
-.endif
+LARGE_FILE_CONFIGURE_ENABLE=	largefile
 
-.if ${PORT_OPTIONS:MIDN}
-USES+=			iconv
-CONFIGURE_ARGS+=	--with-idn=${LOCALBASE} ${ICONV_CONFIGURE_BASE}
-LIB_DEPENDS+=		idnkit.1:${PORTSDIR}/dns/idnkit
-.else
-CONFIGURE_ARGS+=	--without-idn
-.endif
+SIGCHASE_CONFIGURE_ON=	STD_CDEFINES="-DDIG_SIGCHASE=1"
 
-.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
-PLIST_SUB+=	LINKS=""
-.else
-PLIST_SUB+=	LINKS="@comment "
-.endif
+IPV6_CONFIGURE_ENABLE=	ipv6
 
-.if ${PORT_OPTIONS:MLARGE_FILE}
-CONFIGURE_ARGS+=	--enable-largefile
-.endif
+FILTER_AAAA_CONFIGURE_ENABLE=	filter-aaaa
 
-.if ${PORT_OPTIONS:MSIGCHASE}
-CONFIGURE_ARGS+=	STD_CDEFINES="-DDIG_SIGCHASE=1"
-.endif
+FIXED_RRSET_CONFIGURE_ENABLE=	fixed-rrset
 
-.if ${PORT_OPTIONS:MIPV6}
-CONFIGURE_ARGS+=	--enable-ipv6
-.endif
+RPZ_NSIP_CONFIGURE_ENABLE=	rpz-nsip
 
-.if ${PORT_OPTIONS:MFILTER_AAAA}
-CONFIGURE_ARGS+=	--enable-filter-aaaa
-.endif
+RPZ_NSDNAME_CONFIGURE_ENABLE=	rpz-nsdname
 
-.if ${PORT_OPTIONS:MFIXED_RRSET}
-CONFIGURE_ARGS+=	--enable-fixed-rrset
-.endif
+RPZRRL_PATCH_PATCHFILES=	rpz2+rl-9.8.6.patch:vix
+RPZRRL_PATCH_PATCH_SITES=	http://ss.vix.su/~vjs/:vix
 
-.if ${PORT_OPTIONS:MRPZ_NSIP}
-CONFIGURE_ARGS+=	--enable-rpz-nsip
-.endif
+DLZ_POSTGRESQL_CONFIGURE_ON=	--with-dlz-postgres=yes
+DLZ_POSTGRESQL_USE=	pgsql=yes
 
-.if ${PORT_OPTIONS:MRPZ_NSDNAME}
-CONFIGURE_ARGS+=	--enable-rpz-nsdname
-.endif
+DLZ_MYSQL_CONFIGURE_ON=	--with-dlz-mysql=yes
+DLZ_MYSQL_USE=		mysql=yes
 
-.if ${PORT_OPTIONS:MRPZRRL_PATCH}
-PATCHFILES=		rpz2+rl-9.8.6.patch
-PATCH_SITES=		http://ss.vix.su/~vjs/
-.endif
+DLZ_BDB_CONFIGURE_ON=	--with-dlz-bdb=yes
+DLZ_BDB_USE=		bdb=yes
 
-.if ${PORT_OPTIONS:MDLZ_POSTGRESQL}
-CONFIGURE_ARGS+=	--with-dlz-postgres=yes
-USE_PGSQL=		yes
-.endif
+DLZ_LDAP_CONFIGURE_ON=	--with-dlz-ldap=yes
+DLZ_LDAP_USE=		openldap=yes
 
-.if ${PORT_OPTIONS:MDLZ_MYSQL}
-CONFIGURE_ARGS+=	--with-dlz-mysql=yes
-USE_MYSQL=		yes
-.endif
+DLZ_FILESYSTEM_CONFIGURE_ON=	--with-dlz-filesystem=yes
 
-.if ${PORT_OPTIONS:MDLZ_BDB}
-CONFIGURE_ARGS+=	--with-dlz-bdb=yes
-USE_BDB=		yes
-.endif
+DLZ_STUB_CONFIGURE_ON=	--with-dlz-stub=yes
 
-.if ${PORT_OPTIONS:MDLZ_LDAP}
-CONFIGURE_ARGS+=	--with-dlz-ldap=yes
-USE_OPENLDAP=		yes
-.endif
+GSSAPI_CONFIGURE_WITH=	gssapi
+
+.include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MDLZ_FILESYSTEM}
-CONFIGURE_ARGS+=	--with-dlz-filesystem=yes
+.if (${ARCH} == "amd64")
+ARCH=		x86_64
 .endif
 
-.if ${PORT_OPTIONS:MDLZ_STUB}
-CONFIGURE_ARGS+=	--with-dlz-stub=yes
+.if ${PORT_OPTIONS:MLINKS} && empty(${PORT_OPTIONS:MREPLACE_BASE})
+PLIST_SUB+=	LINKS=""
+.else
+PLIST_SUB+=	LINKS="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MTHREADS} && empty(PORT_OPTIONS:MDLZ_MYSQL)
@@ -156,14 +119,11 @@ CONFIGURE_ARGS+=	--disable-threads
 .endif
 
 .if ${PORT_OPTIONS:MGSSAPI}
-CONFIGURE_ARGS+=	--with-gssapi
 .if defined(HEIMDAL_HOME)
 LDFLAGS+=		-L${LIBDIR} -lgssapi -lkrb5
 .else
 LDFLAGS+=		-L${LIBDIR} -lgssapi_krb5
 .endif
-.else
-CONFIGURE_ARGS+=	--without-gssapi
 .endif
 
 .if ${PORT_OPTIONS:MREPLACE_BASE}
@@ -172,15 +132,21 @@ IGNORE=		REPLACE_BASE option is not supp
 .endif
 PKGNAMESUFFIX=	-base
 PREFIX=		/usr
+PLIST_SUB+=	SHARE_MAN="share/"
+NO_MTREE=	yes
 BIND_DESTETC=	/etc/namedb
 .else
+PLIST_SUB+=	SHARE_MAN=""
 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100
 BIND_DESTETC=	${PREFIX}/etc/namedb
+PKGINSTALL=	/nonexistent
 .else
 BIND_DESTETC=	${PREFIX}/etc
 .endif
 .endif
 
+PKGDEINSTALL=	${PKGINSTALL}
+
 CONFIGURE_ARGS+=	--prefix=${PREFIX} \
 			--sysconfdir=${BIND_DESTETC}
 PLIST_SUB+=	BIND_DESTETC="${BIND_DESTETC}"
@@ -191,48 +157,6 @@ PLIST_SUB+=	NOBASE=""
 PLIST_SUB+=	NOBASE="@comment "
 .endif
 
-MAN1=	arpaname.1 dig.1 host.1 isc-config.sh.1 nslookup.1 nsupdate.1
-MAN3=	lwres.3 lwres_addr_parse.3 lwres_buffer.3 lwres_buffer_add.3 \
-	lwres_buffer_back.3 lwres_buffer_clear.3 lwres_buffer_first.3 \
-	lwres_buffer_forward.3 lwres_buffer_getmem.3 lwres_buffer_getuint16.3 \
-	lwres_buffer_getuint32.3 lwres_buffer_getuint8.3 lwres_buffer_init.3 \
-	lwres_buffer_invalidate.3 lwres_buffer_putmem.3 \
-	lwres_buffer_putuint16.3 lwres_buffer_putuint32.3 \
-	lwres_buffer_putuint8.3 lwres_buffer_subtract.3 lwres_conf_clear.3 \
-	lwres_conf_get.3 lwres_conf_init.3 lwres_conf_parse.3 \
-	lwres_conf_print.3 lwres_config.3 lwres_context.3 \
-	lwres_context_allocmem.3 lwres_context_create.3 \
-	lwres_context_destroy.3 lwres_context_freemem.3 \
-	lwres_context_initserial.3 lwres_context_nextserial.3 \
-	lwres_context_sendrecv.3 lwres_endhostent.3 lwres_endhostent_r.3 \
-	lwres_freeaddrinfo.3 lwres_freehostent.3 lwres_gabn.3 \
-	lwres_gabnrequest_free.3 lwres_gabnrequest_parse.3 \
-	lwres_gabnrequest_render.3 lwres_gabnresponse_free.3 \
-	lwres_gabnresponse_parse.3 lwres_gabnresponse_render.3 \
-	lwres_gai_strerror.3 lwres_getaddrinfo.3 lwres_getaddrsbyname.3 \
-	lwres_gethostbyaddr.3 lwres_gethostbyaddr_r.3 lwres_gethostbyname.3 \
-	lwres_gethostbyname2.3 lwres_gethostbyname_r.3 lwres_gethostent.3 \
-	lwres_gethostent_r.3 lwres_getipnode.3 lwres_getipnodebyaddr.3 \
-	lwres_getipnodebyname.3 lwres_getnamebyaddr.3 lwres_getnameinfo.3 \
-	lwres_getrrsetbyname.3 lwres_gnba.3 lwres_gnbarequest_free.3 \
-	lwres_gnbarequest_parse.3 lwres_gnbarequest_render.3 \
-	lwres_gnbaresponse_free.3 lwres_gnbaresponse_parse.3 \
-	lwres_gnbaresponse_render.3 lwres_herror.3 lwres_hstrerror.3 \
-	lwres_inetntop.3 lwres_lwpacket_parseheader.3 \
-	lwres_lwpacket_renderheader.3 lwres_net_ntop.3 lwres_noop.3 \
-	lwres_nooprequest_free.3 lwres_nooprequest_parse.3 \
-	lwres_nooprequest_render.3 lwres_noopresponse_free.3 \
-	lwres_noopresponse_parse.3 lwres_noopresponse_render.3 \
-	lwres_packet.3 lwres_resutil.3 lwres_sethostent.3 \
-	lwres_sethostent_r.3 lwres_string_parse.3
-MAN5=	named.conf.5 rndc.conf.5
-MAN8=	ddns-confgen.8 dnssec-dsfromkey.8 dnssec-keyfromlabel.8 \
-	dnssec-keygen.8 dnssec-revoke.8 dnssec-settime.8 dnssec-signzone.8 \
-	genrandom.8 isc-hmac-fixup.8 lwresd.8 named-checkconf.8 \
-	named-checkzone.8 named-journalprint.8 named.8 nsec3hash.8 \
-	rndc-confgen.8 rndc.8
-MLINKS=	named-checkzone.8 named-compilezone.8
-
 post-patch:
 .for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.1 \
 	rndc/rndc.8
@@ -255,41 +179,32 @@ PORTDOCS=	*
 .endif
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}/arm ${DOCSDIR}/misc
-	${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DOCSDIR}/arm
-	${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM.pdf ${DOCSDIR}/
-	${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${DOCSDIR}/misc
-	${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
-		${WRKSRC}/HISTORY ${WRKSRC}/README ${DOCSDIR}/
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/arm ${STAGEDIR}${DOCSDIR}/misc
+	${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${STAGEDIR}${DOCSDIR}/arm
+	${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM.pdf ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${STAGEDIR}${DOCSDIR}/misc
+	${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
+		${WRKSRC}/HISTORY ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 .endif
+
 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100
 .for FILE in named named.conf
 	${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \
 		-e 's#%%BIND_DESTETC%%#${BIND_DESTETC}#g' \
 		${FILESDIR}/${FILE} > ${WRKDIR}/${FILE}
 .endfor
-	${INSTALL_SCRIPT} ${WRKDIR}/named ${PREFIX}/etc/rc.d
-	${MKDIR} ${BIND_DESTETC}
-.for DIR in dynamic master slave working
-	${MKDIR} ${BIND_DESTETC}/${DIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/named ${STAGEDIR}${PREFIX}/etc/rc.d
+	${MKDIR} ${STAGEDIR}${BIND_DESTETC}
+.for i in dynamic master slave working
+	@${MKDIR} ${STAGEDIR}${BIND_DESTETC}/$i
 .endfor
-.for DIR in dynamic slave working
-	${CHOWN} bind:bind ${BIND_DESTETC}/${DIR}
-.endfor
-	${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf.sample
-.if !exists(${BIND_DESTETC}/named.conf)
-	${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf
-.endif
-	${INSTALL_DATA} ${FILESDIR}/named.root ${BIND_DESTETC}
-	${INSTALL_DATA} ${FILESDIR}/empty.db ${BIND_DESTETC}/master
-	${INSTALL_DATA} ${FILESDIR}/localhost-forward.db ${BIND_DESTETC}/master
-	${INSTALL_DATA} ${FILESDIR}/localhost-reverse.db ${BIND_DESTETC}/master
-.elif ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
-	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+	${INSTALL_DATA} ${WRKDIR}/named.conf ${STAGEDIR}${BIND_DESTETC}/named.conf.sample
+	${INSTALL_DATA} ${FILESDIR}/named.root ${STAGEDIR}${BIND_DESTETC}
+	${INSTALL_DATA} ${FILESDIR}/empty.db ${STAGEDIR}${BIND_DESTETC}/master
+	${INSTALL_DATA} ${FILESDIR}/localhost-forward.db ${STAGEDIR}${BIND_DESTETC}/master
+	${INSTALL_DATA} ${FILESDIR}/localhost-reverse.db ${STAGEDIR}${BIND_DESTETC}/master
 .endif
-
 	${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
-		${BIND_DESTETC}/rndc.conf.sample
-	@${CAT} ${PKGMESSAGE}
+		${STAGEDIR}${BIND_DESTETC}/rndc.conf.sample
 
 .include <bsd.port.mk>

Modified: head/dns/bind98/pkg-install
==============================================================================
--- head/dns/bind98/pkg-install	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind98/pkg-install	Mon Jan  6 13:34:48 2014	(r338877)
@@ -1,12 +1,20 @@
 #!/bin/sh
 
-[ "$2" = 'POST-INSTALL' ] || exit 0
-
-/bin/mkdir -p /var/named${PKG_PREFIX}/etc
+if [ "$2" = 'POST-INSTALL' ]
+then
+	/bin/mkdir -p /var/named${PKG_PREFIX}/etc
+fi
 
 for DIR in ${PKG_PREFIX}/etc /var/named${PKG_PREFIX}/etc; do
 	for FILE in named.conf rndc.key; do
-		/bin/ln -sf /etc/namedb/${FILE} ${DIR}/${FILE}
+		if [ "$2" = 'POST-INSTALL' ]
+		then
+			/bin/ln -sf /etc/namedb/${FILE} ${DIR}/${FILE}
+		fi
+		if [ "$2" = 'POST-DEINSTALL' ]
+		then
+			[ -L ${DIR}/${FILE} ] && rm -f ${DIR}/${FILE}
+		fi
 	done
 done
 

Modified: head/dns/bind98/pkg-plist
==============================================================================
--- head/dns/bind98/pkg-plist	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind98/pkg-plist	Mon Jan  6 13:34:48 2014	(r338877)
@@ -204,6 +204,117 @@ lib/libisc.a
 lib/libisccc.a
 lib/libisccfg.a
 lib/liblwres.a
+%%SHARE_MAN%%man/man1/arpaname.1.gz
+%%SHARE_MAN%%man/man1/dig.1.gz
+%%SHARE_MAN%%man/man1/host.1.gz
+%%SHARE_MAN%%man/man1/isc-config.sh.1.gz
+%%SHARE_MAN%%man/man1/nslookup.1.gz
+%%SHARE_MAN%%man/man1/nsupdate.1.gz
+%%SHARE_MAN%%man/man3/lwres.3.gz
+%%SHARE_MAN%%man/man3/lwres_addr_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_add.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_back.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_clear.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_first.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_forward.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getmem.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getuint16.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getuint32.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getuint8.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_init.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_invalidate.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putmem.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putuint16.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putuint32.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putuint8.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_subtract.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_clear.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_get.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_init.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_print.3.gz
+%%SHARE_MAN%%man/man3/lwres_config.3.gz
+%%SHARE_MAN%%man/man3/lwres_context.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_allocmem.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_create.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_destroy.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_freemem.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_initserial.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_nextserial.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_sendrecv.3.gz
+%%SHARE_MAN%%man/man3/lwres_endhostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_endhostent_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_freeaddrinfo.3.gz
+%%SHARE_MAN%%man/man3/lwres_freehostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabn.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnrequest_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnrequest_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnrequest_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnresponse_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnresponse_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnresponse_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_gai_strerror.3.gz
+%%SHARE_MAN%%man/man3/lwres_getaddrinfo.3.gz
+%%SHARE_MAN%%man/man3/lwres_getaddrsbyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyaddr.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyaddr_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyname2.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyname_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostent_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_getipnode.3.gz
+%%SHARE_MAN%%man/man3/lwres_getipnodebyaddr.3.gz
+%%SHARE_MAN%%man/man3/lwres_getipnodebyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_getnamebyaddr.3.gz
+%%SHARE_MAN%%man/man3/lwres_getnameinfo.3.gz
+%%SHARE_MAN%%man/man3/lwres_getrrsetbyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnba.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbarequest_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbarequest_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbarequest_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbaresponse_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbaresponse_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbaresponse_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_herror.3.gz
+%%SHARE_MAN%%man/man3/lwres_hstrerror.3.gz
+%%SHARE_MAN%%man/man3/lwres_inetntop.3.gz
+%%SHARE_MAN%%man/man3/lwres_lwpacket_parseheader.3.gz
+%%SHARE_MAN%%man/man3/lwres_lwpacket_renderheader.3.gz
+%%SHARE_MAN%%man/man3/lwres_net_ntop.3.gz
+%%SHARE_MAN%%man/man3/lwres_noop.3.gz
+%%SHARE_MAN%%man/man3/lwres_nooprequest_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_nooprequest_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_nooprequest_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_noopresponse_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_noopresponse_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_noopresponse_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_packet.3.gz
+%%SHARE_MAN%%man/man3/lwres_resutil.3.gz
+%%SHARE_MAN%%man/man3/lwres_sethostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_sethostent_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_string_parse.3.gz
+%%SHARE_MAN%%man/man5/named.conf.5.gz
+%%SHARE_MAN%%man/man5/rndc.conf.5.gz
+%%SHARE_MAN%%man/man8/ddns-confgen.8.gz
+%%SHARE_MAN%%man/man8/dnssec-dsfromkey.8.gz
+%%SHARE_MAN%%man/man8/dnssec-keyfromlabel.8.gz
+%%SHARE_MAN%%man/man8/dnssec-keygen.8.gz
+%%SHARE_MAN%%man/man8/dnssec-revoke.8.gz
+%%SHARE_MAN%%man/man8/dnssec-settime.8.gz
+%%SHARE_MAN%%man/man8/dnssec-signzone.8.gz
+%%SHARE_MAN%%man/man8/genrandom.8.gz
+%%SHARE_MAN%%man/man8/isc-hmac-fixup.8.gz
+%%SHARE_MAN%%man/man8/lwresd.8.gz
+%%SHARE_MAN%%man/man8/named-checkconf.8.gz
+%%SHARE_MAN%%man/man8/named-checkzone.8.gz
+%%SHARE_MAN%%man/man8/named-compilezone.8.gz
+%%SHARE_MAN%%man/man8/named-journalprint.8.gz
+%%SHARE_MAN%%man/man8/named.8.gz
+%%SHARE_MAN%%man/man8/nsec3hash.8.gz
+%%SHARE_MAN%%man/man8/rndc-confgen.8.gz
+%%SHARE_MAN%%man/man8/rndc.8.gz
 sbin/arpaname
 sbin/ddns-confgen
 sbin/dnssec-dsfromkey
@@ -231,15 +342,24 @@ sbin/rndc-confgen
 %%NOBASE%%etc/rc.d/named
 %%NOBASE%%@unexec if cmp -s %%BIND_DESTETC%%/named.conf.sample %%BIND_DESTETC%%/named.conf; then rm -f %%BIND_DESTETC%%/named.conf; fi
 %%NOBASE%%%%BIND_DESTETC%%/named.conf.sample
+%%NOBASE%%@exec if [ ! -f %%BIND_DESTETC%%/named.conf ] ; then cp -p %D/%F %B/named.conf; fi
 %%NOBASE%%%%BIND_DESTETC%%/named.root
 %%NOBASE%%%%BIND_DESTETC%%/master/empty.db
 %%NOBASE%%%%BIND_DESTETC%%/master/localhost-forward.db
 %%NOBASE%%%%BIND_DESTETC%%/master/localhost-reverse.db
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/master
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/slave
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/working
-%%NOBASE%%@dirrm %%BIND_DESTETC%%
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/dynamic
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/dynamic
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/dynamic
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/master
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/master
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/master
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/slave
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/slave
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/slave
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/working
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/working
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/working
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%
 @dirrm include/bind9
 @dirrm include/dns
 @dirrm include/dst

Modified: head/dns/bind99/Makefile
==============================================================================
--- head/dns/bind99/Makefile	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind99/Makefile	Mon Jan  6 13:34:48 2014	(r338877)
@@ -2,7 +2,7 @@
 
 PORTNAME?=	bind99
 PORTVERSION=	9.9.4
-PORTREVISION?=	3
+PORTREVISION?=	4
 CATEGORIES=	dns net ipv6
 MASTER_SITES=	${MASTER_SITE_ISC}
 MASTER_SITE_SUBDIR=	bind9/${ISCVERSION}
@@ -43,7 +43,6 @@ FIXED_RRSET_DESC=	Enable fixed rrset ord
 SIGCHASE_DESC=		dig/host/nslookup will do DNSSEC validation
 FILTER_AAAA_DESC=	Enable filtering of AAAA records
 
-.if !defined(BIND_TOOLS_SLAVE)
 LINKS_DESC=		Create conf file symlinks in ${PREFIX}
 XML_DESC=		Support for xml statistics output
 RPZ_NSIP_DESC=		Enable RPZ NSIP trigger rules
@@ -57,103 +56,67 @@ DLZ_LDAP_DESC=		DLZ LDAP driver
 DLZ_FILESYSTEM_DESC=	DLZ filesystem driver
 DLZ_STUB_DESC=		DLZ stub driver
 
+.if !defined(BIND_TOOLS_SLAVE)
 CONFLICTS+=		bind-tools-9.*
 .endif	# BIND_TOOLS_SLAVE
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+SSL_CONFIGURE_ON=	--with-openssl=${OPENSSLBASE}
+SSL_USE=		openssl=yes
+SSL_CONFIGURE_OFF=	--disable-openssl-version-check --without-openssl
 
-.if (${ARCH} == "amd64")
-ARCH=		x86_64
-.endif
+XML_CONFIGURE_ON=	--with-libxml2=${LOCALBASE}
+XML_LIB_DEPENDS=	libxml2.so:${PORTSDIR}/textproc/libxml2
+XML_CONFIGURE_OFF=	--without-libxml2
 
-.if ${PORT_OPTIONS:MSSL}
-CONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
-USE_OPENSSL=		yes
-.else
-CONFIGURE_ARGS+=	--disable-openssl-version-check
-CONFIGURE_ARGS+=	--without-openssl
-.endif
+IDN_USES=		iconv
+IDN_CONFIGURE_ON=	--with-idn=${LOCALBASE} ${ICONV_CONFIGURE_BASE}
+IDN_LIB_DEPENDS=	libidnkit.so:${PORTSDIR}/dns/idnkit
+IDN_CONFIGURE_OFF=	--without-idn
 
-.if ${PORT_OPTIONS:MXML} && !defined(BIND_TOOLS_SLAVE)
-CONFIGURE_ARGS+=	--with-libxml2=${LOCALBASE}
-LIB_DEPENDS+=		xml2.5:${PORTSDIR}/textproc/libxml2
-.else
-CONFIGURE_ARGS+=	--without-libxml2
-.endif
+LARGE_FILE_CONFIGURE_ENABLE=	largefile
 
-.if ${PORT_OPTIONS:MIDN}
-USES+=			iconv
-CONFIGURE_ARGS+=	--with-idn=${LOCALBASE} ${ICONV_CONFIGURE_BASE}
-LIB_DEPENDS+=		idnkit.1:${PORTSDIR}/dns/idnkit
-.else
-CONFIGURE_ARGS+=	--without-idn
-.endif
+SIGCHASE_CONFIGURE_ON=	STD_CDEFINES="-DDIG_SIGCHASE=1"
 
-.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
-PLIST_SUB+=	LINKS=""
-.else
-PLIST_SUB+=	LINKS="@comment "
-.endif
+IPV6_CONFIGURE_ENABLE=	ipv6
 
-.if ${PORT_OPTIONS:MLARGE_FILE}
-CONFIGURE_ARGS+=	--enable-largefile
-.endif
+FILTER_AAAA_CONFIGURE_ENABLE=	filter-aaaa
 
-.if ${PORT_OPTIONS:MSIGCHASE}
-CONFIGURE_ARGS+=	STD_CDEFINES="-DDIG_SIGCHASE=1"
-.endif
+DLZ_POSTGRESQL_CONFIGURE_ON=	--with-dlz-postgres=yes
+DLZ_POSTGRESQL_USE=		pgsql=yes
 
-.if ${PORT_OPTIONS:MIPV6}
-CONFIGURE_ARGS+=	--enable-ipv6
-.endif
+FIXED_RRSET_CONFIGURE_ENABLE=	fixed-rrset
 
-.if ${PORT_OPTIONS:MFILTER_AAAA}
-CONFIGURE_ARGS+=	--enable-filter-aaaa
-.endif
+RPZ_NSIP_CONFIGURE_ENABLE=	rpz-nsip
 
-.if ${PORT_OPTIONS:MDLZ_POSTGRESQL}
-CONFIGURE_ARGS+=	--with-dlz-postgres=yes
-USE_PGSQL=		yes
-.endif
+RPZ_NSDNAME_CONFIGURE_ENABLE=	rpz-nsdname
 
-.if ${PORT_OPTIONS:MFIXED_RRSET}
-CONFIGURE_ARGS+=	--enable-fixed-rrset
-.endif
+RRL_CONFIGURE_ENABLE=	rrl
 
-.if ${PORT_OPTIONS:MRPZ_NSIP}
-CONFIGURE_ARGS+=	--enable-rpz-nsip
-.endif
+DLZ_MYSQL_CONFIGURE_ON=	--with-dlz-mysql=yes
+DLZ_MYSQL_USE=		mysql=yes
 
-.if ${PORT_OPTIONS:MRPZ_NSDNAME}
-CONFIGURE_ARGS+=	--enable-rpz-nsdname
-.endif
+DLZ_BDB_CONFIGURE_ON=	--with-dlz-bdb=yes
+DLZ_BDB_USE=		bdb=yes
 
-.if ${PORT_OPTIONS:MRRL}
-CONFIGURE_ARGS+=	--enable-rrl
-.endif
+DLZ_LDAP_CONFIGURE_ON=	--with-dlz-ldap=yes
+DLZ_LDAP_USE=		openldap=yes
 
-.if ${PORT_OPTIONS:MDLZ_MYSQL}
-CONFIGURE_ARGS+=	--with-dlz-mysql=yes
-USE_MYSQL=		yes
-.endif
+DLZ_FILESYSTEM_CONFIGURE_ON=	--with-dlz-filesystem=yes
 
-.if ${PORT_OPTIONS:MDLZ_BDB}
-CONFIGURE_ARGS+=	--with-dlz-bdb=yes
-USE_BDB=		yes
-.endif
+DLZ_STUB_CONFIGURE_ON=	--with-dlz-stub=yes
 
-.if ${PORT_OPTIONS:MDLZ_LDAP}
-CONFIGURE_ARGS+=	--with-dlz-ldap=yes
-USE_OPENLDAP=		yes
-.endif
+GSSAPI_CONFIGURE_ENABLE=	gssapi
+
+.include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MDLZ_FILESYSTEM}
-CONFIGURE_ARGS+=	--with-dlz-filesystem=yes
+.if (${ARCH} == "amd64")
+ARCH=		x86_64
 .endif
 
-.if ${PORT_OPTIONS:MDLZ_STUB}
-CONFIGURE_ARGS+=	--with-dlz-stub=yes
+.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
+PLIST_SUB+=	LINKS=""
+.else
+PLIST_SUB+=	LINKS="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MTHREADS} && empty(PORT_OPTIONS:MDLZ_MYSQL)
@@ -163,14 +126,11 @@ CONFIGURE_ARGS+=	--disable-threads
 .endif
 
 .if ${PORT_OPTIONS:MGSSAPI}
-CONFIGURE_ARGS+=	--with-gssapi
 .if defined(HEIMDAL_HOME)
 LDFLAGS+=		-L${LIBDIR} -lgssapi -lkrb5
 .else
 LDFLAGS+=		-L${LIBDIR} -lgssapi_krb5
 .endif
-.else
-CONFIGURE_ARGS+=        --without-gssapi
 .endif
 
 .if ${PORT_OPTIONS:MREPLACE_BASE}
@@ -179,15 +139,21 @@ IGNORE=		REPLACE_BASE option is not supp
 .endif
 PKGNAMESUFFIX=	-base
 PREFIX=		/usr
+PLIST_SUB+=	SHARE_MAN="share/"
+NO_MTREE=	yes
 BIND_DESTETC=	/etc/namedb
 .else
+PLIST_SUB+=	SHARE_MAN=""
 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100
 BIND_DESTETC=	${PREFIX}/etc/namedb
+PKGINSTALL=	/nonexistent
 .else
 BIND_DESTETC=	${PREFIX}/etc
 .endif
 .endif
 
+PKGDEINSTALL=	${PKGINSTALL}
+
 CONFIGURE_ARGS+=	--prefix=${PREFIX} \
 			--sysconfdir=${BIND_DESTETC}
 PLIST_SUB+=	BIND_DESTETC="${BIND_DESTETC}"
@@ -198,51 +164,6 @@ PLIST_SUB+=	NOBASE=""
 PLIST_SUB+=	NOBASE="@comment "
 .endif
 
-MAN1?=	arpaname.1 dig.1 host.1 isc-config.sh.1 nslookup.1 nsupdate.1
-.if !defined(BIND_TOOLS_SLAVE)
-MAN3=	lwres.3 lwres_addr_parse.3 lwres_buffer.3 lwres_buffer_add.3 \
-	lwres_buffer_back.3 lwres_buffer_clear.3 lwres_buffer_first.3 \
-	lwres_buffer_forward.3 lwres_buffer_getmem.3 lwres_buffer_getuint16.3 \
-	lwres_buffer_getuint32.3 lwres_buffer_getuint8.3 lwres_buffer_init.3 \
-	lwres_buffer_invalidate.3 lwres_buffer_putmem.3 \
-	lwres_buffer_putuint16.3 lwres_buffer_putuint32.3 \
-	lwres_buffer_putuint8.3 lwres_buffer_subtract.3 lwres_conf_clear.3 \
-	lwres_conf_get.3 lwres_conf_init.3 lwres_conf_parse.3 \
-	lwres_conf_print.3 lwres_config.3 lwres_context.3 \
-	lwres_context_allocmem.3 lwres_context_create.3 \
-	lwres_context_destroy.3 lwres_context_freemem.3 \
-	lwres_context_initserial.3 lwres_context_nextserial.3 \
-	lwres_context_sendrecv.3 lwres_endhostent.3 lwres_endhostent_r.3 \
-	lwres_freeaddrinfo.3 lwres_freehostent.3 lwres_gabn.3 \
-	lwres_gabnrequest_free.3 lwres_gabnrequest_parse.3 \
-	lwres_gabnrequest_render.3 lwres_gabnresponse_free.3 \
-	lwres_gabnresponse_parse.3 lwres_gabnresponse_render.3 \
-	lwres_gai_strerror.3 lwres_getaddrinfo.3 lwres_getaddrsbyname.3 \
-	lwres_gethostbyaddr.3 lwres_gethostbyaddr_r.3 lwres_gethostbyname.3 \
-	lwres_gethostbyname2.3 lwres_gethostbyname_r.3 lwres_gethostent.3 \
-	lwres_gethostent_r.3 lwres_getipnode.3 lwres_getipnodebyaddr.3 \
-	lwres_getipnodebyname.3 lwres_getnamebyaddr.3 lwres_getnameinfo.3 \
-	lwres_getrrsetbyname.3 lwres_gnba.3 lwres_gnbarequest_free.3 \
-	lwres_gnbarequest_parse.3 lwres_gnbarequest_render.3 \
-	lwres_gnbaresponse_free.3 lwres_gnbaresponse_parse.3 \
-	lwres_gnbaresponse_render.3 lwres_herror.3 lwres_hstrerror.3 \
-	lwres_inetntop.3 lwres_lwpacket_parseheader.3 \
-	lwres_lwpacket_renderheader.3 lwres_net_ntop.3 lwres_noop.3 \
-	lwres_nooprequest_free.3 lwres_nooprequest_parse.3 \
-	lwres_nooprequest_render.3 lwres_noopresponse_free.3 \
-	lwres_noopresponse_parse.3 lwres_noopresponse_render.3 \
-	lwres_packet.3 lwres_resutil.3 lwres_sethostent.3 \
-	lwres_sethostent_r.3 lwres_string_parse.3
-MAN5=	named.conf.5 rndc.conf.5
-MAN8=	ddns-confgen.8 dnssec-dsfromkey.8 dnssec-keyfromlabel.8 \
-	dnssec-keygen.8 dnssec-revoke.8 dnssec-settime.8 dnssec-signzone.8 \
-	dnssec-verify.8 \
-	genrandom.8 isc-hmac-fixup.8 lwresd.8 named-checkconf.8 \
-	named-checkzone.8 named-journalprint.8 named.8 nsec3hash.8 \
-	rndc-confgen.8 rndc.8
-MLINKS=	named-checkzone.8 named-compilezone.8
-.endif	# BIND_TOOLS_SLVE
-
 .if !defined(BIND_TOOLS_SLAVE)
 post-patch:
 .for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.1 \
@@ -266,42 +187,33 @@ PORTDOCS=	*
 .endif
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}/arm ${DOCSDIR}/misc
-	${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DOCSDIR}/arm
-	${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM.pdf ${DOCSDIR}/
-	${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${DOCSDIR}/misc
-	${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
-		${WRKSRC}/HISTORY ${WRKSRC}/README ${DOCSDIR}/
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/arm ${STAGEDIR}${DOCSDIR}/misc
+	${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${STAGEDIR}${DOCSDIR}/arm
+	${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM.pdf ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${STAGEDIR}${DOCSDIR}/misc
+	${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
+		${WRKSRC}/HISTORY ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 .endif
+
 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100
 .for FILE in named named.conf
 	${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \
 		-e 's#%%BIND_DESTETC%%#${BIND_DESTETC}#g' \
 		${FILESDIR}/${FILE} > ${WRKDIR}/${FILE}
 .endfor
-	${INSTALL_SCRIPT} ${WRKDIR}/named ${PREFIX}/etc/rc.d
-	${MKDIR} ${BIND_DESTETC}
-.for DIR in dynamic master slave working
-	${MKDIR} ${BIND_DESTETC}/${DIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/named ${STAGEDIR}${PREFIX}/etc/rc.d
+	${MKDIR} ${STAGEDIR}${BIND_DESTETC}
+.for i in dynamic master slave working
+	@${MKDIR} ${STAGEDIR}${BIND_DESTETC}/$i
 .endfor
-.for DIR in dynamic slave working
-	${CHOWN} bind:bind ${BIND_DESTETC}/${DIR}
-.endfor
-	${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf.sample
-.if !exists(${BIND_DESTETC}/named.conf)
-	${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf
-.endif
-	${INSTALL_DATA} ${FILESDIR}/named.root ${BIND_DESTETC}
-	${INSTALL_DATA} ${FILESDIR}/empty.db ${BIND_DESTETC}/master
-	${INSTALL_DATA} ${FILESDIR}/localhost-forward.db ${BIND_DESTETC}/master
-	${INSTALL_DATA} ${FILESDIR}/localhost-reverse.db ${BIND_DESTETC}/master
-.elif ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
-	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+	${INSTALL_DATA} ${WRKDIR}/named.conf ${STAGEDIR}${BIND_DESTETC}/named.conf.sample
+	${INSTALL_DATA} ${FILESDIR}/named.root ${STAGEDIR}${BIND_DESTETC}
+	${INSTALL_DATA} ${FILESDIR}/empty.db ${STAGEDIR}${BIND_DESTETC}/master
+	${INSTALL_DATA} ${FILESDIR}/localhost-forward.db ${STAGEDIR}${BIND_DESTETC}/master
+	${INSTALL_DATA} ${FILESDIR}/localhost-reverse.db ${STAGEDIR}${BIND_DESTETC}/master
 .endif
-
 	${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
-		${BIND_DESTETC}/rndc.conf.sample
-	@${CAT} ${PKGMESSAGE}
+		${STAGEDIR}${BIND_DESTETC}/rndc.conf.sample
 
 .endif	# BIND_TOOLS_SLAVE
 

Modified: head/dns/bind99/pkg-install
==============================================================================
--- head/dns/bind99/pkg-install	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind99/pkg-install	Mon Jan  6 13:34:48 2014	(r338877)
@@ -1,12 +1,20 @@
 #!/bin/sh
 
-[ "$2" = 'POST-INSTALL' ] || exit 0
-
-/bin/mkdir -p /var/named${PKG_PREFIX}/etc
+if [ "$2" = 'POST-INSTALL' ]
+then
+	/bin/mkdir -p /var/named${PKG_PREFIX}/etc
+fi
 
 for DIR in ${PKG_PREFIX}/etc /var/named${PKG_PREFIX}/etc; do
 	for FILE in named.conf rndc.key; do
-		/bin/ln -sf /etc/namedb/${FILE} ${DIR}/${FILE}
+		if [ "$2" = 'POST-INSTALL' ]
+		then
+			/bin/ln -sf /etc/namedb/${FILE} ${DIR}/${FILE}
+		fi
+		if [ "$2" = 'POST-DEINSTALL' ]
+		then
+			[ -L ${DIR}/${FILE} ] && rm -f ${DIR}/${FILE}
+		fi
 	done
 done
 

Modified: head/dns/bind99/pkg-plist
==============================================================================
--- head/dns/bind99/pkg-plist	Mon Jan  6 13:30:01 2014	(r338876)
+++ head/dns/bind99/pkg-plist	Mon Jan  6 13:34:48 2014	(r338877)
@@ -205,6 +205,118 @@ lib/libisc.a
 lib/libisccc.a
 lib/libisccfg.a
 lib/liblwres.a
+%%SHARE_MAN%%man/man1/arpaname.1.gz
+%%SHARE_MAN%%man/man1/dig.1.gz
+%%SHARE_MAN%%man/man1/host.1.gz
+%%SHARE_MAN%%man/man1/isc-config.sh.1.gz
+%%SHARE_MAN%%man/man1/nslookup.1.gz
+%%SHARE_MAN%%man/man1/nsupdate.1.gz
+%%SHARE_MAN%%man/man3/lwres.3.gz
+%%SHARE_MAN%%man/man3/lwres_addr_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_add.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_back.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_clear.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_first.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_forward.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getmem.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getuint16.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getuint32.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_getuint8.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_init.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_invalidate.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putmem.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putuint16.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putuint32.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_putuint8.3.gz
+%%SHARE_MAN%%man/man3/lwres_buffer_subtract.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_clear.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_get.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_init.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_conf_print.3.gz
+%%SHARE_MAN%%man/man3/lwres_config.3.gz
+%%SHARE_MAN%%man/man3/lwres_context.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_allocmem.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_create.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_destroy.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_freemem.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_initserial.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_nextserial.3.gz
+%%SHARE_MAN%%man/man3/lwres_context_sendrecv.3.gz
+%%SHARE_MAN%%man/man3/lwres_endhostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_endhostent_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_freeaddrinfo.3.gz
+%%SHARE_MAN%%man/man3/lwres_freehostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabn.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnrequest_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnrequest_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnrequest_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnresponse_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnresponse_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gabnresponse_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_gai_strerror.3.gz
+%%SHARE_MAN%%man/man3/lwres_getaddrinfo.3.gz
+%%SHARE_MAN%%man/man3/lwres_getaddrsbyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyaddr.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyaddr_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyname2.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostbyname_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_gethostent_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_getipnode.3.gz
+%%SHARE_MAN%%man/man3/lwres_getipnodebyaddr.3.gz
+%%SHARE_MAN%%man/man3/lwres_getipnodebyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_getnamebyaddr.3.gz
+%%SHARE_MAN%%man/man3/lwres_getnameinfo.3.gz
+%%SHARE_MAN%%man/man3/lwres_getrrsetbyname.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnba.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbarequest_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbarequest_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbarequest_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbaresponse_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbaresponse_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_gnbaresponse_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_herror.3.gz
+%%SHARE_MAN%%man/man3/lwres_hstrerror.3.gz
+%%SHARE_MAN%%man/man3/lwres_inetntop.3.gz
+%%SHARE_MAN%%man/man3/lwres_lwpacket_parseheader.3.gz
+%%SHARE_MAN%%man/man3/lwres_lwpacket_renderheader.3.gz
+%%SHARE_MAN%%man/man3/lwres_net_ntop.3.gz
+%%SHARE_MAN%%man/man3/lwres_noop.3.gz
+%%SHARE_MAN%%man/man3/lwres_nooprequest_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_nooprequest_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_nooprequest_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_noopresponse_free.3.gz
+%%SHARE_MAN%%man/man3/lwres_noopresponse_parse.3.gz
+%%SHARE_MAN%%man/man3/lwres_noopresponse_render.3.gz
+%%SHARE_MAN%%man/man3/lwres_packet.3.gz
+%%SHARE_MAN%%man/man3/lwres_resutil.3.gz
+%%SHARE_MAN%%man/man3/lwres_sethostent.3.gz
+%%SHARE_MAN%%man/man3/lwres_sethostent_r.3.gz
+%%SHARE_MAN%%man/man3/lwres_string_parse.3.gz
+%%SHARE_MAN%%man/man5/named.conf.5.gz
+%%SHARE_MAN%%man/man5/rndc.conf.5.gz
+%%SHARE_MAN%%man/man8/ddns-confgen.8.gz
+%%SHARE_MAN%%man/man8/dnssec-dsfromkey.8.gz
+%%SHARE_MAN%%man/man8/dnssec-keyfromlabel.8.gz
+%%SHARE_MAN%%man/man8/dnssec-keygen.8.gz
+%%SHARE_MAN%%man/man8/dnssec-revoke.8.gz
+%%SHARE_MAN%%man/man8/dnssec-settime.8.gz
+%%SHARE_MAN%%man/man8/dnssec-signzone.8.gz
+%%SHARE_MAN%%man/man8/dnssec-verify.8.gz
+%%SHARE_MAN%%man/man8/genrandom.8.gz
+%%SHARE_MAN%%man/man8/isc-hmac-fixup.8.gz
+%%SHARE_MAN%%man/man8/lwresd.8.gz
+%%SHARE_MAN%%man/man8/named-checkconf.8.gz
+%%SHARE_MAN%%man/man8/named-checkzone.8.gz
+%%SHARE_MAN%%man/man8/named-compilezone.8.gz
+%%SHARE_MAN%%man/man8/named-journalprint.8.gz
+%%SHARE_MAN%%man/man8/named.8.gz
+%%SHARE_MAN%%man/man8/nsec3hash.8.gz
+%%SHARE_MAN%%man/man8/rndc-confgen.8.gz
+%%SHARE_MAN%%man/man8/rndc.8.gz
 sbin/arpaname
 sbin/ddns-confgen
 sbin/dnssec-dsfromkey
@@ -233,15 +345,24 @@ sbin/rndc-confgen
 %%NOBASE%%etc/rc.d/named
 %%NOBASE%%@unexec if cmp -s %%BIND_DESTETC%%/named.conf.sample %%BIND_DESTETC%%/named.conf; then rm -f %%BIND_DESTETC%%/named.conf; fi
 %%NOBASE%%%%BIND_DESTETC%%/named.conf.sample
+%%NOBASE%%@exec if [ ! -f %%BIND_DESTETC%%/named.conf ] ; then cp -p %D/%F %B/named.conf; fi
 %%NOBASE%%%%BIND_DESTETC%%/named.root
 %%NOBASE%%%%BIND_DESTETC%%/master/empty.db
 %%NOBASE%%%%BIND_DESTETC%%/master/localhost-forward.db
 %%NOBASE%%%%BIND_DESTETC%%/master/localhost-reverse.db
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/master
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/slave
-%%NOBASE%%@dirrm %%BIND_DESTETC%%/working
-%%NOBASE%%@dirrm %%BIND_DESTETC%%
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/dynamic
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/dynamic
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/dynamic
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/master
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/master
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/master
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/slave
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/slave
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/slave
+%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/working
+%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/working
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/working
+%%NOBASE%%@dirrmtry %%BIND_DESTETC%%
 @dirrm include/bind9
 @dirrm include/dns
 @dirrm include/dst



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401061334.s06DYmpa062143>