diff options
author | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-12-16 16:32:45 +0000 |
---|---|---|
committer | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-12-16 16:32:45 +0000 |
commit | 9a5c27ecffc458c012c1e8c90a638964348a085e (patch) | |
tree | e160d2b8d2963ff612c68f8849430c7a571d6aec /net-mgmt | |
parent | - Update to version 1.9.6 [1] (diff) |
- clean up bacula-* ports (Makefile and pkg-message files)
- now bacula-docs just installs pdf files
- add bacula-server/Makefile.common with -bat, -client-static and nagios_check-
stuff (another bacula slave ports can use it too)
- remove pkg-plist from bacula-bat and nagios-check_bacula
- now bacula-server, bacula-bat and nagios-check_bacula depend of bacula-client.
It avoids some conflicts when we want to install all bacula ports in the same
system
- remove the OPTION to install static version of bacula-client. Now it is a new
port
- few other minor changes
while here:
- trim Makefile headers
- remove indefinite articles in COMMENT
- convert to optionsng
PR: 167700
Submitted by: acm (original patch), Dan Langille <dan@langille.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=309025
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/nagios-check_bacula/Makefile | 52 | ||||
-rw-r--r-- | net-mgmt/nagios-check_bacula/pkg-descr | 2 | ||||
-rw-r--r-- | net-mgmt/nagios-check_bacula/pkg-plist | 3 |
3 files changed, 13 insertions, 44 deletions
diff --git a/net-mgmt/nagios-check_bacula/Makefile b/net-mgmt/nagios-check_bacula/Makefile index 08aaf4aea22c..c78f1796c6c1 100644 --- a/net-mgmt/nagios-check_bacula/Makefile +++ b/net-mgmt/nagios-check_bacula/Makefile @@ -1,54 +1,26 @@ -# New ports collection makefile for: nagios-check_bacula -# Date created: 10 Juli 2008 -# Whom: Anders Troback -# +# Created by: Anders Troback # $FreeBSD$ -# PORTNAME= bacula -PKGNAMEPREFIX= nagios-check_ CATEGORIES= net-mgmt -UNIQUENAME= ${PKGNAMEPREFIX}${PORTNAME} +PKGNAMEPREFIX= nagios-check_ +PKGNAMESUFFIX= # MAINTAINER= freebsd@troback.com COMMENT= Nagios plugin for Bacula +LIB_DEPENDS+= bac:${PORTSDIR}/sysutils/bacula-client +UNIQUENAME= ${PKGNAMEPREFIX}${PORTNAME} + 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 \ +CONFIGURE_ARGS= --enable-client-only \ + --disable-build-dird \ + --disable-build-stored \ + --disable-nls \ --disable-xatt -.include "${MASTERDIR}/Makefile" - -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= # -.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> +.include "${MASTERDIR}/Makefile" diff --git a/net-mgmt/nagios-check_bacula/pkg-descr b/net-mgmt/nagios-check_bacula/pkg-descr index 9997995c0e95..4b25ba83385c 100644 --- a/net-mgmt/nagios-check_bacula/pkg-descr +++ b/net-mgmt/nagios-check_bacula/pkg-descr @@ -1,2 +1,2 @@ -check_bacula is a plugin intended for use with the +check_bacula is a plugin intended for use with the Nagios network monitoring system to monitor Bacula. diff --git a/net-mgmt/nagios-check_bacula/pkg-plist b/net-mgmt/nagios-check_bacula/pkg-plist deleted file mode 100644 index a98ab876f0c5..000000000000 --- a/net-mgmt/nagios-check_bacula/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -libexec/nagios/check_bacula -%%INDEP%%lib/libbac.so.%%MAJOR%% -@dirrmtry libexec/nagios |