mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
security/headscale: Update to 0.23.0
- Fix the service to pick up the configuration correctly Full change log: https://github.com/juanfont/headscale/compare/v0.16.4...v0.23.0 PR: 281940 Approved by: Michael Muenz <m.muenz@gmail.com> (maintainer)
This commit is contained in:
parent
490ce8d89e
commit
8b88f99cc8
@ -1,7 +1,6 @@
|
||||
PORTNAME= headscale
|
||||
PORTVERSION= 0.16.4
|
||||
PORTVERSION= 0.23.0
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 18
|
||||
CATEGORIES= security net-vpn
|
||||
|
||||
MAINTAINER= m.muenz@gmail.com
|
||||
@ -31,13 +30,11 @@ PLIST_FILES= "@sample ${ETCDIR}/config.yaml.sample" \
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/etc/headscale|${PREFIX}/etc/${PORTNAME}|g' \
|
||||
${WRKSRC}/cmd/headscale/cli/utils.go
|
||||
${WRKSRC}/cmd/headscale/cli/dump_config.go \
|
||||
${WRKSRC}/cmd/headscale/cli/root.go \
|
||||
${WRKSRC}/integration/hsic/hsic.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' \
|
||||
${WRKSRC}/config-example.yaml
|
||||
@${REINPLACE_CMD} -e 's|/var/lib/headscale/private.key|${PREFIX}/etc/${PORTNAME}/private.key|g' \
|
||||
${WRKSRC}/config-example.yaml
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
|
||||
|
@ -1,5 +1,5 @@
|
||||
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 = 1728236395
|
||||
SHA256 (go/security_headscale/headscale-v0.23.0/v0.23.0.mod) = 0e0bbbf1abdde4221c3303d4d5e8b607fc38bf1ab4cea51a32a53a1c05775cc2
|
||||
SIZE (go/security_headscale/headscale-v0.23.0/v0.23.0.mod) = 10793
|
||||
SHA256 (go/security_headscale/headscale-v0.23.0/v0.23.0.zip) = 3751e62f64c327175bf995ac0b2c404c10adf8dd60c13e94199cb504db750c52
|
||||
SIZE (go/security_headscale/headscale-v0.23.0/v0.23.0.zip) = 727988
|
||||
|
@ -13,6 +13,7 @@ rcvar=headscale_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${headscale_enable:="NO"}
|
||||
: ${headscale_config_file:="%%PREFIX%%/etc/${name}/config.yaml"}
|
||||
: ${headscale_syslog_output_enable:="NO"}
|
||||
: ${headscale_syslog_output_priority:="info"}
|
||||
: ${headscale_syslog_output_facility:="daemon"}
|
||||
@ -35,7 +36,7 @@ procname="%%PREFIX%%/bin/${name}"
|
||||
start_cmd="${name}_start"
|
||||
|
||||
headscale_start() {
|
||||
/usr/sbin/daemon -f ${headscale_syslog_output_flags} -p ${pidfile} ${procname} serve
|
||||
/usr/sbin/daemon -f ${headscale_syslog_output_flags} -p ${pidfile} ${procname} -c ${headscale_config_file} serve
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user