2006-04-20 08:54:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2006/04/20 06:54:31 ahallmann Exp $
|
2006-04-19 12:30:20 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
2006-04-19 17:14:56 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.cfengine2
|
2006-04-20 08:54:31 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= static cfengine-nothread
|
2006-04-19 22:38:31 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= static
|
|
|
|
|
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
|
|
|
|
|
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4}
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
USE_TOOLS+= flex
|
|
|
|
|
2006-04-20 08:54:31 +02:00
|
|
|
.if (!empty(PKG_OPTIONS:Mcfengine-nopthread))
|
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:
|
|
|
|
${INSTALL_MAN_DIR} ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cfengine
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/inputs/*.example \
|
|
|
|
${PREFIX}/share/examples/cfengine/
|
2006-04-19 22:38:31 +02:00
|
|
|
${INSTALL_DATA_DIR} ${VARBASE}/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"
|