snapcraft.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. name: zerotier
  2. summary: Securely connect any device, anywhere.
  3. description: |
  4. ZeroTier is a software-based managed Ethernet switch for planet Earth. Use it to connect your
  5. desktop clients, servers, phones, NAS, or even individual applications (using our SDK).
  6. This snap contains ZeroTier One, a service that provides ZeroTier network connectivity and
  7. makes joining virtual networks as easy as joining IRC or Slack channels. Apps for Android
  8. and iOS are available for free in the Google Play and Apple app stores.
  9. ZeroTier eliminates the LAN/WAN distinction and makes VPNs, tunnels, proxies, and other kludges
  10. arising from the inflexible nature of physical networks obsolete. Everything is encrypted
  11. end-to-end and traffic takes the most direct (peer to peer) path available.
  12. Install (be sure to use sudo)
  13. sudo snap install zerotier
  14. Join your network
  15. sudo zerotier join <nwid>
  16. sudo zerotier status
  17. Approve your new node in ZeroTier Central (https://my.zerotier.com)! Welcome online!
  18. adopt-info: one
  19. confinement: strict
  20. grade: stable
  21. base: core18
  22. apps:
  23. one:
  24. # Add -U to prevent attempting to drop privileges since snaps have their
  25. # own containment mechanism. Otherwise, if a user named "zerotier-one"
  26. # exists on the system, the setgid or related calls will fail.
  27. command: usr/sbin/zerotier-one -U
  28. daemon: simple
  29. plugs:
  30. - network
  31. - network-bind
  32. - network-control
  33. # For backwards compatibility with old package (e.g. zerotier.cli)
  34. # Should be removed someday
  35. cli:
  36. command: usr/sbin/zerotier-cli
  37. plugs:
  38. - network
  39. zerotier:
  40. command: usr/sbin/zerotier-cli
  41. plugs:
  42. - network
  43. idtool:
  44. command: usr/sbin/zerotier-idtool
  45. plugs:
  46. - network
  47. layout:
  48. /var/lib/zerotier-one:
  49. bind: $SNAP_COMMON
  50. parts:
  51. one:
  52. plugin: make
  53. source: https://github.com/zerotier/zerotierone.git
  54. source-branch: "master"
  55. build-packages:
  56. - build-essential
  57. - libc++-dev
  58. make-parameters:
  59. - ZT_SSO_SUPPORTED=0
  60. filesets:
  61. binaries:
  62. - usr/sbin/zerotier-one
  63. - usr/sbin/zerotier-cli
  64. - usr/sbin/zerotier-idtool
  65. prime:
  66. - $binaries
  67. override-build: |
  68. snapcraftctl build
  69. # Grab the version string from the newly-compiled binary.
  70. snapcraftctl set-version "$(./zerotier-one -v)"
  71. slots:
  72. zerotier-control:
  73. interface: content
  74. read:
  75. - $SNAP_COMMON