From 38ea2939829ac622f5d1b216848c4fcdcd3a8e92 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 10 May 2015 00:38:10 +0300 Subject: [PATCH] Include dependent libraries source code in release tarballs Signed-off-by: Sergey Matveev --- doc/installation.texi | 22 ++++++---------------- doc/sources.texi | 12 +++++------- utils/makedist.sh | 28 ++++++++++++++++++++++++---- 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/doc/installation.texi b/doc/installation.texi index d725aa9..c72f629 100644 --- a/doc/installation.texi +++ b/doc/installation.texi @@ -6,35 +6,25 @@ GoVPN is written on @url{http://golang.org/, Go programming language}, convenient building. @url{https://www.gnu.org/software/texinfo/, Texinfo} is used for building documentation. -Required libraries, dependencies (they are installed automatically when -using @emph{Make}): +Included required libraries: @multitable @columnfractions .40 .20 .40 @headitem Library @tab Platform @tab Licence -@item @code{golang.org/x/crypto/curve25519} @tab All @tab BSD 3-Clause -@item @code{golang.org/x/crypto/poly1305} @tab All @tab BSD 3-Clause -@item @code{golang.org/x/crypto/salsa20} @tab All @tab BSD 3-Clause -@item @code{golang.org/x/crypto/xtea} @tab All @tab BSD 3-Clause -@item @code{golang.org/x/crypto/pbkdf2} @tab All @tab BSD 3-Clause +@item @code{golang.org/x/crypto} @tab All @tab BSD 3-Clause @item @code{github.com/agl/ed25519} @tab All @tab BSD 3-Clause @item @code{github.com/bigeagle/water} @tab GNU/Linux @tab BSD 3-Clause @end multitable -You can get tarball, set proper @code{$GOPATH} and run -@code{make} (that will install all necessary libraries and build +Get the tarball and run @code{make}. @emph{govpn-client}, @emph{govpn-server}, @emph{govpn-verifier} -binaries): +binaries will be build in the current directory. @example -% mkdir -p govpn/src -% set -e % wget http://www.cypherpunks.ru/govpn/download/govpn-2.3.tar.xz % wget http://www.cypherpunks.ru/govpn/download/govpn-2.3.tar.xz.sig % gpg --verify govpn-2.3.tar.xz.sig govpn-2.3.tar.xz -% tar xfC govpn-2.3.tar.xz govpn/src -% mv govpn/src/govpn-2.3 govpn/src/govpn -% export GOPATH=$(pwd)/govpn:$GOPATH -% gmake -C govpn/src/govpn all +% tar xf govpn-2.3.tar.xz +% gmake -C govpn-2.3 all @end example @menu diff --git a/doc/sources.texi b/doc/sources.texi index 60ec446..e8b6fed 100644 --- a/doc/sources.texi +++ b/doc/sources.texi @@ -2,11 +2,13 @@ @section Development source code Development source contains the latest version of the code. It may be -buggy. Also it does not contain compiled documentation and is not -recommended for porters because of that. +buggy. It does not contain compiled documentation and dependent +libraries source code. Because of that it is not recommended for porters. You can obtain it by cloning Git repository: @code{git clone https://github.com/stargrave/govpn.git}. +@code{src} directory has makefile that will download necessary dependent +library versions. Also there is mirror of dependent libraries for safety if their native repositories will be unavailable (they are seldom updated): @@ -14,10 +16,6 @@ repositories will be unavailable (they are seldom updated): @multitable @columnfractions .50 .50 @headitem Software/library @tab Mirror @item @code{govpn} @tab @url{git://git.cypherpunks.ru/govpn.git} -@item @code{golang.org/x/crypto/curve25519} @tab @url{git://git.cypherpunks.ru/crypto.git} -@item @code{golang.org/x/crypto/poly1305} @tab @url{git://git.cypherpunks.ru/crypto.git} -@item @code{golang.org/x/crypto/salsa20} @tab @url{git://git.cypherpunks.ru/crypto.git} -@item @code{golang.org/x/crypto/xtea} @tab @url{git://git.cypherpunks.ru/crypto.git} -@item @code{golang.org/x/crypto/pbkdf2} @tab @url{git://git.cypherpunks.ru/crypto.git} +@item @code{golang.org/x/crypto} @tab @url{git://git.cypherpunks.ru/crypto.git} @item @code{github.com/agl/ed25519} @tab @url{git://git.cypherpunks.ru/ed25519.git} @end multitable diff --git a/utils/makedist.sh b/utils/makedist.sh index 6ff776c..e408142 100755 --- a/utils/makedist.sh +++ b/utils/makedist.sh @@ -4,20 +4,40 @@ cur=$(pwd) tmp=$(mktemp -d) release=$1 [ -n "$release" ] + git clone . $tmp/govpn-$release +cat > $tmp/includes < doc/download.texi <