abieber d58a555591 Update headscale to 0.10.1
This update adds MagicDNS support!
2021-10-12 13:14:01 +00:00

37 lines
936 B
Makefile

# $OpenBSD: Makefile,v 1.4 2021/10/12 13:14:01 abieber Exp $
COMMENT = open source implementation of the Tailscale control server
MODGO_MODNAME = github.com/juanfont/headscale
MODGO_VERSION = v0.10.1
DISTNAME = headscale-${MODGO_VERSION}
CATEGORIES = net
MAINTAINER = Aaron Bieber <abieber@openbsd.org>
# BSD-3
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MODULES = lang/go
MODGO_LDFLAGS = -X ${MODGO_MODNAME}/cmd/headscale/cli.version=${MODGO_VERSION}
WRKDIST = ${WRKSRC}
SUBST_VARS += VARBASE
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/headscale
${INSTALL_DATA} ${WRKSRC}/derp.yaml ${PREFIX}/share/examples/headscale/
${SUBST_DATA} ${WRKSRC}/config.json.postgres.example \
${PREFIX}/share/examples/headscale/config.json.postgres.example
${SUBST_DATA} ${WRKSRC}/config.json.sqlite.example \
${PREFIX}/share/examples/headscale/config.json.sqlite.example
.include "modules.inc"
.include <bsd.port.mk>