diff options
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.bb | 73 |
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 | # | ||
| 4 | SUMMARY = "CFEngine is an IT infrastructure automation framework" | ||
| 5 | |||
| 6 | DESCRIPTION = "CFEngine is an IT infrastructure automation framework \ | ||
| 7 | that helps engineers, system administrators and other stakeholders \ | ||
| 8 | in an IT system to manage and understand IT infrastructure throughout \ | ||
| 9 | its lifecycle. CFEngine takes systems from Build to Deploy, Manage and Audit." | ||
| 10 | |||
| 11 | HOMEPAGE = "http://cfengine.com" | ||
| 12 | |||
| 13 | LICENSE = "GPL-3.0-only" | ||
| 14 | LIC_FILES_CHKSUM = "file://LICENSE;md5=eef43e6a0b5a8f46ef7f11e1e4b32a6c" | ||
| 15 | |||
| 16 | DEPENDS += "attr tokyocabinet bison-native openssl libpcre2 librsync" | ||
| 17 | |||
| 18 | SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BPN}-community-${PV}.tar.gz \ | ||
| 19 | file://set-path-of-default-config-file.patch \ | ||
| 20 | " | ||
| 21 | SRC_URI[sha256sum] = "d3c3884b314dae48a6884e919d0a12acac5aea95d970544e4632a1773857d19b" | ||
| 22 | |||
| 23 | inherit autotools-brokensep systemd | ||
| 24 | |||
| 25 | export EXPLICIT_VERSION = "${PV}" | ||
| 26 | |||
| 27 | SYSTEMD_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 | " | ||
| 32 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" | ||
| 33 | |||
| 34 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" | ||
| 35 | |||
| 36 | PACKAGECONFIG[libxml2] = "--with-libxml2=yes,--with-libxml2=no,libxml2," | ||
| 37 | PACKAGECONFIG[mysql] = "--with-mysql=yes,--with-mysql=no,mariadb," | ||
| 38 | PACKAGECONFIG[postgresql] = "--with-postgresql=yes,--with-postgresql=no,postgresql," | ||
| 39 | PACKAGECONFIG[acl] = "--with-libacl=yes,--with-libacl=no,acl," | ||
| 40 | PACKAGECONFIG[libvirt] = "--with-libvirt=yes,--with-libvirt=no,libvirt," | ||
| 41 | PACKAGECONFIG[pam] = "--with-pam=yes,--with-pam=no,libpam," | ||
| 42 | PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml," | ||
| 43 | PACKAGECONFIG[systemd] = "--with-systemd-service=${systemd_system_unitdir},--without-systemd-service" | ||
| 44 | PACKAGECONFIG[libcurl] = "--with-libcurl,--without-libcurl,curl," | ||
| 45 | |||
| 46 | EXTRA_OECONF = "hw_cv_func_va_copy=yes --with-init-script=${sysconfdir}/init.d --with-tokyocabinet" | ||
| 47 | CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'mysql', '-I${STAGING_INCDIR}/mysql', '', d)}" | ||
| 48 | CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'libxml2', '-I${STAGING_INCDIR}/libxml2', '', d)}" | ||
| 49 | |||
| 50 | do_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 | ||
| 58 | RUN_CF_SERVERD=1 | ||
| 59 | RUN_CF_EXECD=1 | ||
| 60 | RUN_CF_MONITORD=1 | ||
| 61 | RUN_CF_HUB=0 | ||
| 62 | EOF | ||
| 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 | |||
| 71 | RDEPENDS:${PN} += "${BPN}-masterfiles" | ||
| 72 | |||
| 73 | FILES:${PN} += "${libdir}/python" | ||
