Hi,

update for net/headscale to the latest version 0.20.0

Changelog for major version 0.20.0 : https://github.com/juanfont/headscale/releases/tag/v0.20.0

- Update Makefile to install only headscale binary in ${PREFIX}/bin
- Update pkg/MESSAGE and pkg/README for modification in version 0.19.0 (keyword Namespace replaced by User), see https://github.com/juanfont/headscale/releases/tag/v0.19.0

Build and tests OK on amd64.

Comments welcome and please commit if OK.

Laurent

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/headscale/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile	25 Jan 2023 16:33:14 -0000	1.12
+++ Makefile	14 Feb 2023 15:20:52 -0000
@@ -5,7 +5,7 @@ ONLY_FOR_ARCHS =	amd64 arm64
 COMMENT =	open source implementation of the Tailscale control server
 
 MODGO_MODNAME =	github.com/juanfont/headscale
-MODGO_VERSION =	v0.18.0
+MODGO_VERSION =	v0.20.0
 
 DISTNAME =	headscale-${MODGO_VERSION}
 
@@ -18,13 +18,16 @@ MAINTAINER =	Laurent Cheylus <foxy@free.
 # BSD-3
 PERMIT_PACKAGE =	Yes
 
-WANTLIB += c pthread
+WANTLIB +=	c pthread
 
 MODULES =		lang/go
 MODGO_LDFLAGS +=	-X ${MODGO_MODNAME}/cmd/headscale/cli.Version=$\
 			${MODGO_VERSION:S/v//}
 
 WRKDIST =	${WRKSRC}
+
+do-install:
+	${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/headscale ${PREFIX}/bin
 
 post-install:
 	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/headscale
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/headscale/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo	23 Jan 2023 10:11:09 -0000	1.8
+++ distinfo	14 Feb 2023 15:20:57 -0000
@@ -2149,7 +2149,7 @@ SHA256 (go_modules/software.sslmate.com/
 SHA256 (go_modules/software.sslmate.com/src/go-pkcs12/@v/v0.2.0.zip) = qse6k1xBU6O0e8ObNvLorTJD8DNJwRy33Mlt2fMWn6Y=
 SHA256 (go_modules/tailscale.com/@v/v1.34.0.mod) = 9agiT7uJQpQy+wABRndFdbS+vX0s+e4gfzWpcSAr4aA=
 SHA256 (go_modules/tailscale.com/@v/v1.34.0.zip) = v/HrwMBl7gU/z2yIbgtNdaIvkUKdfaMoKkyxSzZyOkw=
-SHA256 (headscale-v0.18.0.zip) = G61Tly0d9njk02fJMiYBAIuVJGey7Jzly/LA9ALnksI=
+SHA256 (headscale-v0.20.0.zip) = GmlYnT0evgBZsJE6fH3RGls33uQtlhgonhjW26W32gA=
 SIZE (go_modules/4d63.com/gochecknoglobals/@v/v0.1.0.mod) = 105
 SIZE (go_modules/4d63.com/gochecknoglobals/@v/v0.1.0.zip) = 13354
 SIZE (go_modules/atomicgo.dev/assert/@v/v0.0.2.mod) = 36
@@ -4301,4 +4301,4 @@ SIZE (go_modules/software.sslmate.com/sr
 SIZE (go_modules/software.sslmate.com/src/go-pkcs12/@v/v0.2.0.zip) = 36374
 SIZE (go_modules/tailscale.com/@v/v1.34.0.mod) = 15080
 SIZE (go_modules/tailscale.com/@v/v1.34.0.zip) = 1956319
-SIZE (headscale-v0.18.0.zip) = 692420
+SIZE (headscale-v0.20.0.zip) = 699496
Index: pkg/MESSAGE
===================================================================
RCS file: /cvs/ports/net/headscale/pkg/MESSAGE,v
retrieving revision 1.1
diff -u -p -r1.1 MESSAGE
--- pkg/MESSAGE	20 Jan 2022 13:29:09 -0000	1.1
+++ pkg/MESSAGE	14 Feb 2023 15:20:57 -0000
@@ -1,3 +1,10 @@
 The format of the configuration file has changed since version 0.11.0.
 
 See ${PREFIX}/share/examples/headscale for examples of the new format.
+
+Namespace keyword has been replaced by User in version 0.19.0.
+
+  * BACKUP your database before upgrading.
+  * Command line flags previously taking --namespace or -n will now
+    require --user or -u
+
Index: pkg/README
===================================================================
RCS file: /cvs/ports/net/headscale/pkg/README,v
retrieving revision 1.2
diff -u -p -r1.2 README
--- pkg/README	11 Mar 2022 19:46:04 -0000	1.2
+++ pkg/README	14 Feb 2023 15:20:57 -0000
@@ -9,10 +9,10 @@ Generate a private key:
 
     # openssl rand -base64 32 > ${SYSCONFDIR}/headscale/private.key
 
-Create an initial namespace:
+Create an initial user:
 
     # su -s/bin/sh _headscale
-    $ headscale namespaces create myfirstnamespace
+    $ headscale users create myfirstuser
 
 Enable and start the service
 

Reply via email to