mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
a341e3503d
performance data in the output. This output can the easily graphed with pnp. PR: 142266 Submitted by: olli hauer <ohauer@gmx.de> Approved by: maintainer
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# New ports collection makefile for: nagios-pf-plugin
|
|
# Date created: 2007-03-08
|
|
# Whom: Kian Mohageri <kian.mohageri@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nagios-pf-plugin
|
|
PORTVERSION= 0.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://www.zampanosbits.com/check_pf/ \
|
|
http://restek.wwu.edu/~kian/
|
|
DISTNAME= check_pf-${PORTVERSION}
|
|
|
|
MAINTAINER= kian.mohageri@gmail.com
|
|
COMMENT= Nagios plugin for checking PF
|
|
|
|
NAGIOS_PLUGIN_DIR?= libexec/nagios/
|
|
|
|
PLIST_FILES= ${NAGIOS_PLUGIN_DIR}/check_pf
|
|
PLIST_DIRS= ${NAGIOS_PLUGIN_DIR}
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= NAGIOS_PLUGIN_DIR=${NAGIOS_PLUGIN_DIR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 601000
|
|
IGNORE= requires FreeBSD 6.1 or later
|
|
.endif
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "You can redefine the following additional variables:"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} " NAGIOS_PLUGIN_DIR=${NAGIOS_PLUGIN_DIR}"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "The plugin directory is relative to PREFIX:"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} " PREFIX=${PREFIX}"
|
|
@${ECHO_MSG} ""
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
"s,/usr/local/libexec/nagios,${PREFIX}/${NAGIOS_PLUGIN_DIR}," \
|
|
${WRKSRC}/Makefile
|
|
|
|
pre-install:
|
|
@${MKDIR} ${PREFIX}/${NAGIOS_PLUGIN_DIR}
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|