Fixed BZ #660072. Added root to sfcb group in %pre section.
This commit is contained in:
parent
cf09783257
commit
02eb3d99ed
|
@ -2,3 +2,4 @@ sblim-sfcb-1.3.7.tar.bz2
|
||||||
sblim-sfcb-1.3.8.tar.bz2
|
sblim-sfcb-1.3.8.tar.bz2
|
||||||
/sblim-sfcb-1.3.9.tar.bz2
|
/sblim-sfcb-1.3.9.tar.bz2
|
||||||
/sblim-sfcb-1.3.10.tar.bz2
|
/sblim-sfcb-1.3.10.tar.bz2
|
||||||
|
/sfcb.service
|
||||||
|
|
|
@ -8,7 +8,7 @@ Name: sblim-sfcb
|
||||||
Summary: Small Footprint CIM Broker
|
Summary: Small Footprint CIM Broker
|
||||||
URL: http://www.sblim.org
|
URL: http://www.sblim.org
|
||||||
Version: 1.3.10
|
Version: 1.3.10
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: EPL
|
License: EPL
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
||||||
|
@ -18,6 +18,7 @@ Patch1: sblim-sfcb-1.3.7-initscript.patch
|
||||||
Patch2: sblim-sfcb-1.3.7-close_logging.patch
|
Patch2: sblim-sfcb-1.3.7-close_logging.patch
|
||||||
Patch3: sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
|
Patch3: sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
|
||||||
Patch4: sblim-sfcb-1.3.10-CMGetCharPtr.patch
|
Patch4: sblim-sfcb-1.3.10-CMGetCharPtr.patch
|
||||||
|
Source1: sfcb.service
|
||||||
Provides: cim-server
|
Provides: cim-server
|
||||||
Requires: cim-schema
|
Requires: cim-schema
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
|
@ -84,12 +85,15 @@ echo "%{_libdir}/sfcb/*.so" >> _pkg_list
|
||||||
#echo "%{_libdir}/sfcb/*.la" >> _pkg_list
|
#echo "%{_libdir}/sfcb/*.la" >> _pkg_list
|
||||||
|
|
||||||
cat _pkg_list
|
cat _pkg_list
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
|
||||||
|
install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT/lib/systemd/system/sfcb.service
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/bin/getent group sfcb >/dev/null || /usr/sbin/groupadd -r sfcb
|
/usr/bin/getent group sfcb >/dev/null || /usr/sbin/groupadd -r sfcb
|
||||||
|
/usr/sbin/usermod -a -G sfcb root > /dev/null 2>&1 || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb &>/dev/null || :
|
%{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb &>/dev/null || :
|
||||||
|
@ -110,7 +114,7 @@ if [ $1 -gt 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files -f _pkg_list
|
%files -f _pkg_list
|
||||||
|
/lib/systemd/system/sfcb.service
|
||||||
#%files devel
|
#%files devel
|
||||||
#%defattr(-,root,root)
|
#%defattr(-,root,root)
|
||||||
##%{_includedir}/*
|
##%{_includedir}/*
|
||||||
|
@ -119,6 +123,11 @@ fi
|
||||||
#%doc COPYING README
|
#%doc COPYING README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 7 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.3.10-2
|
||||||
|
- Following the BZ#660072, added sfcb.service file for compliance with systemd
|
||||||
|
- Since sfcb's PAM authentication requires, the user to be in group sfcb,
|
||||||
|
- added the root user to "sfcb" group in %pre section.
|
||||||
|
|
||||||
* Mon Dec 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.10-1
|
* Mon Dec 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.10-1
|
||||||
- Update to sblim-sfcb-1.3.10
|
- Update to sblim-sfcb-1.3.10
|
||||||
- Fix CMGetCharPtr macro (patch by Kamil Dudka)
|
- Fix CMGetCharPtr macro (patch by Kamil Dudka)
|
||||||
|
|
Loading…
Reference in New Issue