p≡p engine FORK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
957 B

  1. # Using NetPGP instead of GnuPG
  2. ## Prepare
  3. Get OpenSSL:
  4. curl -O https://www.openssl.org/source/openssl-1.1.0f.tar.gz
  5. Build it using the openssl-for-ios build script:
  6. git clone https://github.com/sinofool/build-openssl-ios/ .
  7. and build/install it as shared library.
  8. ```
  9. wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1u.tar.gz
  10. tar xvfz openssl-1.0.1u.tar.gz
  11. cd openssl-1.0.1u
  12. ./Configure darwin64-x86_64-cc --prefix=$HOME shared
  13. make install
  14. ```
  15. Get and autoconf NetPGP
  16. ```
  17. cd $SRC
  18. hg clone https://pep.foundation/dev/repos/netpgp-et/
  19. cd netpgp-et
  20. autoreconf -i
  21. ```
  22. ## Build
  23. Important : LDFLAGS is set to help finding OpenSSL shared lib. If not set,
  24. system's default libcrypto may silently be used instead, causing memory
  25. corruption or crash at runtime.
  26. ```
  27. mkdir netpgp_debug
  28. cd netpgp_debug
  29. $SRC/netpgp-et/configure --with-openssl=$HOME --prefix=$HOME CPPFLAGS=-DDEBUG CXXFLAGS="-g -O0" LDFLAGS="-L${HOME}/lib"
  30. make
  31. make install
  32. ```