Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2012 03:13:23 GMT
From:      stef@scaleengine.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ports@scaleengine.com
Subject:   ports/167946: New port: dns/gdnsd An Authoritative-only DNS server with a plugin system for geographic balancing.
Message-ID:  <201205160313.q4G3DN7h067066@Whiskey.HML1.ScaleEngine.net>
Resent-Message-ID: <201205160340.q4G3e1fb072360@freefall.freebsd.org>

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

>Number:         167946
>Category:       ports
>Synopsis:       New port: dns/gdnsd An Authoritative-only DNS server with a plugin system for geographic balancing.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 03:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Caunter
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
scaleengine.com
>Environment:
System: FreeBSD Whiskey.HML1.ScaleEngine.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
gdnsd is an Authoritative-only DNS server with a plugin system for geographic balancing.
>How-To-Repeat:
	
>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:
#
#	gdnsd
#	gdnsd/Makefile
#	gdnsd/pkg-descr
#	gdnsd/distinfo
#	gdnsd/files
#	gdnsd/files/gdnsd.sh.in
#	gdnsd/pkg-plist
#
echo c - gdnsd
mkdir -p gdnsd > /dev/null 2>&1
echo x - gdnsd/Makefile
sed 's/^X//' >gdnsd/Makefile << '1edfaa2afe1e0a6d8a87f2ad49aa3f4d'
X# New ports collection makefile for:	gdnsd
X# Date created:			Tue May 15, 2012
X# Whom:				Stefan Caunter <stef@scaleengine.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gdnsd
XPORTVERSION=	1.6.7
XCATEGORIES=	dns
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
XMASTER_SITES+=	http://gdnsd.scaleengine.net/gdnsd/
X
XMAINTAINER=	ports@scaleengine.com
XCOMMENT=	Authoritative-only GeoIP-aware DNS server
X
XLICENSE=	GPLv3
X
XOPTIONS=	GEOIP		"Enable GeoIP Support"	off
X
X.include <bsd.port.options.mk>
X
XHAS_CONFIGURE=	yes
XMAKE_JOBS_SAFE=	yes
XUSE_LDCONFIG=	yes
X
XMAN1=		gdnsd_geoip_test.1
XMAN5=		gdnsd.config.5
XMAN5+=		gdnsd.zonefile.5
XMAN8=		gdnsd.8
XMAN8+=		gdnsd-plugin-simplefo.8
XMAN8+=		gdnsd-plugin-multifo.8
XMAN8+=		gdnsd-plugin-metafo.8
XMAN8+=		gdnsd-plugin-geoip.8
XMAN8+=		gdnsd-plugin-weighted.8
XMANCOMPRESSED=	no
X
XUSERS =		bind
XGROUPS =	bind
X
XUSE_RC_SUBR=	gdnsd.sh
X
XCONFIGURE_ARGS+=	--mandir=${PREFIX}/man
X
X.if defined(WITH_GEOIP)
XRUN_DEPENDS+=   ${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
X.endif
X
Xpost-install:
X	${CP} ${WRKDIR}/${DISTNAME}/docs/config.example ${ETCDIR}/config-dist
X	@if [ ! -f ${ETCDIR}/config ]; then \
X		${CP} -p ${ETCDIR}/config-dist ${ETCDIR}/config ; \
X	fi
X	${CP} ${WRKDIR}/${DISTNAME}/docs/example.com ${ETCDIR}/example.com
X
X.include <bsd.port.mk>
1edfaa2afe1e0a6d8a87f2ad49aa3f4d
echo x - gdnsd/pkg-descr
sed 's/^X//' >gdnsd/pkg-descr << 'ecde11a765ad52b4224419b2eba911ce'
Xgdnsd is an Authoritative-only DNS server. 
XThe initial g stands for Geographic, as gdnsd offers a plugin system for 
Xgeographic (or other sorts of) balancing, redirection, and 
Xservice-state-conscious failover. If you don't care about that feature, it's 
Xstill quite good at being a very fast, lean, and resilient authoritative-only 
Xserver for static DNS data.
X
Xgdnsd is written in C using libev and pthreads with a focus on high 
Xperformance, low latency service. It does not offer any form of caching or 
Xrecursive service, and does not support DNSSEC.  
X
XWWW: http://code.google.com/p/gdnsd/
ecde11a765ad52b4224419b2eba911ce
echo x - gdnsd/distinfo
sed 's/^X//' >gdnsd/distinfo << '790e7cd581b808e35aec58ea2dbf5396'
XSHA256 (gdnsd-1.6.7.tar.gz) = 39bf9849a586564f60319e4012edc037633077780060a4f925c418871d6d8672
XSIZE (gdnsd-1.6.7.tar.gz) = 942433
790e7cd581b808e35aec58ea2dbf5396
echo c - gdnsd/files
mkdir -p gdnsd/files > /dev/null 2>&1
echo x - gdnsd/files/gdnsd.sh.in
sed 's/^X//' >gdnsd/files/gdnsd.sh.in << 'ac08c8242855da3a9001180ad6995aab'
X#!/bin/sh
X
X# $FreeBSD$
X#
X# PROVIDE: gdnsd
X# REQUIRE: DAEMON
X# REQUIRE: LOGIN
X# KEYWORD: FreeBSD shutdown
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# gdnsd_enable (bool):	Set to NO by default.
X#				Set it to YES to enable gdnsd.
X# gdnsd_config (path):	Set to /usr/local/etc/gdnsd/config
X#				by default.
X
X. /etc/rc.subr
X
Xname="gdnsd"
Xrcvar=`set_rcvar`
Xcommand="/usr/local/sbin/gdnsd"
X
X# set defaults
Xload_rc_config $name
X: ${gdnsd_enable:="NO"}
X: ${gdnsd_config="/usr/local/etc/gdnsd/config"}
X: ${gdnsd_pidfile="/usr/local/var/run/gdnsd.pid"}
X
Xrequired_files=${gdnsd_config}
Xcommand_args="-c ${gdnsd_config} start"
Xprocname=${command}
Xextra_commands="checkconf"
Xcheckconf_cmd="gdnsd_checkconf"
X
Xstop_postcmd=stop_postcmd
X
Xstop_postcmd()
X{
X  rm -f ${gdnsd_pidfile}
X}
X
Xgdnsd_checkconf()
X{
X  ${command} -c ${gdnsd_config} checkconf
X}
X
Xrun_rc_command "$1"
X
ac08c8242855da3a9001180ad6995aab
echo x - gdnsd/pkg-plist
sed 's/^X//' >gdnsd/pkg-plist << '09d21844b3ee73105e517ee3269eda3f'
Xbin/gdnsd_geoip_test
X@unexec if cmp -s %D/%%ETCDIR%%/config-dist %D/%%ETCDIR%%/config; then rm -f %D/%%ETCDIR%%/config; fi
X%%ETCDIR%%/config-dist
X@exec if [ ! -f %D/%%ETCDIR%%/config ] ; then cp -p %D/%F %B/config; fi
X%%ETCDIR%%/example.com
X@dirrmtry %%ETCDIR%%
Xlib/gdnsd/libgdnsd.la
Xlib/gdnsd/libgdnsd.so
Xlib/gdnsd/plugin_geoip.la
Xlib/gdnsd/plugin_geoip.so
Xlib/gdnsd/plugin_http_status.la
Xlib/gdnsd/plugin_http_status.so
Xlib/gdnsd/plugin_metafo.la
Xlib/gdnsd/plugin_metafo.so
Xlib/gdnsd/plugin_multifo.la
Xlib/gdnsd/plugin_multifo.so
Xlib/gdnsd/plugin_null.la
Xlib/gdnsd/plugin_null.so
Xlib/gdnsd/plugin_reflect.la
Xlib/gdnsd/plugin_reflect.so
Xlib/gdnsd/plugin_simplefo.la
Xlib/gdnsd/plugin_simplefo.so
Xlib/gdnsd/plugin_static.la
Xlib/gdnsd/plugin_static.so
Xlib/gdnsd/plugin_tcp_connect.la
Xlib/gdnsd/plugin_tcp_connect.so
Xlib/gdnsd/plugin_weighted.la
Xlib/gdnsd/plugin_weighted.so
X@dirrm lib/gdnsd
Xsbin/gdnsd
X@exec mkdir -p %D/var/gdnsd
X@dirrm var/gdnsd
X@stopdaemon gdnsd
09d21844b3ee73105e517ee3269eda3f
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



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