Index: head/security/tailscale/Makefile =================================================================== --- head/security/tailscale/Makefile (revision 532483) +++ head/security/tailscale/Makefile (revision 532484) @@ -1,39 +1,43 @@ # $FreeBSD$ PORTNAME= tailscale -PORTVERSION= 0.97 +PORTVERSION= 0.98 DISTVERSIONPREFIX= v CATEGORIES= security MAINTAINER= mikael@FreeBSD.org COMMENT= Mesh VPN that makes it easy to connect your devices LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules USE_GITHUB= yes GH_TUPLE= \ apenwarr:fixconsole:5a9f6489cc29:apenwarr_fixconsole/vendor/github.com/apenwarr/fixconsole \ - golang:crypto:f7b00557c8c4:golang_crypto/vendor/golang.org/x/crypto \ + golang:crypto:1b76d66859c6:golang_crypto/vendor/golang.org/x/crypto \ golang:groupcache:8c9f03a8e57e:golang_groupcache/vendor/github.com/golang/groupcache \ golang:net:244492dfa37a:golang_net/vendor/golang.org/x/net \ golang:oauth2:bf48bf16ab8d:golang_oauth2/vendor/golang.org/x/oauth2 \ golang:sync:cd5d95a43a6e:golang_sync/vendor/golang.org/x/sync \ - golang:sys:a7d97aace0b0:golang_sys/vendor/golang.org/x/sys \ + golang:sys:5766fd39f98d:golang_sys/vendor/golang.org/x/sys \ golang:time:555d28b269f0:golang_time/vendor/golang.org/x/time \ klauspost:compress:v1.9.8:klauspost_compress/vendor/github.com/klauspost/compress \ pborman:getopt:ee0cd42419d3:pborman_getopt/vendor/github.com/pborman/getopt \ peterbourgon:ff:v2.0.0:peterbourgon_ff/vendor/github.com/peterbourgon/ff/v2 \ rsc:goversion:v1.2.0:rsc_goversion/vendor/rsc.io/goversion \ - tailscale:wireguard-go:239518935266:tailscale_wireguard_go/vendor/github.com/tailscale/wireguard-go + tailscale:wireguard-go:23aababa2084:tailscale_wireguard_go/vendor/github.com/tailscale/wireguard-go \ + go4org:mem:f77f31c81751:go4org_mem/vendor/go4.org/mem \ + inetaf:netaddr:f9e5bcc2d6ea:inetaf_netaddr/vendor/inet.af/netaddr \ + toqueteos:webbrowser:v1.2.0:toqueteos_webbrowser/vendor/github.com/toqueteos/webbrowser + USE_RC_SUBR= tailscaled GO_TARGET= ./cmd/tailscale \ ./cmd/tailscaled PLIST_FILES= bin/tailscale \ bin/tailscaled .include Index: head/security/tailscale/distinfo =================================================================== --- head/security/tailscale/distinfo (revision 532483) +++ head/security/tailscale/distinfo (revision 532484) @@ -1,29 +1,35 @@ -TIMESTAMP = 1586695277 -SHA256 (tailscale-tailscale-v0.97_GH0.tar.gz) = 7ec7fca43e4f850aa09d9fc70a726f9550df8f6810ac51b2a202e5e9d64ed40b -SIZE (tailscale-tailscale-v0.97_GH0.tar.gz) = 198882 +TIMESTAMP = 1587546926 +SHA256 (tailscale-tailscale-v0.98_GH0.tar.gz) = e3c85d141ae8e4466ffae8b320062f7d9d49c4d434efb2528734b6afd180e0b3 +SIZE (tailscale-tailscale-v0.98_GH0.tar.gz) = 219233 SHA256 (apenwarr-fixconsole-5a9f6489cc29_GH0.tar.gz) = 60a7c20f3c7253049c70bcef2d5cfbc4f33eea5250e7f820eb48748b0a505418 SIZE (apenwarr-fixconsole-5a9f6489cc29_GH0.tar.gz) = 6349 -SHA256 (golang-crypto-f7b00557c8c4_GH0.tar.gz) = 029c7e2c21a3b1a5df481e441b58f89d7c6ade793d6155ca01e23094047e3598 -SIZE (golang-crypto-f7b00557c8c4_GH0.tar.gz) = 1727281 +SHA256 (golang-crypto-1b76d66859c6_GH0.tar.gz) = 0184ecf3020529e7644f2113c70bae49d4d0a9a56b3a97ef35d8b0ade80a4239 +SIZE (golang-crypto-1b76d66859c6_GH0.tar.gz) = 1727396 SHA256 (golang-groupcache-8c9f03a8e57e_GH0.tar.gz) = b92f918daa48048fd360f14d1a4aed6e70c1176ae6b00b0dc04094bb088e9865 SIZE (golang-groupcache-8c9f03a8e57e_GH0.tar.gz) = 26047 SHA256 (golang-net-244492dfa37a_GH0.tar.gz) = 511fcc4f88e15cf97dccca6ea4bdde6d240ebd7e1b14212a0447fc4f5b54031c SIZE (golang-net-244492dfa37a_GH0.tar.gz) = 1172556 SHA256 (golang-oauth2-bf48bf16ab8d_GH0.tar.gz) = 28b3a51a8bd90beb5952d1080218ea238127edfe9455ad48921989619ff918a8 SIZE (golang-oauth2-bf48bf16ab8d_GH0.tar.gz) = 47016 SHA256 (golang-sync-cd5d95a43a6e_GH0.tar.gz) = 00a6dce4c1a9ca9edae6c3f1bedc0b15911c62681371ad9ed7738e182ba70393 SIZE (golang-sync-cd5d95a43a6e_GH0.tar.gz) = 16956 -SHA256 (golang-sys-a7d97aace0b0_GH0.tar.gz) = aa2b3847a5a1f32b33ba4c42a6bb2d89005e2590236f106f95e1f8baf92572fd -SIZE (golang-sys-a7d97aace0b0_GH0.tar.gz) = 1042410 +SHA256 (golang-sys-5766fd39f98d_GH0.tar.gz) = fa3249a406540d1f61904135c26aabc707f45e231a391ba2755f9d8e16e42581 +SIZE (golang-sys-5766fd39f98d_GH0.tar.gz) = 1046251 SHA256 (golang-time-555d28b269f0_GH0.tar.gz) = 8ce368da65025dad4e4ed302a5835e2b3579f3a111721f9b275803519a5d10b3 SIZE (golang-time-555d28b269f0_GH0.tar.gz) = 9577 SHA256 (klauspost-compress-v1.9.8_GH0.tar.gz) = 875db400d8bd838ce050db5931f540c17186f6ec2630420238da48be7bac1f56 SIZE (klauspost-compress-v1.9.8_GH0.tar.gz) = 16106285 SHA256 (pborman-getopt-ee0cd42419d3_GH0.tar.gz) = 8eaa2477da03612e053997e0cc0f541947e8cbd3b6e89c4bed628341a58623f2 SIZE (pborman-getopt-ee0cd42419d3_GH0.tar.gz) = 39691 SHA256 (peterbourgon-ff-v2.0.0_GH0.tar.gz) = f281421980071b90b5525900d4471fcf94f256c5453b6188f37ecef71a2d80a1 SIZE (peterbourgon-ff-v2.0.0_GH0.tar.gz) = 25295 SHA256 (rsc-goversion-v1.2.0_GH0.tar.gz) = 65e9c181995ed8c9207ea08d79a148ab53307b7fad2172a5a0764d6aa393a98e SIZE (rsc-goversion-v1.2.0_GH0.tar.gz) = 8586 -SHA256 (tailscale-wireguard-go-239518935266_GH0.tar.gz) = 1dbd175c4028f2ed66c7ac4b685d6a945a6163faa6192ccf243a7adb897aee21 -SIZE (tailscale-wireguard-go-239518935266_GH0.tar.gz) = 114538 +SHA256 (tailscale-wireguard-go-23aababa2084_GH0.tar.gz) = d0c85b9b1532a0d1f35831f9baf9ad9c5ebf79b8baeb11d62a8aa159674cf67f +SIZE (tailscale-wireguard-go-23aababa2084_GH0.tar.gz) = 114611 +SHA256 (go4org-mem-f77f31c81751_GH0.tar.gz) = 30a173dc9485c55cadfbf6a4da7e6091820c9b971a55b8e8bb2733f30883c0e3 +SIZE (go4org-mem-f77f31c81751_GH0.tar.gz) = 5844 +SHA256 (inetaf-netaddr-f9e5bcc2d6ea_GH0.tar.gz) = cf823f017206f4bbc2bb85ce83308a19b2ebf3065b6cbba233cf34f1f958b52f +SIZE (inetaf-netaddr-f9e5bcc2d6ea_GH0.tar.gz) = 8992 +SHA256 (toqueteos-webbrowser-v1.2.0_GH0.tar.gz) = e48ffbcbc8490d4f393a70f82d4c579c4dcde5d5bbf1553ff159522a2df2bdd4 +SIZE (toqueteos-webbrowser-v1.2.0_GH0.tar.gz) = 3445 Index: head/security/tailscale/files/tailscaled.in =================================================================== --- head/security/tailscale/files/tailscaled.in (revision 532483) +++ head/security/tailscale/files/tailscaled.in (revision 532484) @@ -1,69 +1,76 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: tailscaled # REQUIRE: networking # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # tailscaled_enable (bool): Set it to YES to enable tailscaled. -# Default is "NO". +# Default is "NO". +# tailscaled_port (number): Set the port to listen on for incoming VPN packets. +# Default is "41641". # tailscaled_syslog_output_enable (bool): Set to enable syslog output. -# Default is "NO". See daemon(8). +# Default is "NO". See daemon(8). # tailscaled_syslog_output_priority (str): Set syslog priority if syslog enabled. -# Default is "info". See daemon(8). +# Default is "info". See daemon(8). # tailscaled_syslog_output_facility (str): Set syslog facility if syslog enabled. -# Default is "daemon". See daemon(8). +# Default is "daemon". See daemon(8). . /etc/rc.subr name=tailscaled rcvar=tailscaled_enable load_rc_config $name : ${tailscaled_enable:="NO"} +: ${tailscaled_port:="41641"} DAEMON=$(/usr/sbin/daemon 2>&1 | grep -q syslog ; echo $?) if [ ${DAEMON} -eq 0 ]; then : ${tailscaled_syslog_output_enable:="NO"} : ${tailscaled_syslog_output_priority:="info"} : ${tailscaled_syslog_output_facility:="daemon"} if checkyesno tailscaled_syslog_output_enable; then tailscaled_syslog_output_flags="-t ${name} -T ${name}" if [ -n "${tailscaled_syslog_output_priority}" ]; then tailscaled_syslog_output_flags="${tailscaled_syslog_output_flags} -s ${tailscaled_syslog_output_priority}" fi if [ -n "${tailscaled_syslog_output_facility}" ]; then tailscaled_syslog_output_flags="${tailscaled_syslog_output_flags} -l ${tailscaled_syslog_output_facility}" fi fi else tailscaled_syslog_output_enable="NO" tailscaled_syslog_output_flags="" fi -pidfile=/var/run/tailscaled.pid -procname="%%PREFIX%%/bin/tailscaled" -command="/usr/sbin/daemon" -command_args="-f ${tailscaled_syslog_output_flags} -p ${pidfile} ${procname}" +pidfile=/var/run/${name}.pid +procname="%%PREFIX%%/bin/${name}" -# XXX: Can we have multiple interface? +# XXX: Can we have multiple interfaces? tailscale_tap_dev="tailscale0" +start_cmd="${name}_start" stop_postcmd="${name}_poststop" + +tailscaled_start() +{ + env CACHE_DIRECTORY=/var/db/tailscale /usr/sbin/daemon -f ${tailscaled_syslog_output_flags} -p ${pidfile} ${procname} --port ${tailscaled_port} +} tailscaled_poststop() { /sbin/ifconfig ${tailscale_tap_dev} >/dev/null 2>&1 && ( logger -s -t tailscaled "Destroying tailscale0 adapter" /sbin/ifconfig ${tailscale_tap_dev} destroy || logger -s -t tailscaled "Failed to destroy ${tailscale_tap_dev} adapter" ) } run_rc_command "$1"