Problem with Nagios install
Henri Prudhomme
ntwrk_engr at yahoo.com
Sat Aug 13 00:52:08 GMT 2005
Thank you very much for the patch. Regretably, I find
myself too much of newbie to fully understand what to
do with it. And I haven't found the way on my own.
Could you guide me?
--- Vsevolod Stakhov <vsevolod at FreeBSD.org> wrote:
> Sergey Matveychuk wrote:
> > Henri Prudhomme wrote:
> >
> >> ===> nagios-plugins-1.4_3,1 depends on shared
> >> library:
> >> radiusclient.2 - not found
> >> ===> Verifying install for radiusclient.2 in
> >> /usr/ports/net/radiusclient
> >> ===> Returning to build of
> nagios-plugins-1.4_3,1
> >> Error: shared library "radiusclient.2" does not
> exist
> >> *** Error code 1
> >
> >
> > Try 'make clean' first. It's possible you have a
> work/.install_done.*
> > cookie for radiusclient port, but the port already
> was deinstalled with
> > pkg_delete.
> >
> > --
> > Sem.
>
> No, there are several problems. First is that now
> radiusclient is
> called radiusclient-ng. Also there are several
> problems with
> Makefiles and configure script. I tried to fix all
> that problems
> and prepared a patch.
> > diff -ruPN nagios-plugins.orig/Makefile
> nagios-plugins/Makefile
> --- nagios-plugins.orig/Makefile Fri Aug 12 14:39:42
> 2005
> +++ nagios-plugins/Makefile Fri Aug 12 14:39:59 2005
> @@ -7,7 +7,7 @@
>
> PORTNAME= nagios-plugins
> PORTVERSION= 1.4
> -PORTREVISION= 3
> +PORTREVISION= 4
> PORTEPOCH= 1
> CATEGORIES= net-mgmt
> MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
> @@ -65,7 +65,7 @@
> .endif
>
> .if defined(WITH_RADIUS)
> -LIB_DEPENDS+=
> radiusclient.2:${PORTSDIR}/net/radiusclient
> +LIB_DEPENDS+=
> radiusclient-ng.2:${PORTSDIR}/net/radiusclient
> CONFIGURE_ARGS+=--enable-radius
> PLIST_SUB+= SUB_RADIUS=""
> .else
> @@ -85,6 +85,7 @@
> CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
> PLIST_SUB+= SUB_PGSQL=""
> .else
> +CONFIGURE_ARGS+=--with-pgsql=${NONEXISTENT}
> PLIST_SUB+= SUB_PGSQL="@comment "
> .endif
>
> @@ -96,7 +97,8 @@
> PLIST_SUB+= SUB_LDAP="@comment "
> .endif
>
> -CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
> +CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
> LDFLAGS="-L${LOCALBASE}/lib" \
> + CPPFLAGS="-I${LOCALBASE}/include"
> USE_AUTOMAKE_VER= 19
> USE_AUTOCONF_VER= 259
> USE_GMAKE= yes
> diff -ruPN
> nagios-plugins.orig/files/patch-Makefile.am
> nagios-plugins/files/patch-Makefile.am
> --- nagios-plugins.orig/files/patch-Makefile.am Thu
> Jan 1 03:00:00 1970
> +++ nagios-plugins/files/patch-Makefile.am Fri Aug
> 12 14:39:59 2005
> @@ -0,0 +1,11 @@
> +--- plugins/Makefile.am.orig Fri Aug 12 14:09:44
> 2005
> ++++ plugins/Makefile.am Fri Aug 12 14:10:51 2005
> +@@ -3,7 +3,7 @@
> + VPATH = $(top_srcdir) $(top_srcdir)/lib
> $(top_srcdir)/plugins $(top_srcdir)/plugins/t
> +
> + INCLUDES = -I.. -I$(top_srcdir)/lib
> -I$(top_srcdir)/intl \
> +- at LDAPINCLUDE@ @PGINCLUDE@
> ++ at LDAPINCLUDE@ @PGINCLUDE@ @RADIUSINCLUDE@
> +
> + datadir = @datadir@
> + localedir = $(datadir)/locale
> diff -ruPN
> nagios-plugins.orig/files/patch-check_radius.c
> nagios-plugins/files/patch-check_radius.c
> --- nagios-plugins.orig/files/patch-check_radius.c
> Fri Aug 12 14:39:42 2005
> +++ nagios-plugins/files/patch-check_radius.c Fri
> Aug 12 14:39:59 2005
> @@ -1,15 +1,24 @@
> ---- plugins/check_radius.c.orig Wed Nov 24 01:46:39
> 2004
> -+++ plugins/check_radius.c Fri Dec 3 20:37:30 2004
> -@@ -103,6 +103,7 @@
> - int result;
> +--- plugins/check_radius.c.orig Sun Dec 26 02:17:44
> 2004
> ++++ plugins/check_radius.c Fri Aug 12 13:53:36 2005
> +@@ -27,7 +27,7 @@
> + #include "utils.h"
> + #include "netutils.h"
> +
> +-#include <radiusclient.h>
> ++#include <radiusclient-ng.h>
> +
> + int process_arguments (int, char **);
> + void print_help (void);
> +@@ -108,6 +108,7 @@
> + int result = STATE_UNKNOWN;
> UINT4 client_id;
> char *str;
> + rc_handle *rh;
>
> setlocale (LC_ALL, "");
> bindtextdomain (PACKAGE, LOCALEDIR);
> -@@ -112,32 +113,35 @@
> - usage (_("Could not parse arguments\n"));
> +@@ -117,32 +118,35 @@
> + usage4 (_("Could not parse arguments"));
>
> str = strdup ("dictionary");
> - if ((config_file && rc_read_config (config_file))
> ||
> diff -ruPN
> nagios-plugins.orig/files/patch-configure.in
> nagios-plugins/files/patch-configure.in
> --- nagios-plugins.orig/files/patch-configure.in Fri
> Aug 12 14:39:42 2005
> +++ nagios-plugins/files/patch-configure.in Fri Aug
> 12 14:39:59 2005
> @@ -1,5 +1,5 @@
> ---- configure.in.orig Fri Feb 4 01:44:27 2005
> -+++ configure.in Sun Feb 27 15:17:24 2005
> +--- configure.in.orig Fri Feb 4 03:44:27 2005
> ++++ configure.in Fri Aug 12 14:34:54 2005
> @@ -10,7 +10,7 @@
> RELEASE=1
> AC_SUBST(RELEASE)
> @@ -18,7 +18,29 @@
>
> AC_ARG_WITH(trusted_path,
> ACX_HELP_STRING([--with-trusted-path=PATH],
> -@@ -181,27 +179,35 @@
> +@@ -137,11 +135,12 @@
> + ACX_HELP_STRING([--with-pgsql=DIR],
> + [sets path to pgsql installation]),
> + PGSQL=$withval,)
> ++if test -d "$PGSQL"; then
> + AC_CHECK_LIB(crypt,main)
> + if test "$ac_cv_lib_crypt_main" = "yes"; then
> + if test -n "$PGSQL"; then
> +- LDFLAGS="$LDFLAGS -L$PGSQL/lib"
> +- CPPFLAGS="$CPPFLAGS -I$PGSQL/include"
> ++ LDFLAGS="${LDFLAGS} -L$PGSQL/lib"
> ++ CPPFLAGS="${CPPFLAGS} -I$PGSQL/include"
> + fi
> + AC_CHECK_LIB(pq,PQsetdbLogin,,,-lcrypt)
> + if test "$ac_cv_lib_pq_PQsetdbLogin" = "yes";
> then
> +@@ -178,30 +177,42 @@
> + AC_MSG_WARN([Skipping PostgreSQL plugin
> (check_pgsql)])
> + AC_MSG_WARN([install lib crypt and PostgreSQL
> libs to compile this plugin (see REQUIREMENTS).])
> + fi
> ++else
> ++ AC_MSG_WARN([Skipping PostgreSQL plugin
> (check_pgsql)])
> ++ AC_MSG_WARN([PostgreSQL directory has not been
> found])
> ++fi
> LIBS="$_SAVEDLIBS"
> CPPFLAGS="$_SAVEDCPPFLAGS"
>
> @@ -27,11 +49,12 @@
> dnl Check for radius libraries
> _SAVEDLIBS="$LIBS"
> -AC_CHECK_LIB(radiusclient,rc_read_config)
>
-+AC_CHECK_LIB(radiusclient,rc_read_config,,,-L${LOCALBASE}/lib)
> - if test "$ac_cv_lib_radiusclient_rc_read_config" =
> "yes"; then
> +-if test "$ac_cv_lib_radiusclient_rc_read_config" =
> "yes"; then
>
++AC_CHECK_LIB(radiusclient-ng,rc_read_config,,,-L${LOCALBASE}/lib)
> ++if test
> "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes";
> then
> EXTRAS="$EXTRAS check_radius"
> - RADIUSLIBS="-lradiusclient"
> -+ RADIUSLIBS="-L${LOCALBASE}/lib -lradiusclient"\
> ++ RADIUSLIBS="-L${LOCALBASE}/lib
> -lradiusclient-ng"\
> + RADIUSINCLUDE="-I${LOCALBASE}/include"
> AC_SUBST(RADIUSLIBS)
> + AC_SUBST(RADIUSINCLUDE)
> @@ -60,7 +83,7 @@
> AC_CHECK_FUNCS(ldap_set_option)
> EXTRAS="$EXTRAS check_ldap"
> AC_CHECK_FUNCS(ldap_init ldap_set_option
> ldap_get_option ldap_start_tls_s)
> -@@ -210,6 +216,7 @@
> +@@ -210,6 +221,7 @@
> AC_MSG_WARN([install LDAP libs to compile this
> plugin (see REQUIREMENTS).])
> fi
> LIBS="$_SAVEDLIBS"
> @@ -68,7 +91,7 @@
>
>
> dnl Check for mysql libraries
> -@@ -585,234 +592,11 @@
> +@@ -585,234 +597,11 @@
>
> AC_PATH_PROG(PATH_TO_PS,ps)
>
> @@ -308,7 +331,7 @@
>
> if test -n "$ac_cv_ps_varlist" ; then
> AC_DEFINE_UNQUOTED(PS_VARLIST,$ac_cv_ps_varlist,
> -@@ -1165,6 +949,8 @@
> +@@ -1165,6 +954,8 @@
>
> AC_DEFINE_UNQUOTED(WHO_COMMAND,"$ac_cv_path_to_who",
> [path and arguments for invoking 'who'])
>
> @@ -317,7 +340,7 @@
> AC_PATH_PROG(PATH_TO_SNMPGET,snmpget)
> if test -x "$PATH_TO_SNMPGET"
> then
> -@@ -1187,7 +973,10 @@
> +@@ -1187,7 +978,10 @@
> else
> AC_MSG_WARN([Tried $PERL - install Net::SNMP perl
> module if you want to use the perl snmp plugins])
> fi
> @@ -328,7 +351,7 @@
> AC_PATH_PROG(PATH_TO_QUAKESTAT,quakestat)
> AC_PATH_PROG(PATH_TO_QSTAT,qstat)
>
> -@@ -1209,7 +998,10 @@
> +@@ -1209,7 +1003,10 @@
>
>
AC_DEFINE_UNQUOTED(PATH_TO_QSTAT,"$ac_cv_path_to_qstat",
> [path to qstat/quakestat])
> fi
> @@ -339,7 +362,7 @@
> AC_PATH_PROG(PATH_TO_FPING,fping)
> if test -x "$PATH_TO_FPING"
> then
> -@@ -1218,6 +1010,7 @@
> +@@ -1218,6 +1015,7 @@
> else
> AC_MSG_WARN([Get fping from http://www.fping.com
> in order to make check_fping plugin])
> fi
> @@ -347,7 +370,7 @@
>
> AC_PATH_PROG(PATH_TO_SSH,ssh)
>
> -@@ -1280,32 +1073,12 @@
> +@@ -1280,32 +1078,12 @@
> dnl end if for PATH_TO_SWAP
> fi
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the freebsd-ports
mailing list