From 8bb213a6682083f2e8f7e9b8f90148c171bb5054 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Thu, 16 Jun 2011 16:53:21 +0000 Subject: Fix installation and plist when the MYSQL option is off PR: ports/157905 Submitted by: Derek Brost Approved by: Alexander Demin (maintainer), bapt (mentor) --- net-mgmt/argus3-clients/Makefile | 10 +++++++++- net-mgmt/argus3-clients/pkg-plist | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'net-mgmt/argus3-clients') diff --git a/net-mgmt/argus3-clients/Makefile b/net-mgmt/argus3-clients/Makefile index 148f6e73a9a8..9bc394a659af 100644 --- a/net-mgmt/argus3-clients/Makefile +++ b/net-mgmt/argus3-clients/Makefile @@ -34,6 +34,9 @@ CONFIGURE_ARGS+= --with-sasl=${LOCALBASE} .if defined(WITH_MYSQL) USE_MYSQL= yes +PLIST_SUB+= MYSQL="" +.else +PLIST_SUB+= MYSQL="@comment " .endif .if defined(WITH_GEOIP) @@ -51,10 +54,15 @@ MAN8= radium.8 do-install: .for i in ra rabins racluster racount radump rafilteraddr \ rahisto ralabel ranonymize rapath rapolicy \ - raservices rasort rasplit rasql rasqlinsert rastream \ + raservices rasort rasplit rastream \ rastrip ratemplate ratimerange ratop ratree rauserdata ${INSTALL_PROGRAM} ${WRKSRC}/bin/$i ${PREFIX}/bin/$i .endfor +.if defined(WITH_MYSQL) +.for i in rasql rasqlinsert + ${INSTALL_PROGRAM} ${WRKSRC}/bin/$i ${PREFIX}/bin/$i +.endfor +.endif .for i in radark ragraph rahosts raports ${INSTALL_SCRIPT} ${WRKSRC}/bin/$i ${PREFIX}/bin/$i .endfor diff --git a/net-mgmt/argus3-clients/pkg-plist b/net-mgmt/argus3-clients/pkg-plist index 21e9873fc25c..5cf381c2dab1 100644 --- a/net-mgmt/argus3-clients/pkg-plist +++ b/net-mgmt/argus3-clients/pkg-plist @@ -16,8 +16,8 @@ bin/raports bin/raservices bin/rasort bin/rasplit -bin/rasql -bin/rasqlinsert +%%MYSQL%%bin/rasql +%%MYSQL%%bin/rasqlinsert bin/rastream bin/rastrip bin/ratemplate -- cgit v1.2.3