actually fix

This commit is contained in:
Dan Ponte 2024-06-09 16:34:11 -04:00
parent bfbd902671
commit ea6f53d508
2 changed files with 12 additions and 12 deletions

View file

@ -1,7 +1,6 @@
PORTNAME= headscale
PORTVERSION= 0.16.4
PORTVERSION= 0.22.3
DISTVERSIONPREFIX= v
PORTREVISION= 14
CATEGORIES= security net-vpn
MAINTAINER= m.muenz@gmail.com
@ -11,10 +10,6 @@ WWW= https://github.com/juanfont/headscale
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_aarch64= fails to compile: modernc.org/libc
BROKEN_armv6= fails to compile: modernc.org/libc
BROKEN_armv7= fails to compile: modernc.org/libc
RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss
USES= go:modules
@ -27,11 +22,13 @@ GO_TARGET= ./cmd/headscale
PLIST_FILES= "@sample ${ETCDIR}/config.yaml.sample" \
"@dir /var/cache/${PORTNAME}" \
"@dir /var/db/${PORTNAME}" \
"@dir /var/lib/${PORTNAME}" \
"@dir /var/run/${PORTNAME}" \
bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's|/etc/headscale|${PREFIX}/etc/${PORTNAME}|g' \
${WRKSRC}/cmd/headscale/cli/utils.go
${WRKSRC}/hscontrol/config.go ${WRKSRC}/cmd/headscale/cli/root.go
@${REINPLACE_CMD} -e 's|/var/lib/headscale/db.sqlite|/var/db/${PORTNAME}/db.sqlite|g' \
${WRKSRC}/config-example.yaml
@${REINPLACE_CMD} -e 's|/var/lib/headscale/cache|/var/cache/${PORTNAME}|g' \
@ -44,5 +41,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/config-example.yaml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yaml.sample
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
${MKDIR} ${STAGEDIR}/var/cache/${PORTNAME}
${MKDIR} ${STAGEDIR}/var/lib/${PORTNAME}
${MKDIR} ${STAGEDIR}/var/run/${PORTNAME}
.include <bsd.port.mk>

View file

@ -1,5 +1,6 @@
TIMESTAMP = 1661076406
SHA256 (go/security_headscale/headscale-v0.16.4/v0.16.4.mod) = 5a1e6a81c94588289a91ad0ed5afab20d2c472a7acaedbf5315bbfc267865bf9
SIZE (go/security_headscale/headscale-v0.16.4/v0.16.4.mod) = 6809
SHA256 (go/security_headscale/headscale-v0.16.4/v0.16.4.zip) = 14f0a916f5477479b73501da559c84874d5ef9bd05ad029ab16049a298aa9c63
SIZE (go/security_headscale/headscale-v0.16.4/v0.16.4.zip) = 464386
TIMESTAMP = 1694634835
SHA256 (go/security_headscale/headscale-v0.22.3/v0.22.3.mod) = e233446c8c4919e192d85b964577e6bc62ba25063c45ba721bdf8ba2a8e0d49f
SIZE (go/security_headscale/headscale-v0.22.3/v0.22.3.mod) = 6948
SHA256 (go/security_headscale/headscale-v0.22.3/v0.22.3.zip) = fb37498c80cdc689b84f387d44f75f141baa01917bd5ab14669ac4f7ea29793e
SIZE (go/security_headscale/headscale-v0.22.3/v0.22.3.zip) = 712113