nagios_nrpe: Fix for bug 12337

Message ID 20200907182646.2815-1-ahb.ipfire@gmail.com
State Accepted
Commit ca673f8df6e5d7a3e7006b3a791f47c2ede6aa44
Headers
Series nagios_nrpe: Fix for bug 12337 |

Commit Message

Adolf Belka Sept. 7, 2020, 6:26 p.m. UTC
  - added pid_file=/var/run to the configure statement
  to give the required pid directory in the default nrpe.cfg file

Signed-off-by: Adolf Belka <ahb.ipfire@gmail.com>
---
 lfs/nagios_nrpe | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Michael Tremer Sept. 10, 2020, 11:58 a.m. UTC | #1
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>

> On 7 Sep 2020, at 19:26, Adolf Belka <ahb.ipfire@gmail.com> wrote:
> 
> - added pid_file=/var/run to the configure statement
>  to give the required pid directory in the default nrpe.cfg file
> 
> Signed-off-by: Adolf Belka <ahb.ipfire@gmail.com>
> ---
> lfs/nagios_nrpe | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe
> index bb736a997..075bfdef9 100644
> --- a/lfs/nagios_nrpe
> +++ b/lfs/nagios_nrpe
> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
> DIR_APP    = $(DIR_SRC)/$(THISAPP)
> TARGET     = $(DIR_INFO)/$(THISAPP)
> PROG       = nagios_nrpe
> -PAK_VER    = 5
> +PAK_VER    = 6
> 
> DEPS       = nagios-plugins
> 
> @@ -82,6 +82,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
> 		--prefix=/usr \
> 		--libexecdir=/usr/lib/nagios \
> 		--sysconfdir=/etc/nagios \
> +		--with-piddir=/var/run \
> 		--with-init-type=sysv \
> 		--with-nrpe-user=nobody \
> 		--with-nrpe-group=nobody \
> -- 
> 2.28.0
>
  

Patch

diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe
index bb736a997..075bfdef9 100644
--- a/lfs/nagios_nrpe
+++ b/lfs/nagios_nrpe
@@ -32,7 +32,7 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = nagios_nrpe
-PAK_VER    = 5
+PAK_VER    = 6
 
 DEPS       = nagios-plugins
 
@@ -82,6 +82,7 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 		--prefix=/usr \
 		--libexecdir=/usr/lib/nagios \
 		--sysconfdir=/etc/nagios \
+		--with-piddir=/var/run \
 		--with-init-type=sysv \
 		--with-nrpe-user=nobody \
 		--with-nrpe-group=nobody \