Bug 180589 - New port: dns/hostdb
Summary: New port: dns/hostdb
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Craig Rodrigues
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 08:00 UTC by Craig Rodrigues
Modified: 2013-07-21 05:42 UTC (History)
0 users

See Also:


Attachments
file.shar (8.34 KB, text/plain)
2013-07-16 08:00 UTC, Craig Rodrigues
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Rodrigues freebsd_committer freebsd_triage 2013-07-16 08:00:00 UTC
Please accept this new port dns/hostdb.

This port is extremely useful for generating DNS and DHCP config
files from a single text file.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-16 08:00:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rodrigc

Submitter has GNATS access (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-07-16 21:35:30 UTC
Author: rodrigc (src committer)
Date: Tue Jul 16 20:35:20 2013
New Revision: 323125
URL: http://svnweb.freebsd.org/changeset/ports/323125

Log:
  HostDB is a system for generating internal DNS zones,
  external DNS zones, and DHCP configuration data from the
  same hostdb.txt file.
  
  WWW: http://everythingsysadmin.com/hostdb/
       http://code.google.com/p/hostdb/
  
  PR:             ports/180589
  Submitted by:   Craig Rodrigues <rodrigc@FreeBSD.org>

Added:
  head/dns/hostdb/
  head/dns/hostdb/Makefile   (contents, props changed)
  head/dns/hostdb/distinfo   (contents, props changed)
  head/dns/hostdb/files/
  head/dns/hostdb/files/patch-bin.diff   (contents, props changed)
  head/dns/hostdb/pkg-descr   (contents, props changed)
  head/dns/hostdb/pkg-plist   (contents, props changed)
Modified:
  head/dns/Makefile

Modified: head/dns/Makefile
==============================================================================
--- head/dns/Makefile	Tue Jul 16 20:19:56 2013	(r323124)
+++ head/dns/Makefile	Tue Jul 16 20:35:20 2013	(r323125)
@@ -55,6 +55,7 @@
     SUBDIR += geta
     SUBDIR += ghtool
     SUBDIR += hesiod
+    SUBDIR += hostdb
     SUBDIR += idnkit
     SUBDIR += idnkit2
     SUBDIR += inadyn

Added: head/dns/hostdb/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/hostdb/Makefile	Tue Jul 16 20:35:20 2013	(r323125)
@@ -0,0 +1,35 @@
+# Created by: rodrigc@FreeBSD.org
+# $FreeBSD$
+
+PORTNAME=	hostdb
+PORTVERSION=	1.004
+CATEGORIES=	dns
+MASTER_SITES=	GOOGLE_CODE
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	rodrigc@FreeBSD.org
+COMMENT=	Generate DNS and DHCP config files from single source
+
+NO_BUILD=	yes
+
+HOSTDB_EXAMPLES_DIRS=	example1/out example1/ example2 hiddenmaster
+HOSTDB_EXAMPLES_DIRS+=	mailserverexample/out mailserverexample
+
+.include <bsd.port.options.mk>
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin
+.if ${PORT_OPTIONS:MEXAMPLES}
+.for dir in ${HOSTDB_EXAMPLES_DIRS}
+	${MKDIR} ${EXAMPLESDIR}
+	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
+.endfor
+.endif
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}/
+	cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>

Added: head/dns/hostdb/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/hostdb/distinfo	Tue Jul 16 20:35:20 2013	(r323125)
@@ -0,0 +1,2 @@
+SHA256 (hostdb-1.004.tgz) = beea7cfcdc384eb40d0bc8b3ad2eb094ee81ca75e8eef7c07ea4a47e9f0da350
+SIZE (hostdb-1.004.tgz) = 164585

