💾 Archived View for espotiesfa.ddns.net › linux › gocryptfs › compilacio.gmi captured on 2024-08-25 at 00:26:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

-=-=-=-=-=-=-

        __ _  ___   ___ _ __ _   _ _ __ | |_ / _|___ 
       / _` |/ _ \ / __| '__| | | | '_ \| __| |_/ __|
      | (_| | (_) | (__| |  | |_| | |_) | |_|  _\__ \
       \__, |\___/ \___|_|   \__, | .__/ \__|_| |___/
       |___/                 |___/|_|                
      

(Traduït de

https://nuetzlich.net/gocryptfs/compile/

el 13-10-2023)

Compilar gocryptfs

Instal·la Go 1.13 o superior:

$ apt install golang
$ dnf install golang

Després descarregueu el codi font i compileu-lo:

$ git clone https://github.com/rfjakob/gocryptfs.git
$ cd gocryptfs
$ ./build-without-openssl.bash

Això compila un binari estàtic que fa servir les funcions criptogràfiques

de la biblioteca estàndard de Go.

Si voleu emprar les funcions criptogràfiques de OpenSSL (més ràpides en

CPU que no tenen AES-NI), heu d'instal·lar alguns paquets:

apt install libssl-dev gcc pkg-config
dnf install openssl-devel gcc pkg-config

I, després, executeu:

$ ./build.bash

Vegeu també

README.md

Test

En el directori del codi font de gocryptfs, executeu:

./test.bash

Els tests tarden aproximadament un minut a produir l'eixida següent:

gocryptfs v1.4.3-9-g9f8d0d8 without_openssl; go-fuse v20170619-28-g19acbd2; 2018-02-03 go1.9.2
gocryptfs v1.4.3-9-g9f8d0d8; go-fuse v20170619-28-g19acbd2; 2018-02-03 go1.9.2
ok      github.com/rfjakob/gocryptfs    0.003s
?       github.com/rfjakob/gocryptfs/gocryptfs-xray [no test files]
ok      github.com/rfjakob/gocryptfs/internal/configfile    0.732s
ok      github.com/rfjakob/gocryptfs/internal/contentenc    0.003s
ok      github.com/rfjakob/gocryptfs/internal/cryptocore    0.227s
ok      github.com/rfjakob/gocryptfs/internal/ctlsock   0.002s
?       github.com/rfjakob/gocryptfs/internal/exitcodes [no test files]
?       github.com/rfjakob/gocryptfs/internal/fusefrontend  [no test files]
?       github.com/rfjakob/gocryptfs/internal/fusefrontend_reverse  [no test files]
ok      github.com/rfjakob/gocryptfs/internal/nametransform 0.003s
?       github.com/rfjakob/gocryptfs/internal/nametransform/dirivcache  [no test files]
?       github.com/rfjakob/gocryptfs/internal/openfiletable [no test files]
ok      github.com/rfjakob/gocryptfs/internal/pathiv    0.003s
ok      github.com/rfjakob/gocryptfs/internal/prefer_openssl    0.003s
ok      github.com/rfjakob/gocryptfs/internal/readpassword  0.048s
?       github.com/rfjakob/gocryptfs/internal/serialize_reads   [no test files]
ok      github.com/rfjakob/gocryptfs/internal/siv_aead  0.005s
ok      github.com/rfjakob/gocryptfs/internal/speed 0.002s [no tests to run]
ok      github.com/rfjakob/gocryptfs/internal/stupidgcm 1.639s
ok      github.com/rfjakob/gocryptfs/internal/syscallcompat 0.027s
?       github.com/rfjakob/gocryptfs/internal/tlog  [no test files]
ok      github.com/rfjakob/gocryptfs/tests/cli  1.023s
ok      github.com/rfjakob/gocryptfs/tests/defaults 0.839s
ok      github.com/rfjakob/gocryptfs/tests/example_filesystems  4.076s
ok      github.com/rfjakob/gocryptfs/tests/hkdf_sanity  0.137s
ok      github.com/rfjakob/gocryptfs/tests/matrix   10.780s
ok      github.com/rfjakob/gocryptfs/tests/plaintextnames   0.089s
ok      github.com/rfjakob/gocryptfs/tests/reverse  0.854s
?       github.com/rfjakob/gocryptfs/tests/test_helpers [no test files]

Podeu executar

$ ./test.bash -v

si voleu veure l'execució de cadascun dels tests. Noteu que els tests

també comproven casos d'error que produeixen missatges d'error, i això

no vol dir que siga una fallada del test.