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