svn commit: r376802 - in head/dns: . wrapsrv wrapsrv/files
Don Lewis
truckman at FreeBSD.org
Sun Jan 11 20:44:41 UTC 2015
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 at 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 <bsd.port.mk>
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
More information about the svn-ports-head
mailing list