1 # Created by: jrhett@netconsonance.com
8 MASTER_SITES= https://s3.amazonaws.com/cfengine-package-repos/tarballs/
10 MAINTAINER= cy@FreeBSD.org
11 # gjb@FreeBSD.org is also committer for this port
12 # skreuzer@FreeBSD.org is also committer for this port
13 COMMENT= Systems administration tool for networks
19 .if !defined(MASTERDIR)
23 FETCH_BEFORE_ARGS= -o ${DISTDIR}/${DISTFILES}
25 CONFLICTS= cfengine-[12-78]*
27 USE_RC_SUBR= cf-execd cf-serverd cf-monitord
32 USES= autoreconf:build \
33 cpe gmake libtool shebangfix ssl
35 SHEBANG_FILES= examples/remake_outputs.pl
36 CFLAGS+= -Wno-return-type
37 CPPFLAGS+= -I${LOCALBASE}/include
38 LDFLAGS+= -L${LOCALBASE}/lib
39 # EXAMPLESDIR= ${PREFIX}/share/examples/cfengine3
40 DOCSDIR= ${PREFIX}/share/doc/cfengine
41 MAKE_ENV= EXPLICIT_VERSION=${PORTVERSION}
42 CONFIGURE_ENV= EXPLICIT_VERSION=${PORTVERSION}
43 CONFIGURE_ARGS= --docdir=${DOCSDIR} \
44 --htmldir=${DOCSDIR}/html \
45 --libexecdir=${PREFIX}/libexec \
46 --libdir=${PREFIX}/libexec \
47 --mandir=${PREFIX}/man \
48 --with-workdir=/var/cfengine \
49 --with-pcre=${LOCALBASE} \
50 --with-lmdb=${LOCALBASE} \
52 INSTALL_TARGET= install-strip
54 LIB_DEPENDS+= libpcre.so:devel/pcre \
55 liblmdb.so:databases/lmdb \
56 libyaml.so:textproc/libyaml \
59 OPTIONS_DEFINE= PGSQL MYSQL LIBVIRT
62 PGSQL_CONFIGURE_WITH= --with-postgresql=${LOCALBASE}
65 MYSQL_BROKEN= configure: error: MySQL client library exports symbols (EVP_CIPHER_CTX_init) clashing with OpenSSL.
66 MYSQL_CONFIGURE_WITH= --with-mysql=${LOCALBASE}
67 MYSQL_LIB_DEPENDS= libmysqlclient.so:${_MYSQL_CLIENT}
68 MYSQL_LDFLAGS= -L${LOCALBASE}/lib/mysql
70 LIBVIRT_CONFIGURE_WITH= --with-libvirt=${LOCALBASE}
71 LIBVIRT_LIB_DEPENDS+= libvirt.so:devel/libvirt
73 .include <bsd.port.mk>