Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 1999 06:45:12 -0500 (EST)
From:      Will Andrews <andrews@technologist.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/15796: new port: net/dhcp_dns
Message-ID:  <199912311145.GAA36535@argon.blackdawn.com>

next in thread | raw e-mail | index | archive | help

>Number:         15796
>Category:       ports
>Synopsis:       new port: net/dhcp_dns
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 31 03:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Will Andrews
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

FreeBSD argon.blackdawn.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Tue Nov 30 10:14:31 EST 1999     root@argon.blackdawn.com:/usr/src/sys/compile/ARGON  i386

>Description:

Nice DHCP DNS updater. See pkg/DESCR. 

>How-To-Repeat:

Use the shar below to commit the port to the tree.

>Fix:

# 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:
#
#	dhcp-dns
#	dhcp-dns/files
#	dhcp-dns/files/md5
#	dhcp-dns/files/dhcp_dns.sh
#	dhcp-dns/pkg
#	dhcp-dns/pkg/COMMENT
#	dhcp-dns/pkg/DESCR
#	dhcp-dns/pkg/PLIST
#	dhcp-dns/pkg/MESSAGE.extract
#	dhcp-dns/pkg/MESSAGE.install
#	dhcp-dns/Makefile
#
echo c - dhcp-dns
mkdir -p dhcp-dns > /dev/null 2>&1
echo c - dhcp-dns/files
mkdir -p dhcp-dns/files > /dev/null 2>&1
echo x - dhcp-dns/files/md5
sed 's/^X//' >dhcp-dns/files/md5 << 'END-of-dhcp-dns/files/md5'
XMD5 (dhcp_dns-0.2.1.tgz) = b7e0c7a3baaac6b4c821de2c73c26f4c
END-of-dhcp-dns/files/md5
echo x - dhcp-dns/files/dhcp_dns.sh
sed 's/^X//' >dhcp-dns/files/dhcp_dns.sh << 'END-of-dhcp-dns/files/dhcp_dns.sh'
X#!/bin/sh
X[ -x /usr/local/sbin/dhcp_dns ] && /usr/local/sbin/dhcp_dns && echo -n ' dhcp_dns'
END-of-dhcp-dns/files/dhcp_dns.sh
echo c - dhcp-dns/pkg
mkdir -p dhcp-dns/pkg > /dev/null 2>&1
echo x - dhcp-dns/pkg/COMMENT
sed 's/^X//' >dhcp-dns/pkg/COMMENT << 'END-of-dhcp-dns/pkg/COMMENT'
XPerl script to automate DNS updates for DHCP.
END-of-dhcp-dns/pkg/COMMENT
echo x - dhcp-dns/pkg/DESCR
sed 's/^X//' >dhcp-dns/pkg/DESCR << 'END-of-dhcp-dns/pkg/DESCR'
XThis is a Perl script that automates
Xupdates to BIND databases based on updates
Xmade to the DHCP leases file. It even does
Xreverse lookup changes! This script is
Xlikely to be viewed as a godsend for people
Xlooking to avoid the Microsoft solution that
Xalready updates DNS records in accordance
Xwith their DHCP server.
X
XGranted, it's not a C/C++ program, but it's
Xbetter than nothing. :-)
X
XThe author himself mentioned that this script
Xis mostly an interlude to what the ISC plans
Xto offer with later versions of DHCP (that
Xis, what this script does).
X
XJust as an "extra" note, you MUST be running
XBIND 8 (not 4.x or whatever) and (supposedly)
Xonly ISC's DHCP server works with this Perl script.
XIf you know otherwise, please email both the
Xauthor (below) and myself (on the last line).
X
XWWW: http://www.sector13.org/kazin/
XAuthor: Mike Stella <kazin@sector13.org>
X
X--Will <andrews@technologist.com>
END-of-dhcp-dns/pkg/DESCR
echo x - dhcp-dns/pkg/PLIST
sed 's/^X//' >dhcp-dns/pkg/PLIST << 'END-of-dhcp-dns/pkg/PLIST'
Xsbin/dhcp_dns
Xetc/rc.d/dhcp_dns.sh
END-of-dhcp-dns/pkg/PLIST
echo x - dhcp-dns/pkg/MESSAGE.extract
sed 's/^X//' >dhcp-dns/pkg/MESSAGE.extract << 'END-of-dhcp-dns/pkg/MESSAGE.extract'
X
XFor this script to have any purpose, you will need to
Xbe running some version of the ISC DHCP server. If it
Xworks with any other DHCP servers, please let the
Xauthor, Mike Stella <kazin@sector13.org> and 
Xmyself, %%MAINTAINER%%, know about this.
X
XFor now, you are not required to install any dhcp servers
Xthrough the ports mechanism. This will probably always be so.
XHowever, you WILL need the Perl module Net::DNS. This should
Xbe installed by the ports mechanism automatically.
X
END-of-dhcp-dns/pkg/MESSAGE.extract
echo x - dhcp-dns/pkg/MESSAGE.install
sed 's/^X//' >dhcp-dns/pkg/MESSAGE.install << 'END-of-dhcp-dns/pkg/MESSAGE.install'
X
XNote that you will have to modify the DNS update
Xscript itself in order for this program to work
Xfor your system. The script is on your system as
X%%PREFIX%%/sbin/dhcp_dns. Currently, it doesn't read
Xany config files, so you HAVE to change it directly.
XBy default, it WILL NOT work on your system!
X
END-of-dhcp-dns/pkg/MESSAGE.install
echo x - dhcp-dns/Makefile
sed 's/^X//' >dhcp-dns/Makefile << 'END-of-dhcp-dns/Makefile'
X# New ports collection makefile for:	dhcp_dns
X# Version required:	0.2.1
X# Date created:		21 Dec 1999
X# Whom:			Will Andrews <andrews@technologist.com>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	dhcp_dns-0.2.1
XPKGNAME=	dhcp-dns-0.2.1
XCATEGORIES=	net
XMASTER_SITES=	ftp://ftp.sector13.org/pub/kazin/dhcp_dns/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	andrews@technologist.com
X
XRUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS
X
XUSE_PERL5=	yes
XNO_BUILD=	yes
XWRKSRC=		${WRKDIR}/dhcp_dns
X
Xpost-extract:
X	@${SED} "s:%%MAINTAINER%%:${MAINTAINER}:g" ${PKGMESSAGE}.extract
X
Xpre-install:
X	@${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${FILESDIR}/dhcp_dns.sh
X	@${PERL} -pi -e "s:/bin/perl:${PERL}:g" ${WRKSRC}/dns_update.pl
X	@${PERL} -pi -e "s:sector13.net:localhost:g" ${WRKSRC}/dns_update.pl
X	@${PERL} -pi -e "s:state/dhcp:db:g" ${WRKSRC}/dns_update.pl
X	@${PERL} -pi -e "s:-t dns_update.pl:-t dhcp_dns:g" ${WRKSRC}/dns_update.pl
X	
Xdo-install:
X	@${INSTALL_SCRIPT} ${WRKSRC}/dns_update.pl ${PREFIX}/sbin/dhcp_dns
X	@${INSTALL_SCRIPT} ${FILESDIR}/dhcp_dns.sh ${PREFIX}/etc/rc.d/
X
Xpost-install:
X	@${SED} "s:%%PREFIX%%:${PREFIX}:g" ${PKGMESSAGE}.install
X
X.include <bsd.port.mk>
END-of-dhcp-dns/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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