added my Recipes
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#
|
||||
# Copyright (C) 2014 - 2017 Wind River Systems, Inc.
|
||||
#
|
||||
SUMMARY = "Base policy for CFEngine"
|
||||
|
||||
DESCRIPTION = "CFEngine is an IT infrastructure automation framework \
|
||||
that helps engineers, system administrators and other stakeholders \
|
||||
in an IT system to manage and understand IT infrastructure throughout \
|
||||
its lifecycle. CFEngine takes systems from Build to Deploy, Manage and Audit. \
|
||||
\
|
||||
This package is intended to provide a stable base policy for \
|
||||
installations and upgrades, and is used by CFEngine 3.6 and newer. \
|
||||
\
|
||||
The contents of this packge are intended to live in `/var/cfengine/masterfiles` \
|
||||
or wherever `$(sys.masterdir)` points. \
|
||||
"
|
||||
|
||||
HOMEPAGE = "http://cfengine.com"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=bb843e794feb6890f7697637b461c36e"
|
||||
|
||||
SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BP}.tar.gz \
|
||||
"
|
||||
#SRC_URI[md5sum] = "5df2f85c75efc351ffadebcc11046a98"
|
||||
SRC_URI[sha256sum] = "013ebe68599915cedb4bf753b471713d91901a991623358b9a967d9a779bcc16"
|
||||
|
||||
inherit autotools
|
||||
|
||||
export EXPLICIT_VERSION="${PV}"
|
||||
|
||||
EXTRA_OECONF = "--prefix=${datadir}/cfengine"
|
||||
|
||||
do_install:append() {
|
||||
rm -rf ${D}${datadir}/cfengine/modules/packages/zypper ${D}${datadir}/cfengine/modules/packages/yum
|
||||
}
|
||||
|
||||
FILES:${PN} = "${datadir}/cfengine"
|
||||
|
||||
RDEPENDS:${PN} += "python3-core"
|
||||
@@ -0,0 +1,87 @@
|
||||
From a08acdfadb5eba2a3201209c6da3ad6f2ca4ae79 Mon Sep 17 00:00:00 2001
|
||||
From: Craig Comstock <craig.comstock@northern.tech>
|
||||
Date: Fri, 27 Jan 2023 15:19:48 -0600
|
||||
Subject: [PATCH] Fixed --with-libxml2=no case in configure.ac
|
||||
|
||||
The CF3_WITH_LIBRARY and AC_CHECK_HEADERS were moved to outside of the check for with-libxml2=no
|
||||
|
||||
Ticket: CFE-4023
|
||||
Changelog: title
|
||||
---
|
||||
configure.ac | 21 +++++++++++----------
|
||||
libntech/configure.ac | 21 +++++++++++----------
|
||||
2 files changed, 22 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index e189b10..f6b8226 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -659,19 +659,20 @@ if test "x$with_libxml2" != "xno"; then
|
||||
LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2
|
||||
fi
|
||||
fi
|
||||
-fi
|
||||
|
||||
-CF3_WITH_LIBRARY(libxml2,
|
||||
- [AC_CHECK_LIB(xml2, xmlFirstElementChild,
|
||||
- [],
|
||||
- [if test "x$with_libxml2" != xcheck; then
|
||||
- AC_MSG_ERROR(Cannot find libxml2); fi]
|
||||
- )
|
||||
- AC_CHECK_HEADERS([libxml/xmlwriter.h], [break],
|
||||
+ CF3_WITH_LIBRARY(libxml2,
|
||||
+ [AC_CHECK_LIB(xml2, xmlFirstElementChild,
|
||||
+ [],
|
||||
[if test "x$with_libxml2" != xcheck; then
|
||||
AC_MSG_ERROR(Cannot find libxml2); fi]
|
||||
- )]
|
||||
-)
|
||||
+ )
|
||||
+ AC_CHECK_HEADERS([libxml/xmlwriter.h], [break],
|
||||
+ [if test "x$with_libxml2" != xcheck; then
|
||||
+ AC_MSG_ERROR(Cannot find libxml2); fi]
|
||||
+ )]
|
||||
+ )
|
||||
+
|
||||
+fi
|
||||
|
||||
AM_CONDITIONAL([HAVE_LIBXML2],
|
||||
[test "x$with_libxml2" != xno &&
|
||||
diff --git a/libntech/configure.ac b/libntech/configure.ac
|
||||
index 7bb8787..28b3683 100644
|
||||
--- a/libntech/configure.ac
|
||||
+++ b/libntech/configure.ac
|
||||
@@ -571,19 +571,20 @@ if test "x$with_libxml2" != "xno"; then
|
||||
LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2
|
||||
fi
|
||||
fi
|
||||
-fi
|
||||
|
||||
-CF3_WITH_LIBRARY(libxml2,
|
||||
- [AC_CHECK_LIB(xml2, xmlFirstElementChild,
|
||||
- [],
|
||||
- [if test "x$with_libxml2" != xcheck; then
|
||||
- AC_MSG_ERROR(Cannot find libxml2); fi]
|
||||
- )
|
||||
- AC_CHECK_HEADERS([libxml/xmlwriter.h], [break],
|
||||
+ CF3_WITH_LIBRARY(libxml2,
|
||||
+ [AC_CHECK_LIB(xml2, xmlFirstElementChild,
|
||||
+ [],
|
||||
[if test "x$with_libxml2" != xcheck; then
|
||||
AC_MSG_ERROR(Cannot find libxml2); fi]
|
||||
- )]
|
||||
-)
|
||||
+ )
|
||||
+ AC_CHECK_HEADERS([libxml/xmlwriter.h], [break],
|
||||
+ [if test "x$with_libxml2" != xcheck; then
|
||||
+ AC_MSG_ERROR(Cannot find libxml2); fi]
|
||||
+ )]
|
||||
+ )
|
||||
+
|
||||
+fi
|
||||
|
||||
AM_CONDITIONAL([HAVE_LIBXML2],
|
||||
[test "x$with_libxml2" != xno &&
|
||||
--
|
||||
2.39.1
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
From dc270040cb3beb5ca42f864813145c8a68594bad Mon Sep 17 00:00:00 2001
|
||||
From: Kai Kang <kai.kang@windriver.com>
|
||||
Date: Mon, 18 Jul 2016 09:06:06 +0800
|
||||
Subject: [PATCH] cfengine: add recipe and base policy
|
||||
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Set the path of default configure file.
|
||||
|
||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||
|
||||
---
|
||||
misc/init.d/cfengine3.in | 12 ++++--------
|
||||
1 file changed, 4 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/misc/init.d/cfengine3.in b/misc/init.d/cfengine3.in
|
||||
index c584817..12f5803 100644
|
||||
--- a/misc/init.d/cfengine3.in
|
||||
+++ b/misc/init.d/cfengine3.in
|
||||
@@ -101,14 +101,10 @@ if [ -z "$LOCKDIR" ]; then
|
||||
fi
|
||||
|
||||
# default control file
|
||||
-if [ "$DEBIAN" = "1" ]; then
|
||||
- DEFAULT=/etc/default/cfengine3
|
||||
- INIT_FUNCTIONS=/lib/lsb/init-functions
|
||||
- if [ -e "$INIT_FUNCTIONS" ]; then
|
||||
- . "$INIT_FUNCTIONS"
|
||||
- fi
|
||||
-else
|
||||
- DEFAULT=/etc/sysconfig/cfengine3
|
||||
+DEFAULT=/etc/default/cfengine3
|
||||
+INIT_FUNCTIONS=/lib/lsb/init-functions
|
||||
+if [ -e "$INIT_FUNCTIONS" ]; then
|
||||
+ . "$INIT_FUNCTIONS"
|
||||
fi
|
||||
|
||||
if [ -f $DEFAULT ]; then
|
||||
@@ -0,0 +1,76 @@
|
||||
#
|
||||
# Copyright (C) 2014 - 2017 Wind River Systems, Inc.
|
||||
#
|
||||
SUMMARY = "CFEngine is an IT infrastructure automation framework"
|
||||
|
||||
DESCRIPTION = "CFEngine is an IT infrastructure automation framework \
|
||||
that helps engineers, system administrators and other stakeholders \
|
||||
in an IT system to manage and understand IT infrastructure throughout \
|
||||
its lifecycle. CFEngine takes systems from Build to Deploy, Manage and Audit."
|
||||
|
||||
HOMEPAGE = "http://cfengine.com"
|
||||
|
||||
SKIP_RECIPE[cfengine] ?= "Needs porting to openssl 3.x"
|
||||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=233aa25e53983237cf0bd4c238af255f"
|
||||
|
||||
DEPENDS += "attr tokyocabinet bison-native libxml2"
|
||||
#RDEPENDS:cfengine += "attr tokyocabinet bison-native libxml2"
|
||||
|
||||
SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BPN}-community-${PV}.tar.gz \
|
||||
file://0001-Fixed-with-libxml2-no-case-in-configure.ac.patch \
|
||||
file://set-path-of-default-config-file.patch \
|
||||
"
|
||||
#SRC_URI[md5sum] = "5318e40702bc66a3ece44ec4ad77712b"
|
||||
SRC_URI[sha256sum] = "911778ddb0a4e03a3ddfc8fc0f033136e1551849ea2dcbdb3f0f14359dfe3126"
|
||||
|
||||
inherit autotools-brokensep systemd
|
||||
|
||||
export EXPLICIT_VERSION="${PV}"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "cfengine3.service cf-apache.service cf-hub.service cf-postgres.service \
|
||||
cf-runalerts.service cf-execd.service \
|
||||
cf-monitord.service cf-serverd.service \
|
||||
"
|
||||
SYSTEMD_AUTO_ENABLE:${PN} = "disable"
|
||||
|
||||
PACKAGECONFIG ??= "libpcre openssl \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \
|
||||
"
|
||||
PACKAGECONFIG[libxml2] = "--with-libxml2=yes,--with-libxml2=no,libxml2,"
|
||||
PACKAGECONFIG[mysql] = "--with-mysql=yes,--with-mysql=no,mysql,"
|
||||
PACKAGECONFIG[postgresql] = "--with-postgresql=yes,--with-postgresql=no,postgresql,"
|
||||
PACKAGECONFIG[acl] = "--with-libacl=yes,--with-libacl=no,acl,"
|
||||
PACKAGECONFIG[libvirt] = "--with-libvirt=yes,--with-libvirt=no,libvirt,"
|
||||
PACKAGECONFIG[libpcre] = "--with-pcre=yes,--with-pcre=no,libpcre,"
|
||||
PACKAGECONFIG[openssl] = "--with-openssl=yes,--with-openssl=no,openssl,"
|
||||
PACKAGECONFIG[pam] = "--with-pam=yes,--with-pam=no,libpam,"
|
||||
PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml,"
|
||||
PACKAGECONFIG[systemd] = "--with-systemd-service=${systemd_system_unitdir},--without-systemd-service"
|
||||
PACKAGECONFIG[libcurl] = "--with-libcurl,--without-libcurl,curl,"
|
||||
|
||||
EXTRA_OECONF = "hw_cv_func_va_copy=yes --with-init-script=${sysconfdir}/init.d --with-tokyocabinet"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${localstatedir}/${BPN}/bin
|
||||
for f in `ls ${D}${bindir}`; do
|
||||
ln -s ${bindir}/`basename $f` ${D}${localstatedir}/${BPN}/bin/
|
||||
done
|
||||
|
||||
install -d ${D}${sysconfdir}/default
|
||||
cat << EOF > ${D}${sysconfdir}/default/cfengine3
|
||||
RUN_CF_SERVERD=1
|
||||
RUN_CF_EXECD=1
|
||||
RUN_CF_MONITORD=1
|
||||
RUN_CF_HUB=0
|
||||
EOF
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -m 0755 -D ${D}${sysconfdir}/init.d/cfengine3 ${D}${datadir}/${BPN}/cfengine3
|
||||
sed -i -e 's#/etc/init.d#${datadir}/${BPN}#' ${D}${systemd_system_unitdir}/*.service
|
||||
fi
|
||||
rm -rf ${D}${datadir}/cfengine/modules/packages/zypper
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} += "${BPN}-masterfiles"
|
||||
Reference in New Issue
Block a user