git: a43703865a58 - main - security/headscale: Update to 0.16.2

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Tue, 16 Aug 2022 19:47:24 UTC
The branch main has been updated by ashish:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a43703865a58f2c989b87ce6caf98ae84ab7a5e6

commit a43703865a58f2c989b87ce6caf98ae84ab7a5e6
Author:     Ashish SHUKLA <ashish@FreeBSD.org>
AuthorDate: 2022-08-06 15:10:04 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2022-08-16 19:46:50 +0000

    security/headscale: Update to 0.16.2
    
    - Unbreak build on i386 platform
    - Implement sample configuration (from Jeff Schmidt, in private email)
    
    PR:             265788
    Approved by:    Michael Muenz <m.muenz at gmail dot com> (maintainer)
    
    
    Co-authored-by: Jeff Schmidt <jeff.jschmidt@gmail.com>
---
 security/headscale/Makefile |  7 +++----
 security/headscale/distinfo | 10 +++++-----
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/security/headscale/Makefile b/security/headscale/Makefile
index 69422c915829..a7ec5ef862b1 100644
--- a/security/headscale/Makefile
+++ b/security/headscale/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	headscale
-PORTVERSION=	0.16.0
+PORTVERSION=	0.16.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	security
 
@@ -9,7 +9,6 @@ COMMENT=	Mesh VPN that makes it easy to connect your devices
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_i386=	fails to compile: github.com/puzpuzpuz/xsync/issues/38
 BROKEN_aarch64=	fails to compile: modernc.org/libc
 BROKEN_armv6=	fails to compile: modernc.org/libc
 BROKEN_armv7=	fails to compile: modernc.org/libc
@@ -23,7 +22,7 @@ GO_MODULE=	github.com/juanfont/headscale
 
 GO_TARGET=	./cmd/headscale
 
-PLIST_FILES=	${ETCDIR}/config.yaml \
+PLIST_FILES=	"@sample ${ETCDIR}/config.yaml.sample" \
 		"@dir /var/cache/${PORTNAME}" \
 		"@dir /var/db/${PORTNAME}" \
 		bin/${PORTNAME}
@@ -40,7 +39,7 @@ post-patch:
 
 post-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
-	${INSTALL_DATA} ${WRKSRC}/config-example.yaml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yaml
+	${INSTALL_DATA} ${WRKSRC}/config-example.yaml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yaml.sample
 	${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
 	${MKDIR} ${STAGEDIR}/var/cache/${PORTNAME}
 
diff --git a/security/headscale/distinfo b/security/headscale/distinfo
index 2a155d23b179..3fe10f3eb4fb 100644
--- a/security/headscale/distinfo
+++ b/security/headscale/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1658744904
-SHA256 (go/security_headscale/headscale-v0.16.0/v0.16.0.mod) = d8d3f754a312f4653f43f296c721476003b1b9a699e83b46dae551ba572d969a
-SIZE (go/security_headscale/headscale-v0.16.0/v0.16.0.mod) = 6735
-SHA256 (go/security_headscale/headscale-v0.16.0/v0.16.0.zip) = b048f9bf92ec191b10eba34e7c8c440ca9609c72b917131d28ab1e3abdae9eeb
-SIZE (go/security_headscale/headscale-v0.16.0/v0.16.0.zip) = 461116
+TIMESTAMP = 1660544340
+SHA256 (go/security_headscale/headscale-v0.16.2/v0.16.2.mod) = 5a1e6a81c94588289a91ad0ed5afab20d2c472a7acaedbf5315bbfc267865bf9
+SIZE (go/security_headscale/headscale-v0.16.2/v0.16.2.mod) = 6809
+SHA256 (go/security_headscale/headscale-v0.16.2/v0.16.2.zip) = 38dba15361a7c3777d1a6f9cd483440c3883b8578827fe381bee7a516a07b650
+SIZE (go/security_headscale/headscale-v0.16.2/v0.16.2.zip) = 461736