diff options
Diffstat (limited to 'sysutils/cfengine3-legacy/Makefile')
-rw-r--r-- | sysutils/cfengine3-legacy/Makefile | 67 |
1 files changed, 38 insertions, 29 deletions
diff --git a/sysutils/cfengine3-legacy/Makefile b/sysutils/cfengine3-legacy/Makefile index a1077d4f3db1..1b709381f200 100644 --- a/sysutils/cfengine3-legacy/Makefile +++ b/sysutils/cfengine3-legacy/Makefile @@ -1,53 +1,62 @@ -# New ports collection makefile for: cfengine -# Date created: March 16, 1998 -# Whom: jseger@FreeBSD.org +# New ports collection makefile for: cfengine v3 +# Date created: February 2, 2009 +# Whom: jrhett@netconsonance.com # # $FreeBSD$ # PORTNAME= cfengine -PORTVERSION= 2.2.9 +PORTVERSION= 3.0.1 +DISTVERSION= 3.0.1a7 CATEGORIES= sysutils MASTER_SITES= http://www.cfengine.org/downloads/ MAINTAINER= jrhett@netconsonance.com COMMENT= A systems administration tool for networks +LATEST_LINK= cfengine3 -USE_RC_SUBR= cfexecd cfservd +USE_RC_SUBR= cf-execd cf-serverd -WITH_BDB_VER?= 46 +WITH_BDB_VER?= 47 USE_BDB= yes USE_OPENSSL= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-docs \ - --docdir=${DOCSDIR} \ - --htmldir=${DOCSDIR}/html -CONFIGURE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} \ - BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \ +BUILD_DEPENDS= +EXAMPLESDIR= ${PREFIX}/share/examples/cfengine3 +DOCSDIR= ${PREFIX}/share/doc/cfengine3 +CONFIGURE_ARGS= --docdir=${DOCSDIR} \ + --htmldir=${DOCSDIR}/html \ + --with-berkeleydb=${LOCALBASE} + +CONFIGURE_ENV+= BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \ BERKELEY_DB_LDFLAGS=-L${BDB_LIB_DIR} \ BERKELEY_DB_LIB=-l${BDB_LIB_NAME} -.if !defined(NOPORTDOCS) -INFO= cfengine-Tutorial cfengine-Reference cfengine-Anomalies + +OPTIONS= PCRE "Enable Perl-compatible regular expressions" on +.include <bsd.port.pre.mk> + +.if defined(WITH_PCRE) +BUILD_DEPENDS+= ${PORTSDIR}/devel/pcre +CONFIGURE_ARGS+= --with-pcre=${LOCALBASE} .endif -MAN8= cfagent.8 cfengine.8 cfenvd.8 cfenvgraph.8 cfetoolcheck.8 \ - cfetoolcreate.8 cfetooldump.8 cfetoolgraph.8 cfetoolimport.8 \ - cfetoolinfo.8 cfetoolupdate.8 cfexecd.8 cfkey.8 \ - cfrun.8 cfservd.8 cfshow.8 +MAN8= cf-agent.8 cf-key.8 cf-monitord.8 \ + cf-report.8 cf-serverd.8 cf-execd.8 \ + cf-know.8 cf-promise.8 cf-runagent.8 + +.if !defined(NOPORTDOCS) +INFO= cf3-reference +.endif post-patch: - @${REINPLACE_CMD} -e s,-pthread,${PTHREAD_CFLAGS},g \ - -e s,-lpthread,${PTHREAD_LIBS},g \ - -e s,lpthread,${PTHREAD_LIBS},g \ - ${WRKSRC}/configure + @${REINPLACE_CMD} -e '/^pkgdatadir/s!=.*!= ${EXAMPLESDIR}!'\ + ${WRKSRC}/inputs/Makefile.in + @${REINPLACE_CMD} -e '/^docdir/s!=.*!= @docdir@!'\ - ${WRKSRC}/doc/Makefile.in \ - ${WRKSRC}/Makefile.in + ${WRKSRC}/tests/file_masters/Makefile.in \ + ${WRKSRC}/tests/units/Makefile.in + @${REINPLACE_CMD} -e '/^htmldir/s!=.*!= @htmldir@!'\ - ${WRKSRC}/doc/Makefile.in \ - ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e '/^pkgdatadir/s!=.*!= ${EXAMPLESDIR}!'\ - ${WRKSRC}/inputs/Makefile.in \ - ${WRKSRC}/contrib/Makefile.in + ${WRKSRC}/docs/Makefile.in -.include <bsd.port.mk> +.include <bsd.port.post.mk> |