[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 | |
---|
[4f40c3e] | 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 | |
---|
| 11 | $patch --verbose -p0 -i yap6_2_2_patch_1 |
---|
| 12 | (Patching for FreeBSD or 64bits machines, patch file can be |
---|
| 13 | found in libABAC's doc directory) |
---|
[9806e76] | 14 | |
---|
[46df1bc] | 15 | $./configure --enable-dynamic-loading --enable-use-malloc=yes |
---|
| 16 | $make |
---|
| 17 | $make library |
---|
| 18 | $sudo make install_library |
---|
[02888af] | 19 | |
---|
[46df1bc] | 20 | (Note: If you ever run into the OOOPS message when installing Yap, |
---|
| 21 | manually clear out all traces of Yap from your /usr/local especially |
---|
| 22 | /usr/local/share) |
---|
[671c065] | 23 | |
---|
[d7abe40] | 24 | |
---|
[137b55f] | 25 | Download strongswan-4.6.4 from strongswan.org: |
---|
[46df1bc] | 26 | http://download.strongswan.org/strongswan-4.6.4.tar.bz2 |
---|
| 27 | |
---|
| 28 | FreeBSD users: add --enable-kernel-pfkey --enable-kernel-pfroute |
---|
| 29 | --disable-kernel-netlink --disable-tools --disable-scripts |
---|
| 30 | --disable-pluto --with-group=wheel to strongswan ./configure |
---|
| 31 | |
---|
| 32 | Linux users: add --disable-gmp --enable-openssl to strongswan |
---|
| 33 | ./configure to avoid long credential creation times. The entropy |
---|
| 34 | sources libstrongswan uses by default gather entropy slowly on |
---|
| 35 | Linux. These flags allow it to gather entropy from the same |
---|
| 36 | sources as openssl, which is noticeably faster. The internal |
---|
| 37 | strongswan libraries and plugins are installed in |
---|
| 38 | /usr/local/lib/ipsec by default unless |
---|
| 39 | --with-ipseclibdir and --with-plugindir are set otherwise. |
---|
| 40 | |
---|
[4f40c3e] | 41 | $tar xjvf strongswan-4.6.4.tar.bz2 |
---|
| 42 | $cd strongswan-4.6.4 |
---|
| 43 | $# see note above about configure flags |
---|
| 44 | $./configure --enable-monolithic |
---|
| 45 | $cd src/libstrongswan |
---|
| 46 | $make && sudo make install |
---|
[46df1bc] | 47 | |
---|
| 48 | Be sure to make note of the directory into which you've untarred |
---|
| 49 | strongswan-4.6.4.tar.bz2. You will use this in the next step. |
---|
[02888af] | 50 | |
---|
| 51 | BUILDING LIBABAC |
---|
| 52 | |
---|
[46df1bc] | 53 | FreeBSD users will need to install flex-2.5.35 or greater from |
---|
[4f40c3e] | 54 | ports and add |
---|
[46df1bc] | 55 | --with-flex=/usr/local/bin/flex --with-extra-includes=/usr/local/include |
---|
[4f40c3e] | 56 | on ./configure line in addition to --with-strongswan=... |
---|
[46df1bc] | 57 | |
---|
[4f40c3e] | 58 | $STRONGSWAN_SRC_DIR=path/to/strongswan-4.6.4 |
---|
| 59 | $STRONGSWAN_LIB_DIR=/usr/local/lib/ipsec |
---|
| 60 | $./configure --with-strongswan=$STRONGSWAN_SRC_DIR |
---|
[46df1bc] | 61 | --with-strongswan-ld-path=$STRONSWAN_LIB_DIR |
---|
[4f40c3e] | 62 | $make |
---|
| 63 | $sudo make install |
---|
[b84753b] | 64 | |
---|
[43478b1] | 65 | |
---|