actually fix
This commit is contained in:
parent
bfbd902671
commit
ea6f53d508
2 changed files with 12 additions and 12 deletions
|
@ -1,7 +1,6 @@
|
||||||
PORTNAME= headscale
|
PORTNAME= headscale
|
||||||
PORTVERSION= 0.16.4
|
PORTVERSION= 0.22.3
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
PORTREVISION= 14
|
|
||||||
CATEGORIES= security net-vpn
|
CATEGORIES= security net-vpn
|
||||||
|
|
||||||
MAINTAINER= m.muenz@gmail.com
|
MAINTAINER= m.muenz@gmail.com
|
||||||
|
@ -11,10 +10,6 @@ WWW= https://github.com/juanfont/headscale
|
||||||
LICENSE= BSD3CLAUSE
|
LICENSE= BSD3CLAUSE
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
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
|
RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss
|
||||||
|
|
||||||
USES= go:modules
|
USES= go:modules
|
||||||
|
@ -27,11 +22,13 @@ GO_TARGET= ./cmd/headscale
|
||||||
PLIST_FILES= "@sample ${ETCDIR}/config.yaml.sample" \
|
PLIST_FILES= "@sample ${ETCDIR}/config.yaml.sample" \
|
||||||
"@dir /var/cache/${PORTNAME}" \
|
"@dir /var/cache/${PORTNAME}" \
|
||||||
"@dir /var/db/${PORTNAME}" \
|
"@dir /var/db/${PORTNAME}" \
|
||||||
|
"@dir /var/lib/${PORTNAME}" \
|
||||||
|
"@dir /var/run/${PORTNAME}" \
|
||||||
bin/${PORTNAME}
|
bin/${PORTNAME}
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/etc/headscale|${PREFIX}/etc/${PORTNAME}|g' \
|
@${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' \
|
@${REINPLACE_CMD} -e 's|/var/lib/headscale/db.sqlite|/var/db/${PORTNAME}/db.sqlite|g' \
|
||||||
${WRKSRC}/config-example.yaml
|
${WRKSRC}/config-example.yaml
|
||||||
@${REINPLACE_CMD} -e 's|/var/lib/headscale/cache|/var/cache/${PORTNAME}|g' \
|
@${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
|
${INSTALL_DATA} ${WRKSRC}/config-example.yaml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yaml.sample
|
||||||
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
|
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
|
||||||
${MKDIR} ${STAGEDIR}/var/cache/${PORTNAME}
|
${MKDIR} ${STAGEDIR}/var/cache/${PORTNAME}
|
||||||
|
${MKDIR} ${STAGEDIR}/var/lib/${PORTNAME}
|
||||||
|
${MKDIR} ${STAGEDIR}/var/run/${PORTNAME}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
TIMESTAMP = 1661076406
|
TIMESTAMP = 1694634835
|
||||||
SHA256 (go/security_headscale/headscale-v0.16.4/v0.16.4.mod) = 5a1e6a81c94588289a91ad0ed5afab20d2c472a7acaedbf5315bbfc267865bf9
|
SHA256 (go/security_headscale/headscale-v0.22.3/v0.22.3.mod) = e233446c8c4919e192d85b964577e6bc62ba25063c45ba721bdf8ba2a8e0d49f
|
||||||
SIZE (go/security_headscale/headscale-v0.16.4/v0.16.4.mod) = 6809
|
SIZE (go/security_headscale/headscale-v0.22.3/v0.22.3.mod) = 6948
|
||||||
SHA256 (go/security_headscale/headscale-v0.16.4/v0.16.4.zip) = 14f0a916f5477479b73501da559c84874d5ef9bd05ad029ab16049a298aa9c63
|
SHA256 (go/security_headscale/headscale-v0.22.3/v0.22.3.zip) = fb37498c80cdc689b84f387d44f75f141baa01917bd5ab14669ac4f7ea29793e
|
||||||
SIZE (go/security_headscale/headscale-v0.16.4/v0.16.4.zip) = 464386
|
SIZE (go/security_headscale/headscale-v0.22.3/v0.22.3.zip) = 712113
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue