From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 16 07:00:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CCB4CAEF for ; Tue, 16 Jul 2013 07:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B479D1FF for ; Tue, 16 Jul 2013 07:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6G700k2057721 for ; Tue, 16 Jul 2013 07:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6G700pp057720; Tue, 16 Jul 2013 07:00:00 GMT (envelope-from gnats) Resent-Date: Tue, 16 Jul 2013 07:00:00 GMT Resent-Message-Id: <201307160700.r6G700pp057720@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Craig Rodrigues Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 812829D5 for ; Tue, 16 Jul 2013 06:54:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6484D1DD for ; Tue, 16 Jul 2013 06:54:41 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6G6seRo026727 for ; Tue, 16 Jul 2013 06:54:40 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6G6seQu026726; Tue, 16 Jul 2013 06:54:40 GMT (envelope-from nobody) Message-Id: <201307160654.r6G6seQu026726@oldred.freebsd.org> Date: Tue, 16 Jul 2013 06:54:40 GMT From: Craig Rodrigues To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/180589: New port: dns/hostdb X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2013 07:00:00 -0000 >Number: 180589 >Category: ports >Synopsis: New port: dns/hostdb >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 16 07:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Craig Rodrigues >Release: >Organization: >Environment: >Description: Please accept this new port dns/hostdb. This port is extremely useful for generating DNS and DHCP config files from a single text file. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # hostdb # hostdb/pkg-descr # hostdb/distinfo # hostdb/Makefile # hostdb/pkg-plist # hostdb/files # hostdb/files/patch-bin.diff # echo c - hostdb mkdir -p hostdb > /dev/null 2>&1 echo x - hostdb/pkg-descr sed 's/^X//' >hostdb/pkg-descr << 'fc387e149f367d3dab72afb3aa0a3e62' XHostDB is a system for generating internal DNS zones, external DNS zones, Xand DHCP configuration data from the same hostlist.txt file. XKeep your configurations consistent by generating them all from the same Xsource. X XA system for generating internal DNS zones, external DNS zones, and XDHCP configuration data from the same simple repository. X XWWW: http://code.google.com/p/hostdb X http://everythingsysadmin.com/hostdb fc387e149f367d3dab72afb3aa0a3e62 echo x - hostdb/distinfo sed 's/^X//' >hostdb/distinfo << '1eaf23e4f0ad255496e20ae57ca46bb6' XSHA256 (hostdb-1.004.tgz) = beea7cfcdc384eb40d0bc8b3ad2eb094ee81ca75e8eef7c07ea4a47e9f0da350 XSIZE (hostdb-1.004.tgz) = 164585 1eaf23e4f0ad255496e20ae57ca46bb6 echo x - hostdb/Makefile sed 's/^X//' >hostdb/Makefile << '994fccb9bc18ee8161462b36d731bbcb' X# Created by: rodrigc@FreeBSD.org X# $FreeBSD$ X XPORTNAME= hostdb XPORTVERSION= 1.004 XCATEGORIES= dns XMASTER_SITES= GOOGLE_CODE XEXTRACT_SUFX= .tgz X XMAINTAINER= rodrigc@FreeBSD.org XCOMMENT= Generate DNS and DHCP config files from single source X XNO_BUILD= yes X XHOSTDB_EXAMPLES_DIRS= example1/out example1/ example2 hiddenmaster XHOSTDB_EXAMPLES_DIRS+= mailserverexample/out mailserverexample X X.include X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin X.if ${PORT_OPTIONS:MEXAMPLES} X.for dir in ${HOSTDB_EXAMPLES_DIRS} X ${MKDIR} ${EXAMPLESDIR} X cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/ X.endfor X.endif X.if ${PORT_OPTIONS:MDOCS} X ${MKDIR} ${DOCSDIR}/ X cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} X.endif X X.include 994fccb9bc18ee8161462b36d731bbcb echo x - hostdb/pkg-plist sed 's/^X//' >hostdb/pkg-plist << '49993c428fc2ebbd634d40891a6b401b' Xbin/Example_comparezones Xbin/NIdhcpupdate Xbin/canonzone Xbin/catif Xbin/checkrootcache Xbin/copy-if-change Xbin/genrange Xbin/mergeiplists Xbin/mkdestinations Xbin/mknamedconf Xbin/mkzones Xbin/sortbyip Xbin/zone2hostdb Xbin/zone2hostdbhelper X%%PORTDOCS%%%%DOCSDIR%%/hostdb-options.txt X%%PORTDOCS%%%%DOCSDIR%%/lisa2005-paper.pdf X%%PORTDOCS%%%%DOCSDIR%%/README.txt X%%PORTDOCS%%%%DOCSDIR%%/COPYING X%%PORTDOCS%%@dirrm %%DOCSDIR%% X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/zoneconf.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/dhcpd.conf-tail X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb-ranges2.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/stage1.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/INTERNAL.named.conf-tail X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.named.conf X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/destinations.mk X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/serial X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.example.com X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.example.com X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.named.root.new X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.179.32.64.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/dhcpd.conf X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.named.root X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/x X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.named.conf X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.1.1.10.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/SLAVE.named.conf X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.179.32.64.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/Makefile X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb-original.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/destinations.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/dhcpd.conf-head X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb-ranges.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/INTERNAL.named.conf-head X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/hostdb.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/localhost.zone X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/dhcpd.conf-head X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/named.local X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/dhcpd.conf-tail X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/Makefile X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/zoneconf.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/destinations.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/stage1.sh X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/hostdb.txt-enum X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/hostdb.txt-base X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/240.1.10.in-addr.arpa.originalzone X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/cibernet.com-originalzone X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/hostdb.txt-draft X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.16.113.212.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.151.80.66.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.example.com X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.example.com X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.6.113.212.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.100.134.66.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.240.1.10.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.87.195.193.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.cibernet.com X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/serial X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.cibernet.com X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.87.195.193.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.1.168.192.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.201.1.10.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.166.155.66.in-addr.arpa X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/hostdb.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/Makefile X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/zoneconf.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/EXTERNAL.named.root.new X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/zoneconf.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/EXTERNAL.named.root X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/Makefile X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/hostdb.txt X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example1/out X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example1 X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example2 X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/goodstart X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/hiddenmaster X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/mailserverexample/out X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/mailserverexample X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% 49993c428fc2ebbd634d40891a6b401b echo c - hostdb/files mkdir -p hostdb/files > /dev/null 2>&1 echo x - hostdb/files/patch-bin.diff sed 's/^X//' >hostdb/files/patch-bin.diff << 'fc321d65aaba8d4116c7c92ce0502338' X--- bin/NIdhcpupdate.orig 2006-07-09 19:11:52.000000000 -0700 X+++ bin/NIdhcpupdate 2013-07-15 23:39:08.368673247 -0700 X@@ -1,4 +1,4 @@ X-#! /bin/bash X+#!/bin/sh X X X # Copyright 2005 Thomas A. Limoncelli X@@ -18,7 +18,7 @@ X # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA X X X-function usage X+usage X { X echo " X Usage: X--- bin/sortbyip.orig 2013-07-15 23:40:10.298670968 -0700 X+++ bin/sortbyip 2013-07-15 23:40:23.308670176 -0700 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!/bin/sh X X # Sort by IP address. Assume IP address is at front of line. X # Options: X--- bin/zone2hostdb.orig 2013-07-15 23:40:14.308673854 -0700 X+++ bin/zone2hostdb 2013-07-15 23:40:27.638673094 -0700 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!/bin/sh X X # Takes a zonefile and converts it to a rough estimate X # of what hostdb.txt should be. fc321d65aaba8d4116c7c92ce0502338 exit >Release-Note: >Audit-Trail: >Unformatted: