]> git.pld-linux.org Git - packages/nagios-nrpe.git/commitdiff
- use user/group macros
authorankry <ankry@pld-linux.org>
Tue, 17 Aug 2004 21:34:34 +0000 (21:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-nrpe.spec -> 1.6

nagios-nrpe.spec

index e85afee4eaed6a67dc5f55c8d50ac324bfca11a4..21f146afd9cc9095ce74097351f9facc13205d17 100644 (file)
@@ -1,3 +1,5 @@
+%define        nsusr           nagios
+%define                nsgrp           nagios
 Summary:       Nagios remote plugin execution service/plugin
 Summary(pl):   Demon i wtyczka zdalnego wywo³ywania wtyczek Nagios
 Name:          nagios-nrpe
@@ -17,6 +19,8 @@ Requires(pre):        /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
 Requires(post,postun): /sbin/chkconfig
 Requires:      nagios-plugins
+Provides:      group(%{nsgrp})
+Provides:      user(%{nsusr})
 Obsoletes:     netsaint-nrpe
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -24,8 +28,6 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _datadir        %{_prefix}/share/%{name}
 %define                _plugindir      %{_libdir}/nagios/plugins
 %define                _localstatedir  %{_var}/log/nagios
-%define        nsusr           nagios
-%define                nsgrp           nagios
 %define                nsport          5666
 
 %description
@@ -118,8 +120,8 @@ fi
 
 %postun
 if [ "$1" = "0" ]; then
-       /usr/sbin/userdel %{nsusr}
-       /usr/sbin/groupdel %{nsgrp}
+       %userremove %{nsusr}
+       %groupremove %{nsgrp}
 fi
 
 %files
This page took 0.066034 seconds and 4 git commands to generate.