aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2008-02-04 19:57:24 +0000
committerWesley Shields <wxs@FreeBSD.org>2008-02-04 19:57:24 +0000
commit4273708f0daf295d22353a1ab69dcbdea6b89160 (patch)
tree8594b58ed15d9b085fa3bcc2a57d50c3af161533 /net-mgmt
parent0797346dcb87aaaeee040fa29640d0d85baee783 (diff)
downloadports-4273708f0daf295d22353a1ab69dcbdea6b89160.tar.gz
ports-4273708f0daf295d22353a1ab69dcbdea6b89160.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios/Makefile3
-rw-r--r--net-mgmt/nagios/files/patch-configure.in42
-rw-r--r--net-mgmt/nagios2/Makefile3
-rw-r--r--net-mgmt/nagios2/files/patch-configure.in42
4 files changed, 80 insertions, 10 deletions
diff --git a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile
index 6996ed70a506..5c921156c3d1 100644
--- a/net-mgmt/nagios/Makefile
+++ b/net-mgmt/nagios/Makefile
@@ -7,6 +7,7 @@
PORTNAME= nagios
PORTVERSION= 2.10
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nagios
@@ -20,7 +21,7 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagio
USE_GETOPT_LONG= yes
USE_ICONV= yes
USE_PERL5_BUILD= yes
-USE_AUTOTOOLS= autoconf:261
+USE_AUTOTOOLS= autoconf:261 libltdl:15
USE_RC_SUBR= nagios.sh
CONFLICTS= nagios-[13].*
diff --git a/net-mgmt/nagios/files/patch-configure.in b/net-mgmt/nagios/files/patch-configure.in
index d10acf12fd5e..720af1c7f367 100644
--- a/net-mgmt/nagios/files/patch-configure.in
+++ b/net-mgmt/nagios/files/patch-configure.in
@@ -1,5 +1,5 @@
---- configure.in.orig Thu Feb 10 02:00:10 2005
-+++ configure.in Sat Feb 12 14:11:54 2005
+--- configure.in.orig 2007-10-22 00:09:51.000000000 +0930
++++ configure.in 2008-01-30 23:25:03.000000000 +1030
@@ -6,7 +6,6 @@
AC_INIT(base/nagios.c)
@@ -7,8 +7,32 @@
-AC_PREFIX_DEFAULT(/usr/local/nagios)
PKG_NAME=nagios
- PKG_VERSION="2.0b2"
-@@ -137,7 +136,7 @@
+ PKG_VERSION="2.10"
+@@ -60,7 +59,15 @@
+ dnl Test for pthreads support - taken from ICU FreeBSD Port configure script
+ THREADLIBS=""
+ have_pthreads="no"
++have_thr="no"
+
++dnl Prefer libthr(3) over libpthread(3) due to serious process hanging issues
++AC_CHECK_LIB(thr,pthread_create)
++if test $ac_cv_lib_thr_pthread_create = yes; then
++ THREADLIBS="-lthr"
++ have_pthreads="yes"
++ have_thr="yes"
++else
+ dnl FreeBSD: Try ports/linuxthreads first - Mammad Zadeh <mammad@yahoo-inc.com>
+ dnl FreeBSD -pthread check - Jonathan McDowell <noodles@earth.li>
+ AC_DEFUN(AC_PTHREAD_FREEBSD,[
+@@ -121,6 +128,7 @@
+ if test $have_pthreads = "no"; then
+ AC_PTHREAD_FREEBSD
+ fi
++fi
+
+ AC_SUBST(THREADLIBS)
+
+@@ -137,7 +145,7 @@
AC_SUBST(nagios_grp)
AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_USER,"$nagios_user")
AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_GROUP,"$nagios_grp")
@@ -17,3 +41,13 @@
AC_SUBST(INSTALL_OPTS)
AC_ARG_WITH(command_user,--with-command-user=<user> sets user name for command access,command_user=$withval,command_user=$nagios_user)
+@@ -599,6 +607,9 @@
+
+ AC_DEFINE_UNQUOTED(EMBEDDEDPERL)
+ PERLLIBS="`perl -MExtUtils::Embed -e ldopts`"
++ if test x$have_thr = xyes; then
++ PERLLIBS="`echo $PERLLIBS | sed 's#pthread #lthr #'`"
++ fi
+ PERLDIR="`perl -MConfig -e 'print $Config{installsitearch}'`"
+ CFLAGS="${CFLAGS} `perl -MExtUtils::Embed -e ccopts`"
+ USEPERL=yes
diff --git a/net-mgmt/nagios2/Makefile b/net-mgmt/nagios2/Makefile
index 6996ed70a506..5c921156c3d1 100644
--- a/net-mgmt/nagios2/Makefile
+++ b/net-mgmt/nagios2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= nagios
PORTVERSION= 2.10
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nagios
@@ -20,7 +21,7 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagio
USE_GETOPT_LONG= yes
USE_ICONV= yes
USE_PERL5_BUILD= yes
-USE_AUTOTOOLS= autoconf:261
+USE_AUTOTOOLS= autoconf:261 libltdl:15
USE_RC_SUBR= nagios.sh
CONFLICTS= nagios-[13].*
diff --git a/net-mgmt/nagios2/files/patch-configure.in b/net-mgmt/nagios2/files/patch-configure.in
index d10acf12fd5e..720af1c7f367 100644
--- a/net-mgmt/nagios2/files/patch-configure.in
+++ b/net-mgmt/nagios2/files/patch-configure.in
@@ -1,5 +1,5 @@
---- configure.in.orig Thu Feb 10 02:00:10 2005
-+++ configure.in Sat Feb 12 14:11:54 2005
+--- configure.in.orig 2007-10-22 00:09:51.000000000 +0930
++++ configure.in 2008-01-30 23:25:03.000000000 +1030
@@ -6,7 +6,6 @@
AC_INIT(base/nagios.c)
@@ -7,8 +7,32 @@
-AC_PREFIX_DEFAULT(/usr/local/nagios)
PKG_NAME=nagios
- PKG_VERSION="2.0b2"
-@@ -137,7 +136,7 @@
+ PKG_VERSION="2.10"
+@@ -60,7 +59,15 @@
+ dnl Test for pthreads support - taken from ICU FreeBSD Port configure script
+ THREADLIBS=""
+ have_pthreads="no"
++have_thr="no"
+
++dnl Prefer libthr(3) over libpthread(3) due to serious process hanging issues
++AC_CHECK_LIB(thr,pthread_create)
++if test $ac_cv_lib_thr_pthread_create = yes; then
++ THREADLIBS="-lthr"
++ have_pthreads="yes"
++ have_thr="yes"
++else
+ dnl FreeBSD: Try ports/linuxthreads first - Mammad Zadeh <mammad@yahoo-inc.com>
+ dnl FreeBSD -pthread check - Jonathan McDowell <noodles@earth.li>
+ AC_DEFUN(AC_PTHREAD_FREEBSD,[
+@@ -121,6 +128,7 @@
+ if test $have_pthreads = "no"; then
+ AC_PTHREAD_FREEBSD
+ fi
++fi
+
+ AC_SUBST(THREADLIBS)
+
+@@ -137,7 +145,7 @@
AC_SUBST(nagios_grp)
AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_USER,"$nagios_user")
AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_GROUP,"$nagios_grp")
@@ -17,3 +41,13 @@
AC_SUBST(INSTALL_OPTS)
AC_ARG_WITH(command_user,--with-command-user=<user> sets user name for command access,command_user=$withval,command_user=$nagios_user)
+@@ -599,6 +607,9 @@
+
+ AC_DEFINE_UNQUOTED(EMBEDDEDPERL)
+ PERLLIBS="`perl -MExtUtils::Embed -e ldopts`"
++ if test x$have_thr = xyes; then
++ PERLLIBS="`echo $PERLLIBS | sed 's#pthread #lthr #'`"
++ fi
+ PERLDIR="`perl -MConfig -e 'print $Config{installsitearch}'`"
+ CFLAGS="${CFLAGS} `perl -MExtUtils::Embed -e ccopts`"
+ USEPERL=yes