pkgsrc-wip/cfengine/Makefile
Tobias Nygren d2ab3469b0 Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@
2008-01-18 04:30:10 +00:00

61 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2008/01/18 04:30:11 tnn2 Exp $
# $Id: Makefile,v 1.13 2008/01/18 04:30:11 tnn2 Exp $
.include "Makefile.common"
PKGREVISION= 1
PKG_OPTIONS_VAR= PKG_OPTIONS.cfengine2
PKG_SUPPORTED_OPTIONS= static cfengine-thread
PKG_SUGGESTED_OPTIONS= static cfengine-thread
.include "../../mk/bsd.options.mk"
COMMENT= Automate configuration and administration of large systems, networks
GNU_CONFIGURE= YES
PTHREAD_OPTS+= require
BUILD_DEFS+= IPV6_READY
CONFIGURE_ARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4:Q}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl:Q}
INSTALLATION_DIRS+= ${PKGMANDIR}/man8 share/examples/cfengine
RCD_SCRIPTS= cfexecd cfservd cfenvd
# 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 yacc
.if (empty(PKG_OPTIONS:Mcfengine-pthread))
CONFIGURE_ARGS+= --without-pthreads
.else
PTHREAD_OPTS+= require
.include "../../mk/pthread.buildlink3.mk"
.endif
#
# static linking should be prefered for cfengine
# 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} ${WRKSRC:Q}/doc/*.8 ${PREFIX:Q}/${PKGMANDIR}/man8
${INSTALL_DATA} ${WRKSRC:Q}/inputs/*.example \
${PREFIX:Q}/share/examples/cfengine/
${INSTALL_DATA_DIR} ${VARBASE:Q}/cfengine/inputs
.include "../../databases/db4/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"