summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-24 09:12:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-24 09:12:22 +0000
commite770add1c7f5eae6446970fcaac714402235a767 (patch)
treec0510c4c9257993a38e7c6bc3f4cbfbfa4d128e8 /testing
parentb58b43a4ee78038616711617f0da5b09f5002477 (diff)
downloadaports-e770add1c7f5eae6446970fcaac714402235a767.tar.bz2
aports-e770add1c7f5eae6446970fcaac714402235a767.tar.xz
testing/nagions-plugins: new aport
Plugins for Nagios to check services on hosts http://nagiosplugins.org
Diffstat (limited to 'testing')
-rw-r--r--testing/nagios-plugins/001-busybox-tweaks.patch56
-rw-r--r--testing/nagios-plugins/APKBUILD42
2 files changed, 98 insertions, 0 deletions
diff --git a/testing/nagios-plugins/001-busybox-tweaks.patch b/testing/nagios-plugins/001-busybox-tweaks.patch
new file mode 100644
index 000000000..4f33c6861
--- /dev/null
+++ b/testing/nagios-plugins/001-busybox-tweaks.patch
@@ -0,0 +1,56 @@
+--- ./configure
++++ ./configure
+@@ -18517,6 +18517,20 @@
+ { echo "$as_me:$LINENO: result: $ac_cv_ps_command" >&5
+ echo "${ECHO_T}$ac_cv_ps_command" >&6; }
+
++##########
++# 8/12/10 R. Boisvert added to work with Busybox ps
++elif ps 2>/dev/null | \
++ egrep -i "^PID +USER +TIME +COMMAND" >/dev/null
++then
++ ac_cv_ps_command="$PATH_TO_PS"
++ ac_cv_ps_varlist="&procpid,&procuid,&procpcpu,procprog"
++ ac_cv_ps_format="%d %s %s %s"
++ ac_cv_ps_cols=4
++ { echo "$as_me:$LINENO: result: $ac_cv_ps_command" >&5
++echo "${ECHO_T}$ac_cv_ps_command" >&6; }
++# 8/12/10 R. Boisvert added to work with Busybox ps
++##########
++
+ elif ps -Al 2>/dev/null | \
+ egrep -i "^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD" >/dev/null
+ then
+@@ -18750,6 +18764,18 @@
+ { echo "$as_me:$LINENO: result: $with_ping_command" >&5
+ echo "${ECHO_T}$with_ping_command" >&6; }
+
++##########
++# 8/12/10 R. Boisvert added to work with Busybox ping
++elif $PATH_TO_PING -c 1 127.0.0.1 2>/dev/null | \
++ egrep -i "^round-trip|^rtt" >/dev/null
++then
++ with_ping_command="$PATH_TO_PING -c %d %s"
++ ac_cv_ping_packets_first=yes
++ { echo "$as_me:$LINENO: result: $with_ping_command" >&5
++echo "${ECHO_T}$with_ping_command" >&6; }
++# 8/12/10 R. Boisvert added to work with Busybox ping
++##########
++
+ else
+ { echo "$as_me:$LINENO: WARNING: unable to find usable ping syntax" >&5
+ echo "$as_me: WARNING: unable to find usable ping syntax" >&2;}
+@@ -19037,7 +19063,12 @@
+ then
+ { echo "$as_me:$LINENO: checking for nslookup syntax" >&5
+ echo $ECHO_N "checking for nslookup syntax... $ECHO_C" >&6; }
+- if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null
++##########
++# 8/12/10 R. Boisvert added to work with Busybox nslookup
++# original if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null
++ if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Usage" >/dev/null
++# 8/12/10 R. Boisvert added to work with Busybox nslookup
++##########
+ then
+ ac_cv_nslookup_command="$PATH_TO_NSLOOKUP"
+ { echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5
diff --git a/testing/nagios-plugins/APKBUILD b/testing/nagios-plugins/APKBUILD
new file mode 100644
index 000000000..e2da9de81
--- /dev/null
+++ b/testing/nagios-plugins/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Jeff Bilyk <jbilyk at gmail>
+pkgname=nagios-plugins
+pkgver=1.4.15
+pkgrel=0
+pkgdesc="Plugins for Nagios to check services on hosts"
+url="http://nagiosplugins.org"
+license="GPL-2"
+depends="nagios freeradius-client"
+makedepends="uclibc-dev net-snmp-tools openssl-dev fping openldap-dev openssh libpq"
+source="http://downloads.sourceforge.net/nagiosplug/$pkgname-$pkgver.tar.gz
+001-busybox-tweaks.patch"
+pkgusers="nagios"
+pkggroups="nagios"
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ for i in "$srcdir"/*.patch; do
+ [ -f "$i" ] || continue
+ msg "Applying $i"
+ patch -p1 -i "$i" || return 1
+ done
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --bindir=/usr/sbin \
+ --libexecdir=/usr/lib/nagios/plugins \
+ --localstatedir=/var/nagios
+ make all || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="56abd6ade8aa860b38c4ca4a6ac5ab0d nagios-plugins-1.4.15.tar.gz
+4bb975da57d5e9077968a39a5ab258df 001-busybox-tweaks.patch"