]> Cypherpunks.ru repositories - nncp.git/blob - makedist.sh
Merge branch 'develop'
[nncp.git] / makedist.sh
1 #!/bin/sh -ex
2
3 cur=$(pwd)
4 tmp=$(mktemp -d)
5 release=$1
6 [ -n "$release" ]
7
8 git clone . $tmp/nncp-$release
9 repos="
10     src/github.com/davecgh/go-xdr
11     src/github.com/dustin/go-humanize
12     src/github.com/flynn/noise
13     src/golang.org/x/crypto
14     src/golang.org/x/net
15     src/golang.org/x/sys
16     src/gopkg.in/check.v1
17     src/gopkg.in/yaml.v2
18 "
19 for repo in $repos; do
20     git clone $repo $tmp/nncp-$release/$repo
21 done
22 cd $tmp/nncp-$release
23 git checkout $release
24 git submodule update --init
25
26 cat > $tmp/includes <<EOF
27 golang.org/x/crypto/AUTHORS
28 golang.org/x/crypto/CONTRIBUTORS
29 golang.org/x/crypto/LICENSE
30 golang.org/x/crypto/PATENTS
31 golang.org/x/crypto/README.md
32 golang.org/x/crypto/blake2b
33 golang.org/x/crypto/blake2s
34 golang.org/x/crypto/chacha20poly1305
35 golang.org/x/crypto/curve25519
36 golang.org/x/crypto/ed25519
37 golang.org/x/crypto/nacl
38 golang.org/x/crypto/poly1305
39 golang.org/x/crypto/salsa20
40 golang.org/x/crypto/ssh/terminal
41 golang.org/x/net/AUTHORS
42 golang.org/x/net/CONTRIBUTORS
43 golang.org/x/net/LICENSE
44 golang.org/x/net/PATENTS
45 golang.org/x/net/README.md
46 golang.org/x/net/netutil
47 golang.org/x/sys/AUTHORS
48 golang.org/x/sys/CONTRIBUTORS
49 golang.org/x/sys/LICENSE
50 golang.org/x/sys/PATENTS
51 golang.org/x/sys/README.md
52 golang.org/x/sys/unix
53 EOF
54 tar cfCI - src $tmp/includes | tar xfC - $tmp
55 rm -fr src/golang.org
56 mv $tmp/golang.org src/
57 rm -fr $tmp/golang.org $tmp/includes
58
59 find src -name .travis.yml -delete
60 rm -fr src/github.com/davecgh/go-xdr/xdr
61 rm -fr src/github.com/gorhill/cronexpr/cronexpr src/github.com/gorhill/cronexpr/APLv2
62 rm -fr ports
63 rm makedist.sh
64
65 cat > doc/download.texi <<EOF
66 @node Tarballs
67 @section Prepared tarballs
68 You can obtain releases source code prepared tarballs on
69 @url{http://www.nncpgo.org/}.
70 EOF
71 make -C doc
72 ./supplementary_files.sh
73 rm -r doc/.well-known doc/nncp.html/.well-known supplementary_files.sh
74
75 find . -name .git | xargs rm -fr
76 find . -name .gitignore -delete
77 rm .gitmodules
78
79 cd ..
80 tar cvf nncp-"$release".tar nncp-"$release"
81 xz -9 nncp-"$release".tar
82 gpg --detach-sign --sign --local-user 0x2B25868E75A1A953 nncp-"$release".tar.xz
83 mv $tmp/nncp-"$release".tar.xz $tmp/nncp-"$release".tar.xz.sig $cur/doc/nncp.html/download
84
85 tarball=$cur/doc/nncp.html/download/nncp-"$release".tar.xz
86 size=$(( $(cat $tarball | wc -c) / 1024 ))
87 hash=$(gpg --print-md SHA256 < $tarball)
88 cat <<EOF
89 An entry for documentation:
90 @item @ref{Release $release, $release} @tab $size KiB
91 @tab @url{download/nncp-${release}.tar.xz, link} @url{download/nncp-${release}.tar.xz.sig, sign}
92 @tab @code{$hash}
93 EOF
94
95 cd $cur
96
97 cat <<EOF
98 Subject: [EN] NNCP $release release announcement
99
100 I am pleased to announce NNCP $release release availability!
101
102 NNCP (Node to Node copy) is a collection of utilities simplifying
103 secure store-and-forward files and mail exchanging.
104
105 This utilities are intended to help build up small size (dozens of
106 nodes) ad-hoc friend-to-friend (F2F) statically routed darknet
107 delay-tolerant networks for fire-and-forget secure reliable files, file
108 requests, Internet mail and commands transmission. All packets are
109 integrity checked, end-to-end encrypted (E2EE), explicitly authenticated
110 by known participants public keys. Onion encryption is applied to
111 relayed packets. Each node acts both as a client and server, can use
112 push and poll behaviour model.
113
114 Out-of-box offline sneakernet/floppynet, dead drops, sequential and
115 append-only CD-ROM/tape storages, air-gapped computers support. But
116 online TCP daemon with full-duplex resumable data transmission exists.
117
118 ------------------------ >8 ------------------------
119
120 The main improvements for that release are:
121
122 $(git cat-file -p $release | sed -n '6,/^.*BEGIN/p' | sed '$d')
123
124 ------------------------ >8 ------------------------
125
126 NNCP's home page is: http://www.nncpgo.org/
127 Also available as I2P service:
128 http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/
129
130 Source code and its signature for that version can be found here:
131
132     http://www.nncpgo.org/download/nncp-${release}.tar.xz ($size KiB)
133     http://www.nncpgo.org/download/nncp-${release}.tar.xz.sig
134
135 SHA256 hash: $hash
136 GPG key ID: 0x2B25868E75A1A953 NNCP releases <releases@nncpgo.org>
137 Fingerprint: 92C2 F0AE FE73 208E 46BF  F3DE 2B25 868E 75A1 A953
138
139 Please send questions regarding the use of NNCP, bug reports and patches
140 to mailing list: https://lists.cypherpunks.ru/pipermail/nncp-devel/
141 EOF
142
143 cat <<EOF
144 Subject: [RU] Состоялся релиз NNCP $release
145
146 Я рад сообщить о выходе релиза NNCP $release!
147
148 NNCP (Node to Node copy) это набор утилит упрощающий безопасный обмен
149 файлами и почтой в режиме сохранить-и-переслать.
150
151 Эти утилиты предназначены помочь с построением одноранговых устойчивых к
152 разрывам сетей небольшого размера (дюжины узлов), в режиме друг-к-другу
153 (F2F) со статической маршрутизацией для безопасной надёжной передачи
154 файлов, запросов на передачу файлов, Интернет почты и команд по принципу
155 выстрелил-и-забыл. Все пакеты проверяются на целостность, шифруются по
156 принципу точка-точка (E2EE), аутентифицируются известными публичными
157 ключами участников. Луковичное (onion) шифрование применяется ко всем
158 ретранслируемым пакетам. Каждый узел выступает одновременно в роли
159 клиента и сервера, может использовать как push, так и poll модель
160 поведения.
161
162 Поддержка из коробки offline флоппинета, тайников для сброса информации
163 (dead drop), последовательных и только-для-записи CD-ROM/ленточных
164 хранилищ, компьютеров с "воздушным зазором" (air-gap). Но также
165 существует и online TCP демон с полнодуплексной возобновляемой передачей
166 данных.
167
168 ------------------------ >8 ------------------------
169
170 Основные усовершенствования в этом релизе:
171
172 $(git cat-file -p $release | sed -n '6,/^.*BEGIN/p' | sed '$d')
173
174 ------------------------ >8 ------------------------
175
176 Домашняя страница NNCP: http://www.nncpgo.org/
177 Также доступная как I2P сервис:
178 http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/
179 Коротко об утилитах: http://www.nncpgo.org/Ob-utilitakh.html
180
181 Исходный код и его подпись для этой версии находятся здесь:
182
183     http://www.nncpgo.org/download/nncp-${release}.tar.xz ($size KiB)
184     http://www.nncpgo.org/download/nncp-${release}.tar.xz.sig
185
186 SHA256 хэш: $hash
187 Идентификатор GPG ключа: 0x2B25868E75A1A953 NNCP releases <releases@nncpgo.org>
188 Отпечаток: 92C2 F0AE FE73 208E 46BF  F3DE 2B25 868E 75A1 A953
189
190 Пожалуйста, все вопросы касающиеся использования NNCP, отчёты об ошибках
191 и патчи отправляйте в nncp-devel почтовую рассылку:
192 https://lists.cypherpunks.ru/pipermail/nncp-devel/
193 EOF