wok rev 8333

Add: nagios-plugins*
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Feb 02 01:18:19 2011 +0100 (2011-02-02)
parents 18ef1a1df017
children e9c571648b04
files nagios-plugins-mysql/receipt nagios-plugins/receipt nagios-plugins/stuff/convertcfg nagios-plugins/stuff/nagios-plugins-1.4.15-Makefiles.u
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nagios-plugins-mysql/receipt	Wed Feb 02 01:18:19 2011 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nagios-plugins-mysql"
     1.7 +VERSION="1.4.15"
     1.8 +CATEGORY="meta"
     1.9 +SHORT_DESC="Dependencies for Nagios MySQL plugin."
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS="nagios-plugins mysqlclient"
    1.12 +WEB_SITE="http://www.nagios.org/"
    1.13 +
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/libnagios/plugins
    1.19 +	
    1.20 +	cp -pa $_pkg/usr/lib/nagios/plugins/*mysql* $fs/usr/libnagios/plugins
    1.21 +}
    1.22 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/nagios-plugins/receipt	Wed Feb 02 01:18:19 2011 +0100
     2.3 @@ -0,0 +1,63 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="nagios-plugins"
     2.7 +VERSION="1.4.15"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="Plugins for host, service and network monitoring program."
    2.10 +MAINTAINER="erjo@slitaz.org"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.12 +WEB_SITE="http://www.nagios.org/"
    2.13 +WGET_URL="$SF_MIRROR/nagiosplug/$TARBALL"
    2.14 +DEPENDS="libssl fping"
    2.15 +BUILD_DEPENDS="openssl-dev radiusclient-ng-dev radiusclient-ng openldap-dev
    2.16 + mysql-dev libmysqlclient"
    2.17 +
    2.18 +# Rules to configure and make the package.
    2.19 +compile_rules()
    2.20 +{
    2.21 +	cd $src
    2.22 +	./configure --prefix=/usr \
    2.23 +	--libexecdir=/usr/lib/nagios/plugins \
    2.24 +	--with-nagios-user=nobody \
    2.25 +	--with-nagios-group=nogroup \
    2.26 +	--with-ping-command="/bin/ping -w %d -c %d %s" \
    2.27 +	--with-fping-command="/usr/sbin/fping" \
    2.28 +	~ --mandir=/usr/share/man $CONFIGURE_ARGS
    2.29 +	
    2.30 +	make &&
    2.31 +	make DESTDIR=$PWD/_pkg install &&
    2.32 +	make DESTDIR=$PWD/_pkg install-root
    2.33 +}
    2.34 +
    2.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.36 +genpkg_rules()
    2.37 +{
    2.38 +	mkdir -p $fs/usr/lib $fs/etc/nagios/objects
    2.39 +	
    2.40 +	cp -a $_pkg/usr/lib/nagios/ $fs/usr/lib
    2.41 +
    2.42 +	# 
    2.43 +	stuff/convertcfg $src/command.cfg commands > $fs/etc/nagios/objects/command.cfg
    2.44 +	
    2.45 +	# Move mySQL plugins in separate package.
    2.46 +	rm -f $fs/usr/lib/nagios/plugins/*mysql*
    2.47 +
    2.48 +}
    2.49 +
    2.50 +post_install()
    2.51 +{
    2.52 +	if ! grep -q nagios $1/etc/passwd; then
    2.53 +		echo -n "Adding user/group nagios..."
    2.54 +		chroot $1/ addgroup -S nagios
    2.55 +		chroot $1/ adduser -S -D -H -G nagios nagios
    2.56 +		status
    2.57 +	fi
    2.58 +	
    2.59 +	if [ -f $1/etc/nagios/resource.cfg ]; then
    2.60 +		sed -i 's|/usr/lib/nagios|/usr/lib/nagios/plugins|' \
    2.61 +		   $1/etc/nagios/resource.cfg
    2.62 +	fi
    2.63 +	# Set perms for files and directories
    2.64 +	chroot $1/ chown -R nagios.nagios /usr/lib/nagios/plugins 
    2.65 +	chroot $1/ chown -R nagios.nagios /etc/nagios/objects
    2.66 +}
     3.1 Binary file nagios-plugins/stuff/convertcfg has changed
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/nagios-plugins/stuff/nagios-plugins-1.4.15-Makefiles.u	Wed Feb 02 01:18:19 2011 +0100
     4.3 @@ -0,0 +1,245 @@
     4.4 +--- nagios-plugins-1.4.15-ori/Makefile	Thu Oct 21 11:24:31 2010
     4.5 ++++ nagios-plugins-1.4.15/Makefile	Thu Oct 21 11:28:00 2010
     4.6 +@@ -10,7 +10,7 @@
     4.7 + # This program is distributed in the hope that it will be useful,
     4.8 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     4.9 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    4.10 +-# PARTICULAR PURPOSE.
    4.11 ++# PARTICULAR PURPOSE..
    4.12 + 
    4.13 + 
    4.14 + 
    4.15 +@@ -639,11 +639,11 @@
    4.16 + INCLUDE_NEXT = include_next
    4.17 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
    4.18 + INET_NTOP_LIB = 
    4.19 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
    4.20 ++INSTALL = /usr/bin/install -c 
    4.21 + INSTALL_DATA = ${INSTALL} -m 644
    4.22 + INSTALL_PROGRAM = ${INSTALL}
    4.23 + INSTALL_SCRIPT = ${INSTALL}
    4.24 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
    4.25 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
    4.26 + INTLLIBS = 
    4.27 + INTL_MACOSX_LIBS = 
    4.28 + KMEM_GROUP = 
    4.29 +--- nagios-plugins-1.4.15-ori/gl/Makefile	Thu Oct 21 11:24:30 2010
    4.30 ++++ nagios-plugins-1.4.15/gl/Makefile	Thu Oct 21 11:28:54 2010
    4.31 +@@ -10,7 +10,7 @@
    4.32 + # This program is distributed in the hope that it will be useful,
    4.33 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    4.34 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    4.35 +-# PARTICULAR PURPOSE.
    4.36 ++# PARTICULAR PURPOSE..
    4.37 + 
    4.38 + 
    4.39 + 
    4.40 +@@ -657,11 +657,11 @@
    4.41 + INCLUDE_NEXT = include_next
    4.42 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
    4.43 + INET_NTOP_LIB = 
    4.44 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
    4.45 ++INSTALL = /usr/bin/install -c 
    4.46 + INSTALL_DATA = ${INSTALL} -m 644
    4.47 + INSTALL_PROGRAM = ${INSTALL}
    4.48 + INSTALL_SCRIPT = ${INSTALL}
    4.49 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
    4.50 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
    4.51 + INTLLIBS = 
    4.52 + INTL_MACOSX_LIBS = 
    4.53 + KMEM_GROUP = 
    4.54 +--- nagios-plugins-1.4.15-ori/lib/Makefile	Thu Oct 21 11:24:31 2010
    4.55 ++++ nagios-plugins-1.4.15/lib/Makefile	Thu Oct 21 11:28:54 2010
    4.56 +@@ -10,7 +10,7 @@
    4.57 + # This program is distributed in the hope that it will be useful,
    4.58 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    4.59 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    4.60 +-# PARTICULAR PURPOSE.
    4.61 ++# PARTICULAR PURPOSE..
    4.62 + 
    4.63 + 
    4.64 + 
    4.65 +@@ -644,11 +644,11 @@
    4.66 + INCLUDE_NEXT = include_next
    4.67 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
    4.68 + INET_NTOP_LIB = 
    4.69 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
    4.70 ++INSTALL = /usr/bin/install -c 
    4.71 + INSTALL_DATA = ${INSTALL} -m 644
    4.72 + INSTALL_PROGRAM = ${INSTALL}
    4.73 + INSTALL_SCRIPT = ${INSTALL}
    4.74 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
    4.75 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
    4.76 + INTLLIBS = 
    4.77 + INTL_MACOSX_LIBS = 
    4.78 + KMEM_GROUP = 
    4.79 +--- nagios-plugins-1.4.15-ori/lib/tests/Makefile	Thu Oct 21 11:24:31 2010
    4.80 ++++ nagios-plugins-1.4.15/lib/tests/Makefile	Thu Oct 21 11:28:56 2010
    4.81 +@@ -10,7 +10,7 @@
    4.82 + # This program is distributed in the hope that it will be useful,
    4.83 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    4.84 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    4.85 +-# PARTICULAR PURPOSE.
    4.86 ++# PARTICULAR PURPOSE..
    4.87 + 
    4.88 + 
    4.89 + 
    4.90 +@@ -678,11 +678,11 @@
    4.91 + INCLUDE_NEXT = include_next
    4.92 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
    4.93 + INET_NTOP_LIB = 
    4.94 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
    4.95 ++INSTALL = /usr/bin/install -c 
    4.96 + INSTALL_DATA = ${INSTALL} -m 644
    4.97 + INSTALL_PROGRAM = ${INSTALL}
    4.98 + INSTALL_SCRIPT = ${INSTALL}
    4.99 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
   4.100 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
   4.101 + INTLLIBS = 
   4.102 + INTL_MACOSX_LIBS = 
   4.103 + KMEM_GROUP = 
   4.104 +--- nagios-plugins-1.4.15-ori/perlmods/Makefile	Thu Oct 21 11:24:32 2010
   4.105 ++++ nagios-plugins-1.4.15/perlmods/Makefile	Thu Oct 21 11:28:54 2010
   4.106 +@@ -10,7 +10,7 @@
   4.107 + # This program is distributed in the hope that it will be useful,
   4.108 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   4.109 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   4.110 +-# PARTICULAR PURPOSE.
   4.111 ++# PARTICULAR PURPOSE..
   4.112 + 
   4.113 + 
   4.114 + 
   4.115 +@@ -607,11 +607,11 @@
   4.116 + INCLUDE_NEXT = include_next
   4.117 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
   4.118 + INET_NTOP_LIB = 
   4.119 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
   4.120 ++INSTALL = /usr/bin/install -c 
   4.121 + INSTALL_DATA = ${INSTALL} -m 644
   4.122 + INSTALL_PROGRAM = ${INSTALL}
   4.123 + INSTALL_SCRIPT = ${INSTALL}
   4.124 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
   4.125 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
   4.126 + INTLLIBS = 
   4.127 + INTL_MACOSX_LIBS = 
   4.128 + KMEM_GROUP = 
   4.129 +--- nagios-plugins-1.4.15-ori/plugins-root/Makefile	Thu Oct 21 11:24:31 2010
   4.130 ++++ nagios-plugins-1.4.15/plugins-root/Makefile	Thu Oct 21 11:28:55 2010
   4.131 +@@ -10,7 +10,7 @@
   4.132 + # This program is distributed in the hope that it will be useful,
   4.133 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   4.134 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   4.135 +-# PARTICULAR PURPOSE.
   4.136 ++# PARTICULAR PURPOSE..
   4.137 + 
   4.138 + 
   4.139 + 
   4.140 +@@ -640,11 +640,11 @@
   4.141 + INCLUDE_NEXT = include_next
   4.142 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
   4.143 + INET_NTOP_LIB = 
   4.144 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
   4.145 ++INSTALL = /usr/bin/install -c 
   4.146 + INSTALL_DATA = ${INSTALL} -m 644
   4.147 + INSTALL_PROGRAM = ${INSTALL}
   4.148 + INSTALL_SCRIPT = ${INSTALL}
   4.149 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
   4.150 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
   4.151 + INTLLIBS = 
   4.152 + INTL_MACOSX_LIBS = 
   4.153 + KMEM_GROUP = 
   4.154 +--- nagios-plugins-1.4.15-ori/plugins-scripts/Makefile	Thu Oct 21 11:24:31 2010
   4.155 ++++ nagios-plugins-1.4.15/plugins-scripts/Makefile	Thu Oct 21 11:28:55 2010
   4.156 +@@ -10,7 +10,7 @@
   4.157 + # This program is distributed in the hope that it will be useful,
   4.158 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   4.159 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   4.160 +-# PARTICULAR PURPOSE.
   4.161 ++# PARTICULAR PURPOSE..
   4.162 + 
   4.163 + 
   4.164 + 
   4.165 +@@ -612,11 +612,11 @@
   4.166 + INCLUDE_NEXT = include_next
   4.167 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
   4.168 + INET_NTOP_LIB = 
   4.169 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
   4.170 ++INSTALL = /usr/bin/install -c 
   4.171 + INSTALL_DATA = ${INSTALL} -m 644
   4.172 + INSTALL_PROGRAM = ${INSTALL}
   4.173 + INSTALL_SCRIPT = ${INSTALL}
   4.174 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
   4.175 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
   4.176 + INTLLIBS = 
   4.177 + INTL_MACOSX_LIBS = 
   4.178 + KMEM_GROUP = 
   4.179 +--- nagios-plugins-1.4.15-ori/plugins/Makefile	Thu Oct 21 11:24:31 2010
   4.180 ++++ nagios-plugins-1.4.15/plugins/Makefile	Thu Oct 21 11:28:54 2010
   4.181 +@@ -10,7 +10,7 @@
   4.182 + # This program is distributed in the hope that it will be useful,
   4.183 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   4.184 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   4.185 +-# PARTICULAR PURPOSE.
   4.186 ++# PARTICULAR PURPOSE..
   4.187 + 
   4.188 + 
   4.189 + 
   4.190 +@@ -751,11 +751,11 @@
   4.191 + INCLUDE_NEXT = include_next
   4.192 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
   4.193 + INET_NTOP_LIB = 
   4.194 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
   4.195 ++INSTALL = /usr/bin/install -c 
   4.196 + INSTALL_DATA = ${INSTALL} -m 644
   4.197 + INSTALL_PROGRAM = ${INSTALL}
   4.198 + INSTALL_SCRIPT = ${INSTALL}
   4.199 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
   4.200 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
   4.201 + INTLLIBS = 
   4.202 + INTL_MACOSX_LIBS = 
   4.203 + KMEM_GROUP = 
   4.204 +--- nagios-plugins-1.4.15-ori/po/Makefile	Thu Oct 21 11:24:32 2010
   4.205 ++++ nagios-plugins-1.4.15/po/Makefile	Thu Oct 21 11:28:55 2010
   4.206 +@@ -8,7 +8,7 @@
   4.207 + # License but which still want to provide support for the GNU gettext
   4.208 + # functionality.
   4.209 + # Please note that the actual code of GNU gettext is covered by the GNU
   4.210 +-# General Public License and is *not* in the public domain.
   4.211 ++# General Public License and is *not* in the public domain..
   4.212 + #
   4.213 + # Origin: gettext-0.15
   4.214 + 
   4.215 +@@ -30,7 +30,7 @@
   4.216 + localedir = ${datarootdir}/locale
   4.217 + gettextsrcdir = $(datadir)/gettext/po
   4.218 + 
   4.219 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
   4.220 ++INSTALL = /usr/bin/install -c 
   4.221 + INSTALL_DATA = ${INSTALL} -m 644
   4.222 + mkinstalldirs = $(SHELL) $(SHELL) /home/slitaz/wok-nagios/nagios-plugins/nagios-plugins-1.4.15/build-aux/install-sh -d
   4.223 + mkdir_p = $(top_builddir)/build-aux/install-sh -c -d
   4.224 +--- nagios-plugins-1.4.15-ori/tap/Makefile	Thu Oct 21 11:24:31 2010
   4.225 ++++ nagios-plugins-1.4.15/tap/Makefile	Thu Oct 21 11:28:55 2010
   4.226 +@@ -10,7 +10,7 @@
   4.227 + # This program is distributed in the hope that it will be useful,
   4.228 + # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   4.229 + # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   4.230 +-# PARTICULAR PURPOSE.
   4.231 ++# PARTICULAR PURPOSE..
   4.232 + 
   4.233 + 
   4.234 + 
   4.235 +@@ -643,11 +643,11 @@
   4.236 + INCLUDE_NEXT = include_next
   4.237 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE = include_next
   4.238 + INET_NTOP_LIB = 
   4.239 +-INSTALL = /usr/bin/install -c -o nagios -g nagios
   4.240 ++INSTALL = /usr/bin/install -c 
   4.241 + INSTALL_DATA = ${INSTALL} -m 644
   4.242 + INSTALL_PROGRAM = ${INSTALL}
   4.243 + INSTALL_SCRIPT = ${INSTALL}
   4.244 +-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -o nagios -g nagios
   4.245 ++INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 
   4.246 + INTLLIBS = 
   4.247 + INTL_MACOSX_LIBS = 
   4.248 + KMEM_GROUP =