Thursday, March 30, 2023

Re: update to dnsdist 1.8.0

On 2023/03/30 15:50, Otto Moerbeek wrote:
> Hi,
>
> Did I do the PLIST correctly? The dnsdistconf.lua conf file was the
> only one in share/examples/dnsdist
>
> OK?
>
> -Otto
>
> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/net/dnsdist/Makefile,v
> retrieving revision 1.31
> diff -u -p -r1.31 Makefile
> --- Makefile 8 Nov 2022 11:14:54 -0000 1.31
> +++ Makefile 30 Mar 2023 13:47:51 -0000
> @@ -1,8 +1,7 @@
> COMMENT= highly DNS-, DoS- and abuse-aware loadbalancer
>
> -DISTNAME= dnsdist-1.7.3
> +DISTNAME= dnsdist-1.8.0
> EXTRACT_SUFX= .tar.bz2
> -REVISION= 0
>
> CATEGORIES= net
>
> @@ -58,8 +57,7 @@ LIB_DEPENDS+= ${MODLUA_LIB_DEPENDS} \
> www/nghttp2
>
> post-install:
> - ${INSTALL_DATA_DIR} ${PREFIX}/share/{doc,examples}/dnsdist
> - cd ${WRKSRC}; ${INSTALL_DATA} README.md ${PREFIX}/share/doc/dnsdist/; \
> - ${INSTALL_DATA} dnsdistconf.lua ${PREFIX}/share/examples/dnsdist/

How about using dnsdist.conf-dist instead? It seems helpful to have an
example file.

> +++ pkg/PLIST 30 Mar 2023 13:47:51 -0000
> @@ -5,9 +5,7 @@
> @man man/man1/dnsdist.1
> share/doc/dnsdist/
> share/doc/dnsdist/README.md
> -share/examples/dnsdist/
> @sample ${SYSCONFDIR}/
> -share/examples/dnsdist/dnsdistconf.lua
> @mode 640
> @group _dnsdist
> @sample ${SYSCONFDIR}/dnsdist.conf
>

If not, the @sample/@modr/@group need to go, otherwise as-is this will
copy README.md to ${SYSCONFDIR}/dnsdist.conf.

No comments:

Post a Comment