-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: urcd action: commit revision: path_from: revision_from: 15d7e2a8a8ce43fe1923e82b53d086d7c5ba1ac9: path_to: revision_to:
commit 15d7e2a8a8ce43fe1923e82b53d086d7c5ba1ac9 Author: root <root@localhost.(none)> Date: Mon Jun 23 18:45:54 2014 +0000 [Make.sh] support for libsodium fanboys diff --git a/Make.sh b/Make.sh
--- a/Make.sh +++ b/Make.sh @@ -20,6 +20,21 @@ fi # OpenBSD && NetBSD \o/ export LIBRARY_PATH="/usr/pkg/lib:/usr/local/lib:$LIBRARY_PATH" +# Support libsodium fanboys +if gcc src/check-nacl.h -o /dev/null 2>/dev/null ; then : +elif gcc src/check-sodium.h -o /dev/null 2>/dev/null ; then + LIBSODIUM_PATH="`find /usr -type d -name sodium | head -1`" + if [ -z LIBSODIUM_PATH ]; then + echo $0': fatal error: could not find libsodium path' 1>&2 + exit 255 + fi + test -e /usr/inlcude/nacl/ && \ + ln -s $LIBSODIUM_PATH /usr/include/nacl +else + echo $0': fatal error: no suitable NaCl library exists' 1>&2 + exit 255 +fi + randombytes=/usr/lib/randombytes.o if [ -e /usr/local/lib/randombytes.o ]; then randombytes=/usr/local/lib/randombytes.o diff --git a/src/check-nacl.h b/src/check-nacl.h new file mode 100644 index 0000000000000000000000000000000000000000..5034e67988fa47afffc01e27c25a78701cdafa56 --- /dev/null +++ b/src/check-nacl.h @@ -0,0 +1 @@ +#include <nacl/crypto_box.h> diff --git a/src/check-sodium.h b/src/check-sodium.h new file mode 100644 index 0000000000000000000000000000000000000000..6a60ab82ec15f43bcbae0ccd0530d420fdd570d7 --- /dev/null +++ b/src/check-sodium.h @@ -0,0 +1 @@ +#include <sodium/crypto_box.h>
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 14:16:12 2024