summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/cfengine/cfengine_3.26.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/cfengine/cfengine_3.26.0.bb')
-rw-r--r--meta-oe/recipes-extended/cfengine/cfengine_3.26.0.bb73
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/cfengine/cfengine_3.26.0.bb b/meta-oe/recipes-extended/cfengine/cfengine_3.26.0.bb
new file mode 100644
index 0000000000..28ea16ea6f
--- /dev/null
+++ b/meta-oe/recipes-extended/cfengine/cfengine_3.26.0.bb
@@ -0,0 +1,73 @@
1#
2# Copyright (C) 2014 - 2017 Wind River Systems, Inc.
3#
4SUMMARY = "CFEngine is an IT infrastructure automation framework"
5
6DESCRIPTION = "CFEngine is an IT infrastructure automation framework \
7that helps engineers, system administrators and other stakeholders \
8in an IT system to manage and understand IT infrastructure throughout \
9its lifecycle. CFEngine takes systems from Build to Deploy, Manage and Audit."
10
11HOMEPAGE = "http://cfengine.com"
12
13LICENSE = "GPL-3.0-only"
14LIC_FILES_CHKSUM = "file://LICENSE;md5=eef43e6a0b5a8f46ef7f11e1e4b32a6c"
15
16DEPENDS += "attr tokyocabinet bison-native openssl libpcre2 librsync"
17
18SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BPN}-community-${PV}.tar.gz \
19 file://set-path-of-default-config-file.patch \
20 "
21SRC_URI[sha256sum] = "d3c3884b314dae48a6884e919d0a12acac5aea95d970544e4632a1773857d19b"
22
23inherit autotools-brokensep systemd
24
25export EXPLICIT_VERSION = "${PV}"
26
27SYSTEMD_SERVICE:${PN} = "cfengine3.service cf-apache.service cf-hub.service cf-postgres.service \
28 cf-execd.service cf-php-fpm.service \
29 cf-monitord.service cf-serverd.service \
30 cf-reactor.service \
31"
32SYSTEMD_AUTO_ENABLE:${PN} = "disable"
33
34PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}"
35
36PACKAGECONFIG[libxml2] = "--with-libxml2=yes,--with-libxml2=no,libxml2,"
37PACKAGECONFIG[mysql] = "--with-mysql=yes,--with-mysql=no,mariadb,"
38PACKAGECONFIG[postgresql] = "--with-postgresql=yes,--with-postgresql=no,postgresql,"
39PACKAGECONFIG[acl] = "--with-libacl=yes,--with-libacl=no,acl,"
40PACKAGECONFIG[libvirt] = "--with-libvirt=yes,--with-libvirt=no,libvirt,"
41PACKAGECONFIG[pam] = "--with-pam=yes,--with-pam=no,libpam,"
42PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml,"
43PACKAGECONFIG[systemd] = "--with-systemd-service=${systemd_system_unitdir},--without-systemd-service"
44PACKAGECONFIG[libcurl] = "--with-libcurl,--without-libcurl,curl,"
45
46EXTRA_OECONF = "hw_cv_func_va_copy=yes --with-init-script=${sysconfdir}/init.d --with-tokyocabinet"
47CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'mysql', '-I${STAGING_INCDIR}/mysql', '', d)}"
48CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'libxml2', '-I${STAGING_INCDIR}/libxml2', '', d)}"
49
50do_install:append() {
51 install -d ${D}${localstatedir}/${BPN}/bin
52 for f in $(find ${D}${bindir} -type f); do
53 ln -sr $f ${D}${localstatedir}/${BPN}/bin/
54 done
55
56 install -d ${D}${sysconfdir}/default
57 cat << EOF > ${D}${sysconfdir}/default/cfengine3
58RUN_CF_SERVERD=1
59RUN_CF_EXECD=1
60RUN_CF_MONITORD=1
61RUN_CF_HUB=0
62EOF
63
64 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
65 install -m 0755 -D ${D}${sysconfdir}/init.d/cfengine3 ${D}${datadir}/${BPN}/cfengine3
66 sed -i -e 's#/etc/init.d#${datadir}/${BPN}#' ${D}${systemd_system_unitdir}/*.service
67 fi
68 rm -rf ${D}${datadir}/cfengine/modules/packages/zypper
69}
70
71RDEPENDS:${PN} += "${BPN}-masterfiles"
72
73FILES:${PN} += "${libdir}/python"