From e8222252d279d6a1caa2ba19c7eddf056a22fd3f Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 9 Mar 2009 14:04:05 +0100 Subject: Correct use of chkconfig in initscript and specfile Review issues in specfile --- server/sysv/sssd | 2 +- sssd.spec | 11 ++++++----- 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 -- cgit