Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Aug 2011 09:59:13 GMT
From:      Michael Cardell Widerkrantz <mc@hack.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/159626: New port: dns/radns IPv6 DNS server address autoconfiguration client
Message-ID:  <201108090959.p799xDqw081451@red.freebsd.org>
Resent-Message-ID: <201108091000.p79A0NbM083769@freefall.freebsd.org>

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

>Number:         159626
>Category:       ports
>Synopsis:       New port: dns/radns IPv6 DNS server address autoconfiguration client
>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 Aug 09 10:00:23 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Michael Cardell Widerkrantz
>Release:        8.1
>Organization:
>Environment:
FreeBSD brain.hack.org 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
radns is an IPv6 DNS server address autoconfiguration client. It
listens for IPv6 Router Advertisements with the Recursive DNS Server
(RDNSS) and the DNS Search List (DNSSL) options and stores the search
list and address(es) in a file in the same syntax as resolv.conf(5).

>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:
#
#	radns
#	radns/files
#	radns/files/radns.in
#	radns/files/pkg-message.in
#	radns/pkg-descr
#	radns/pkg-plist
#	radns/distinfo
#	radns/Makefile
#
echo c - radns
mkdir -p radns > /dev/null 2>&1
echo c - radns/files
mkdir -p radns/files > /dev/null 2>&1
echo x - radns/files/radns.in
sed 's/^X//' >radns/files/radns.in << '088edc1cdf979d141ea7ecb41cfcafa5'
X#! /bin/sh
X#
X# PROVIDE: radns
X# REQUIRE: DAEMON LOGIN
X# KEYWORD: shutdown
X# 
X# Add the following lines to /etc/rc.conf to enable radns:
X#
X# radns_enable (bool):	Set it to "YES" to enable radns
X#			Default is "NO".
X# radns_resolv (path):	Full path to radns' own resolv.conf
X# radns_pidfile (path):	Full path to pid file.
X# radns_script (path): Full path to script file or empty string if no script.
X# radns_username (user): Username the daemon will run as.
X#
X
X. /etc/rc.subr
X
Xname=radns
Xrcvar=`set_rcvar`
Xradns_dir="%%PREFIX%%/etc/radns"
X
Xload_rc_config $name
X
X# Default values
X: ${radns_enable="NO"}
X: ${radns_pidfile="/var/run/${name}.pid"}
X: ${radns_resolv="${radns_dir}/radns-resolv.conf"}
X: ${radns_script=""}
X: ${radns_username="radns"}
X
Xcommand="%%PREFIX%%/bin/${name}"
X
Xstart_precmd=start_precmd
Xstop_postcmd=stop_postcmd
X
Xstart_precmd()
X{
X    [ -d ${radns_dir} ] || mkdir ${radns_dir}
X    chown ${radns_username} ${radns_dir}
X}
X
Xstop_postcmd()
X{
X    rm -f ${radns_resolv}
X    rm -f ${radns_pidfile}
X}
X
X# if script:
Xif [ x${radns_script} != "x" ]
Xthen
X    command_args="-f ${radns_resolv} -s ${radns_script} -u ${radns_username} \
X    -p ${radns_pidfile}"
Xelse
X    command_args="-f ${radns_resolv} -u ${radns_username} -p ${radns_pidfile}"
Xfi
X
Xreload_precmd()
X{
X    echo "Stopping ${name} and start gracefully."
X}
X
Xreload_postcmd()
X{
X    rm -f ${radns_pidfile}
X    run_rc_command start
X}
X
X# actually execute the program
Xrun_rc_command "$1"
088edc1cdf979d141ea7ecb41cfcafa5
echo x - radns/files/pkg-message.in
sed 's/^X//' >radns/files/pkg-message.in << '6a5da09769a552a97564eeeb1bd7477a'
X****************************************************
X
XTo enable radns, edit /etc/rc.conf and add:
X
X  radns_enable="YES"
X
Xradns won't touch your system's /etc/resolv.conf. It will write to its
Xown file %%PREFIX%%/etc/radns/radns-resolv.conf.
X
XTo make sure the system's /etc/resolv.conf file is created from all
Xsources, read %%PREFIX%%/share/doc/radns/README.FreeBSD.
X
X****************************************************
6a5da09769a552a97564eeeb1bd7477a
echo x - radns/pkg-descr
sed 's/^X//' >radns/pkg-descr << 'ac667ce6dfea90de70f2cfccc91b57ba'
XRouter Advertisement DNS (radns)
X
Xradns is an IPv6 DNS server address autoconfiguration client. It
Xlistens for IPv6 Router Advertisements with the Recursive DNS Server
X(RDNSS) and the DNS Search List (DNSSL) options and stores the search
Xlist and address(es) in a file in the same syntax as resolv.conf(5).
X
XWWW: http://hack.org/mc/hacks/radns/
X
X- Michael Cardell Widerkrantz
Xmc@hack.org
ac667ce6dfea90de70f2cfccc91b57ba
echo x - radns/pkg-plist
sed 's/^X//' >radns/pkg-plist << 'e604dc5ddf92f893e972eadc85a93499'
Xbin/radns
Xetc/radns/dhclient-exit-hooks
Xetc/radns/radns-script
X@dirrm etc/radns
e604dc5ddf92f893e972eadc85a93499
echo x - radns/distinfo
sed 's/^X//' >radns/distinfo << 'd88334ebfd9ba8eae97c36953ac76423'
XSHA256 (radns-20110809.tar.bz2) = 1a501c40c15008f0581a4d8616e261b0b4e851a04c52cdad490bcb581c7e81dd
XSIZE (radns-20110809.tar.bz2) = 19966
d88334ebfd9ba8eae97c36953ac76423
echo x - radns/Makefile
sed 's/^X//' >radns/Makefile << 'cfb935c63d79e416fa3b397aed6581e8'
X# New ports collection makefile for:   radns
X# Date created:        11 July 2011
X# Whom:                Michael Cardell Widerkrantz <mc@hack.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	radns
XPORTVERSION=	20110809
XCATEGORIES=	dns
XMASTER_SITES=	http://hack.org/mc/hacks/radns/
XDISTNAME=	${PORTNAME}-20110809
X
XMAINTAINER=	mc@hack.org
XCOMMENT=	IPv6 DNS server address autoconfiguration client
X
XUSE_BZIP2=	yes
XUSE_RC_SUBR=	radns
X
XLICENSE=	ISCL
X
XUSERS=		radns
XGROUPS=		radns
X
XUSE_RC_SUBR=	radns
XSUB_FILES=	pkg-message
X
XMAN8=		radns.8
X
XPORTDOCS=	LICENSE README README.FreeBSD NEWS
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} "Installing additional documentation to ${DOCSDIR}"
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/README.FreeBSD ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/NEWS ${DOCSDIR}
X
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
cfb935c63d79e416fa3b397aed6581e8
exit



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



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