chore: rebrand backone names, add lint gate + agent docs

- CI: build/validate use backone selftest + binary names, add lint.yml
- make-*.mk: emit/install backone binaries, drop zerotier-one paths
- doc/debian/ext.installfiles: backone manpages, service, init, te
- rule-compiler: npm test runs test.js; attic world planet files
- AGENTS.md repository guidelines, tools/lint.sh changed-lines gate
- gitignore: /backone-selftest, *.gcno, *.gcda
This commit is contained in:
dedysutanto committed 2026-09-30 15:08:00 +07:00
1 parent 104d781614
commit c550fe0684
37 files changed
+881 -565

No files matched your search

+23 -27
View File
@@ -1,13 +1,13 @@
name: zerotier
name: backone
summary: Securely connect any device, anywhere.
description: |
ZeroTier is a software-based managed Ethernet switch for planet Earth. Use it to connect your
desktop clients, servers, phones, NAS, or even individual applications (using our SDK).
BackOne is a fork of ZeroTier, a software-based managed Ethernet switch for planet Earth. Use it
to connect your desktop clients, servers, phones, NAS, or even individual applications (using
our SDK).
This snap contains ZeroTier One, a service that provides ZeroTier network connectivity and
makes joining virtual networks as easy as joining IRC or Slack channels. Apps for Android
and iOS are available for free in the Google Play and Apple app stores.
This snap contains the BackOne daemon, a service that provides ZeroTier network connectivity
and makes joining virtual networks as easy as joining IRC or Slack channels.
ZeroTier eliminates the LAN/WAN distinction and makes VPNs, tunnels, proxies, and other kludges
arising from the inflexible nature of physical networks obsolete. Everything is encrypted
@@ -15,14 +15,12 @@ description: |
Install (be sure to use sudo)
sudo snap install zerotier
sudo snap install backone
Join your network
sudo zerotier join <nwid>
sudo zerotier status
Approve your new node in ZeroTier Central (https://my.zerotier.com)! Welcome online!
sudo backone join <nwid>
sudo backone status
adopt-info: one
confinement: strict
@@ -32,41 +30,39 @@ base: core18
apps:
one:
# Add -U to prevent attempting to drop privileges since snaps have their
# own containment mechanism. Otherwise, if a user named "zerotier-one"
# own containment mechanism. Otherwise, if a user named "backone"
# exists on the system, the setgid or related calls will fail.
command: usr/sbin/zerotier-one -U
command: usr/sbin/backone -U
daemon: simple
plugs:
- network
- network-bind
- network-control
# For backwards compatibility with old package (e.g. zerotier.cli)
# Should be removed someday
cli:
command: usr/sbin/zerotier-cli
command: usr/sbin/backone-cli
plugs:
- network
zerotier:
command: usr/sbin/zerotier-cli
backone:
command: usr/sbin/backone-cli
plugs:
- network
idtool:
command: usr/sbin/zerotier-idtool
command: usr/sbin/backone-idtool
plugs:
- network
layout:
/var/lib/zerotier-one:
/var/lib/backone:
bind: $SNAP_COMMON
parts:
one:
plugin: make
source: https://github.com/zerotier/zerotierone.git
source-branch: "master"
source: https://git.proit.id/dsutanto/BackOne.git
source-branch: "main"
build-packages:
- build-essential
- libc++-dev
@@ -74,17 +70,17 @@ parts:
- ZT_SSO_SUPPORTED=0
filesets:
binaries:
- usr/sbin/zerotier-one
- usr/sbin/zerotier-cli
- usr/sbin/zerotier-idtool
- usr/sbin/backone
- usr/sbin/backone-cli
- usr/sbin/backone-idtool
prime:
- $binaries
override-build: |
snapcraftctl build
# Grab the version string from the newly-compiled binary.
snapcraftctl set-version "$(./zerotier-one -v)"
snapcraftctl set-version "$(./backone -v)"
slots:
zerotier-control:
backone-control:
interface: content
read:
- $SNAP_COMMON