Fixed BZ #660072. Added root to sfcb group in %pre section.

This commit is contained in:
praveenp 2011-01-07 15:55:51 -06:00
parent cf09783257
commit 02eb3d99ed
3 changed files with 13 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ sblim-sfcb-1.3.7.tar.bz2
sblim-sfcb-1.3.8.tar.bz2
/sblim-sfcb-1.3.9.tar.bz2
/sblim-sfcb-1.3.10.tar.bz2
/sfcb.service

View File

@ -8,7 +8,7 @@ Name: sblim-sfcb
Summary: Small Footprint CIM Broker
URL: http://www.sblim.org
Version: 1.3.10
Release: 1%{?dist}
Release: 2%{?dist}
Group: Applications/System
License: EPL
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
Patch3: sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
Patch4: sblim-sfcb-1.3.10-CMGetCharPtr.patch
Source1: sfcb.service
Provides: cim-server
Requires: cim-schema
BuildRequires: libcurl-devel
@ -84,12 +85,15 @@ echo "%{_libdir}/sfcb/*.so" >> _pkg_list
#echo "%{_libdir}/sfcb/*.la" >> _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
rm -rf $RPM_BUILD_ROOT
%pre
/usr/bin/getent group sfcb >/dev/null || /usr/sbin/groupadd -r sfcb
/usr/sbin/usermod -a -G sfcb root > /dev/null 2>&1 || :
%post
%{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb &>/dev/null || :
@ -110,7 +114,7 @@ if [ $1 -gt 1 ]; then
fi
%files -f _pkg_list
/lib/systemd/system/sfcb.service
#%files devel
#%defattr(-,root,root)
##%{_includedir}/*
@ -119,6 +123,11 @@ fi
#%doc COPYING README
%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
- Update to sblim-sfcb-1.3.10
- Fix CMGetCharPtr macro (patch by Kamil Dudka)

View File

@ -1 +1,2 @@
157c4ce334e75c3de2ae76742f3f79a5 sblim-sfcb-1.3.10.tar.bz2
494b9bdd96c1d8d90dafc26cd5534082 sfcb.service