Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
playground
:
monitoring
>
nrpe3
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
nrpe.spec
@@ -122,7 +122,7 @@ mkdir selinux install -pm 644 %{SOURCE3} README.SELinux.rst %if 0%{?rhel} < 7 -cp -p %{SOURCE4} selinux/%my{name}_epel.te +cp -p %{SOURCE4} selinux/%{myname}_epel.te %else cp -p %{SOURCE5} selinux/%{myname}_epel.te %endif @@ -171,8 +171,8 @@ %preun %if 0%{?el6} if [ $1 = 0 ]; then - /sbin/service %{name} stop > /dev/null 2>&1 || : - /sbin/chkconfig --del %{name} || : + /sbin/service %{myname} stop > /dev/null 2>&1 || : + /sbin/chkconfig --del %{myname} || : fi %else %systemd_preun nrpe.service @@ -180,7 +180,7 @@ %post %if 0%{?el6} -/sbin/chkconfig --add %{name} || : +/sbin/chkconfig --add %{myname} || : %else %systemd_post nrpe.service %endif @@ -188,7 +188,7 @@ %postun %if 0%{?el6} if [ "$1" -ge "1" ]; then - /sbin/service %{name} condrestart > /dev/null 2>&1 || : + /sbin/service %{myname} condrestart > /dev/null 2>&1 || : fi %else %systemd_postun_with_restart nrpe.service @@ -198,15 +198,15 @@ %post selinux %if 0%{?el6} if [ "$1" -le "1" ]; then # Fist install - semodule -i %{_datadir}/selinux/packages/%{name}/%{name}_epel.pp 2>/dev/null || : + semodule -i %{_datadir}/selinux/packages/%{myname}/%{myname}_epel.pp 2>/dev/null || : fixfiles -R %{name} restore || : - /sbin/service %{name} condrestart > /dev/null 2>&1 || : + /sbin/service %{myname} condrestart > /dev/null 2>&1 || : fi %else if [ "$1" -le "1" ]; then # Fist install - semodule -i %{_datadir}/selinux/packages/%{name}/%{name}_epel.pp 2>/dev/null || : + semodule -i %{_datadir}/selinux/packages/%{myname}/%{myname}_epel.pp 2>/dev/null || : fixfiles -R %{name} restore || : - %systemd_postun_with_restart %{name}.service + %systemd_postun_with_restart %{myname}.service fi %endif %endif @@ -215,15 +215,15 @@ %preun selinux %if 0%{?el6} if [ "$1" -lt "1" ]; then # Final removal - semodule -r %{name}_epel 2>/dev/null || : + semodule -r %{myname}_epel 2>/dev/null || : fixfiles -R %{name} restore || : - /sbin/service %{name} condrestart > /dev/null 2>&1 || : + /sbin/service %{myname} condrestart > /dev/null 2>&1 || : fi %else if [ "$1" -lt "1" ]; then # Final removal - semodule -r %{name}_epel 2>/dev/null || : + semodule -r %{myname}_epel 2>/dev/null || : fixfiles -R %{name} restore || : - %systemd_postun_with_restart %{name}.service + %systemd_postun_with_restart %{myname}.service fi %endif %endif @@ -232,7 +232,7 @@ %postun selinux if [ "$1" -ge "1" ]; then # Upgrade # Replaces the module if it is already loaded - semodule -i %{_datadir}/selinux/packages/%{name}/%{name}_epel.pp 2>/dev/null || : + semodule -i %{_datadir}/selinux/packages/%{myname}/%{myname}_epel.pp 2>/dev/null || : # no need to restart the daemon fi %endif @@ -241,19 +241,19 @@ %if 0%{?el6} %{_initrddir}/nrpe %else -%{_unitdir}/%{name}.service +%{_unitdir}/%{myname}.service %endif %config(noreplace) %{_sysconfdir}/xinetd.d/nrpe %{_sbindir}/nrpe %dir %{_sysconfdir}/nrpe.d %dir %{_sysconfdir}/nagios/nrpe.d %config(noreplace) %{_sysconfdir}/nagios/nrpe.cfg -%config(noreplace) %{_sysconfdir}/sysconfig/%{name} +%config(noreplace) %{_sysconfdir}/sysconfig/%{myname} %if 0%{?fedora} > 14 || 0%{?rhel} > 6 -%config(noreplace) %{_tmpfilesdir}/%{name}.conf +%config(noreplace) %{_tmpfilesdir}/%{myname}.conf %endif %doc CHANGELOG.md LICENSE.md LEGAL README.md README.SSL.md SECURITY.md docs/NRPE.pdf -%dir %attr(775, %{name}, %{name}) %{_localstatedir}/run/%{name} +%dir %attr(775, %{nsusr}, %{nsgrp}) %{_localstatedir}/run/%{myname} %files -n nagios-plugins-nrpe3 %{_libdir}/nagios/plugins/check_nrpe3 @@ -262,7 +262,7 @@ %if 0%{?rhel} > 5 %files selinux %doc README.SELinux.rst -%{_datadir}/selinux/packages/%{name}/%{name}_epel.pp +%{_datadir}/selinux/packages/%{myname}/%{myname}_epel.pp %endif %changelog