diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-29 16:47:57 +0000 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-29 16:47:57 +0000 |
commit | 5309c7e0828e568a52575c363785d44f25d832e2 (patch) | |
tree | e1542ac912c7d4a0beb346eacffed1f078cf1e28 | |
parent | 7b7ab823b0847d9bd4437a8a86b5bdf48590b79d (diff) | |
parent | dbe57742e64f93e253dd60e4e4071871b1de9265 (diff) | |
download | infinitytier-5309c7e0828e568a52575c363785d44f25d832e2.tar.gz infinitytier-5309c7e0828e568a52575c363785d44f25d832e2.zip |
Merge branch 'dev' of https://github.com/zerotier/ZeroTierOne into dev
-rw-r--r-- | doc/README.md | 4 | ||||
-rwxr-xr-x | doc/build.sh | 25 | ||||
-rw-r--r-- | ext/README.md | 11 | ||||
-rwxr-xr-x | linux-build-farm/build.sh | 2 | ||||
-rw-r--r-- | linux-build-farm/fedora-22/x64/Dockerfile | 7 | ||||
-rw-r--r-- | linux-build-farm/fedora-22/x86/Dockerfile | 11 |
6 files changed, 48 insertions, 12 deletions
diff --git a/doc/README.md b/doc/README.md index c82b5492..707c64a9 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,4 +1,6 @@ Manual Pages and Other Documentation ===== -Use "./build.sh" to build the manual pages. You'll need NodeJS and npm installed. +Use "./build.sh" to build the manual pages. + +You'll need either NodeJS/npm installed (script will then automatically install the npm *marked-man* package) or */usr/bin/ronn*. The latter is a Ruby program packaged on some distributions as *rubygem-ronn* or *ruby-ronn* or installable as *gem install ronn*. The Node *marked-man* package and *ronn* from rubygems are two roughly equivalent alternatives for compiling MarkDown into roff/man format. diff --git a/doc/build.sh b/doc/build.sh index 5a2c77cb..9df72a33 100755 --- a/doc/build.sh +++ b/doc/build.sh @@ -9,24 +9,29 @@ fi rm -f *.1 *.2 *.8 if [ -e /usr/bin/ronn -o -e /usr/local/bin/ronn ]; then + # Use 'ronn' which is available as a package on many distros including Debian ronn -r zerotier-cli.1.md ronn -r zerotier-idtool.1.md ronn -r zerotier-one.8.md else - if [ ! -f /usr/bin/node -a ! -f /usr/bin/nodejs ]; then - echo 'Unable to build man pages: no /usr/bin/ronn or /usr/bin/node / nodejs!' - exit 0 + # Use 'marked-man' from npm + NODE=/usr/bin/node + if [ ! -e $NODE ]; then + if [ -e /usr/bin/nodejs ]; then + NODE=/usr/bin/nodejs + elif [ -e /usr/local/bin/node ]; then + NODE=/usr/local/bin/node + elif [ -e /usr/local/bin/nodejs ]; then + NODE=/usr/local/bin/nodejs + else + echo 'Unable to find ronn or node/npm -- cannot build man pages!' + exit 1 + fi fi if [ ! -f node_modules/marked-man/bin/marked-man ]; then - echo 'Installing MarkDown to ROFF converter...' + echo 'Installing npm package "marked-man" -- MarkDown to ROFF converter...' npm install marked-man - echo - fi - - NODE=/usr/bin/node - if [ -e /usr/bin/nodejs ]; then - NODE=/usr/bin/nodejs fi $NODE node_modules/marked-man/bin/marked-man zerotier-cli.1.md >zerotier-cli.1 diff --git a/ext/README.md b/ext/README.md index f296fa55..be9484c5 100644 --- a/ext/README.md +++ b/ext/README.md @@ -1 +1,10 @@ -The ext/ folder contains third party code, drivers, installation support files, etc.
\ No newline at end of file +Miscellaneous Stuff +====== + +This subfolder contains: + + * Bundled third party libraries that are compiled into the binary on platforms and Linux distributions where they are not available on the system. + + * Pre-compiled binaries for some platforms, such as pre-built and signed drivers for Mac and Windows. + + * Miscellaneous files used by installers and packages on various platform targets. diff --git a/linux-build-farm/build.sh b/linux-build-farm/build.sh index da95c04c..468386ce 100755 --- a/linux-build-farm/build.sh +++ b/linux-build-farm/build.sh @@ -41,6 +41,8 @@ for distro in $subdirs; do rm -f *.deb *.rpm +# exit 0 + if [ ! -n "`echo $distro | grep -F debian`" -a ! -n "`echo $distro | grep -F ubuntu`" ]; then docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x64 /bin/bash -c 'cd /ZeroTierOne ; make redhat ; cd .. ; cp `find /root/rpmbuild -type f -name *.rpm` /artifacts ; ls -l /artifacts' docker run --rm -v `pwd`:/artifacts --privileged -it zt1-build-${distro}-x86 /bin/bash -c 'cd /ZeroTierOne ; make redhat ; cd .. ; cp `find /root/rpmbuild -type f -name *.rpm` /artifacts ; ls -l /artifacts' diff --git a/linux-build-farm/fedora-22/x64/Dockerfile b/linux-build-farm/fedora-22/x64/Dockerfile new file mode 100644 index 00000000..554ca338 --- /dev/null +++ b/linux-build-farm/fedora-22/x64/Dockerfile @@ -0,0 +1,7 @@ +FROM fedora:22 +MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com> + +RUN yum update -y +RUN yum install -y make rpmdevtools gcc-c++ rubygem-ronn json-parser-devel lz4-devel http-parser-devel libnatpmp-devel + +ADD zt1-src.tar.gz / diff --git a/linux-build-farm/fedora-22/x86/Dockerfile b/linux-build-farm/fedora-22/x86/Dockerfile new file mode 100644 index 00000000..e4b546b4 --- /dev/null +++ b/linux-build-farm/fedora-22/x86/Dockerfile @@ -0,0 +1,11 @@ +FROM nickcis/fedora-32:22 +MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com> + +RUN mkdir -p /etc/dnf/vars +RUN echo 'i386' >/etc/dnf/vars/basearch +RUN echo 'i386' >/etc/dnf/vars/arch + +RUN yum update -y +RUN yum install -y make rpmdevtools gcc-c++ rubygem-ronn json-parser-devel lz4-devel http-parser-devel libnatpmp-devel + +ADD zt1-src.tar.gz / |