diff options
author | Dean Bailey <alron@gentoo.org> | 2002-11-02 05:55:41 +0000 |
---|---|---|
committer | Dean Bailey <alron@gentoo.org> | 2002-11-02 05:55:41 +0000 |
commit | 5f308f6142ec8004bfea946bfa0edbe3d29f1237 (patch) | |
tree | f3c13400dafc7d978caab9dae30a9c78e14db080 /net-analyzer/nagios-plugins | |
parent | new package - calcoo: a good scientific calculator, supports RPN (diff) | |
download | historical-5f308f6142ec8004bfea946bfa0edbe3d29f1237.tar.gz historical-5f308f6142ec8004bfea946bfa0edbe3d29f1237.tar.bz2 historical-5f308f6142ec8004bfea946bfa0edbe3d29f1237.zip |
Nagios in full.
Diffstat (limited to 'net-analyzer/nagios-plugins')
4 files changed, 131 insertions, 0 deletions
diff --git a/net-analyzer/nagios-plugins/ChangeLog b/net-analyzer/nagios-plugins/ChangeLog new file mode 100644 index 000000000000..4d1cba9871db --- /dev/null +++ b/net-analyzer/nagios-plugins/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for net-analyzer/nagios-plugins +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.1 2002/11/02 05:55:41 alron Exp $ + +*nagios-plugins-1.3_beta1 (1 Nov 2002) + 1 Nov 2002; Dean Bailey <alron@gentoo.org> nagios-plugins-1.3_beta1 : + Initial import. Ebuild submitted by Dean Bailey <alron@gentoo.org>. diff --git a/net-analyzer/nagios-plugins/files/digest-nagios-plugins-1.3_beta1 b/net-analyzer/nagios-plugins/files/digest-nagios-plugins-1.3_beta1 new file mode 100644 index 000000000000..00e0797b8b0a --- /dev/null +++ b/net-analyzer/nagios-plugins/files/digest-nagios-plugins-1.3_beta1 @@ -0,0 +1 @@ +MD5 be984a7feebe0f6f3ecf13255f18014d nagiosplug-1.3-beta1.tar.gz 417606 diff --git a/net-analyzer/nagios-plugins/files/install-opts-fix.diff b/net-analyzer/nagios-plugins/files/install-opts-fix.diff new file mode 100644 index 000000000000..20a8424e461e --- /dev/null +++ b/net-analyzer/nagios-plugins/files/install-opts-fix.diff @@ -0,0 +1,74 @@ +diff -urh nagiosplug-1.3-beta1.new/Makefile.in nagiosplug-1.3-beta1/Makefile.in +--- nagiosplug-1.3-beta1.new/Makefile.in 2002-06-13 07:02:17.000000000 -0700 ++++ nagiosplug-1.3-beta1/Makefile.in 2002-10-30 20:41:54.000000000 -0800 +@@ -68,7 +68,6 @@ + EXTRAS = @EXTRAS@ + HOSTNAME = @HOSTNAME@ + INSTALL = @INSTALL@ +-INSTALL_OPTS = @INSTALL_OPTS@ + LDAPINCLUDE = @LDAPINCLUDE@ + LDAPLIBS = @LDAPLIBS@ + MYSQLLIBS = @MYSQLLIBS@ +diff -urh nagiosplug-1.3-beta1.new/configure.in nagiosplug-1.3-beta1/configure.in +--- nagiosplug-1.3-beta1.new/configure.in 2002-06-12 20:03:07.000000000 -0700 ++++ nagiosplug-1.3-beta1/configure.in 2002-10-30 20:42:50.000000000 -0800 +@@ -46,8 +46,6 @@ + AC_ARG_WITH(nagios_group,--with-nagios-group=<group> sets group name to run nagios,nagios_grp=$withval,nagios_grp=nagios) + AC_SUBST(nagios_usr) + AC_SUBST(nagios_grp) +-INSTALL_OPTS="-o $nagios_usr -g $nagios_grp" +-AC_SUBST(INSTALL_OPTS) + + AC_ARG_WITH(trusted_path,--with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin sets trusted path for executables called by scripts,trusted_path=$withval,trusted_path=/bin:/sbin:/usr/bin:/usr/sbin) + AC_SUBST(trusted_path) +@@ -158,7 +156,7 @@ + dnl Check for mysql libraries + _SAVEDLIBS="$LIBS" + _SAVEDCPPFLAGS="$CPPFLAGS" +-CPPFLAGS="-I/usr/include" ++CPPFLAGS="-I/usr/include/mysql" + AC_ARG_WITH(mysqllibdir,--with-mysqllibdir=<dir> sets path to mysql libraries,[MYSQLLIBDIR=$withval]) + if test -n "$MYSQLLIBS"; then + AC_CHECK_LIB(mysqlclient,mysql_init,MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L$MYSQLLIBDIR",,-L$MYSQLLIBDIR -lz) +diff -urh nagiosplug-1.3-beta1.new/plugins/Makefile.am nagiosplug-1.3-beta1/plugins/Makefile.am +--- nagiosplug-1.3-beta1.new/plugins/Makefile.am 2002-02-27 22:42:57.000000000 -0800 ++++ nagiosplug-1.3-beta1/plugins/Makefile.am 2002-10-30 20:41:54.000000000 -0800 +@@ -31,7 +31,6 @@ + test: + perl -I $(top_builddir) -I $(top_srcdir) ../test.pl + +-AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ + + ############################################################################## + # the actual targets +diff -urh nagiosplug-1.3-beta1.new/plugins/Makefile.in nagiosplug-1.3-beta1/plugins/Makefile.in +--- nagiosplug-1.3-beta1.new/plugins/Makefile.in 2002-06-13 07:02:17.000000000 -0700 ++++ nagiosplug-1.3-beta1/plugins/Makefile.in 2002-10-30 20:41:54.000000000 -0800 +@@ -67,7 +67,6 @@ + EXTRAS = @EXTRAS@ + HOSTNAME = @HOSTNAME@ + INSTALL = @INSTALL@ +-INSTALL_OPTS = @INSTALL_OPTS@ + LDAPINCLUDE = @LDAPINCLUDE@ + LDAPLIBS = @LDAPLIBS@ + MYSQLLIBS = @MYSQLLIBS@ +@@ -144,8 +143,6 @@ + + TESTS = @PLUGIN_TEST@ + +-AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ +- + ############################################################################## + # the actual targets + +diff -urh nagiosplug-1.3-beta1.new/plugins-scripts/Makefile.in nagiosplug-1.3-beta1/plugins-scripts/Makefile.in +--- nagiosplug-1.3-beta1.new/plugins-scripts/Makefile.in 2002-06-13 07:02:17.000000000 -0700 ++++ nagiosplug-1.3-beta1/plugins-scripts/Makefile.in 2002-10-30 20:41:54.000000000 -0800 +@@ -67,7 +67,6 @@ + EXTRAS = @EXTRAS@ + HOSTNAME = @HOSTNAME@ + INSTALL = @INSTALL@ +-INSTALL_OPTS = @INSTALL_OPTS@ + LDAPINCLUDE = @LDAPINCLUDE@ + LDAPLIBS = @LDAPLIBS@ + MYSQLLIBS = @MYSQLLIBS@ diff --git a/net-analyzer/nagios-plugins/nagios-plugins-1.3_beta1.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-1.3_beta1.ebuild new file mode 100644 index 000000000000..2fddfa8a6d5b --- /dev/null +++ b/net-analyzer/nagios-plugins/nagios-plugins-1.3_beta1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.3_beta1.ebuild,v 1.1 2002/11/02 05:55:41 alron Exp $ +DESCRIPTION="Nagios #PV plugins - Pack of plugins to make Nagios work properly" +HOMEPAGE="http://www.nagios.org/" +SRC_URI="http://telia.dl.sourceforge.net/sourceforge/nagiosplug/nagiosplug-1.3-beta1.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND=">=bind-tools-9.2.2_rc1 + >=openssl-0.9.6g + >=perl-5.6.1-r7 + >=fping-2.4_beta2-r1 + >=ntp-4.1.1a + >=Net-SNMP-4.0.1-r1 + >=net-snmp-5.0.6 + >=samba-2.2.5-r1 + >=openssh-3.5_p1 + >=mysql-3.23.52-r1 + >=autoconf-2.53a" +S="${WORKDIR}/nagiosplug-1.3-beta1" +src_compile() { + patch -p1 < ${FILESDIR}/install-opts-fix.diff + autoconf + ./configure \ + --host=${CHOST} \ + --prefix=/usr/nagios \ + --with-nagios-user=nagios \ + --sysconfdir=/etc/nagios \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + make || die +} + +src_install() { + dodoc AUTHORS CODING COPYING ChangeLog FAQ INSTALL LEGALNEWS README REQUIREMENTS ROADMAP Requirements + make DESTDIR=${D} install || die +} +pkg_preinst() { + userdel nagios 2> /dev/null + if ! groupmod nagios; then + groupadd -g 75 nagios 2> /dev/null || \ + die "Failed to create nagios group" + fi + useradd -u 75 -g nagios -s /dev/null -d /var/empty -c "nagios" nagios || \ + die "Failed to create nagios user" + chown -R nagios:nagios ${D}/usr/nagios/libexec || die "Failed Chown of ${D}/usr/nagios/libexec" +} |