Skip to content

Instantly share code, notes, and snippets.

@ThomasLeister
Created March 12, 2017 10:16
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ThomasLeister/fc65ff8ff37e1825df981633d90f15d8 to your computer and use it in GitHub Desktop.
Save ThomasLeister/fc65ff8ff37e1825df981633d90f15d8 to your computer and use it in GitHub Desktop.
#!/bin/sh
libressl_version=libressl-2.5.1
libressl_archive=${libressl_version}.tar.gz
if [ -f ${libressl_archive} ]
then
:
else
wget -O ${libressl_archive} https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${libressl_archive}
fi
if [ -f ${libressl_archive} ]
then
:
else
echo wget failed.
return -1
fi
libressl_lib=${libressl_version}/crypto/.libs/libcrypto.a
if [ -f $libressl_lib ]
then
:
else
tar -xzf ${libressl_archive}
cd ${libressl_version} && ./configure && make && cd ..
fi
cc -O2 -I${libressl_version}/include peervpn.c -o peervpn ${libressl_version}/crypto/.libs/libcrypto.a && echo success!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment