summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/nagios-openldap-plugins/Makefile55
-rw-r--r--net-mgmt/nagios-openldap-plugins/distinfo2
-rw-r--r--net-mgmt/nagios-openldap-plugins/pkg-descr4
4 files changed, 62 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 87c9d046f77c..1c64ad68d40c 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -131,6 +131,7 @@
SUBDIR += nagios-check_tftp
SUBDIR += nagios-devel
SUBDIR += nagios-geom
+ SUBDIR += nagios-openldap-plugins
SUBDIR += nagios-pf-plugin
SUBDIR += nagios-plugins
SUBDIR += nagios-portaudit
diff --git a/net-mgmt/nagios-openldap-plugins/Makefile b/net-mgmt/nagios-openldap-plugins/Makefile
new file mode 100644
index 000000000000..204ec5d03b81
--- /dev/null
+++ b/net-mgmt/nagios-openldap-plugins/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: nagios-openldap-plugins
+# Date created: 26 Feb 2012
+# Whom: Ryan Steinmetz <zi@FreeBSD.org>
+#
+# $FreeBSD$
+
+PORTNAME= openldap-plugins
+PORTVERSION= 0.3
+CATEGORIES= net-mgmt
+MASTER_SITES= http://tools.ltb-project.org/attachments/download/152/ \
+ http://people.rit.edu/rpsfa/
+PKGNAMEPREFIX= nagios-
+DISTNAME= ltb-project-nagios-plugins-${PORTVERSION}
+
+MAINTAINER= zi@FreeBSD.org
+COMMENT= Nagios Plugins to monitor OpenLDAP
+
+LICENSE= GPLv2
+
+RUN_DEPENDS= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
+ p5-Date-Manip>=6.30:${PORTSDIR}/devel/p5-Date-Manip \
+ ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+
+PORTSCOUT= ignore:1
+
+NO_BUILD= yes
+USE_PERL5_RUN= yes
+
+PLIST_FILES= libexec/nagios/check_ldap_dn.pl \
+ libexec/nagios/check_ldap_query.pl \
+ libexec/nagios/check_ldap_slurpd_status.pl \
+ libexec/nagios/check_ldap_syncrepl_status.pl \
+ libexec/nagios/check_ldap_time.pl \
+ libexec/nagios/restart_slapd.sh
+PLIST_DIRSTRY= libexec/nagios
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc/init.d/|${LOCALBASE}/etc/rc.d/|g' \
+ -e 's|/var/run/slapd|/var/run/openldap|g' \
+ ${WRKSRC}/restart_slapd.sh
+ @${REINPLACE_CMD} -e 's|/usr/local/nagios/libexec|${PREFIX}/libexec/nagios|g' \
+ ${WRKSRC}/*.pl
+
+do-install:
+ @${MKDIR} ${PREFIX}/libexec/nagios
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_ldap_dn.pl ${PREFIX}/libexec/nagios/
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_ldap_query.pl ${PREFIX}/libexec/nagios/
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_ldap_slurpd_status.pl ${PREFIX}/libexec/nagios/
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_ldap_syncrepl_status.pl ${PREFIX}/libexec/nagios/
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_ldap_time.pl ${PREFIX}/libexec/nagios/
+ ${INSTALL_SCRIPT} ${WRKSRC}/restart_slapd.sh ${PREFIX}/libexec/nagios/
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/nagios-openldap-plugins/distinfo b/net-mgmt/nagios-openldap-plugins/distinfo
new file mode 100644
index 000000000000..75a71d293fe5
--- /dev/null
+++ b/net-mgmt/nagios-openldap-plugins/distinfo
@@ -0,0 +1,2 @@
+SHA256 (ltb-project-nagios-plugins-0.3.tar.gz) = 515745c2793a7352794e2c254ff1d33b1877c410bbffd3d899ca0082ef35e30a
+SIZE (ltb-project-nagios-plugins-0.3.tar.gz) = 13124
diff --git a/net-mgmt/nagios-openldap-plugins/pkg-descr b/net-mgmt/nagios-openldap-plugins/pkg-descr
new file mode 100644
index 000000000000..dada549e7989
--- /dev/null
+++ b/net-mgmt/nagios-openldap-plugins/pkg-descr
@@ -0,0 +1,4 @@
+A collection of scripts useful for monitoring OpenLDAP written by
+the LTB (LDAP Tool Box) project.
+
+WWW: http://ltb-project.org/wiki/documentation/