From owner-svn-ports-head@FreeBSD.ORG Sun Jan 11 20:44:41 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5AEAC0F; Sun, 11 Jan 2015 20:44:41 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1D41E8F; Sun, 11 Jan 2015 20:44:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0BKifEH037499; Sun, 11 Jan 2015 20:44:41 GMT (envelope-from truckman@FreeBSD.org) Received: (from truckman@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0BKieF6037494; Sun, 11 Jan 2015 20:44:40 GMT (envelope-from truckman@FreeBSD.org) Message-Id: <201501112044.t0BKieF6037494@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: truckman set sender to truckman@FreeBSD.org using -f From: Don Lewis Date: Sun, 11 Jan 2015 20:44:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376802 - in head/dns: . wrapsrv wrapsrv/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2015 20:44:41 -0000 Author: truckman Date: Sun Jan 11 20:44:39 2015 New Revision: 376802 URL: https://svnweb.freebsd.org/changeset/ports/376802 QAT: https://qat.redports.org/buildarchive/r376802/ Log: New port: dns/wrapsrv DNS SRV record command line wrapper ----------------------------------- wrapsrv adds support for connecting to a network service based on DNS SRV record lookups to commands that do not support the DNS SRV record. wrapsrv implements the weighted priority client connection algorithm in RFC 2782. The specified command line will be invoked one or more times with %h and %p sequences in the command line substituted for the hostname and port elements of the selected SRV record. WWW: https://github.com/farsightsec/wrapsrv Differential Revision: https://reviews.freebsd.org/D1488 Approved by: mat (mentor) Sponsored by: Farsight Security, Inc. Added: head/dns/wrapsrv/ head/dns/wrapsrv/Makefile (contents, props changed) head/dns/wrapsrv/distinfo (contents, props changed) head/dns/wrapsrv/files/ head/dns/wrapsrv/files/patch-Makefile (contents, props changed) head/dns/wrapsrv/pkg-descr (contents, props changed) Modified: head/dns/Makefile Modified: head/dns/Makefile ============================================================================== --- head/dns/Makefile Sun Jan 11 20:26:25 2015 (r376801) +++ head/dns/Makefile Sun Jan 11 20:44:39 2015 (r376802) @@ -177,6 +177,7 @@ SUBDIR += vizone SUBDIR += walker SUBDIR += wdns + SUBDIR += wrapsrv SUBDIR += yadifa SUBDIR += zkt SUBDIR += zonecheck Added: head/dns/wrapsrv/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/wrapsrv/Makefile Sun Jan 11 20:44:39 2015 (r376802) @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= wrapsrv +PORTVERSION= 1.0.0 +CATEGORIES= dns +MASTER_SITES= https://dl.farsightsecurity.com/dist/wrapsrv/ \ + LOCAL/truckman/farsight + +MAINTAINER= truckman@FreeBSD.org +COMMENT= DNS SRV record command line wrapper + +LICENSE= APACHE20 + +BUILD_DEPENDS= docbook2mdoc:${PORTSDIR}/textproc/docbook2mdoc + +PLIST_FILES= bin/wrapsrv man/man1/wrapsrv.1.gz + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wrapsrv + +.include Added: head/dns/wrapsrv/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/wrapsrv/distinfo Sun Jan 11 20:44:39 2015 (r376802) @@ -0,0 +1,2 @@ +SHA256 (wrapsrv-1.0.0.tar.gz) = 7d0c20540388dd467d7a596a74657eca3795cc0f065aa7f49024afa7e1e598d0 +SIZE (wrapsrv-1.0.0.tar.gz) = 9347 Added: head/dns/wrapsrv/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/wrapsrv/files/patch-Makefile Sun Jan 11 20:44:39 2015 (r376802) @@ -0,0 +1,33 @@ +--- Makefile.orig 2014-07-30 21:21:46 UTC ++++ Makefile +@@ -1,25 +1,22 @@ +-CC = gcc +-WARN = -Wall -Wextra -Werror +-CFLAGS = -O2 -g $(WARN) + INCLUDE = +-LDFLAGS = -lresolv ++LDFLAGS = + DESTDIR ?= +-PREFIX = /usr/local ++PREFIX ?= /usr/local + + BINDIR ?= $(DESTDIR)$(PREFIX)/bin +-MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1 ++MANDIR ?= $(DESTDIR)$(PREFIX)/man/man1 + + BIN = wrapsrv + MAN = wrapsrv.1 + SRC = wrapsrv.c + +-all: $(BIN) $(DOC) ++all: $(BIN) $(MAN) + + $(BIN): $(SRC) + $(CC) $(CFLAGS) -o $@ $(SRC) $(INCLUDE) $(LDFLAGS) + + $(MAN): wrapsrv.docbook +- docbook2x-man $< ++ docbook2mdoc $< > $@ + + clean: + rm -f $(BIN) Added: head/dns/wrapsrv/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/wrapsrv/pkg-descr Sun Jan 11 20:44:39 2015 (r376802) @@ -0,0 +1,11 @@ +DNS SRV record command line wrapper +----------------------------------- + +wrapsrv adds support for connecting to a network service based on DNS SRV +record lookups to commands that do not support the DNS SRV record. wrapsrv +implements the weighted priority client connection algorithm in RFC 2782. +The specified command line will be invoked one or more times with %h and %p +sequences in the command line substituted for the hostname and port elements +of the selected SRV record. + +WWW: https://github.com/farsightsec/wrapsrv