diff options
Diffstat (limited to 'net/flow-tools/Makefile')
-rw-r--r-- | net/flow-tools/Makefile | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/net/flow-tools/Makefile b/net/flow-tools/Makefile index f0dc293cb54..b98147db8b9 100644 --- a/net/flow-tools/Makefile +++ b/net/flow-tools/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.5 2003/07/17 22:51:10 grant Exp $ +# $NetBSD: Makefile,v 1.6 2004/04/22 15:33:35 seb Exp $ -DISTNAME= flow-tools-0.66 +DISTNAME= flow-tools-0.67 CATEGORIES= net MASTER_SITES= ftp://ftp.eng.oar.net/pub/flow-tools/ @@ -9,12 +9,15 @@ HOMEPAGE= http://www.splintered.net/sw/flow-tools/ COMMENT= Collect and store NetFlow data GNU_CONFIGURE= YES -USE_BUILDLINK2= YES +USE_BUILDLINK3= YES USE_PKGINSTALL= YES PKG_SYSCONFSUBDIR= flow-tools CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +BUILD_DEFS+= FLOW_TOOLS_USE_MYSQL +BUILD_DEFS+= FLOW_TOOLS_USE_POSTGRESQL + EGDIR= ${PREFIX}/share/examples/flow-tools MAKE_DIRS+= ${PKG_SYSCONFDIR}/sym MAKE_DIRS+= ${PKG_SYSCONFDIR}/cfg @@ -30,15 +33,16 @@ MESSAGE_SUBST+= EGDIR=${EGDIR} .include "../../mk/bsd.prefs.mk" # MySQL support -.if defined(FLOW_TOOLS_USE_MYSQL) && ${FLOW_TOOLS_USE_MYSQL} == "YES" -.include "../../databases/mysql-client/buildlink2.mk" +.if defined(FLOW_TOOLS_USE_MYSQL) && !empty(FLOW_TOOLS_USE_MYSQL:M[yY][eE][sS]) +.include "../../databases/mysql-client/buildlink3.mk" CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client} -LDFLAGS+= -Wl,${_OPSYS_RPATH_NAME}${BUILDLINK_PREFIX.mysql-client}/lib/mysql .endif -# Touch these or else config.status being touched the manpages -# generated by it will be made twice -AUTOMAKE_POST_PATTERNS+= *.1 +# Postgresql support +.if defined(FLOW_TOOLS_USE_POSTGRESQL) && !empty(FLOW_TOOLS_USE_POSTGRESQL:M[yY][eE][sS]) +.include "../../databases/postgresql-lib/buildlink3.mk" +CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.postgresql-lib} +.endif # To avoid providing more patch files we do the following... # Order is important here or else dependencies requiring docbook-to-man/jade @@ -56,6 +60,6 @@ post-patch: done; \ done -.include "../../devel/zlib/buildlink2.mk" -.include "../../security/tcp_wrappers/buildlink2.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../security/tcp_wrappers/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |