-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from jaysonsantos/zerotier-without-entware
Add zerotier without entware depdenency
- Loading branch information
Showing
10 changed files
with
62 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ wdpk/*/work* | |
wdpk/*/*.sign | ||
wdpk/*/*.xml | ||
|
||
wdpk/zerotier/bin/ | ||
|
||
.env | ||
|
||
toolchains/*/work* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM rustembedded/cross:arm-unknown-linux-gnueabihf | ||
RUN cd /usr/src && curl -sLO https://github.com/zerotier/ZeroTierOne/archive/refs/tags/1.6.4.tar.gz && tar zxvf 1.6.4.tar.gz && rm 1.6.4.tar.gz | ||
ENV CC=arm-linux-gnueabihf-gcc | ||
ENV CXX=arm-linux-gnueabihf-g++ | ||
ENV STRIP=arm-linux-gnueabihf-strip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SRC := compile-in-docker.sh Dockerfile | ||
all: bin/zerotier-one | ||
|
||
.PHONY: all | ||
|
||
bin/zerotier-one: $(SRC) | ||
./compile-in-docker.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: zerotier | ||
Version: 1.6.3 | ||
Version: 1.6.4 | ||
Packager: TFL | ||
Email: | ||
Homepage: http://www.zerotier.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
docker build -t zerotier . | ||
docker run \ | ||
-v $PWD/bin:/usr/src/bin --rm -it \ | ||
-e ME="$(id -u):$(id -g)" \ | ||
zerotier \ | ||
bash -exc 'cd /usr/src/ZeroTier* && make -j8 ZT_DISABLE_COMPRESSION=1 && cp zerotier-one /usr/src/bin/ && chown -R $ME /usr/src/bin/' | ||
|
||
cd bin | ||
for link in zerotier-cli zerotier-idtool; | ||
do | ||
ln -sf zerotier-one $link | ||
done | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,5 @@ | |
|
||
path=$1 | ||
|
||
/opt/bin/opkg remove zerotier | ||
|
||
rm -rf $path | ||
rm -rf "/var/www/apps/zerotier/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#! /bin/sh | ||
[ -f /tmp/debug_apkg ] && echo "APKG_DEBUG: $0 $@" >> /tmp/debug_apkg | ||
#!/bin/bash | ||
[ -f /tmp/debug_apkg ] && echo "APKG_DEBUG: $0 $@ $PWD" >> /tmp/debug_apkg | ||
|
||
/opt/bin/zerotier-one -d | ||
export ZEROTIER_HOME=/mnt/HD/HD_a2/.systemfile/zerotier | ||
mkdir -p "$ZEROTIER_HOME" | ||
|
||
$1/bin/zerotier-one -d |