Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
eepm
Commits
3c64b623
Commit
3c64b623
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add zerotier-one
parent
f831a883
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
zerotier-one.sh
play.d/zerotier-one.sh
+49
-0
No files found.
play.d/zerotier-one.sh
0 → 100755
View file @
3c64b623
#!/bin/sh
PKGNAME
=
zerotier-one
SUPPORTEDARCHES
=
"x86_64 aarch64 ppc64el"
DESCRIPTION
=
"ZeroTier - A Smart Ethernet Switch for Earth from the official site"
.
$(
dirname
$0
)
/common.sh
pkg
=
"
$(
epm print info
-p
)
"
arch
=
"
$(
epm print info
-a
)
"
[
"
$pkg
"
=
"deb"
]
&&
arch
=
"
$(
epm print info
--distro-arch
)
"
# TODO
version
=
1.10.6
distr
=
"
$(
epm print info
-s
)
"
repo
=
"
$(
epm print info
-r
)
"
case
"
$distr
"
in
alt
)
distr
=
redhat
if
[
"
$repo
"
=
"p9"
]
||
[
"
$repo
"
=
"c9f2"
]
;
then
repo
=
el6
else
repo
=
el8
fi
;;
centos|rhel
)
distr
=
redhat
repo
=
fc
$repo
;;
debian|ubuntu
)
distr
=
debian
;;
fedora
)
distr
=
redhat
repo
=
fc
$repo
;;
*
)
;;
esac
dv
=
$distr
/
$repo
# hack due broken answer from the server
PKGURL
=
"
$(
eget
--compressed
--list
--latest
https://download.zerotier.com/RELEASES/
$version
/dist/
$dv
/
${
PKGNAME
}
[
-_
]
$version
*
$arch
.
$pkg
)
"
epm
install
--scripts
$PKGURL
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment