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