build(debian): rename packaging to backone (init/service/upstart/ufw/control)
This commit is contained in:
1 parent
fa08792c78
commit
ad01fbcccb
9 files changed
+27
-37
No files matched your search
+5
-3
@@ -80,10 +80,12 @@ zt1-src.tar.gz
|
|||||||
node_modules
|
node_modules
|
||||||
zt1_update_*
|
zt1_update_*
|
||||||
debian/files
|
debian/files
|
||||||
debian/zerotier-one
|
debian/backone
|
||||||
debian/zerotier-one*.debhelper
|
debian/backone*.debhelper
|
||||||
debian/*.log
|
debian/*.log
|
||||||
debian/zerotier-one.substvars
|
debian/backone.substvars
|
||||||
|
debian/.debhelper/
|
||||||
|
debian/debhelper-build-stamp
|
||||||
root-watcher/config.json
|
root-watcher/config.json
|
||||||
|
|
||||||
# Java/Android/JNI build droppings
|
# Java/Android/JNI build droppings
|
||||||
|
|||||||
+10
-10
@@ -1,19 +1,19 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: zerotier-one
|
# Provides: backone
|
||||||
# Required-Start: $remote_fs $syslog
|
# Required-Start: $remote_fs $syslog
|
||||||
# Required-Stop: $remote_fs $syslog
|
# Required-Stop: $remote_fs $syslog
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop:
|
# Default-Stop:
|
||||||
# Short-Description: ZeroTier One network virtualization service
|
# Short-Description: BackOne network virtualization service
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||||
DESC="zerotier-one daemon"
|
DESC="backone daemon"
|
||||||
NAME=zerotier-one
|
NAME=backone
|
||||||
DAEMON=/usr/sbin/zerotier-one
|
DAEMON=/usr/sbin/backone
|
||||||
PIDFILE=/var/lib/zerotier-one/zerotier-one.pid
|
PIDFILE=/var/lib/backone/backone.pid
|
||||||
SCRIPTNAME=/etc/init.d/"$NAME"
|
SCRIPTNAME=/etc/init.d/"$NAME"
|
||||||
EXTRA_OPTS=-d
|
EXTRA_OPTS=-d
|
||||||
|
|
||||||
@@ -22,21 +22,21 @@ test -f $DAEMON || exit 0
|
|||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start) log_daemon_msg "Starting ZeroTier One" "zerotier-one"
|
start) log_daemon_msg "Starting BackOne" "backone"
|
||||||
start_daemon -p $PIDFILE $DAEMON $EXTRA_OPTS
|
start_daemon -p $PIDFILE $DAEMON $EXTRA_OPTS
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
stop) log_daemon_msg "Stopping ZeroTier One" "zerotier-one"
|
stop) log_daemon_msg "Stopping BackOne" "backone"
|
||||||
killproc -p $PIDFILE $DAEMON
|
killproc -p $PIDFILE $DAEMON
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
[ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
|
[ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
|
||||||
log_end_msg $RETVAL
|
log_end_msg $RETVAL
|
||||||
;;
|
;;
|
||||||
restart) log_daemon_msg "Restarting ZeroTier One" "zerotier-one"
|
restart) log_daemon_msg "Restarting BackOne" "backone"
|
||||||
$0 stop
|
$0 stop
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
reload|force-reload) log_daemon_msg "Reloading ZeroTier One" "zerotier-one"
|
reload|force-reload) log_daemon_msg "Reloading BackOne" "backone"
|
||||||
log_end_msg 0
|
log_end_msg 0
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
description "ZeroTier One upstart startup script"
|
description "BackOne upstart startup script"
|
||||||
|
|
||||||
author "Adam Ierymenko <adam.ierymenko@zerotier.com>"
|
author "Adam Ierymenko <adam.ierymenko@zerotier.com>"
|
||||||
|
|
||||||
@@ -11,4 +11,4 @@ respawn limit 2 300
|
|||||||
#pre-start script
|
#pre-start script
|
||||||
#end script
|
#end script
|
||||||
|
|
||||||
exec /usr/sbin/zerotier-one
|
exec /usr/sbin/backone
|
||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
zerotier-one (2.0.0) unstable; urgency=medium
|
backone (2.0.0) unstable; urgency=medium
|
||||||
|
|
||||||
* See RELEASE-NOTES.md for release notes.
|
* See RELEASE-NOTES.md for release notes.
|
||||||
|
|
||||||
|
|||||||
Vendored
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
Source: zerotier-one
|
Source: backone
|
||||||
Maintainer: Adam Ierymenko <adam.ierymenko@zerotier.com>
|
Maintainer: Adam Ierymenko <adam.ierymenko@zerotier.com>
|
||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
@@ -8,12 +8,12 @@ Vcs-Git: git://github.com/zerotier/ZeroTierOne
|
|||||||
Vcs-Browser: https://github.com/zerotier/ZeroTierOne
|
Vcs-Browser: https://github.com/zerotier/ZeroTierOne
|
||||||
Homepage: https://www.zerotier.com/
|
Homepage: https://www.zerotier.com/
|
||||||
|
|
||||||
Package: zerotier-one
|
Package: backone
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: adduser, libstdc++6 (>= 5), openssl
|
Depends: adduser, libstdc++6 (>= 5), openssl
|
||||||
Homepage: https://www.zerotier.com/
|
Homepage: https://www.zerotier.com/
|
||||||
Description: ZeroTier network virtualization service
|
Description: BackOne network virtualization service
|
||||||
ZeroTier One lets you join ZeroTier virtual networks and
|
BackOne (a ZeroTier One fork) lets you join virtual networks and
|
||||||
have them appear as tun/tap ports on your system. See
|
have them appear as tun/tap ports on your system. See
|
||||||
https://www.zerotier.com/ for instructions and
|
https://www.zerotier.com/ for instructions and
|
||||||
documentation.
|
documentation.
|
||||||
Vendored
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
if ! id zerotier-one >>/dev/null 2>&1; then
|
if ! id backone >>/dev/null 2>&1; then
|
||||||
useradd --system --user-group --home-dir /var/lib/zerotier-one --shell /usr/sbin/nologin --no-create-home zerotier-one
|
useradd --system --user-group --home-dir /var/lib/backone --shell /usr/sbin/nologin --no-create-home backone
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
+1
-1
@@ -13,4 +13,4 @@ override_dh_systemd_start:
|
|||||||
dh_systemd_start --restart-after-upgrade
|
dh_systemd_start --restart-after-upgrade
|
||||||
|
|
||||||
override_dh_installinit:
|
override_dh_installinit:
|
||||||
dh_installinit --name=zerotier-one -- defaults
|
dh_installinit --name=backone -- defaults
|
||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
[zerotier-one]
|
[backone]
|
||||||
title=ZeroTier One
|
title=BackOne
|
||||||
description=A planetary Ethernet switch
|
description=A planetary Ethernet switch
|
||||||
ports=9993/udp
|
ports=9993/udp
|
||||||
Vendored
-12
@@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=ZeroTier One
|
|
||||||
After=network-online.target network.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/sbin/zerotier-one
|
|
||||||
Restart=always
|
|
||||||
KillMode=process
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Reference in new issue
Block a user