freebsd-ports/net-mgmt/nagios-pf-plugin/Makefile
Rong-En Fan 4810b70a24 - Mark IGNORE for FreeBSD pre-6.1: requires strtonum(3)
- Add backup master site
- Remove MASTER_SITES from SUB_LIST which does not work properly
  and is not right when there is more than one master sites

PR:		ports/110457
Submitted by:	Kian Mohageri <kian.mohageri at gmail.com> (maintainer)
2007-03-18 13:27:07 +00:00

53 lines
1.2 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
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>