blob: da9c2fed1a0cc6c14fe663e6e388384487974b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $NetBSD: Makefile,v 1.10 2013/03/02 20:33:33 wiz Exp $
#
DISTNAME= cfengine-3.4.2
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://cfengine.com/source-code/download?file=
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= http://cfengine.com/pages/community
COMMENT= Tool for automating system administration
LICENSE= gnu-gpl-v3
USE_LANGUAGES= c c++ c99
USE_LIBTOOL= yes
USE_TOOLS+= gmake
.include "options.mk"
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-fhs
CONFIGURE_ARGS+= --docdir=${DOCDIR}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE:Q}
CONFIGURE_ARGS+= --with-workdir=${CFENGINE_DIR:Q}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl:Q}
CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre:Q}
BUILD_DEFS+= VARBASE CFENGINE_DIR
FILES_SUBST+= CFENGINE_DIR=${CFENGINE_DIR}
CFENGINE_DIR?= ${VARBASE}/cfengine
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
PKG_SYSCONFSUBDIR= cfengine
CFILES= cf-sketch-runfile.cf def.cf promises.cf
CFILES+= controls/cf_agent.cf controls/cf_execd.cf
CFILES+= controls/cf_monitord.cf controls/cf_report.cf
CFILES+= controls/cf_runagent.cf controls/cf_serverd.cf
CFILES+= libraries/cfengine_stdlib.cf services/init_msg.cf
.for file in ${CFILES}
CONF_FILES+= ${EGDIR}/CoreBase/${file} ${PKG_SYSCONFDIR}/${file}
.endfor
RCD_SCRIPTS= cfserverd cfexecd cfmonitord
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${PKG_SYSCONFDIR} docdir=${DOCDIR} examplesdir=${EGDIR} masterfilesdir=${EGDIR}/CoreBase projlibdir=${PREFIX}/lib
MAKE_DIRS= ${CFENGINE_DIR}
MAKE_DIRS+= ${PKG_SYSCONFDIR}/controls ${PKG_SYSCONFDIR}/libraries
MAKE_DIRS+= ${PKG_SYSCONFDIR}/services
.include "../../devel/pcre/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|