Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Aug 2015 11:26:17 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r395029 - in head/dns/dnsdist: . files
Message-ID:  <201508221126.t7MBQHWq052758@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sat Aug 22 11:26:16 2015
New Revision: 395029
URL: https://svnweb.freebsd.org/changeset/ports/395029

Log:
  dns/dnsdist: 0.0.211g05c8117 -> 0.0.213g3172f9b
  
  - Add startup script
  - Add sample config file
  - Build with libsodium
  
  PR:		202555
  Submitted by:	Carlos J Puga Medina <cpm@fbsd.es>

Added:
  head/dns/dnsdist/files/
  head/dns/dnsdist/files/dnsdist.conf.sample   (contents, props changed)
  head/dns/dnsdist/files/dnsdist.in   (contents, props changed)
Modified:
  head/dns/dnsdist/Makefile
  head/dns/dnsdist/distinfo

Modified: head/dns/dnsdist/Makefile
==============================================================================
--- head/dns/dnsdist/Makefile	Sat Aug 22 11:25:45 2015	(r395028)
+++ head/dns/dnsdist/Makefile	Sat Aug 22 11:26:16 2015	(r395029)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	dnsdist
-DISTVERSION=	0.0.211g05c8117
+DISTVERSION=	0.0.213g3172f9b
 CATEGORIES=	dns net
 MASTER_SITES=	http://builder.powerdns.com/files/dnsdist/dist/
 
@@ -21,9 +21,13 @@ LDFLAGS+=	-L${LOCALBASE}/lib -latomic
 GNU_CONFIGURE=	yes
 USE_GCC=	4.8+
 USES=		bison cpe gmake libtool lua:52 pkgconfig readline tar:bz2
+CONFIGURE_ARGS=	--enable-libsodium
 INSTALL_TARGET=	install-strip
 
-PLIST_FILES=	bin/dnsdist \
-		man/man1/dnsdist.1.gz
+USE_RC_SUBR=	dnsdist
+
+post-install:
+	${INSTALL_DATA} ${FILESDIR}/dnsdist.conf.sample \
+		${STAGEDIR}${PREFIX}/etc
 
 .include <bsd.port.mk>

Modified: head/dns/dnsdist/distinfo
==============================================================================
--- head/dns/dnsdist/distinfo	Sat Aug 22 11:25:45 2015	(r395028)
+++ head/dns/dnsdist/distinfo	Sat Aug 22 11:26:16 2015	(r395029)
@@ -1,2 +1,2 @@
-SHA256 (dnsdist-0.0.211g05c8117.tar.bz2) = de08b642c0b5c1d2f6ff9900e8e043738789a1068a6283005136badaa8622305
-SIZE (dnsdist-0.0.211g05c8117.tar.bz2) = 539720
+SHA256 (dnsdist-0.0.213g3172f9b.tar.bz2) = fe0fa3c3f3c2633d2927b30f54fc92fded3c4dae7d354dde3df7fda3792c6abd
+SIZE (dnsdist-0.0.213g3172f9b.tar.bz2) = 539680

Added: head/dns/dnsdist/files/dnsdist.conf.sample
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnsdist/files/dnsdist.conf.sample	Sat Aug 22 11:26:16 2015	(r395029)
@@ -0,0 +1,6 @@
+newServer {address="2001:4860:4860::8888", qps=1}
+newServer {address="2001:4860:4860::8844", qps=1} 
+newServer {address="2620:0:ccc::2", qps=10}
+newServer {address="2620:0:ccd::2", qps=10}
+newServer("192.168.1.2")
+setServerPolicy(firstAvailable) -- first server within its QPS limit

Added: head/dns/dnsdist/files/dnsdist.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnsdist/files/dnsdist.in	Sat Aug 22 11:26:16 2015	(r395029)
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: dnsdist
+# REQUIRE: NETWORKING DAEMON
+# KEYWORD: shutdown
+#
+# Add the following to /etc/rc.conf to enable dnsdist:
+#
+# dnsdist_enable="YES"
+#
+
+. /etc/rc.subr
+
+name="dnsdist"
+rcvar="dnsdist_enable"
+
+load_rc_config ${name}
+
+: ${dnsdist_enable:="NO"}
+: ${dnsdist_pidfile:=/var/run/${name}/pid}
+
+command=/usr/local/sbin/${name}
+command_args="-l 127.0.0.1:53"
+
+run_rc_command "$1"



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