Source

woocode / sa-auto / src / nagios-nrpe.sh

Full commit
#!/bin/sh
. ./set_app_env.sh;

L_CFLAGS="";
L_LDFLAGS="";
CFLAGS=" $G_CFLAGS $L_CFLAGS";export CFLAGS;
LDFLAGS="-L$APP_LIB/openssl/lib $G_LDFLAGS $L_LDFLAGS";export LDFLAGS;
CPPFLAGS=" $G_CPPFLAGS $L_CPPFLAGS";export CPPFLAGS;

PKG=$NRPE
PKG_NAME=$(echo $PKG | cut -d- -f1,2)

rm -rf $PKG
# rm -rf $APP_LIB/$PKG
# rm -f $APP_LIB/$PKG_NAME

x $PKG.tar.gz

cd $PKG

# --with-nrpe-port=$NAGIOS_USER
./configure --prefix=$APP_SVR/$NAGIOS_CORE \
            --with-nrpe-user=$NAGIOS_USER \
            --with-nrpe-group=$NAGIOS_GROUP \
            --with-nagios-user=$NAGIOS_USER \
            --with-nagios-group=$NAGIOS_GROUP \
            --with-ssl=$APP_LIB/openssl \
            --with-ssl-lib=$APP_LIB/openssl/lib
            # --with-openssl=${APP_LIB}/openssl
            # --with-mysql=${APP_LIB}/mysql5
            # --with-httpd-conf=${APP}/conf/apache22/sites \
            # --with-gd-lib=${APP_LIB}/gd/lib \
            # --with-gd-inc=${APP_LIB}/gd/include \
            # --disable-cygwin

make all $MAKEOPT

make install

# ln -sf $APP_LIB/$PKG $APP_LIB/$PKG_NAME