[c0bdce8] | 1 | For Java installation instructions, see doc/java_install. |
---|
| 2 | |
---|
[9806e76] | 3 | Prior to building libabac |
---|
| 4 | you may need to install flex, bison, and GNU readline library |
---|
| 5 | you must install YAP and libstrongswan |
---|
[e205b49] | 6 | Please check doc/dependencies for other software dependencies |
---|
[9806e76] | 7 | |
---|
| 8 | Download yap-6.2.2 from www.dcc.fc.up.pt |
---|
| 9 | http://www.dcc.fc.up.pt/~vsc/Yap/yap-6.2.2.tar.gz |
---|
| 10 | |
---|
[671c065] | 11 | $./configure --enable-dynamic-loading --enable-use-malloc=yes |
---|
[9806e76] | 12 | $make |
---|
| 13 | $make library |
---|
| 14 | $sudo make install_library |
---|
[02888af] | 15 | |
---|
[671c065] | 16 | (Note: If you ever run into the OOOPS message when installing Yap, |
---|
| 17 | manually clear out all traces of Yap from your /usr/local especially |
---|
| 18 | /usr/local/share) |
---|
| 19 | |
---|
[d7abe40] | 20 | |
---|
| 21 | You can also install yap on Ubuntu using |
---|
| 22 | $ sudo apt-get install yap |
---|
| 23 | |
---|
[137b55f] | 24 | Download strongswan-4.6.4 from strongswan.org: |
---|
| 25 | http://download.strongswan.org/strongswan-4.6.4.tar.bz2 |
---|
[02888af] | 26 | |
---|
[b84753b] | 27 | |
---|
[6aac9f8] | 28 | FreeBSD users: add --with-group=wheel to strongswan ./configure |
---|
| 29 | |
---|
[3f8f00f] | 30 | Linux users: add --disable-gmp --enable-openssl to strongswan ./configure |
---|
| 31 | to avoid long credential creation times. The entropy sources |
---|
| 32 | libstrongswan uses by default gather entropy slowly on Linux. These |
---|
| 33 | flags allow it to gather entropy from the same sources as openssl, which |
---|
[137b55f] | 34 | is noticeably faster. The internal strongswan libraries and plugins |
---|
| 35 | are installed in /usr/local/lib/ipsec by default unless |
---|
| 36 | --with-ipseclibdir and --with-plugindir are set otherwise. |
---|
[3f8f00f] | 37 | |
---|
[137b55f] | 38 | $ tar xjvf strongswan-4.6.4.tar.bz2 |
---|
| 39 | $ cd strongswan-4.6.4 |
---|
[3f8f00f] | 40 | $ # see note above about configure flags |
---|
| 41 | $ ./configure --enable-monolithic |
---|
[02888af] | 42 | $ cd src/libstrongswan |
---|
| 43 | $ make && sudo make install |
---|
| 44 | |
---|
[f675a89] | 45 | Be sure to make note of the directory into which you've untarred |
---|
[137b55f] | 46 | strongswan-4.6.4.tar.bz2. You will use this in the next step. |
---|
[02888af] | 47 | |
---|
| 48 | BUILDING LIBABAC |
---|
| 49 | |
---|
[b84753b] | 50 | FreeBSD users will need to install flex-2.5.35 or greater from ports and |
---|
| 51 | use --with-flex=/usr/local/bin/flex --with-extra-includes=/usr/local/include |
---|
| 52 | on ./configure in addition to --with-strongswan |
---|
| 53 | |
---|
[137b55f] | 54 | $ STRONGSWAN_SRC_DIR=path/to/strongswan-4.6.4 |
---|
| 55 | $ STRONGSWAN_LIB_DIR=path/to/strongswan-ipseclibdir (or /usr/local/lib/ipsec) |
---|
| 56 | $ ./configure --with-strongswan=$STRONGSWAN_SRC_DIR --with-strongswan-ld-path=$STRONSWAN_LIB_DIR |
---|
[acd277a] | 57 | $ make |
---|
| 58 | $ sudo make install |
---|
[43478b1] | 59 | |
---|