1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/net-mgmt/nagios-portaudit/Makefile
Philip M. Gollucci f67a2705e6 This is a small Nagios plugin. This plugin relies on portaudit
and/or portupgrade packages to be installed on your FreeBSD system.
With these packages installed, the plugin will scan your system for
either vulnerable packages, or obsolete packages - and display
appropriate warnings to Nagios.

Portaudit can also be successfully run remotely from nrpe, and does
not require superuser privileges to operate.

WWW: http://www.geocities.com/ntb4real/proj/portaudit.htm

PR:             ports/126710
Submitted by:   Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Approved by:    gabor (mentor)
2008-08-22 16:44:18 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: nagios-portaudit
# Date created: 19 August 2008
# Whom: rea-fbsd@codelabs.ru
#
# $FreeBSD$
#
PORTNAME= portaudit
PORTVERSION= 1.0
CATEGORIES= net-mgmt
MASTER_SITES= http://www.geocities.com/ntb4real/proj/
PKGNAMEPREFIX= nagios-
DISTNAME= check_portaudit
MAINTAINER= rea-fbsd@codelabs.ru
COMMENT= Nagios plug-in to get portaudit/portupgrade status
OPTIONS= PORTAUDIT "Enable portaudit check" ON \
PORTUPGRADE "Enable portupgrade check" ON \
PORTUPGRADE_DEVEL "Use portupgrade-devel" OFF
USE_PERL5= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
.include <bsd.port.pre.mk>
.if !defined(WITH_PORTUPGRADE) && !defined(WITH_PORTAUDIT) && !defined(WITH_PORTAUDIT_DEVEL)
IGNORE= unusable without portupgrade and portaudit
.endif
.if defined(WITH_PORTUPGRADE) && defined(WITH_PORTUPGRADE_DEVEL)
IGNORE= choose either portupgrade or portupgrade-devel, not both
.endif
.if defined(WITH_PORTAUDIT)
RUN_DEPENDS+= portaudit:${PORTSDIR}/ports-mgmt/portaudit
.endif
.if defined(WITH_PORTUPGRADE)
RUN_DEPENDS+= portupgrade:${PORTSDIR}/ports-mgmt/portupgrade
.endif
.if defined(WITH_PORTUPGRADE_DEVEL)
RUN_DEPENDS+= portupgrade:${PORTSDIR}/ports-mgmt/portupgrade-devel
.endif
do-install:
@${MKDIR} ${PREFIX}/libexec/nagios
${INSTALL_SCRIPT} ${WRKSRC}/check_portaudit ${PREFIX}/libexec/nagios
.include <bsd.port.post.mk>