Added: head/dns/hostdb/files/patch-bin.diff
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/hostdb/files/patch-bin.diff	Tue Jul 16 20:35:20 2013	(r323125)
@@ -0,0 +1,33 @@
+--- bin/NIdhcpupdate.orig	2006-07-09 19:11:52.000000000 -0700
++++ bin/NIdhcpupdate	2013-07-15 23:39:08.368673247 -0700
+@@ -1,4 +1,4 @@
+-#! /bin/bash
++#!/bin/sh
+ 
+ 
+ # Copyright 2005 Thomas A. Limoncelli
+@@ -18,7 +18,7 @@
+ #     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ 
+ 
+-function usage
++usage
+ {
+         echo "
+ Usage:
+--- bin/sortbyip.orig	2013-07-15 23:40:10.298670968 -0700
++++ bin/sortbyip	2013-07-15 23:40:23.308670176 -0700
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ 
+ # Sort by IP address.  Assume IP address is at front of line.
+ # Options:
+--- bin/zone2hostdb.orig	2013-07-15 23:40:14.308673854 -0700
++++ bin/zone2hostdb	2013-07-15 23:40:27.638673094 -0700
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ 
+ # Takes a zonefile and converts it to a rough estimate
+ # of what hostdb.txt should be.

Added: head/dns/hostdb/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/hostdb/pkg-descr	Tue Jul 16 20:35:20 2013	(r323125)
@@ -0,0 +1,10 @@
+HostDB is a system for generating internal DNS zones, external DNS zones,
+and DHCP configuration data from the same hostlist.txt file.
+Keep your configurations consistent by generating them all from the same
+source. 
+
+A system for generating internal DNS zones, external DNS zones, and
+DHCP configuration data from the same simple repository.
+
+WWW: http://code.google.com/p/hostdb
+     http://everythingsysadmin.com/hostdb

Added: head/dns/hostdb/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/hostdb/pkg-plist	Tue Jul 16 20:35:20 2013	(r323125)
@@ -0,0 +1,90 @@
+bin/Example_comparezones
+bin/NIdhcpupdate
+bin/canonzone
+bin/catif
+bin/checkrootcache
+bin/copy-if-change
+bin/genrange
+bin/mergeiplists
+bin/mkdestinations
+bin/mknamedconf
+bin/mkzones
+bin/sortbyip
+bin/zone2hostdb
+bin/zone2hostdbhelper
+%%PORTDOCS%%%%DOCSDIR%%/hostdb-options.txt
+%%PORTDOCS%%%%DOCSDIR%%/lisa2005-paper.pdf
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/zoneconf.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/dhcpd.conf-tail
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb-ranges2.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/stage1.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/INTERNAL.named.conf-tail
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.named.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/destinations.mk
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/serial
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.example.com
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.example.com
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.named.root.new
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.179.32.64.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/dhcpd.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.named.root
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/x
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.named.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/INTERNAL.1.1.10.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/SLAVE.named.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/out/EXTERNAL.179.32.64.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/Makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb-original.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/destinations.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/dhcpd.conf-head
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/hostdb-ranges.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/INTERNAL.named.conf-head
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/hostdb.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/localhost.zone
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/dhcpd.conf-head
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/named.local
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/dhcpd.conf-tail
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/Makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/zoneconf.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/goodstart/destinations.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/stage1.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/hostdb.txt-enum
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/hostdb.txt-base
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/240.1.10.in-addr.arpa.originalzone
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/cibernet.com-originalzone
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/hostdb.txt-draft
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.16.113.212.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.151.80.66.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.example.com
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.example.com
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.6.113.212.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.100.134.66.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.240.1.10.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.87.195.193.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.cibernet.com
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/serial
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.cibernet.com
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.87.195.193.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.1.168.192.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/INTERNAL.201.1.10.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/out/EXTERNAL.166.155.66.in-addr.arpa
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/hostdb.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/Makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailserverexample/zoneconf.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/EXTERNAL.named.root.new
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/zoneconf.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/EXTERNAL.named.root
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/Makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hiddenmaster/hostdb.txt
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example1/out
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example1
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example2
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/goodstart
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/hiddenmaster
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/mailserverexample/out
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/mailserverexample
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2013-07-21 05:41:48 UTC
State Changed
From-To: open->closed

committed Tue Jul 16 20:35:20 2013.