-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NAStools
committed
Nov 1, 2016
1 parent
bb232b9
commit 0a50b4a
Showing
19 changed files
with
86 additions
and
115 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
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
[DEFAULT] | ||
pristine-tar = True | ||
debian-branch = master | ||
debian-tag = readynas/%(version)s | ||
debian-tag-msg = %(pkg)s ReadyNAS OS release %(version)s | ||
|
||
[git-buildpackage] | ||
export-dir = ../build-area/ | ||
color = on | ||
pristine-tar-commit = True | ||
|
||
[git-dch] | ||
# ignore merge commit messages | ||
git-log = --no-merges |
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,4 @@ | ||
debian/readynas/config.xml apps/nastools-zerotier-one | ||
debian/readynas/fvapp-nastools-zerotier-one.service apps/nastools-zerotier-one | ||
debian/readynas/logo.png apps/nastools-zerotier-one | ||
zerotier-one apps/nastools-zerotier-one/sbin |
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,3 @@ | ||
apps/nastools-zerotier-one/sbin/zerotier-one usr/sbin/zerotier-cli | ||
apps/nastools-zerotier-one/sbin/zerotier-one usr/sbin/zerotier-idtool | ||
apps/nastools-zerotier-one/sbin/zerotier-one usr/sbin/zerotier-one |
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,7 @@ | ||
## Overrides from NAStools | ||
# Overrides for ReadyNAS packaging | ||
nastools-zerotier-one: non-standard-toplevel-dir apps/ | ||
nastools-zerotier-one: file-in-unusual-dir apps/nastools-zerotier-one/* | ||
|
||
# Debian's libminiupnpc is too old, so let ZT include its own | ||
nastools-zerotier-one: embedded-library apps/nastools-zerotier-one/sbin/zerotier-one: libminiupnpc |
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,3 @@ | ||
doc/zerotier-cli.1 | ||
doc/zerotier-idtool.1 | ||
doc/zerotier-one.8 |
23 changes: 23 additions & 0 deletions
23
debian/patches/0001-Update-platformDefaultHomePath-for-ReadyNAS-OS.patch
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,23 @@ | ||
From: NAStools <dev@nas.tools> | ||
Date: Tue, 1 Nov 2016 16:09:41 -0700 | ||
Subject: Update platformDefaultHomePath() for ReadyNAS OS | ||
|
||
--- | ||
osdep/OSUtils.cpp | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/osdep/OSUtils.cpp b/osdep/OSUtils.cpp | ||
index 3a04308..0a9ade6 100644 | ||
--- a/osdep/OSUtils.cpp | ||
+++ b/osdep/OSUtils.cpp | ||
@@ -244,8 +244,8 @@ std::string OSUtils::platformDefaultHomePath() | ||
// BSD likes /var/db instead of /var/lib | ||
return std::string("/var/db/zerotier-one"); | ||
#else | ||
- // Use /var/lib for Linux and other *nix | ||
- return std::string("/var/lib/zerotier-one"); | ||
+ // Use /apps/nastools-zerotier-one/var for ReadyNAS OS | ||
+ return std::string("/apps/nastools-zerotier-one/var"); | ||
#endif | ||
|
||
#endif |
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 @@ | ||
0001-Update-platformDefaultHomePath-for-ReadyNAS-OS.patch |
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,13 @@ | ||
<Application resource-id="nastools-zerotier-one"> | ||
<Version></Version> | ||
<MinFirmwareVer>6.6.0</MinFirmwareVer> | ||
<Name>ZeroTier One NT</Name> | ||
<Author>NAStools</Author> | ||
<RequireReboot>0</RequireReboot> | ||
<LaunchURL/> | ||
<InfoURL>https://github.com/nastools/zerotierone</InfoURL> | ||
<DebianPackage>nastools-zerotier-one</DebianPackage> | ||
<Description lang="en-us">ZeroTier network virtualization service (CLI only)</Description> | ||
<ServiceName>fvapp-nastools-zerotier-one.service</ServiceName> | ||
<ConfigURL/> | ||
</Application> |
4 changes: 2 additions & 2 deletions
4
debian/zerotier-one.service → ...dynas/fvapp-nastools-zerotier-one.service
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,16 +1,6 @@ | ||
#!/usr/bin/make -f | ||
|
||
CFLAGS=-O3 -fstack-protector-strong | ||
CXXFLAGS=-O3 -fstack-protector-strong | ||
|
||
%: | ||
dh $@ --with systemd | ||
|
||
override_dh_auto_build: | ||
make ZT_USE_MINIUPNPC=1 -j 2 | ||
|
||
override_dh_systemd_start: | ||
dh_systemd_start --restart-after-upgrade | ||
dh $@ | ||
|
||
override_dh_installinit: | ||
dh_installinit --name=zerotier-one -- defaults | ||
override_dh_auto_install: |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
## Overrides from NAStools | ||
# Nothing we can do about these, since they're upstream | ||
zerotier-one source: source-is-missing ext/installfiles/mac/ui/ztui.min.js | ||
zerotier-one source: source-is-missing ext/installfiles/mac/ui/simpleajax.min.js | ||
zerotier-one source: source-is-missing ext/installfiles/mac/ui/react.min.js |
File renamed without changes.
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 @@ | ||
debian/readynas/logo.png |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.