# HG changeset patch # User Eric Joseph-Alexandre # Date 1296605899 -3600 # Node ID 3d1797940d27220d56df0a0b50b44135f2701cbf # Parent 18ef1a1df017c0978c5f09ad8c61477721e03363 Add: nagios-plugins* diff -r 18ef1a1df017 -r 3d1797940d27 nagios-plugins-mysql/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nagios-plugins-mysql/receipt Wed Feb 02 01:18:19 2011 +0100 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="nagios-plugins-mysql" +VERSION="1.4.15" +CATEGORY="meta" +SHORT_DESC="Dependencies for Nagios MySQL plugin." +MAINTAINER="erjo@slitaz.org" +DEPENDS="nagios-plugins mysqlclient" +WEB_SITE="http://www.nagios.org/" + + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/libnagios/plugins + + cp -pa $_pkg/usr/lib/nagios/plugins/*mysql* $fs/usr/libnagios/plugins +} + diff -r 18ef1a1df017 -r 3d1797940d27 nagios-plugins/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nagios-plugins/receipt Wed Feb 02 01:18:19 2011 +0100 @@ -0,0 +1,63 @@ +# SliTaz package receipt. + +PACKAGE="nagios-plugins" +VERSION="1.4.15" +CATEGORY="network" +SHORT_DESC="Plugins for host, service and network monitoring program." +MAINTAINER="erjo@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.nagios.org/" +WGET_URL="$SF_MIRROR/nagiosplug/$TARBALL" +DEPENDS="libssl fping" +BUILD_DEPENDS="openssl-dev radiusclient-ng-dev radiusclient-ng openldap-dev + mysql-dev libmysqlclient" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/nagios/plugins \ + --with-nagios-user=nobody \ + --with-nagios-group=nogroup \ + --with-ping-command="/bin/ping -w %d -c %d %s" \ + --with-fping-command="/usr/sbin/fping" \ + ~ --mandir=/usr/share/man $CONFIGURE_ARGS + + make && + make DESTDIR=$PWD/_pkg install && + make DESTDIR=$PWD/_pkg install-root +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/etc/nagios/objects + + cp -a $_pkg/usr/lib/nagios/ $fs/usr/lib + + # + stuff/convertcfg $src/command.cfg commands > $fs/etc/nagios/objects/command.cfg + + # Move mySQL plugins in separate package. + rm -f $fs/usr/lib/nagios/plugins/*mysql* + +} + +post_install() +{ + if ! grep -q nagios $1/etc/passwd; then + echo -n "Adding user/group nagios..." + chroot $1/ addgroup -S nagios + chroot $1/ adduser -S -D -H -G nagios nagios + status + fi + + if [ -f $1/etc/nagios/resource.cfg ]; then + sed -i 's|/usr/lib/nagios|/usr/lib/nagios/plugins|' \ + $1/etc/nagios/resource.cfg + fi + # Set perms for files and directories + chroot $1/ chown -R nagios.nagios /usr/lib/nagios/plugins + chroot $1/ chown -R nagios.nagios /etc/nagios/objects +} diff -r 18ef1a1df017 -r 3d1797940d27 nagios-plugins/stuff/convertcfg Binary file nagios-plugins/stuff/convertcfg has changed diff -r 18ef1a1df017 -r 3d1797940d27 nagios-plugins/stuff/nagios-plugins-1.4.15-Makefiles.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nagios-plugins/stuff/nagios-plugins-1.4.15-Makefiles.u Wed Feb 02 01:18:19 2011 +0100 @@ -0,0 +1,245 @@ +--- nagios-plugins-1.4.15-ori/Makefile Thu Oct 21 11:24:31 2010 ++++ nagios-plugins-1.4.15/Makefile Thu Oct 21 11:28:00 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -639,11 +639,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/gl/Makefile Thu Oct 21 11:24:30 2010 ++++ nagios-plugins-1.4.15/gl/Makefile Thu Oct 21 11:28:54 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -657,11 +657,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/lib/Makefile Thu Oct 21 11:24:31 2010 ++++ nagios-plugins-1.4.15/lib/Makefile Thu Oct 21 11:28:54 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -644,11 +644,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/lib/tests/Makefile Thu Oct 21 11:24:31 2010 ++++ nagios-plugins-1.4.15/lib/tests/Makefile Thu Oct 21 11:28:56 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -678,11 +678,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/perlmods/Makefile Thu Oct 21 11:24:32 2010 ++++ nagios-plugins-1.4.15/perlmods/Makefile Thu Oct 21 11:28:54 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -607,11 +607,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/plugins-root/Makefile Thu Oct 21 11:24:31 2010 ++++ nagios-plugins-1.4.15/plugins-root/Makefile Thu Oct 21 11:28:55 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -640,11 +640,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/plugins-scripts/Makefile Thu Oct 21 11:24:31 2010 ++++ nagios-plugins-1.4.15/plugins-scripts/Makefile Thu Oct 21 11:28:55 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -612,11 +612,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/plugins/Makefile Thu Oct 21 11:24:31 2010 ++++ nagios-plugins-1.4.15/plugins/Makefile Thu Oct 21 11:28:54 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -751,11 +751,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP = +--- nagios-plugins-1.4.15-ori/po/Makefile Thu Oct 21 11:24:32 2010 ++++ nagios-plugins-1.4.15/po/Makefile Thu Oct 21 11:28:55 2010 +@@ -8,7 +8,7 @@ + # License but which still want to provide support for the GNU gettext + # functionality. + # Please note that the actual code of GNU gettext is covered by the GNU +-# General Public License and is *not* in the public domain. ++# General Public License and is *not* in the public domain.. + # + # Origin: gettext-0.15 + +@@ -30,7 +30,7 @@ + localedir = ${datarootdir}/locale + gettextsrcdir = $(datadir)/gettext/po + +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + mkinstalldirs = $(SHELL) $(SHELL) /home/slitaz/wok-nagios/nagios-plugins/nagios-plugins-1.4.15/build-aux/install-sh -d + mkdir_p = $(top_builddir)/build-aux/install-sh -c -d +--- nagios-plugins-1.4.15-ori/tap/Makefile Thu Oct 21 11:24:31 2010 ++++ nagios-plugins-1.4.15/tap/Makefile Thu Oct 21 11:28:55 2010 +@@ -10,7 +10,7 @@ + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A +-# PARTICULAR PURPOSE. ++# PARTICULAR PURPOSE.. + + + +@@ -643,11 +643,11 @@ + INCLUDE_NEXT = include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next + INET_NTOP_LIB = +-INSTALL = /usr/bin/install -c -o nagios -g nagios ++INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PROGRAM = ${INSTALL} + INSTALL_SCRIPT = ${INSTALL} +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s + INTLLIBS = + INTL_MACOSX_LIBS = + KMEM_GROUP =