summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sss_client/Makefile.in8
-rw-r--r--sssd.spec29
2 files changed, 29 insertions, 8 deletions
diff --git a/sss_client/Makefile.in b/sss_client/Makefile.in
index f7b46575..135c8f13 100644
--- a/sss_client/Makefile.in
+++ b/sss_client/Makefile.in
@@ -70,9 +70,11 @@ $(PAM_SSS_SOLIB): $(PAM_SSS_OBJS)
all: showflags $(NSS_SSS_OBJS) $(NSS_SSS_SOLIB) $(NSS_SSS_SONAME) $(PAM_SSS_SOLIB) $(PAM_CLIENT)
install: all
- $(INSTALLCMD) -m 755 $(NSS_SSS_SOLIB) ${libdir}
- ln -fs $(NSS_SSS_SOLIB) ${libdir}/$(NSS_SSS_SONAME)
- $(INSTALLCMD) -m 755 $(PAM_SSS_SOLIB) ${libdir}/security
+ $(INSTALLCMD) -d $(DESTDIR)${libdir}
+ $(INSTALLCMD) -m 755 $(NSS_SSS_SOLIB) $(DESTDIR)${libdir}
+ ln -fs $(NSS_SSS_SOLIB) $(DESTDIR)${libdir}/$(NSS_SSS_SONAME)
+ $(INSTALLCMD) -d $(DESTDIR)${libdir}/security
+ $(INSTALLCMD) -m 755 $(PAM_SSS_SOLIB) $(DESTDIR)${libdir}/security
clean:
rm -f *.o *.a */*.o
diff --git a/sssd.spec b/sssd.spec
index 22c8d3ba..053a6566 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -1,5 +1,5 @@
# XXX What version to call this?
-%define sssd_release 2%{?dist}
+%define sssd_release 3%{?dist}
%define sssd_version 0.1.0
Name: sssd
@@ -24,6 +24,8 @@ BuildRequires: libtdb-devel
BuildRequires: libldb-devel
BuildRequires: dbus-devel
BuildRequires: dbus-libs
+BuildRequires: mozldap-devel
+BuildRequires: pam-devel
%description
Provides a set of daemons to manage access to remote directories and
@@ -38,7 +40,7 @@ services for projects like FreeIPA.
%build
# sssd
-cd server
+pushd server
./autogen.sh
%configure --prefix=%{_usr} \
--sysconfdir=%{_sysconfdir} \
@@ -47,13 +49,25 @@ cd server
--with-infopipe
make %{?_smp_mflags}
+popd
+
+pushd sss_client
+./autogen.sh
+%configure --libdir=/%{_lib}
+make %{?_smp_mflags}
+popd
%install
rm -rf $RPM_BUILD_ROOT
# sssd
-cd server
+pushd server
make install DESTDIR=$RPM_BUILD_ROOT
+popd
+
+pushd sss_client
+make install DESTDIR=$RPM_BUILD_ROOT
+popd
%clean
rm -rf $RPM_BUILD_ROOT
@@ -65,12 +79,17 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}/
%{_libdir}/ldb/memberof.so*
%{_sharedstatedir}/sss/
-# infopipe files
-%{_libexecdir}/sssd/sssd_info
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freeipa.sssd.infopipe.conf
%{_datadir}/%{name}/introspect/infopipe/org.freeipa.sssd.infopipe.Introspect.xml
+/%{_lib}/libnss_sss.so.0.0.1
+/%{_lib}/libnss_sss.so.2
+/%{_lib}/security/pam_sss.so
+
%changelog
+* Thu Mar 05 2009 Sumit Bose <sbose@redhat.com> - 0.1.0-3
+- added sss_client
+
* Mon Feb 23 2009 Jakub Hrozek <jhrozek@redhat.com> - 0.1.0-2
- Small cleanup and fixes in the spec file