From 2d6a6195f942c6b4ea4844376c746d6a1a1307d1 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Tue, 12 Oct 2004 00:11:04 +0000 Subject: - Update to 2.1.10 - Allow various version of BDB PR: ports/72066 Submitted by: Kevin Way Based on work by: maintainer --- sysutils/cfengine2/Makefile | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'sysutils/cfengine2/Makefile') diff --git a/sysutils/cfengine2/Makefile b/sysutils/cfengine2/Makefile index fbdf0f582e59..00f142e81fe1 100644 --- a/sysutils/cfengine2/Makefile +++ b/sysutils/cfengine2/Makefile @@ -6,7 +6,7 @@ # PORTNAME= cfengine2 -PORTVERSION= 2.1.5 +PORTVERSION= 2.1.10 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.iu.hio.no/pub/cfengine/ \ ${MASTER_SITE_GNU} @@ -16,15 +16,31 @@ DISTNAME= cfengine-${PORTVERSION} MAINTAINER= paul@aps.org COMMENT= A systems administration tool for networks -LIB_DEPENDS= db41:${PORTSDIR}/databases/db41 - USE_OPENSSL= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ARGS= --with-berkeleydb=${LOCALBASE} +CONFIGURE_ARGS= --with-berkeleydb=${LOCALBASE} --with-docs +USE_REINPLACE= yes INFO= cfengine-Anomalies cfengine-Reference cfengine-Tutorial MAN8= cfengine.8 cfagent.8 cfenvd.8 cfenvgraph.8 cfexecd.8 cfkey.8 \ cfrun.8 cfservd.8 +WITH_BDB_VER?= 42 + +.if ${WITH_BDB_VER} == 42 +BDBLIB= db-4.2.2 +BDBVERSION= db-4.2 +.elif ${WITH_BDB_VER} == 41 +BDBLIB= db41.1 +BDBVERSION= db41 +.else +.error WITH_BDB_VER must be 41 or 42 +.endif + +LIB_DEPENDS+= ${BDBLIB}:${PORTSDIR}/databases/db${WITH_BDB_VER} + +post-patch: + @${REINPLACE_CMD} 's|-ldb|-l${BDBVERSION}|g' ${WRKSRC}/configure + .include -- cgit v1.2.3