]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/nagios_nrpe
buildprocess: Add extra metadata to pak lfs files
[people/pmueller/ipfire-2.x.git] / lfs / nagios_nrpe
index 6d16661bda965e4f04c4cc59e5dcab08389581fb..cdbe747b4370374570263bc2feb65546b3cc2f0d 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2011  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2021  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
 
 include Config
 
-VER        = 2.12
+SUMMARY    = Nagios Remote Plug-In Executor
+
+VER        = 4.0.3
 
 THISAPP    = nrpe-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
-
 PROG       = nagios_nrpe
-PAK_VER    = 3
+PAK_VER    = 9
 
-DEPS       = "nagios-plugins"
+DEPS       = nagios-plugins
+
+SERVICES   = nrpe
 
 ###############################################################################
 # Top-level Rules
@@ -45,7 +48,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = b2d75e2962f1e3151ef58794d60c9e97
+$(DL_FILE)_MD5 = 42252d3c721c87ebb5e38b748f187e8d
 
 install : $(TARGET)
 
@@ -78,17 +81,30 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && ./configure \
                --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 \
                --with-nagios-user=nobody \
-               --with-nagios-group=nobody \
-               --enable-command-args \
-               ac_cv_lib_wrap_main=no
+               --with-nagios-group=nobody
 
-       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make all $(MAKETUNING)
        cd $(DIR_APP) && make install
+       cd $(DIR_APP) && make install-config
+
+       # install initscript
+       $(call INSTALL_INITSCRIPTS,$(SERVICES))
+
+       install -v -m 644 ${DIR_SRC}/config/backup/includes/nagios_nrpe \
+               /var/ipfire/backup/addons/includes/nagios_nrpe
+
+       # Prevent NRPE binary from being owned by "nobody"
+       chown root:root /usr/lib/nagios/check_nrpe
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)