2013-09-21 01:05:58 +02:00
|
|
|
# Created by: jrhett@netconsonance.com
|
2006-10-09 15:19:33 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cfengine
|
2012-10-25 04:38:27 +02:00
|
|
|
PORTVERSION= 3.3.8
|
2015-03-03 01:47:48 +01:00
|
|
|
PORTREVISION= 9
|
2006-10-09 15:19:33 +02:00
|
|
|
CATEGORIES= sysutils
|
2014-06-03 01:50:01 +02:00
|
|
|
MASTER_SITES= https://s3.amazonaws.com/cfengine.package-repos/tarballs/
|
2013-01-08 14:48:05 +01:00
|
|
|
PKGNAMESUFFIX= 33
|
2006-10-09 15:19:33 +02:00
|
|
|
|
2009-11-14 01:12:04 +01:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2012-08-09 03:03:03 +02:00
|
|
|
# gjb@FreeBSD.org is also committer for this port
|
2013-10-19 14:28:02 +02:00
|
|
|
COMMENT= Systems administration tool for networks
|
2015-03-03 01:47:48 +01:00
|
|
|
CPE_VENDOR= gnu
|
2013-10-19 14:28:02 +02:00
|
|
|
|
2012-04-19 06:21:15 +02:00
|
|
|
FETCH_BEFORE_ARGS= -o ${DISTDIR}/${DISTFILES}
|
|
|
|
|
2013-07-03 17:12:04 +02:00
|
|
|
CONFLICTS= cfengine-2* cfengine-3.[245]* cfengine-devel-*
|
2006-10-09 15:19:33 +02:00
|
|
|
|
2009-02-10 22:37:55 +01:00
|
|
|
USE_RC_SUBR= cf-execd cf-serverd
|
2007-06-15 20:18:57 +02:00
|
|
|
|
2015-03-03 01:47:48 +01:00
|
|
|
USES= cpe gmake libtool
|
2012-04-19 06:21:15 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-10-09 15:19:33 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2009-11-14 01:12:04 +01:00
|
|
|
# EXAMPLESDIR= ${PREFIX}/share/examples/cfengine3
|
2012-04-19 06:21:15 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/cfengine
|
2009-02-10 22:37:55 +01:00
|
|
|
CONFIGURE_ARGS= --docdir=${DOCSDIR} \
|
|
|
|
--htmldir=${DOCSDIR}/html \
|
2012-04-19 17:00:56 +02:00
|
|
|
--with-pcre=${LOCALBASE} \
|
2012-04-19 06:21:15 +02:00
|
|
|
--enable-fhs
|
2013-10-19 14:28:02 +02:00
|
|
|
CFLAGS+= -Wno-error=implicit-function-declaration
|
2009-02-10 22:37:55 +01:00
|
|
|
|
2013-10-19 14:28:02 +02:00
|
|
|
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
|
2012-04-19 17:00:56 +02:00
|
|
|
|
2012-10-25 04:38:27 +02:00
|
|
|
OPTIONS_DEFINE= PGSQL MYSQL LIBVIRT
|
|
|
|
OPTIONS_SINGLE= DB
|
|
|
|
OPTIONS_SINGLE_DB= TOKYOCABINET QDBM
|
|
|
|
TOKYOCABINET_DESC= Enable TokyoCabinet database backend
|
|
|
|
QDBM_DESC= Enable QDBM database backend
|
|
|
|
PGSQL_DESC= Enable PostgreSQL integration
|
|
|
|
MYSQL_DESC= Enable MySQL integration
|
|
|
|
LIBVIRT_DESC= Enable libvirt integration
|
|
|
|
OPTIONS_DEFAULT=TOKYOCABINET
|
2009-02-10 22:37:55 +01:00
|
|
|
|
2013-10-19 14:28:02 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^htmldir/s!=.*!= @htmldir@!' \
|
|
|
|
${WRKSRC}/docs/Makefile.in
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2009-02-10 22:37:55 +01:00
|
|
|
|
2012-10-25 04:38:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MTOKYOCABINET}
|
2012-04-19 06:21:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tokyocabinet=${LOCALBASE}
|
2013-10-19 14:28:02 +02:00
|
|
|
LIB_DEPENDS+= libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet
|
2012-04-19 06:21:15 +02:00
|
|
|
.endif
|
|
|
|
|
2012-10-25 04:38:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MQDBM}
|
2012-04-19 06:21:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-qdbm=${LOCALBASE}
|
2013-10-19 14:28:02 +02:00
|
|
|
LIB_DEPENDS+= libqdbm.so:${PORTSDIR}/databases/qdbm
|
2012-04-19 06:21:15 +02:00
|
|
|
.endif
|
|
|
|
|
2012-10-25 04:38:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2014-11-22 21:40:08 +01:00
|
|
|
USES+= pgsql
|
2012-04-19 06:21:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 04:38:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2012-06-18 22:22:35 +02:00
|
|
|
USE_MYSQL= yes
|
2012-04-19 06:21:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
2013-10-19 14:28:02 +02:00
|
|
|
LIB_DEPENDS+= libmysqlclient.so:${PORTSDIR}/${_MYSQL_CLIENT}
|
2012-06-18 22:22:35 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/mysql
|
2012-04-19 06:21:15 +02:00
|
|
|
.endif
|
|
|
|
|
2012-10-25 04:38:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MLIBVIRT}
|
2012-06-18 22:22:35 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libvirt=${LOCALBASE}
|
2013-10-19 14:28:02 +02:00
|
|
|
LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt
|
2012-06-18 22:22:35 +02:00
|
|
|
.endif
|
2012-04-19 06:21:15 +02:00
|
|
|
|
2013-10-19 14:28:02 +02:00
|
|
|
.include <bsd.port.mk>
|