summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-03-09 14:04:05 +0100
committerSimo Sorce <ssorce@redhat.com>2009-03-10 09:41:15 -0400
commite8222252d279d6a1caa2ba19c7eddf056a22fd3f (patch)
treed9f59aeba86811a8ca87b377d69621977911dd6c
parentb8919e480b4ad25fa03fa3961043e6dcfa28991b (diff)
downloadsssd-e8222252d279d6a1caa2ba19c7eddf056a22fd3f.tar.gz
sssd-e8222252d279d6a1caa2ba19c7eddf056a22fd3f.tar.bz2
sssd-e8222252d279d6a1caa2ba19c7eddf056a22fd3f.zip
Correct use of chkconfig in initscript and specfile
Review issues in specfile
-rw-r--r--server/sysv/sssd2
-rw-r--r--sssd.spec11
2 files changed, 7 insertions, 6 deletions
diff --git a/server/sysv/sssd b/server/sysv/sssd
index e4f6c47b..c1364b90 100644
--- a/server/sysv/sssd
+++ b/server/sysv/sssd
@@ -1,7 +1,7 @@
#!/bin/sh
#
#
-# chkconfig: 2345 40 60
+# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
# and authentication mechanisms. It provides an NSS and PAM
# interface toward the system and a pluggable backend system to
diff --git a/sssd.spec b/sssd.spec
index 156fcbae..956f136e 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -50,9 +50,7 @@ services for projects like FreeIPA.
# sssd
pushd server
./autogen.sh
-%configure --prefix=%{_usr} \
- --sysconfdir=%{_sysconfdir} \
- --without-tests \
+%configure --without-tests \
--without-policykit \
--with-infopipe \
--with-init-dir=%{_initrddir} \
@@ -91,17 +89,20 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/sss_usermod
%{_sbindir}/sss_groupadd
%{_sbindir}/sss_groupdel
+%{_sbindir}/sss_groupmod
%{_libexecdir}/%{servicename}/
%{_libdir}/%{name}/
%{_libdir}/ldb/memberof.so*
%{_sharedstatedir}/sss/
%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
/%{_lib}/libnss_sss.so.2
/%{_lib}/security/pam_sss.so
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add %{servicename}
%preun
if [ $1 = 0 ]; then