[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 | |
---|
[46df1bc] | 8 | Download yap-6.2.3 from www.dcc.fc.up.pt |
---|
| 9 | http://www.dcc.fc.up.pt/~vsc/Yap/yap-6.2.3.tar.gz |
---|
[9806e76] | 10 | |
---|
[46df1bc] | 11 | $./configure --enable-dynamic-loading --enable-use-malloc=yes |
---|
| 12 | $make |
---|
| 13 | $make library |
---|
| 14 | $sudo make install_library |
---|
[02888af] | 15 | |
---|
[46df1bc] | 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) |
---|
[671c065] | 19 | |
---|
[d7abe40] | 20 | |
---|
[137b55f] | 21 | Download strongswan-4.6.4 from strongswan.org: |
---|
[46df1bc] | 22 | http://download.strongswan.org/strongswan-4.6.4.tar.bz2 |
---|
| 23 | |
---|
| 24 | FreeBSD users: add --enable-kernel-pfkey --enable-kernel-pfroute |
---|
| 25 | --disable-kernel-netlink --disable-tools --disable-scripts |
---|
| 26 | --disable-pluto --with-group=wheel to strongswan ./configure |
---|
| 27 | |
---|
| 28 | Linux users: add --disable-gmp --enable-openssl to strongswan |
---|
| 29 | ./configure to avoid long credential creation times. The entropy |
---|
| 30 | sources libstrongswan uses by default gather entropy slowly on |
---|
| 31 | Linux. These flags allow it to gather entropy from the same |
---|
| 32 | sources as openssl, which is noticeably faster. The internal |
---|
| 33 | strongswan libraries and plugins are installed in |
---|
| 34 | /usr/local/lib/ipsec by default unless |
---|
| 35 | --with-ipseclibdir and --with-plugindir are set otherwise. |
---|
| 36 | |
---|
| 37 | $ tar xjvf strongswan-4.6.4.tar.bz2 |
---|
| 38 | $ cd strongswan-4.6.4 |
---|
| 39 | $ # see note above about configure flags |
---|
| 40 | $ ./configure --enable-monolithic |
---|
| 41 | $ cd src/libstrongswan |
---|
| 42 | $ make && sudo make install |
---|
| 43 | |
---|
| 44 | Be sure to make note of the directory into which you've untarred |
---|
| 45 | strongswan-4.6.4.tar.bz2. You will use this in the next step. |
---|
[02888af] | 46 | |
---|
| 47 | BUILDING LIBABAC |
---|
| 48 | |
---|
[46df1bc] | 49 | FreeBSD users will need to install flex-2.5.35 or greater from |
---|
| 50 | ports and use |
---|
| 51 | --with-flex=/usr/local/bin/flex --with-extra-includes=/usr/local/include |
---|
| 52 | on ./configure in addition to --with-strongswan |
---|
| 53 | |
---|
| 54 | $ STRONGSWAN_SRC_DIR=path/to/strongswan-4.6.4 |
---|
| 55 | $ STRONGSWAN_LIB_DIR=/usr/local/lib/ipsec |
---|
| 56 | $ ./configure --with-strongswan=$STRONGSWAN_SRC_DIR |
---|
| 57 | --with-strongswan-ld-path=$STRONSWAN_LIB_DIR |
---|
| 58 | $ make |
---|
| 59 | $ sudo make install |
---|
[b84753b] | 60 | |
---|
[43478b1] | 61 | |
---|