2013-09-21 00:24:43 +02:00
|
|
|
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
|
2012-02-27 03:46:50 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openldap-plugins
|
2014-03-13 17:14:48 +01:00
|
|
|
PORTVERSION= 0.5
|
2012-02-27 03:46:50 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2014-03-13 17:14:48 +01:00
|
|
|
MASTER_SITES= http://tools.ltb-project.org/attachments/download/629/ \
|
2012-03-23 15:27:51 +01:00
|
|
|
http://mirrors.rit.edu/zi/
|
2012-02-27 03:46:50 +01:00
|
|
|
PKGNAMEPREFIX= nagios-
|
|
|
|
DISTNAME= ltb-project-nagios-plugins-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= zi@FreeBSD.org
|
|
|
|
COMMENT= Nagios Plugins to monitor OpenLDAP
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-06-05 12:21:27 +02:00
|
|
|
RUN_DEPENDS= p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap \
|
2012-02-27 03:46:50 +01:00
|
|
|
p5-Date-Manip>=6.30:${PORTSDIR}/devel/p5-Date-Manip \
|
2012-06-05 12:21:27 +02:00
|
|
|
p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
|
2012-02-27 03:46:50 +01:00
|
|
|
|
|
|
|
PORTSCOUT= ignore:1
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
2013-09-03 18:18:49 +02:00
|
|
|
USES= perl5
|
|
|
|
USE_PERL5= run
|
2012-02-27 03:46:50 +01:00
|
|
|
|
2014-03-13 17:14:48 +01:00
|
|
|
PLIST_FILES= libexec/nagios/check_berkeleydb_locks.pl \
|
|
|
|
libexec/nagios/check_ldap_dn.pl \
|
2012-02-27 03:46:50 +01:00
|
|
|
libexec/nagios/check_ldap_query.pl \
|
2014-03-13 17:14:48 +01:00
|
|
|
libexec/nagios/check_ldap_monitor.pl \
|
2012-02-27 03:46:50 +01:00
|
|
|
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
|
2014-03-13 17:14:48 +01:00
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/libexec/nagios/)
|
2012-02-27 03:46:50 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|