version 1.99, 2007/09/06 01:28:08
|
version 1.102, 2007/09/12 20:23:46
|
|
|
# be lost the next time this file is regenerated and submitted to CVS. | # be lost the next time this file is regenerated and submitted to CVS. |
# | # |
| |
|
%define packageVersion 2 |
Version: 2.7.0 | Version: 2.7.0 |
Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}} |
Release: %{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}} |
Epoch: 1 | Epoch: 1 |
| |
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec | # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec |
|
|
# (chkconfig --level=345 tog-pegasus on) after installation. | # (chkconfig --level=345 tog-pegasus on) after installation. |
# | # |
| |
%define srcRelease 1 |
|
Summary: OpenPegasus WBEM Services for Linux | Summary: OpenPegasus WBEM Services for Linux |
Name: tog-pegasus | Name: tog-pegasus |
Group: Systems Management/Base | Group: Systems Management/Base |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
URL: http://www.openpegasus.org | URL: http://www.openpegasus.org |
| |
Source: %{name}-%{version}-%{srcRelease}.tar.gz |
Source: %{name}-%{version}-%{packageVersion}.tar.gz |
# | # |
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec |
| |
|
|
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec |
| |
# When Privilege Separation is enabled, create the 'cimsrvr' user and | # When Privilege Separation is enabled, create the 'cimsrvr' user and |
# 'pegasus' group which are used as the context of the cimservermain process |
# 'cimsrvr' group which are used as the context of the cimservermain process |
if [ $1 -gt 0 ]; then | if [ $1 -gt 0 ]; then |
/usr/sbin/groupadd pegasus > /dev/null 2>&1 || :; |
/usr/sbin/groupadd cimsrvr > /dev/null 2>&1 || :; |
/usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \ | /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \ |
-g pegasus -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR cimsrvr \ |
-g cimsrvr -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR cimsrvr \ |
> /dev/null 2>&1 || :; | > /dev/null 2>&1 || :; |
fi | fi |
| |
|
|
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec |
| |
# When Privilege Separation is enabled, delete the 'cimsrvr' user and | # When Privilege Separation is enabled, delete the 'cimsrvr' user and |
# 'pegasus' group which are used as the context of the cimservermain process |
# 'cimsrvr' group which are used as the context of the cimservermain process |
if [ $1 -eq 0 ]; then | if [ $1 -eq 0 ]; then |
/usr/sbin/userdel cimsrvr > /dev/null 2>&1 || :; | /usr/sbin/userdel cimsrvr > /dev/null 2>&1 || :; |
/usr/sbin/groupdel pegasus > /dev/null 2>&1 || :; |
/usr/sbin/groupdel cimsrvr > /dev/null 2>&1 || :; |
fi | fi |
| |
%files | %files |
%defattr(600, cimsrvr, pegasus, 700) |
%defattr(600, cimsrvr, cimsrvr, 700) |
/var/lib/Pegasus/repository | /var/lib/Pegasus/repository |
%defattr(600, root, pegasus, 755) | %defattr(600, root, pegasus, 755) |
%dir /usr/share/doc/tog-pegasus-2.7 | %dir /usr/share/doc/tog-pegasus-2.7 |
|
|
%dir /usr/%PEGASUS_ARCH_LIB/Pegasus/providers | %dir /usr/%PEGASUS_ARCH_LIB/Pegasus/providers |
| |
%dir %attr(755, root, pegasus) /etc/Pegasus | %dir %attr(755, root, pegasus) /etc/Pegasus |
%dir %attr(755, cimsrvr, pegasus) /var/run/tog-pegasus |
%dir %attr(755, cimsrvr, cimsrvr) /var/run/tog-pegasus |
%dir %attr(1755,cimsrvr,pegasus) /var/run/tog-pegasus/socket |
%dir %attr(1755,cimsrvr,cimsrvr) /var/run/tog-pegasus/socket |
%dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace | %dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace |
| |
/usr/share/Pegasus/mof/CIM29/* | /usr/share/Pegasus/mof/CIM29/* |
|
|
%attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1 | %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1 |
%attr(750,root,pegasus) /usr/share/Pegasus/scripts/* | %attr(750,root,pegasus) /usr/share/Pegasus/scripts/* |
%attr(644,root,pegasus) /usr/share/man/man1/* | %attr(644,root,pegasus) /usr/share/man/man1/* |
%attr(640,root,pegasus) /usr/share/man/man8/* |
%attr(644,root,pegasus) /usr/share/man/man8/* |
| |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.7/Admin_Guide_Release.pdf | %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.7/Admin_Guide_Release.pdf |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.7/PegasusSSLGuidelines.htm | %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.7/PegasusSSLGuidelines.htm |
|
|
%files test | %files test |
%defattr(-,root,pegasus,-) | %defattr(-,root,pegasus,-) |
/usr/share/Pegasus/test | /usr/share/Pegasus/test |
%defattr(600,cimsrvr, pegasus,700) |
%defattr(600,cimsrvr, cimsrvr,700) |
/var/lib/Pegasus/testrepository | /var/lib/Pegasus/testrepository |
%endif | %endif |