From: <svn...@op...> - 2009-03-26 00:11:39
|
Author: scriptor Date: Thu Mar 26 01:11:28 2009 New Revision: 5328 URL: http://www.opensync.org/changeset/5328 Log: Initial version of the LDAP plugin having been ported to libopensync-0.3x. Added: plugins/ldap-sync/INSTALL (contents, props changed) Added: plugins/ldap-sync/INSTALL ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ plugins/ldap-sync/INSTALL Thu Mar 26 01:11:28 2009 (r5328) @@ -0,0 +1,88 @@ +$Id$ + + +A. Regular build: + +tar -xvjf libopensync-plugin-ldap-0.39.tar.bz2 +cd libopensync-plugin-ldap-0.39 +mkdir build +cd build +PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DUPDATE_TYPE=svn /home/user1/libopensync-0.39/libopensync-plugin-ldap-0.39 +make -s +make -w install +ldconfig +cd ../.. + + +B. Debug build: + +tar -xvjf libopensync-plugin-ldap-0.39.tar.bz2 +cd libopensync-plugin-ldap-0.39 +mkdir build_debug +cd build_debug +PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DUPDATE_TYPE=svn -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON /home/user1/libopensync-0.39/libopensync-plugin-ldap-0.39 +make -s +make -w install +ldconfig +cd ../.. + + + + +C. Build doxygen based documentation of the source code: + +cd build +make doxygen +firefox doc/html/index.html & + + + +D. Tests: + +There is a "test" target. It is primarily intended for developers. + +I. Required software: + +The tests make use of external tools, most notably: + +- xmllint +- xsltproc +- ldapsearch +- ldapadd +- ldapmodify +- ldapdelete +- valgrind + + +II. Running the tests: + +cd build +make test + + +III. Display a list of tests: + +cd build +ctest -N + + +IV. Run only one particular test: + + +cd build +ctest -I 51,51 +ctest -R remove_test_ldifs + + + + +E. The following cmake modules are required for the LDAP plugin: + +FindLibLdap.cmake +FindLibGCrypt.cmake +FindLibSASL2.cmake +FindLibGSSAPIV2.cmake + +See cmake/modules. + + |