source: doc/INSTALL @ 4f40c3e

mei_rt2mei_rt2_fix_1
Last change on this file since 4f40c3e was 4f40c3e, checked in by Mei <mei@…>, 12 years ago

1) add a yap patch file for 6.2.2 for FreeBSD platform
2) update documentaions

  • Property mode set to 100644
File size: 2.4 KB
Line 
1For Java installation instructions, see doc/java_install.
2
3Prior to building libabac
4   you may need to install flex, bison, and GNU readline library
5   you must install YAP and libstrongswan
6   Please check doc/dependencies for other software dependencies
7
8Download 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)
14
15   $./configure --enable-dynamic-loading --enable-use-malloc=yes
16   $make
17   $make library
18   $sudo make install_library
19
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)
23
24
25Download strongswan-4.6.4 from strongswan.org:
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
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
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.
50
51BUILDING LIBABAC
52
53   FreeBSD users will need to install flex-2.5.35 or greater from
54   ports and add
55   --with-flex=/usr/local/bin/flex --with-extra-includes=/usr/local/include
56   on ./configure line in addition to --with-strongswan=...
57
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
61                 --with-strongswan-ld-path=$STRONSWAN_LIB_DIR
62   $make
63   $sudo make install
64
65
Note: See TracBrowser for help on using the repository browser.