From owner-svn-ports-all@freebsd.org Thu Aug 22 17:48:53 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BAEE7CE08B; Thu, 22 Aug 2019 17:48:53 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46DsTd4K3xz3DWx; Thu, 22 Aug 2019 17:48:53 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 717D37BAF; Thu, 22 Aug 2019 17:48:53 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x7MHmrM2099217; Thu, 22 Aug 2019 17:48:53 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7MHmqvC099209; Thu, 22 Aug 2019 17:48:52 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201908221748.x7MHmqvC099209@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Thu, 22 Aug 2019 17:48:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509619 - in head/www: . varnish-libvmod-dynamic varnish-libvmod-dynamic/files X-SVN-Group: ports-head X-SVN-Commit-Author: zi X-SVN-Commit-Paths: in head/www: . varnish-libvmod-dynamic varnish-libvmod-dynamic/files X-SVN-Commit-Revision: 509619 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2019 17:48:53 -0000 Author: zi Date: Thu Aug 22 17:48:51 2019 New Revision: 509619 URL: https://svnweb.freebsd.org/changeset/ports/509619 Log: New port: varnish-libvmod-dynamic This module provides a varnish director for dynamic creation of backends based on calls to the system's network address resolution service which, in turn, typically use information from the /etc/hosts file and the Domain Name Service (DNS), but can be configured to use other sources like LDAP or more advanced DNS resolution where getdns is available. While standard varnish backends defined in VCL may also be defined in terms of host names, changes of the name service information will only be picked up with a VCL reload. WWW: https://github.com/nigoroll/libvmod-dynamic Added: head/www/varnish-libvmod-dynamic/ head/www/varnish-libvmod-dynamic/Makefile (contents, props changed) head/www/varnish-libvmod-dynamic/distinfo (contents, props changed) head/www/varnish-libvmod-dynamic/files/ head/www/varnish-libvmod-dynamic/files/patch-src_dyn__resolver__getdns.c (contents, props changed) head/www/varnish-libvmod-dynamic/pkg-descr (contents, props changed) head/www/varnish-libvmod-dynamic/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Thu Aug 22 17:20:56 2019 (r509618) +++ head/www/Makefile Thu Aug 22 17:48:51 2019 (r509619) @@ -2402,6 +2402,7 @@ SUBDIR += validator SUBDIR += varnish-libvmod-awsrest SUBDIR += varnish-libvmod-digest + SUBDIR += varnish-libvmod-dynamic SUBDIR += varnish-libvmod-maxminddb SUBDIR += varnish-modules SUBDIR += varnish-nagios Added: head/www/varnish-libvmod-dynamic/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/varnish-libvmod-dynamic/Makefile Thu Aug 22 17:48:51 2019 (r509619) @@ -0,0 +1,38 @@ +# $FreeBSD$ + +PORTNAME= libvmod-dynamic +PORTVERSION= 20190822 +CATEGORIES= www +PKGNAMEPREFIX= varnish- + +MAINTAINER= zi@FreeBSD.org +COMMENT= Varnish Module (vmod) for dynamic backends + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libgetdns.so:dns/getdns +BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR} + +USES= autoreconf gmake libtool pkgconfig python:3.5+,build varnish:6 +USE_LDCONFIG= yes + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-static +INSTALL_TARGET= install-strip +DOCSDIR= ${PREFIX}/share/doc/vmod-dynamic +MAKE_JOBS_UNSAFE= yes + +CFLAGS+= -I${WRKSRC}/src + +USE_GITHUB= yes +GH_ACCOUNT= nigoroll +GH_TAGNAME= 220fd64 + +OPTIONS_DEFINE= DOCS + +post-patch: + ${REINPLACE_CMD} 's|$${VARNISHAPI_DATAROOTDIR}|${LOCALBASE}/share|' \ + ${WRKSRC}/Makefile.am + +.include Added: head/www/varnish-libvmod-dynamic/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/varnish-libvmod-dynamic/distinfo Thu Aug 22 17:48:51 2019 (r509619) @@ -0,0 +1,3 @@ +TIMESTAMP = 1566493821 +SHA256 (nigoroll-libvmod-dynamic-20190822-220fd64_GH0.tar.gz) = 072e6c20cef5b8c9074d5c0eb4aaf9ba5f8b6a6b786be88421c18ada5d5d62e4 +SIZE (nigoroll-libvmod-dynamic-20190822-220fd64_GH0.tar.gz) = 40136 Added: head/www/varnish-libvmod-dynamic/files/patch-src_dyn__resolver__getdns.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/varnish-libvmod-dynamic/files/patch-src_dyn__resolver__getdns.c Thu Aug 22 17:48:51 2019 (r509619) @@ -0,0 +1,15 @@ +--- src/dyn_resolver_getdns.c.orig 2019-08-22 17:20:58 UTC ++++ src/dyn_resolver_getdns.c +@@ -33,6 +33,12 @@ + #include + #include + ++#ifdef __FreeBSD__ ++#include ++#include ++#include ++#endif ++ + #include + #include + Added: head/www/varnish-libvmod-dynamic/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/varnish-libvmod-dynamic/pkg-descr Thu Aug 22 17:48:51 2019 (r509619) @@ -0,0 +1,11 @@ +This module provides a varnish director for dynamic creation of backends based +on calls to the system's network address resolution service which, in turn, +typically use information from the /etc/hosts file and the Domain Name Service +(DNS), but can be configured to use other sources like LDAP or more advanced +DNS resolution where getdns is available. + +While standard varnish backends defined in VCL may also be defined in terms of +host names, changes of the name service information will only be picked up +with a VCL reload. + +WWW: https://github.com/nigoroll/libvmod-dynamic Added: head/www/varnish-libvmod-dynamic/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/varnish-libvmod-dynamic/pkg-plist Thu Aug 22 17:48:51 2019 (r509619) @@ -0,0 +1,4 @@ +lib/varnish/vmods/libvmod_dynamic.so +man/man3/vmod_dynamic.3.gz +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README.rst