summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-04-11 10:21:19 -0400
committerSimo Sorce <ssorce@redhat.com>2009-04-13 09:06:55 -0400
commit8096462b171c4bb45ea58ba9eaa2f2fdb8c7107d (patch)
tree8b53fc46ec69f0374cb1cd05dd38f64891cfaada
parent4626af1ad1141291f226382f3569e4dd0486cd08 (diff)
downloadsssd-8096462b171c4bb45ea58ba9eaa2f2fdb8c7107d.tar.gz
sssd-8096462b171c4bb45ea58ba9eaa2f2fdb8c7107d.tar.xz
sssd-8096462b171c4bb45ea58ba9eaa2f2fdb8c7107d.zip
Update RPM build for configuration changes
-rw-r--r--BUILD.txt69
-rw-r--r--Makefile5
-rw-r--r--sssd.spec13
3 files changed, 44 insertions, 43 deletions
diff --git a/BUILD.txt b/BUILD.txt
index f93c64b8a..cddfea810 100644
--- a/BUILD.txt
+++ b/BUILD.txt
@@ -3,63 +3,52 @@ Very Quick Guide to build sssd components
Use the following instructions to build the libraries and the binaries.
+External library requirements:
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sssd depends on 4 libraries originated in the samba project:
talloc, tdb, tevent, ldb
They are now available in major distribution development branches.
-If you have these libraries installed skip to <<Compiling sssd with system
-installed libraries>>
-
If you want to build them from source download the latest samba master branch
-and use the following instructions
-
-Compiling libraries yourself
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-NOTE: these instructions are temporary and will most likely change agt some
-point but so far the process I describe here is the best one to get something up
-and working while developing this project.
-
-Each library and the sssd service have a --with-shared-build-dir configure option
-that is useful to build the libraries so that you can build all pieces before
-installing each library as a dependency.
-If you just want to make a development build you can provide a temporary
-directory where libraries are installed during the build process in a way that
-let each dependent library find them without having to install each binary into
-its finally system library directory (ie build as user).
-I use the following steps to build all pieces.
+Internal Library Requirements
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+sssd provides several required libraries within its source tree:
+collection
+ini_config
-export LD_LIBRARY_PATH=/tmp/foo/lib
-pushd lib/talloc; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
-pushd lib/tdb; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
-pushd lib/tevent; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
-pushd source4/lib/ldb; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
-
-Compiling sssd using shared-build
+Compiling sssd internal libraries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-pushd server; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make; popd
-
-At this point you can start testing the sssd daemon this way:
-
-cd server
-export LD_LIBRARY_PATH=/tmp/foo/lib
-./sbin/sssd -i
+pushd common; \
+autoreconf -i -f && \
+./configure --enable-static --disable-shared && \
+make; \
+popd
-This will start the sssd daemon in interactive mode.
+This will build the libraries statically for linking into the sssd. Currently
+the sssd build system does not support dynamically linking. (The external API
+for collection and ini_config is not yet ready for general consumption).
Compiling sssd with system installed libraries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-pushd server; ./autogen.sh && ./configure && make; popd
+pushd server; \
+./autogen.sh && \
+./configure && \
+make; \
+popd
Compiling client libraries
~~~~~~~~~~~~~~~~~~~~~~~~~~
-The nss and pam client doesn't need any dependency nor supports the
-shared-build option.
+The nss and pam client do not require any additional dependencies.
-pushd sss_client; ./autogen.sh && ./configure && make; popd
+pushd sss_client; \
+./autogen.sh && \
+./configure && \
+make; \
+popd
-Now you have to copy libnss_sss* into /lib (or /lib64) and add the 'sss' traget
+Now you have to copy libnss_sss* into /lib (or /lib64) and add the 'sss' target
to nsswitch.conf passwd database
For pam copy pam_sss.so into /lib/security (or /lib64/security) and add
@@ -76,4 +65,4 @@ Now you can call pam_test_client:
./pam_test_client [auth|chau|acct|setc|open|clos] username@domain
~~~~~
-Simo.
+Simo and Steve
diff --git a/Makefile b/Makefile
index d8eb90ac1..deddebca0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
PACKAGE_NAME = sssd
-PACKAGE_VERSION = 0.1.0
+PACKAGE_VERSION = 0.3.0
TARGET ?= master
-SUBDIRS = server replace sss_client
+SUBDIRS = common server replace sss_client
TARBALL_PREFIX = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
TARBALL = $(TARBALL_PREFIX).tar.gz
LIBDIR ?= /usr/lib
@@ -15,6 +15,7 @@ clean:
rm -Rf $(RPMBUILD)
realdistclean: clean
+ -make -C common maintainer-clean
-make -C server realdistclean
archive:
diff --git a/sssd.spec b/sssd.spec
index e052966c1..ce5c7a68d 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -1,5 +1,5 @@
Name: sssd
-Version: 0.2.1
+Version: 0.3.0
Release: 1%{dist}
Group: Applications/System
Summary: System Security Services Daemon
@@ -47,6 +47,14 @@ services for projects like FreeIPA.
%setup -q
%build
+# common
+pushd common
+autoreconf -i -f
+%configure --disable-shared \
+ --enable-static
+
+make %{?_smp_mflags}
+popd
# sssd
pushd server
@@ -118,6 +126,9 @@ if [ $1 -ge 1 ] ; then
fi
%changelog
+* Sun Apr 12 2009 Stephen Gallagher <sgallagh@redhat.com> - 0.3.0-1
+- Convert to using /etc/sssd/sssd.conf for configuration
+
* Tue Mar 10 2009 Simo Sorce <ssorce@redhat.com> - 0.2.1-1
- Bump up to version 0.2.1