mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
79500e568b
sysutils/bacula-client and net-mgmt/nagios-check_bacula to 5.0.2. PR: ports/146766 Submitted by: Allan Jude <freebsd.lists@thunderit.com> Approved by: Dan Langille <dan@langille.org> (maintainer)
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# New ports collection makefile for: nagios-check_bacula
|
|
# Date created: 10 Juli 2008
|
|
# Whom: Anders Troback
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bacula
|
|
PKGNAMEPREFIX= nagios-check_
|
|
CATEGORIES= net-mgmt
|
|
UNIQUENAME= ${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
MAINTAINER= freebsd@troback.com
|
|
COMMENT= Nagios plugin for Bacula
|
|
|
|
WITH_NAGIOS_CHECK_ONLY= yes
|
|
MASTERDIR= ${.CURDIR}/../../sysutils/bacula-server
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
CONFIGURE_ARGS= --enable-client-only \
|
|
--disable-build-dird \
|
|
--disable-build-stored \
|
|
--disable-nls \
|
|
--disable-xatt
|
|
|
|
.include "${MASTERDIR}/Makefile"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${LOCALBASE}/lib/libbac.so.${PORTVERSION:R:R})
|
|
LIB_DEPENDS+= bac.${PORTVERSION:R:R}:${PORTSDIR}/sysutils/bacula-client
|
|
WITHOUT_LIBBAC= YES
|
|
PLIST_SUB+= INDEP="@comment "
|
|
.else
|
|
PLIST_SUB+= INDEP=""
|
|
.endif
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} "===> Building nagios check only."
|
|
|
|
post-build:
|
|
${MAKE} -C ${WRKSRC}/examples/nagios/check_bacula
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/libexec/nagios
|
|
${INSTALL_PROGRAM} ${WRKSRC}/examples/nagios/check_bacula/.libs/check_bacula \
|
|
${PREFIX}/libexec/nagios
|
|
.if !defined(WITHOUT_LIBBAC)
|
|
@${ECHO_MSG} "===> Installing libbac.so.${PORTVERSION:R:R} "
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/lib/.libs/libbac.so.${PORTVERSION:R:R} \
|
|
${PREFIX}/lib
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|