summaryrefslogtreecommitdiffstats
path: root/README.install
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-05-27 07:57:20 +0200
committerAndreas Schneider <asn@samba.org>2014-05-27 09:51:59 +0200
commit57748973ae70450c5f875f0ca577bbaed305d9ad (patch)
treea707aca72c35ac133ec351a071d28a9be37a2619 /README.install
parentedaceb0f8fd77cddb78616f3a854accf7175a64b (diff)
downloadsocket_wrapper-57748973ae70450c5f875f0ca577bbaed305d9ad.tar.gz
socket_wrapper-57748973ae70450c5f875f0ca577bbaed305d9ad.tar.xz
socket_wrapper-57748973ae70450c5f875f0ca577bbaed305d9ad.zip
Add README.install - instructions for building and installing.
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'README.install')
-rw-r--r--README.install74
1 files changed, 74 insertions, 0 deletions
diff --git a/README.install b/README.install
new file mode 100644
index 0000000..e06a951
--- /dev/null
+++ b/README.install
@@ -0,0 +1,74 @@
+Obtaining the sources
+=====================
+
+Source tarballs for socket_wrapper can be downloaded from
+
+ https://ftp.samba.org/pub/cwrap/
+
+The source code repository for socket wrapper is located under
+
+ git://git.samba.org/socket_wrapper.git
+
+To create a local copy, run
+
+ $ git clone git://git.samba.org/socket_wrapper.git
+ $ cd socket_wrapper
+
+Building from sources
+=====================
+
+socket_wrapper uses cmake (www.cmake.org) as build system.
+
+In a unpacked sources base directory, create a directory to
+contain the build results:
+
+ $ mkdir obj
+ $ cd obj
+
+Note this target directory can be named arbitrarily.
+
+Next, run cmake to configure the build, e.g.:
+
+ $ cmake -DCMAKE_INSTALL_PREFIX=<prefix> ..
+
+or on a 64 bit red hat system:
+
+ $ cmake -DCMAKE_INSTALL_PREFIX=<prefix> -DLIB_SUFFIX=64 ..
+
+The "<prefix>" should be replaced by the intended installation
+target prefix directory, typically /usr or /usr/local.
+If the build target directory is no a direct subdirectory
+of the source base directory, ".." needs to be replaced
+by the relative or absolute path of that directory.
+
+One can control the build type with "-DCMAKE_BUILD_TYPE=<mode>"
+where <mode> can be one of Debug, Release, RelWithDebInfo, and
+some more (see cmake.org). The default is RelWithDebInfo.
+
+Afterward configuring with cmake, run the build with
+
+ $ make
+
+Unit testing
+============
+
+In order to support running the test suite after building,
+the cmocka unit test framework needs to be installed (cmocka.org),
+and you need to specify
+
+ -DUNIT_TESTING=ON
+
+in the cmake run. After running "make",
+
+ $ make test
+
+runs the test suite.
+
+Installing
+==========
+
+socket_wrapper is installed into the prefix directory
+after running "cmake" and "make" with
+
+ $ make install
+