ports/180589: New port: dns/hostdb

Craig Rodrigues rodrigc at FreeBSD.org
Tue Jul 16 07:00:00 UTC 2013


>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 at FreeBSD.org
X# $FreeBSD$
X
XPORTNAME=	hostdb
XPORTVERSION=	1.004
XCATEGORIES=	dns
XMASTER_SITES=	GOOGLE_CODE
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	rodrigc at 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 <bsd.port.options.mk>
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 <bsd.port.mk>
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:


More information about the freebsd-ports-bugs mailing list