Chapter 3. Compiling and manual installation
If you do not have a distribution specific alternative available, you will need to compile OpenVPN and eurephia yourself. To do so, there are some requirements needed to be able to compile both OpenVPN and eurephia.
To compile both OpenVPN and eurephia you need some development packages installed in addition to the libraries. For example the openssl package is on many distributions called openssl-devel on Fedora, Red Hat Enterprise Linux or CentOS. On Debian based distributions it is often named openssl-dev. This is different for each OS and each distribution. But please make sure you have the needed development packages installed in addition to the library packages required.
3.1.1. OpenVPN requirements
eurephia will not work without an OpenVPN server containing a patch for eurephia. You need to either use the pre-patched OpenVPN source or to use an official source code and patch it yourself. Without this patch eurephia will not be able to identify the certificates the OpenVPN client is using.
The eurephia patch is accepted into the OpenVPN 2.2 release cycle. If you are willing to use an OpenVPN version with more features which are under testing, you may pull down the openvpn-testing.git source code directly or use the openvpn-devel snapshots.
To compile OpenVPN you will need:
OpenVPN source code
OpenSSL development libraries
liblzo - LZO compression libraries and development files. (Optional, only needed if you want LZO compression support in OpenVPN)
The OpenVPN source code can be either the official stable version from OpenVPN Technologies Inc. or the pre-patched OpenVPN source code available from the eurephia download page. If you are using the official stable version, you will need to download the OpenVPN eurephia patch in addition.
3.1.2. eurephia requirements
To build eurephia yourself you will need to have the following development packages available:
eurephia source code
Or, if you want to use the latest development version, use the git repository available.
user@host:~ $ git clone git://eurephia.git.sourceforge.net/gitroot/eurephia/eurephia.git
CMake (version 2.6.1 or later)
pkgconfig / pkg-config (version 0.21 or later)
SQLite3 development libraries (version 3.3.17 or later)
OpenVPN source code (version 2.1.0 or later)
To build the eurephia authentication plug-in, the build process need access to the openvpn source code to be able to build it
XML and XSLT libraries:
Due to a bug in CMake 2.6.0, it will not be possible to build eurephia with this version. There are no known problems building with CMake 2.6.1 or later.