- cd $(DIR_APP) && ./configure --prefix=/usr/nagios --with-cgiurl=/nagios/cgi-bin \
- --with-htmurl=/nagios --with-nagios-user=nobody \
- --with-nagios-group=nobody
- cd $(DIR_APP) && make all
- cd $(DIR_APP) && make install
- ### Plugins
- cd $(DIR_SRC) && tar zxf $(DIR_DL)/nagios-plugins-1.4.3.tar.gz
- cd $(DIR_SRC)/nagios-plugins-1.4.3 && ./configure --prefix=/usr/nagios --with-ping-command="-n %s -c %d"
- cd $(DIR_SRC)/nagios-plugins-1.4.3 && make
- cd $(DIR_SRC)/nagios-plugins-1.4.3 && make install
+ cd $(DIR_APP) && \
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/nagios \
+ --datadir=/usr/share/nagios \
+ --sbindir=/usr/share/nagios/cgi-bin \
+ --localstatedir=/var/nagios \
+ --libexecdir=/usr/lib/nagios \
+ --with-lockfile=/var/lock/nagios.lock \
+ --with-nagios-user=nobody \
+ --with-nagios-group=nobody \
+ --with-command-user=nobody \
+ --with-command-group=nobody \
+ --enable-embedded-perl \
+ --with-perlcache \
+ --with-httpd-conf=/etc/httpd/conf/conf.d \
+ --enable-nanosleep
+ cd $(DIR_APP) && make all $(MAKETUNING)
+ cd $(DIR_APP) && make install install-init install-commandmode install-config install-webconf
+
+ cd $(DIR_SRC) && tar xfz $(DIR_DL)/nagios-plugins-1.4.13.tar.gz
+ cd $(DIR_SRC)/nagios-plugins* && ./configure --prefix=/usr \
+ --libexecdir=/usr/lib/nagios \
+ --with-nagios-user=nobody --with-nagios-group=nobody
+ cd $(DIR_SRC)/nagios-plugins* && make $(MAKETUNING)
+ cd $(DIR_SRC)/nagios-plugins* && make install
+ chown -R nobody:nobody /var/nagios
+ ln -s /etc/init.d/nagios /etc/rc.d/rc3.d/S67nagios
+ ln -s /etc/init.d/nagios /etc/rc.d/rc0.d/K33nagios
+ ln -s /etc/init.d/nagios /etc/rc.d/rc6.d/K33nagios