2008-01-06 14:31:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2008/01/06 13:31:57 cheusov Exp $
|
|
|
|
# $Id: Makefile,v 1.12 2008/01/06 13:31:57 cheusov Exp $
|
2006-04-19 12:30:20 +02:00
|
|
|
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
2006-04-20 09:02:41 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.cfengine2
|
2006-04-25 22:04:35 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= static cfengine-thread
|
|
|
|
PKG_SUGGESTED_OPTIONS= static cfengine-thread
|
2006-04-19 22:38:31 +02:00
|
|
|
|
2006-04-19 12:30:20 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2006-04-19 17:14:56 +02:00
|
|
|
COMMENT= Automate configuration and administration of large systems, networks
|
2006-04-19 12:30:20 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
|
2007-11-14 23:58:22 +01:00
|
|
|
BUILD_DEFS+= IPV6_READY
|
2006-04-19 12:30:20 +02:00
|
|
|
|
2006-04-20 09:02:41 +02:00
|
|
|
CONFIGURE_ARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl:Q}
|
2006-04-19 12:30:20 +02:00
|
|
|
|
2008-01-06 14:31:57 +01:00
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man8 share/examples/cfengine
|
|
|
|
|
2006-04-19 12:30:20 +02:00
|
|
|
RCD_SCRIPTS= cfexecd cfservd cfenvd
|
|
|
|
|
2006-04-19 17:14:56 +02:00
|
|
|
# PR#33028
|
|
|
|
# Cfengine needs flex not lex.
|
|
|
|
# On netbsd flex=lex, so USE_TOOLS doesn't do anything.
|
|
|
|
# But other platforms i.e. Solaris need this.
|
|
|
|
|
2007-11-17 11:26:00 +01:00
|
|
|
USE_TOOLS+= flex yacc
|
2006-04-19 17:14:56 +02:00
|
|
|
|
2006-04-25 22:04:35 +02:00
|
|
|
.if (empty(PKG_OPTIONS:Mcfengine-pthread))
|
2006-04-19 12:30:20 +02:00
|
|
|
CONFIGURE_ARGS+= --without-pthreads
|
|
|
|
.else
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
2006-04-20 08:54:31 +02:00
|
|
|
# static linking should be prefered for cfengine
|
2006-04-19 12:30:20 +02:00
|
|
|
# as it likes to distribute itself as a binary
|
|
|
|
# for boot-straping.
|
|
|
|
#
|
|
|
|
.if (!empty(PKG_OPTIONS:Mstatic))
|
|
|
|
LDFLAGS+= -static
|
|
|
|
BUILDLINK_DEPMETHOD.db4=build
|
|
|
|
BUILDLINK_DEPMETHOD.openssl=build
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2008-01-06 14:31:57 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC:Q}/doc/*.8 ${PREFIX:Q}/${PKGMANDIR}/man8
|
2006-04-20 09:02:41 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/inputs/*.example \
|
|
|
|
${PREFIX:Q}/share/examples/cfengine/
|
2006-10-14 12:10:48 +02:00
|
|
|
${INSTALL_DATA_DIR} ${VARBASE:Q}/cfengine/inputs
|
2006-04-19 12:30:20 +02:00
|
|
|
|
|
|
|
.include "../../databases/db4/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|