On 2023/08/16 18:34, Joseph Benden wrote: > The included patch brings Cfengine 3 up-to-date with the latest LTS > release, 3.21.2. > > Best regards, > -Joe >
Thanks for un-sticking this port :) I'll include an updated patch below, comments in-line here saying what changed. note it uses something added by an infrastructure change a couple of days ago, you need up-to-date base OS (specifically a recent make binary) and ports/infrastructure files. > From 44fb146da83e2d1268c6462153a7dd22c9e07b0b Mon Sep 17 00:00:00 2001 > From: Joseph Benden <[email protected]> > Date: Wed, 16 Aug 2023 09:42:10 -0700 > Subject: [PATCH] update to cfengine-3.21.2 > > Signed-off-by: Joseph Benden <[email protected]> > --- > sysutils/cfengine/Makefile | 37 +- > sysutils/cfengine/distinfo | 6 +- > .../patches/patch-cf-agent_verify_files_c | 17 - > .../patch-cf-agent_verify_files_utils_c | 11 - > .../patches/patch-cf-execd_cf-execd_c | 11 - > .../cfengine/patches/patch-cf-upgrade_log_c | 11 - > .../patches/patch-libcompat_strchrnul_c | 11 - > .../cfengine/patches/patch-libpromises-crypto | 40 ++ > .../patches/patch-libpromises_evalfunction_c | 11 - > .../patch-libpromises_processes_select_c | 11 - > .../patches/patch-libutils_string_lib_c | 13 - > sysutils/cfengine/pkg/DESCR-masterfiles | 5 + > sysutils/cfengine/pkg/PLIST | 28 +- > sysutils/cfengine/pkg/PLIST-masterfiles | 569 ++++++++++++++++++ > 14 files changed, 638 insertions(+), 143 deletions(-) > delete mode 100644 sysutils/cfengine/patches/patch-cf-agent_verify_files_c > delete mode 100644 > sysutils/cfengine/patches/patch-cf-agent_verify_files_utils_c > delete mode 100644 sysutils/cfengine/patches/patch-cf-execd_cf-execd_c > delete mode 100644 sysutils/cfengine/patches/patch-cf-upgrade_log_c > delete mode 100644 sysutils/cfengine/patches/patch-libcompat_strchrnul_c > create mode 100644 sysutils/cfengine/patches/patch-libpromises-crypto > delete mode 100644 sysutils/cfengine/patches/patch-libpromises_evalfunction_c > delete mode 100644 > sysutils/cfengine/patches/patch-libpromises_processes_select_c > delete mode 100644 sysutils/cfengine/patches/patch-libutils_string_lib_c > create mode 100644 sysutils/cfengine/pkg/DESCR-masterfiles > create mode 100644 sysutils/cfengine/pkg/PLIST-masterfiles > > diff --git a/sysutils/cfengine/Makefile b/sysutils/cfengine/Makefile > index d12d74cdf85..a86977ffb31 100644 > --- a/sysutils/cfengine/Makefile > +++ b/sysutils/cfengine/Makefile > @@ -1,16 +1,18 @@ > -BROKEN = pkg_add fails: problem with symlinks > +COMMENT-main = GNU system administration tool for networks > +COMMENT-masterfiles = Masterfiles sources for Cfengine > > -COMMENT = GNU system administration tool for networks > - > -DISTNAME = cfengine-3.7.2 > -REVISION = 5 > - > -PORTROACH = site:https://github.com/cfengine/core/archive/ > +V = 3.21.2 > +PKGNAME = cfengine-${V} > +DISTNAME = cfengine-community-${V} > +REVISION = 0 remove REVISION rather than setting to 0 > +SUPDISTFILES += cfengine-masterfiles-${V}.tar.gz list cfengine-masterfiles in DISTFILES not SUPDISTFILES so it gets extracted as part of "make extract". excepting very special cases (where most of the distfile is totally irrelevant to a port and it's huge, for example some firmware-packages) we want "make extract" to unpack the things used to actually build the port. you can't add to the default DISTFILES with +=, either you need to list the default filename for the main distfile explicitly, or we can use a newly added thing in ports to make it simpler, which is what I went for. this masterfiles distfile includes autoconf input+output files, makefiles, etc. it seems the port should be using cfengine-masterfiles-${V}-1.pkg.tar.gz instead. > > SHARED_LIBS += promises 0.0 # 1.0 > CATEGORIES = sysutils > HOMEPAGE = https://cfengine.com/ > > +MULTI_PACKAGES = -main -masterfiles space not tab between -main -masterfiles > + > # GPLv3 only > PERMIT_PACKAGE = Yes > > @@ -25,6 +27,7 @@ SUBST_VARS += CFENGINE_BASE CFENGINE_EXAMPLES > FLAVORS = pgsql mysql > FLAVOR ?= > > +WRKDIST = ${WRKDIR}/${PKGNAME} (not needed with the DISTFILES change I used) > SEPARATE_BUILD = Yes > CONFIGURE_STYLE = gnu > USE_GMAKE = Yes > @@ -69,20 +72,18 @@ CONFIGURE_ARGS += --without-mysql > > # tests not yet working > NO_TEST = Yes > -# also note some formatting errors with manpages (e.g. "You can think > -# of.B cfengine as..." and poor formatting in INFORMATION sections; > -# these are present with either mandoc or groff. > > post-extract: > - perl -i -pe \ > - 's|^sbin_PROGRAMS.*rpmvercmp||;' \ > - ${WRKDIST}/ext/Makefile.in > +.for i in configure libpromises/dbm_quick.c ext/Makefile.in > + perl -i -pe 's|qdbm/depot.h|depot.h|;' \ > + -e 's|^sbin_PROGRAMS.*rpmvercmp||;' \ > + ${WRKDIST}/$i > +.endfor substs are too easy to get out of sync during updates (case in point: there are no more sbin_PROGRAMS.*rpmvercmp), better to use patches for these rather than perl substs. patches should be generated by copying the relevant file to .orig.port, editing, then run "make update-patches". this uses a standard diff format and standard filename format. > + ${INSTALL_PROGRAM_DIR} "${WRKINST}${CFENGINE_BASE}/masterfiles" > + tar -x -z -f "${FULLDISTDIR}/cfengine-masterfiles-${V}.tar.gz" \ > + -C "${WRKINST}${CFENGINE_BASE}/masterfiles" \ > + -s "#cfengine-masterfiles-${V}#.#" (see about SUPDISTFILES above) > diff --git a/sysutils/cfengine/patches/patch-cf-agent_verify_files_utils_c > b/sysutils/cfengine/patches/patch-cf-agent_verify_files_utils_c > deleted file mode 100644 > index 8a9c503b6d6..00000000000 > --- a/sysutils/cfengine/patches/patch-cf-agent_verify_files_utils_c > +++ /dev/null > @@ -1,11 +0,0 @@ > ---- cf-agent/verify_files_utils.c.orig Wed Jan 20 00:37:39 2016 > -+++ cf-agent/verify_files_utils.c Wed Jan 20 00:37:57 2016 > -@@ -1384,7 +1384,7 @@ bool CopyRegularFile(EvalContext *ctx, const char *sou > - if (attr.copy.backup == BACKUP_OPTION_TIMESTAMP) > - { > - stampnow = time((time_t *) NULL); > -- snprintf(stamp, CF_BUFSIZE - 1, "_%lu_%s", CFSTARTTIME, > CanonifyName(ctime(&stampnow))); > -+ snprintf(stamp, CF_BUFSIZE - 1, "_%lld_%s", CFSTARTTIME, > CanonifyName(ctime(&stampnow))); > - > - if (!JoinSuffix(backup, stamp)) > - { this and the other time_t patches need to stay, time_t is long long so %lu is wrong on 32-bit, note the compiler warning on those files. i synced with upstream changes and added a comment to the patch saying what they're for, and added some similar new patches also required. > diff --git a/sysutils/cfengine/pkg/DESCR-masterfiles > b/sysutils/cfengine/pkg/DESCR-masterfiles > new file mode 100644 > index 00000000000..5d842679797 > --- /dev/null > +++ b/sysutils/cfengine/pkg/DESCR-masterfiles > @@ -0,0 +1,5 @@ > +Cfengine3 is an autonomous agent and a middle to high level policy > +language for building expert systems which administrate and configure > +large computer networks. Cfengine3 uses the idea of classes and a > +primitive intelligence to define and automate the configuration and > +maintenance of system state, for small to huge configurations. not included in my diff below because I don't really want to dig into how cfengine works to figure out the answer: - DESCR-masterfiles should describe what the masterfiles subpackage is, not what cfengine as a whole is. - does masterfiles need to be installed in order to use cfengine? if so there should be a RUN_DEPENDS-main=sysutils/cfengine,-masterfiles - are files in masterfiles expected to be edited by the user? if so, it gets messy, they will need to be installed elsewhere and perhaps use the @sample mechanism for each file. if the user might need to _remove_ any of those files from /var/cfengine/masterfiles then they'll need installing elsewhere and ask the user to copy themselves (otherwise package updates will bring them back). > diff --git a/sysutils/cfengine/pkg/PLIST b/sysutils/cfengine/pkg/PLIST > index f6db834b0bb..1c691b3f732 100644 > --- a/sysutils/cfengine/pkg/PLIST > +++ b/sysutils/cfengine/pkg/PLIST this can't have packaged, the PLIST file needs renaming with a -main suffix, as do pkg/DESCR and pkg/README. (also needs an @pkgpath marker because it moved from single-package to multipackages). > @@ -30,8 +30,6 @@ share/examples/cfengine/app_baseline.cf > share/examples/cfengine/appgroups.cf > share/examples/cfengine/arrays.cf > share/examples/cfengine/backreferences_files.cf > -share/examples/cfengine/badpromise.cf > -share/examples/cfengine/badtype.cf > share/examples/cfengine/bsdflags.cf > share/examples/cfengine/bundle_return_values.cf > share/examples/cfengine/bundlesmatching.cf > @@ -50,7 +48,6 @@ share/examples/cfengine/compare.cf > share/examples/cfengine/container_iteration.cf > share/examples/cfengine/container_key_iteration.cf > share/examples/cfengine/control_expand.cf > -share/examples/cfengine/controlclasses.cf > share/examples/cfengine/copy.cf > share/examples/cfengine/copy_classes.cf > share/examples/cfengine/copy_copbl.cf > @@ -105,7 +102,6 @@ share/examples/cfengine/execd.cf > share/examples/cfengine/execresult.cf > share/examples/cfengine/expand.cf > share/examples/cfengine/failedcommand.cf > -share/examples/cfengine/failsafe.cf > share/examples/cfengine/file_change_detection.cf > share/examples/cfengine/file_hash.cf > share/examples/cfengine/file_owner_list_template.cf > @@ -166,8 +162,6 @@ share/examples/cfengine/isplain.cf > share/examples/cfengine/isvariable.cf > share/examples/cfengine/iteration.cf > share/examples/cfengine/join.cf > -share/examples/cfengine/knowledge_driver.cf > -share/examples/cfengine/knowledge_txt.cf > share/examples/cfengine/lastnode.cf > share/examples/cfengine/ldap.cf > share/examples/cfengine/length.cf > @@ -194,14 +188,8 @@ share/examples/cfengine/method_var2.cf > share/examples/cfengine/module_exec.cf > share/examples/cfengine/module_exec_2.cf > share/examples/cfengine/monitord.cf > -share/examples/cfengine/motd.cf > share/examples/cfengine/mount_fs.cf > share/examples/cfengine/multipassvars.cf > -share/examples/cfengine/namespace.cf > -share/examples/cfengine/namespace1.cf > -share/examples/cfengine/namespace2.cf > -share/examples/cfengine/namespace3.cf > -share/examples/cfengine/namespace_class1.cf > share/examples/cfengine/namespace_classes.cf > share/examples/cfengine/namespace_var_meta.cf > share/examples/cfengine/namespace_var_meta2.cf > @@ -209,7 +197,6 @@ share/examples/cfengine/neighbourhood_watch.cf > share/examples/cfengine/none.cf > share/examples/cfengine/nth.cf > share/examples/cfengine/null_config.cf > -share/examples/cfengine/occurrences.cf > share/examples/cfengine/orchestrate_chain1.cf > share/examples/cfengine/orchestrate_chain2.cf > share/examples/cfengine/orchestrate_delay_trigger.cf > @@ -233,7 +220,6 @@ share/examples/cfengine/package_yum.cf > share/examples/cfengine/package_zypper.cf > share/examples/cfengine/packagesmatching.cf > share/examples/cfengine/parallel_exec.cf > -share/examples/cfengine/parseintrealstringarray.cf > share/examples/cfengine/parsestringarray.cf > share/examples/cfengine/parsestringarrayidx.cf > share/examples/cfengine/pathtype.cf > @@ -251,7 +237,6 @@ share/examples/cfengine/process_restart_basic.cf > share/examples/cfengine/process_signalling.cf > share/examples/cfengine/processes_define_class_based_on_process_runtime.cf > share/examples/cfengine/product.cf > -share/examples/cfengine/promise_knowledge.cf > share/examples/cfengine/promises.cf > share/examples/cfengine/randomint.cf > share/examples/cfengine/readcsv.cf > @@ -278,9 +263,7 @@ share/examples/cfengine/remove_deadlinks.cf > share/examples/cfengine/rename.cf > share/examples/cfengine/repairedcommand.cf > share/examples/cfengine/report_custom.cf > -share/examples/cfengine/report_diffs.cf > share/examples/cfengine/report_state.cf > -share/examples/cfengine/reporting.cf > share/examples/cfengine/reporttofile.cf > share/examples/cfengine/resolveconf.cf > share/examples/cfengine/returnszero.cf > @@ -357,20 +340,11 @@ share/examples/cfengine/zenoss.cf > @rcscript ${RCDIR}/cf_serverd > @rcscript ${RCDIR}/cfengine > @cwd ${CFENGINE_BASE} > -bin/ > -bin/cf-agent > -bin/cf-execd > -bin/cf-key > -bin/cf-monitord > -bin/cf-promises > -bin/cf-runagent > -bin/cf-serverd > -bin/cf-upgrade > +masterfiles/ > @mode 0750 > @sample ${CFENGINE_BASE}/ > @mode 0700 > @sample ${CFENGINE_BASE}/inputs/ > -@sample ${CFENGINE_BASE}/masterfiles/ > @sample ${CFENGINE_BASE}/modules/ > @sample ${CFENGINE_BASE}/outputs/ > @sample ${CFENGINE_BASE}/ppkeys/ > diff --git a/sysutils/cfengine/pkg/PLIST-masterfiles > b/sysutils/cfengine/pkg/PLIST-masterfiles > new file mode 100644 > index 00000000000..1b574967d78 > --- /dev/null > +++ b/sysutils/cfengine/pkg/PLIST-masterfiles > @@ -0,0 +1,569 @@ > +@mode 700 > +@cwd /var/cfengine the files in -masterfiles are all under /var/cfengine so we can set PREFIX-masterfiles instead of using @cwd which is best avoided unless impossible. /var/cfengine itself needs to be listed in the PLIST (minus whatever dir is used as PREFIX) unless there's a dependency on another package which provides that directory. PLISTs should be basically generated by "make plist". they may need some tweaks if "make plist" gets it wrong but if they do please call that out in the mail with the diff (ports using @cwd do very badly with "make plist" - IIRC the cwd was only there in the PLIST for the old cfengine version to try and put symlinks into /var/cfengine to satisfy upstream expectations, but that didn't exactly go great...) also updated WANTLIB/LIB_DEPENDS (there's a new dependency on curl), and set the -main suffix for these due to multipackages. I have built and checked ports-related things for this, but not runtime at all, so relying on you to check my changes didn't break anything there.
Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/cfengine/Makefile,v retrieving revision 1.64 diff -u -p -r1.64 Makefile --- Makefile 2 Aug 2023 19:16:05 -0000 1.64 +++ Makefile 16 Aug 2023 21:47:07 -0000 @@ -1,36 +1,42 @@ -BROKEN = pkg_add fails: problem with symlinks +COMMENT-main = GNU system administration tool for networks +COMMENT-masterfiles = Masterfiles sources for Cfengine -COMMENT = GNU system administration tool for networks - -DISTNAME = cfengine-3.7.2 -REVISION = 5 - -PORTROACH = site:https://github.com/cfengine/core/archive/ +V = 3.21.2 +DISTNAME = cfengine-${V} +DISTFILES = cfengine-community-${V}.tar.gz +DISTFILES.misc =cfengine-masterfiles-${V}-1.pkg.tar.gz SHARED_LIBS += promises 0.0 # 1.0 CATEGORIES = sysutils HOMEPAGE = https://cfengine.com/ +MULTI_PACKAGES = -main -masterfiles + # GPLv3 only PERMIT_PACKAGE = Yes -WANTLIB += c crypto iconv lzma m pam pcre pthread ssl qdbm xml2 z +WANTLIB-main += c crypto curl iconv lzma m nghttp2 nghttp3 ngtcp2 ngtcp2_crypto_openssl +WANTLIB-main += pam pcre pthread qdbm ssl xml2 z -MASTER_SITES = https://cfengine-package-repos.s3.amazonaws.com/tarballs/ +MASTER_SITES = https://cfengine-package-repos.s3.amazonaws.com/tarballs/ +MASTER_SITES.misc = https://cfengine-package-repos.s3.amazonaws.com/community_binaries/Community-${V}/misc/ CFENGINE_BASE = /var/cfengine CFENGINE_EXAMPLES = ${PREFIX}/share/examples/cfengine SUBST_VARS += CFENGINE_BASE CFENGINE_EXAMPLES -FLAVORS = pgsql mysql +PREFIX-masterfiles = /var + +FLAVORS = pgsql mysql FLAVOR ?= -SEPARATE_BUILD = Yes +SEPARATE_BUILD = Yes CONFIGURE_STYLE = gnu USE_GMAKE = Yes -LIB_DEPENDS = converters/libiconv \ +LIB_DEPENDS-main = converters/libiconv \ databases/qdbm \ devel/pcre \ + net/curl \ security/openpam \ textproc/libxml CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \ @@ -51,38 +57,25 @@ MAKE_FLAGS += examplesdir="${CFENGINE_E masterfilesdir="${CFENGINE_EXAMPLES}/CoreBase" .if ${FLAVOR:Mpgsql} -WANTLIB += pq +WANTLIB-main += pq CONFIGURE_ARGS += --with-postgresql -LIB_DEPENDS += databases/postgresql +LIB_DEPENDS-main += databases/postgresql .else CONFIGURE_ARGS += --without-postgresql .endif .if ${FLAVOR:Mmysql} -WANTLIB += mysqlclient_r +WANTLIB-main += mariadb CONFIGURE_ARGS += --with-mysql -LIB_DEPENDS += databases/mariadb +LIB_DEPENDS-main += databases/mariadb .else CONFIGURE_ARGS += --without-mysql .endif - # tests not yet working NO_TEST = Yes -# also note some formatting errors with manpages (e.g. "You can think -# of.B cfengine as..." and poor formatting in INFORMATION sections; -# these are present with either mandoc or groff. - -post-extract: - perl -i -pe \ - 's|^sbin_PROGRAMS.*rpmvercmp||;' \ - ${WRKDIST}/ext/Makefile.in post-install: - ${INSTALL_PROGRAM_DIR} ${WRKINST}${CFENGINE_BASE}/bin -.for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-upgrade \ - cf-runagent cf-serverd - ln -s ${TRUEPREFIX}/bin/$i ${WRKINST}${CFENGINE_BASE}/bin/ -.endfor + cp -r ${WRKDIR}/masterfiles ${WRKINST}${CFENGINE_BASE}/ .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/sysutils/cfengine/distinfo,v retrieving revision 1.15 diff -u -p -r1.15 distinfo --- distinfo 22 Jan 2016 11:38:23 -0000 1.15 +++ distinfo 16 Aug 2023 21:47:07 -0000 @@ -1,2 +1,4 @@ -SHA256 (cfengine-3.7.2.tar.gz) = qtmuJghkrL3yqkQcIINlRg+ajsqlNhi720ZeN670reU= -SIZE (cfengine-3.7.2.tar.gz) = 2114764 +SHA256 (cfengine-community-3.21.2.tar.gz) = 4/czQz/5rYagFRO3efZG2iI6/thWjo3m6JxOWqjGslY= +SHA256 (cfengine-masterfiles-3.21.2-1.pkg.tar.gz) = yHURmG9ZoxvjPHaE05+MVSsglzTNQMurcOKDCwOo8Gk= +SIZE (cfengine-community-3.21.2.tar.gz) = 3344237 +SIZE (cfengine-masterfiles-3.21.2-1.pkg.tar.gz) = 215364 Index: patches/patch-cf-agent_verify_files_c =================================================================== RCS file: patches/patch-cf-agent_verify_files_c diff -N patches/patch-cf-agent_verify_files_c --- patches/patch-cf-agent_verify_files_c 11 Mar 2022 19:57:16 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,17 +0,0 @@ ---- cf-agent/verify_files.c.orig Wed Jan 20 00:29:13 2016 -+++ cf-agent/verify_files.c Wed Jan 20 00:32:12 2016 -@@ -680,12 +680,12 @@ PromiseResult ScheduleEditOperation(EvalContext *ctx, - if ((vp = PromiseGetConstraintAsRval(pp, "edit_line", RVAL_TYPE_FNCALL))) - { - fp = (FnCall *) vp; -- strcpy(edit_bundle_name, fp->name); -+ strlcpy(edit_bundle_name, fp->name, CF_BUFSIZE); - args = fp->args; - } - else if ((vp = PromiseGetConstraintAsRval(pp, "edit_line", RVAL_TYPE_SCALAR))) - { -- strcpy(edit_bundle_name, (char *) vp); -+ strlcpy(edit_bundle_name, (char *) vp, CF_BUFSIZE); - args = NULL; - } - else Index: patches/patch-cf-agent_verify_files_utils_c =================================================================== RCS file: /cvs/ports/sysutils/cfengine/patches/patch-cf-agent_verify_files_utils_c,v retrieving revision 1.2 diff -u -p -r1.2 patch-cf-agent_verify_files_utils_c --- patches/patch-cf-agent_verify_files_utils_c 11 Mar 2022 19:57:16 -0000 1.2 +++ patches/patch-cf-agent_verify_files_utils_c 16 Aug 2023 21:47:07 -0000 @@ -1,11 +1,16 @@ ---- cf-agent/verify_files_utils.c.orig Wed Jan 20 00:37:39 2016 -+++ cf-agent/verify_files_utils.c Wed Jan 20 00:37:57 2016 -@@ -1384,7 +1384,7 @@ bool CopyRegularFile(EvalContext *ctx, const char *sou - if (attr.copy.backup == BACKUP_OPTION_TIMESTAMP) - { - stampnow = time((time_t *) NULL); -- snprintf(stamp, CF_BUFSIZE - 1, "_%lu_%s", CFSTARTTIME, CanonifyName(ctime(&stampnow))); -+ snprintf(stamp, CF_BUFSIZE - 1, "_%lld_%s", CFSTARTTIME, CanonifyName(ctime(&stampnow))); - - if (!JoinSuffix(backup, stamp)) +fix with long long time_t on 32-bit archs + +Index: cf-agent/verify_files_utils.c +--- cf-agent/verify_files_utils.c.orig ++++ cf-agent/verify_files_utils.c +@@ -1643,8 +1643,8 @@ bool CopyRegularFile(EvalContext *ctx, const char *sou + if (attr->copy.backup == BACKUP_OPTION_TIMESTAMP) { + stampnow = time((time_t *) NULL); +- snprintf(stamp, CF_BUFSIZE - 1, "_%lu_%s", +- CFSTARTTIME, CanonifyName(ctime(&stampnow))); ++ snprintf(stamp, CF_BUFSIZE - 1, "_%lld_%s", ++ (long long)CFSTARTTIME, CanonifyName(ctime(&stampnow))); + + if (!JoinSuffix(backup, sizeof(backup), stamp)) + { Index: patches/patch-cf-execd_cf-execd_c =================================================================== RCS file: patches/patch-cf-execd_cf-execd_c diff -N patches/patch-cf-execd_cf-execd_c --- patches/patch-cf-execd_cf-execd_c 11 Mar 2022 19:57:16 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- cf-execd/cf-execd.c.orig Wed Jan 20 01:40:30 2016 -+++ cf-execd/cf-execd.c Wed Jan 20 01:42:49 2016 -@@ -568,7 +568,7 @@ static bool ScheduleRun(EvalContext *ctx, Policy **pol - - EvalContextClear(ctx); - -- strcpy(VDOMAIN, "undefined.domain"); -+ strlcpy(VDOMAIN, "undefined.domain", sizeof(VDOMAIN)); - - PolicyDestroy(*policy); - *policy = NULL; Index: patches/patch-cf-upgrade_log_c =================================================================== RCS file: patches/patch-cf-upgrade_log_c diff -N patches/patch-cf-upgrade_log_c --- patches/patch-cf-upgrade_log_c 11 Mar 2022 19:57:16 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- cf-upgrade/log.c.orig Wed Jan 20 00:13:36 2016 -+++ cf-upgrade/log.c Wed Jan 20 00:14:34 2016 -@@ -54,7 +54,7 @@ static char *prepare_message(char *format, va_list arg - strftime(timestamp, timestamp_size, "%Y/%m/%d %H:%M:%S", now_tm); - /* '[' + ']' + ' ' + '\0' */ - message = xmalloc(message_size + timestamp_size + 4); -- sprintf(message, "[%s] %s", timestamp, buffer); -+ snprintf(message, message_size, "[%s] %s", timestamp, buffer); - return message; - } - Index: patches/patch-configure =================================================================== RCS file: patches/patch-configure diff -N patches/patch-configure --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-configure 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,15 @@ +Index: configure +--- configure.orig ++++ configure +@@ -14287,9 +14287,9 @@ else + as_fn_error $? "Cannot find QDBM" "$LINENO" 5 + fi + +- for ac_header in qdbm/depot.h ++ for ac_header in depot.h + do : +- ac_fn_c_check_header_mongrel "$LINENO" "qdbm/depot.h" "ac_cv_header_qdbm_depot_h" "$ac_includes_default" ++ ac_fn_c_check_header_mongrel "$LINENO" "depot.h" "ac_cv_header_qdbm_depot_h" "$ac_includes_default" + if test "x$ac_cv_header_qdbm_depot_h" = xyes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_QDBM_DEPOT_H 1 Index: patches/patch-libcompat_strchrnul_c =================================================================== RCS file: patches/patch-libcompat_strchrnul_c diff -N patches/patch-libcompat_strchrnul_c --- patches/patch-libcompat_strchrnul_c 11 Mar 2022 19:57:16 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- libcompat/strchrnul.c.orig Wed Jan 20 01:28:25 2016 -+++ libcompat/strchrnul.c Wed Jan 20 01:29:38 2016 -@@ -12,7 +12,7 @@ char *strchrnul(const char *s, int c) - - if (p == NULL) - { -- return s + strlen(s); -+ return (char *)s + strlen(s); - } - else - { Index: patches/patch-libpromises_crypto_c =================================================================== RCS file: patches/patch-libpromises_crypto_c diff -N patches/patch-libpromises_crypto_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-libpromises_crypto_c 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,35 @@ +From c85c0ef5201fb0989c67cb67577e60b2c15ee17a Mon Sep 17 00:00:00 2001 +From: Craig Comstock <[email protected]> +Date: Thu, 12 Jan 2023 08:26:47 -0600 +Subject: [PATCH 5/5] remove comment, there is no macro defined if OpenSSL >= + 1.1.0 and so with LibreSSL we get compile errors + +Index: libpromises/crypto.c +--- libpromises/crypto.c.orig ++++ libpromises/crypto.c +@@ -869,11 +869,13 @@ static void SetupOpenSSLThreadLocks(void) + } + + #ifndef __MINGW32__ ++#if OPENSSL_VERSION_NUMBER < 0x10100000 + CRYPTO_set_id_callback((unsigned long (*)())ThreadId_callback); + #endif +- // This is a no-op macro for OpenSSL >= 1.1.0 +- // The callback function is not used (or defined) then ++#endif ++#if OPENSSL_VERSION_NUMBER < 0x10100000 + CRYPTO_set_locking_callback((void (*)())OpenSSLLock_callback); ++#endif + } + + static void CleanupOpenSSLThreadLocks(void) +@@ -881,7 +883,9 @@ static void CleanupOpenSSLThreadLocks(void) + const int numLocks = CRYPTO_num_locks(); + CRYPTO_set_locking_callback(NULL); + #ifndef __MINGW32__ ++#if OPENSSL_VERSION_NUMBER < 0x10100000 + CRYPTO_set_id_callback(NULL); ++#endif + #endif + + for (int i = 0; i < numLocks; i++) Index: patches/patch-libpromises_dbm_quick_c =================================================================== RCS file: patches/patch-libpromises_dbm_quick_c diff -N patches/patch-libpromises_dbm_quick_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-libpromises_dbm_quick_c 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,12 @@ +Index: libpromises/dbm_quick.c +--- libpromises/dbm_quick.c.orig ++++ libpromises/dbm_quick.c +@@ -33,7 +33,7 @@ + #include <string_lib.h> + + #ifdef QDB +-# include <qdbm/depot.h> ++# include <depot.h> + + struct DBPriv_ + { Index: patches/patch-libpromises_evalfunction_c =================================================================== RCS file: /cvs/ports/sysutils/cfengine/patches/patch-libpromises_evalfunction_c,v retrieving revision 1.2 diff -u -p -r1.2 patch-libpromises_evalfunction_c --- patches/patch-libpromises_evalfunction_c 11 Mar 2022 19:57:16 -0000 1.2 +++ patches/patch-libpromises_evalfunction_c 16 Aug 2023 21:47:07 -0000 @@ -1,7 +1,10 @@ ---- libpromises/evalfunction.c.orig Mon Jan 18 22:52:24 2016 -+++ libpromises/evalfunction.c Mon Jan 18 22:52:49 2016 -@@ -5520,7 +5520,7 @@ static FnCallResult FnCallStrftime(ARG_UNUSED EvalCont - if (tm == NULL) +fix with long long time_t on 32-bit archs + +Index: libpromises/evalfunction.c +--- libpromises/evalfunction.c.orig ++++ libpromises/evalfunction.c +@@ -6789,7 +6789,7 @@ static FnCallResult FnCallStrftime(ARG_UNUSED EvalCont + if (tm_pointer == NULL) { Log(LOG_LEVEL_WARNING, - "Function %s, the given time stamp '%ld' was invalid. (strftime: %s)", Index: patches/patch-libpromises_locks_c =================================================================== RCS file: patches/patch-libpromises_locks_c diff -N patches/patch-libpromises_locks_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-libpromises_locks_c 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,14 @@ +fix with long long time_t on 32-bit archs + +Index: libpromises/locks.c +--- libpromises/locks.c.orig ++++ libpromises/locks.c +@@ -377,7 +377,7 @@ static bool NoOrObsoleteLock(LockData *entry, ARG_UNUS + time_t now = time(NULL); + if ((now - entry->time) <= (time_t) *max_old) + { +- Log(LOG_LEVEL_DEBUG, "Giving time to process '%d' (holding lock for %ld s)", entry->pid, (now - entry->time)); ++ Log(LOG_LEVEL_DEBUG, "Giving time to process '%d' (holding lock for %lld s)", entry->pid, (long long) (now - entry->time)); + } + return ((now - entry->time) > (time_t) *max_old); + } Index: patches/patch-libpromises_processes_select_c =================================================================== RCS file: /cvs/ports/sysutils/cfengine/patches/patch-libpromises_processes_select_c,v retrieving revision 1.2 diff -u -p -r1.2 patch-libpromises_processes_select_c --- patches/patch-libpromises_processes_select_c 11 Mar 2022 19:57:16 -0000 1.2 +++ patches/patch-libpromises_processes_select_c 16 Aug 2023 21:47:07 -0000 @@ -1,11 +1,14 @@ ---- libpromises/processes_select.c.orig Mon Jan 18 23:06:24 2016 -+++ libpromises/processes_select.c Mon Jan 18 23:06:52 2016 -@@ -839,7 +839,7 @@ static int SplitProcLine(const char *proc, time_t psti - line[j], ctime(&value)); +fix with long long time_t on 32-bit archs + +Index: libpromises/processes_select.c +--- libpromises/processes_select.c.orig ++++ libpromises/processes_select.c +@@ -648,7 +648,7 @@ static void MaybeFixStartTime(const char *line, + fields[j], ctime(&value)); - free(line[j]); -- xasprintf(line + j, "%ld", value); -+ xasprintf(line + j, "%lld", value); + free(fields[j]); +- xasprintf(fields + j, "%ld", value); ++ xasprintf(fields + j, "%lld", (long long)value); } } - } + else if (fields[k]) Index: patches/patch-libutils_string_lib_c =================================================================== RCS file: patches/patch-libutils_string_lib_c diff -N patches/patch-libutils_string_lib_c --- patches/patch-libutils_string_lib_c 11 Mar 2022 19:57:16 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ ---- libutils/string_lib.c.orig Wed Jan 20 01:38:43 2016 -+++ libutils/string_lib.c Wed Jan 20 01:40:04 2016 -@@ -1023,8 +1023,8 @@ bool StringAppendAbbreviatedPromise(char *dst, const c - last_line += tail - max_fragment; - } - memcpy(abbr, src, head); -- strcpy(abbr + head, sep); -- strcat(abbr, last_line); -+ strlcpy(abbr + head, sep, sizeof(abbr)-head ); -+ strlcat(abbr, last_line, sizeof(abbr) ); - return StringAppendPromise(dst, abbr, n); - } - } Index: pkg/DESCR =================================================================== RCS file: pkg/DESCR diff -N pkg/DESCR --- pkg/DESCR 1 May 2013 21:09:23 -0000 1.6 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,5 +0,0 @@ -Cfengine3 is an autonomous agent and a middle to high level policy -language for building expert systems which administrate and configure -large computer networks. Cfengine3 uses the idea of classes and a -primitive intelligence to define and automate the configuration and -maintenance of system state, for small to huge configurations. Index: pkg/DESCR-main =================================================================== RCS file: pkg/DESCR-main diff -N pkg/DESCR-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/DESCR-main 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,5 @@ +Cfengine3 is an autonomous agent and a middle to high level policy +language for building expert systems which administrate and configure +large computer networks. Cfengine3 uses the idea of classes and a +primitive intelligence to define and automate the configuration and +maintenance of system state, for small to huge configurations. Index: pkg/DESCR-masterfiles =================================================================== RCS file: pkg/DESCR-masterfiles diff -N pkg/DESCR-masterfiles --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/DESCR-masterfiles 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,5 @@ +Cfengine3 is an autonomous agent and a middle to high level policy +language for building expert systems which administrate and configure +large computer networks. Cfengine3 uses the idea of classes and a +primitive intelligence to define and automate the configuration and +maintenance of system state, for small to huge configurations. Index: pkg/PLIST =================================================================== RCS file: pkg/PLIST diff -N pkg/PLIST --- pkg/PLIST 11 Mar 2022 19:57:16 -0000 1.16 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,378 +0,0 @@ -lib/libpromises.a -lib/libpromises.la -@lib lib/libpromises.so.${LIBpromises_VERSION} -@bin bin/cf-agent -@bin bin/cf-execd -@bin bin/cf-key -@bin bin/cf-monitord -@bin bin/cf-promises -@bin bin/cf-runagent -@bin bin/cf-serverd -@bin bin/cf-upgrade -share/doc/cfengine/ -share/doc/cfengine/ChangeLog -share/doc/cfengine/README.md -share/doc/pkg-readmes/${PKGSTEM} -share/examples/cfengine/ -share/examples/cfengine/abort.cf -share/examples/cfengine/accessed_before.cf -share/examples/cfengine/accessedbefore.cf -share/examples/cfengine/accumulated_time.cf -share/examples/cfengine/acl.cf -share/examples/cfengine/acl_generic.cf -share/examples/cfengine/acl_ntfs.cf -share/examples/cfengine/acl_secret.cf -share/examples/cfengine/active_directory.cf -share/examples/cfengine/activedirectory_listusers.cf -share/examples/cfengine/activedirectory_showuser.cf -share/examples/cfengine/ago.cf -share/examples/cfengine/app_baseline.cf -share/examples/cfengine/appgroups.cf -share/examples/cfengine/arrays.cf -share/examples/cfengine/backreferences_files.cf -share/examples/cfengine/badpromise.cf -share/examples/cfengine/badtype.cf -share/examples/cfengine/bsdflags.cf -share/examples/cfengine/bundle_return_values.cf -share/examples/cfengine/bundlesmatching.cf -share/examples/cfengine/bundlestate.cf -share/examples/cfengine/canonify.cf -share/examples/cfengine/cf2_integration.cf -share/examples/cfengine/change_detect.cf -share/examples/cfengine/changedbefore.cf -share/examples/cfengine/chdir.cf -share/examples/cfengine/classes_global.cf -share/examples/cfengine/classesmatching.cf -share/examples/cfengine/classmatch.cf -share/examples/cfengine/classvar_convergence.cf -share/examples/cfengine/commands.cf -share/examples/cfengine/compare.cf -share/examples/cfengine/container_iteration.cf -share/examples/cfengine/container_key_iteration.cf -share/examples/cfengine/control_expand.cf -share/examples/cfengine/controlclasses.cf -share/examples/cfengine/copy.cf -share/examples/cfengine/copy_classes.cf -share/examples/cfengine/copy_copbl.cf -share/examples/cfengine/copy_edit.cf -share/examples/cfengine/copydir_copbl.cf -share/examples/cfengine/copylinks.cf -share/examples/cfengine/countclassesmatching.cf -share/examples/cfengine/countlinesmatching.cf -share/examples/cfengine/create_filedir.cf -share/examples/cfengine/createdb.cf -share/examples/cfengine/customize_by_named_list.cf -share/examples/cfengine/data_expand.cf -share/examples/cfengine/data_readstringarray.cf -share/examples/cfengine/data_regextract.cf -share/examples/cfengine/datastate.cf -share/examples/cfengine/defaults.cf -share/examples/cfengine/defaults2.cf -share/examples/cfengine/defaults3.cf -share/examples/cfengine/definitions.cf -share/examples/cfengine/deletelines.cf -share/examples/cfengine/depends_on.cf -share/examples/cfengine/depends_on2.cf -share/examples/cfengine/difference.cf -share/examples/cfengine/dirname.cf -share/examples/cfengine/disable.cf -share/examples/cfengine/disable_and_rotate_files.cf -share/examples/cfengine/diskfree.cf -share/examples/cfengine/dollar.cf -share/examples/cfengine/edit_column_files.cf -share/examples/cfengine/edit_comment_lines.cf -share/examples/cfengine/edit_deletenotmatch.cf -share/examples/cfengine/edit_insert_fuzzylines.cf -share/examples/cfengine/edit_insert_lines.cf -share/examples/cfengine/edit_insert_lines_silly.cf -share/examples/cfengine/edit_passwd_file.cf -share/examples/cfengine/edit_passwd_file_basic.cf -share/examples/cfengine/edit_replace_string.cf -share/examples/cfengine/edit_sectioned_file.cf -share/examples/cfengine/edit_setvar.cf -share/examples/cfengine/edit_template.cf -share/examples/cfengine/edit_triggerclass.cf -share/examples/cfengine/edit_xml.cf -share/examples/cfengine/ensure_line_present_prepend_append.cf -share/examples/cfengine/env.cf -share/examples/cfengine/epimenides.cf -share/examples/cfengine/escape.cf -share/examples/cfengine/eval.cf -share/examples/cfengine/every.cf -share/examples/cfengine/exec_args.cf -share/examples/cfengine/exec_in_sequence.cf -share/examples/cfengine/execd.cf -share/examples/cfengine/execresult.cf -share/examples/cfengine/expand.cf -share/examples/cfengine/failedcommand.cf -share/examples/cfengine/failsafe.cf -share/examples/cfengine/file_change_detection.cf -share/examples/cfengine/file_hash.cf -share/examples/cfengine/file_owner_list_template.cf -share/examples/cfengine/fileexists.cf -share/examples/cfengine/filenames.cf -share/examples/cfengine/fileperms.cf -share/examples/cfengine/filesexist.cf -share/examples/cfengine/filesexist2.cf -share/examples/cfengine/filesize.cf -share/examples/cfengine/filestat.cf -share/examples/cfengine/filter.cf -share/examples/cfengine/findfiles.cf -share/examples/cfengine/fix_names.cf -share/examples/cfengine/format.cf -share/examples/cfengine/getclassmetatags.cf -share/examples/cfengine/getenv.cf -share/examples/cfengine/getfields.cf -share/examples/cfengine/getgid.cf -share/examples/cfengine/getindices.cf -share/examples/cfengine/getindices_and_values.cf -share/examples/cfengine/getmacaddress.cf -share/examples/cfengine/getregistry.cf -share/examples/cfengine/getuid.cf -share/examples/cfengine/getusers.cf -share/examples/cfengine/getvalues.cf -share/examples/cfengine/getvariablemetatags.cf -share/examples/cfengine/global_list_expansion.cf -share/examples/cfengine/global_list_expansion_2.cf -share/examples/cfengine/grep.cf -share/examples/cfengine/groupexists.cf -share/examples/cfengine/guest_environment_kvm.cf -share/examples/cfengine/hash.cf -share/examples/cfengine/hashcomment.cf -share/examples/cfengine/hashmatch.cf -share/examples/cfengine/hashuncomment.cf -share/examples/cfengine/helloworld.cf -share/examples/cfengine/host2ip.cf -share/examples/cfengine/hostrange.cf -share/examples/cfengine/hostsseen.cf -share/examples/cfengine/hostswithclass.cf -share/examples/cfengine/hub.cf -share/examples/cfengine/id.cf -share/examples/cfengine/inherit.cf -share/examples/cfengine/insert_users.cf -share/examples/cfengine/intarray.cf -share/examples/cfengine/intersection.cf -share/examples/cfengine/inventory_cpu.cf -share/examples/cfengine/ip2host.cf -share/examples/cfengine/iprange.cf -share/examples/cfengine/irange.cf -share/examples/cfengine/isdir.cf -share/examples/cfengine/isexecutable.cf -share/examples/cfengine/isgreaterthan.cf -share/examples/cfengine/islessthan.cf -share/examples/cfengine/islink.cf -share/examples/cfengine/isnewerthan.cf -share/examples/cfengine/isplain.cf -share/examples/cfengine/isvariable.cf -share/examples/cfengine/iteration.cf -share/examples/cfengine/join.cf -share/examples/cfengine/knowledge_driver.cf -share/examples/cfengine/knowledge_txt.cf -share/examples/cfengine/lastnode.cf -share/examples/cfengine/ldap.cf -share/examples/cfengine/length.cf -share/examples/cfengine/linking.cf -share/examples/cfengine/literal_server.cf -share/examples/cfengine/locate_files_and_compress.cf -share/examples/cfengine/log_private.cf -share/examples/cfengine/loops.cf -share/examples/cfengine/lsdir.cf -share/examples/cfengine/maparray.cf -share/examples/cfengine/mapdata.cf -share/examples/cfengine/maplist.cf -share/examples/cfengine/max-min-mean-variance.cf -share/examples/cfengine/measure_log.cf -share/examples/cfengine/measurements.cf -share/examples/cfengine/menu.cf -share/examples/cfengine/mergedata.cf -share/examples/cfengine/meta.cf -share/examples/cfengine/method.cf -share/examples/cfengine/method_polymorph.cf -share/examples/cfengine/method_validate.cf -share/examples/cfengine/method_var.cf -share/examples/cfengine/method_var2.cf -share/examples/cfengine/module_exec.cf -share/examples/cfengine/module_exec_2.cf -share/examples/cfengine/monitord.cf -share/examples/cfengine/motd.cf -share/examples/cfengine/mount_fs.cf -share/examples/cfengine/multipassvars.cf -share/examples/cfengine/namespace.cf -share/examples/cfengine/namespace1.cf -share/examples/cfengine/namespace2.cf -share/examples/cfengine/namespace3.cf -share/examples/cfengine/namespace_class1.cf -share/examples/cfengine/namespace_classes.cf -share/examples/cfengine/namespace_var_meta.cf -share/examples/cfengine/namespace_var_meta2.cf -share/examples/cfengine/neighbourhood_watch.cf -share/examples/cfengine/none.cf -share/examples/cfengine/nth.cf -share/examples/cfengine/null_config.cf -share/examples/cfengine/occurrences.cf -share/examples/cfengine/orchestrate_chain1.cf -share/examples/cfengine/orchestrate_chain2.cf -share/examples/cfengine/orchestrate_delay_trigger.cf -share/examples/cfengine/orchestrate_dominoes1.cf -share/examples/cfengine/orchestrate_dominoes2.cf -share/examples/cfengine/orchestrate_dragon.cf -share/examples/cfengine/orchestrate_dragon_load_balancer.cf -share/examples/cfengine/orchestrate_n_of_m.cf -share/examples/cfengine/orchestration_hostlist.cf -share/examples/cfengine/ordering.cf -share/examples/cfengine/package_apt.cf -share/examples/cfengine/package_bundles.cf -share/examples/cfengine/package_freebsd.cf -share/examples/cfengine/package_latest.cf -share/examples/cfengine/package_msi_file.cf -share/examples/cfengine/package_msi_version.cf -share/examples/cfengine/package_rpm.cf -share/examples/cfengine/package_solaris.cf -share/examples/cfengine/package_windows_feature.cf -share/examples/cfengine/package_yum.cf -share/examples/cfengine/package_zypper.cf -share/examples/cfengine/packagesmatching.cf -share/examples/cfengine/parallel_exec.cf -share/examples/cfengine/parseintrealstringarray.cf -share/examples/cfengine/parsestringarray.cf -share/examples/cfengine/parsestringarrayidx.cf -share/examples/cfengine/pathtype.cf -share/examples/cfengine/pattern_and_edit.cf -share/examples/cfengine/peerleader.cf -share/examples/cfengine/peerleaders.cf -share/examples/cfengine/peers.cf -share/examples/cfengine/postfix.cf -share/examples/cfengine/process_kill.cf -share/examples/cfengine/process_matching.cf -share/examples/cfengine/process_matching2.cf -share/examples/cfengine/process_matching3.cf -share/examples/cfengine/process_restart.cf -share/examples/cfengine/process_restart_basic.cf -share/examples/cfengine/process_signalling.cf -share/examples/cfengine/processes_define_class_based_on_process_runtime.cf -share/examples/cfengine/product.cf -share/examples/cfengine/promise_knowledge.cf -share/examples/cfengine/promises.cf -share/examples/cfengine/randomint.cf -share/examples/cfengine/readcsv.cf -share/examples/cfengine/readdata.cf -share/examples/cfengine/readfile.cf -share/examples/cfengine/readintrealstringlist.cf -share/examples/cfengine/readlist.cf -share/examples/cfengine/readtcp.cf -share/examples/cfengine/reg_multiline.cf -share/examples/cfengine/regarray.cf -share/examples/cfengine/regcmp.cf -share/examples/cfengine/regex_win.cf -share/examples/cfengine/regextract.cf -share/examples/cfengine/registry.cf -share/examples/cfengine/registry_cache.cf -share/examples/cfengine/registryvalue.cf -share/examples/cfengine/regline.cf -share/examples/cfengine/reglist.cf -share/examples/cfengine/remake_outputs.pl -share/examples/cfengine/remoteclasses.cf -share/examples/cfengine/remoteclasses2.cf -share/examples/cfengine/remotescalar.cf -share/examples/cfengine/remove_deadlinks.cf -share/examples/cfengine/rename.cf -share/examples/cfengine/repairedcommand.cf -share/examples/cfengine/report_custom.cf -share/examples/cfengine/report_diffs.cf -share/examples/cfengine/report_state.cf -share/examples/cfengine/reporting.cf -share/examples/cfengine/reporttofile.cf -share/examples/cfengine/resolveconf.cf -share/examples/cfengine/returnszero.cf -share/examples/cfengine/reverse.cf -share/examples/cfengine/root_passwd.cf -share/examples/cfengine/select_class.cf -share/examples/cfengine/select_mode.cf -share/examples/cfengine/select_region.cf -share/examples/cfengine/select_size.cf -share/examples/cfengine/selectservers.cf -share/examples/cfengine/server_callback.cf -share/examples/cfengine/server_copy_localhost.cf -share/examples/cfengine/server_copy_purge.cf -share/examples/cfengine/server_copy_remote.cf -share/examples/cfengine/server_flatcopy_localhost.cf -share/examples/cfengine/service_catalogue.cf -share/examples/cfengine/service_catalogue_separate.cf -share/examples/cfengine/service_disable.cf -share/examples/cfengine/service_start.cf -share/examples/cfengine/services_concept.cf -share/examples/cfengine/services_win.cf -share/examples/cfengine/setuidlog.cf -share/examples/cfengine/setvar.cf -share/examples/cfengine/shuffle.cf -share/examples/cfengine/software_dist.cf -share/examples/cfengine/software_update_version_yum.cf -share/examples/cfengine/some.cf -share/examples/cfengine/sort.cf -share/examples/cfengine/splitstring.cf -share/examples/cfengine/sql_table_structure.cf -share/examples/cfengine/storage.cf -share/examples/cfengine/strcmp.cf -share/examples/cfengine/strftime.cf -share/examples/cfengine/string_downcase.cf -share/examples/cfengine/string_head.cf -share/examples/cfengine/string_length.cf -share/examples/cfengine/string_mustache.cf -share/examples/cfengine/string_reverse.cf -share/examples/cfengine/string_split.cf -share/examples/cfengine/string_tail.cf -share/examples/cfengine/string_upcase.cf -share/examples/cfengine/stringarray.cf -share/examples/cfengine/sublist.cf -share/examples/cfengine/sum.cf -share/examples/cfengine/switchcase.cf -share/examples/cfengine/syslog.cf -share/examples/cfengine/syslog2.cf -share/examples/cfengine/template.cf -share/examples/cfengine/template2.cf -share/examples/cfengine/test_environment.cf -share/examples/cfengine/tidy_all_files.cf -share/examples/cfengine/translatepath.cf -share/examples/cfengine/unique.cf -share/examples/cfengine/unpack_method_calls.cf -share/examples/cfengine/update.cf -share/examples/cfengine/user_edit.cf -share/examples/cfengine/user_edit_method.cf -share/examples/cfengine/userexists.cf -share/examples/cfengine/users_type.cf -share/examples/cfengine/varclass.cf -share/examples/cfengine/varexpansion.cf -share/examples/cfengine/variablesmatching.cf -share/examples/cfengine/varnet.cf -share/examples/cfengine/vars.cf -share/examples/cfengine/warnifline.cf -share/examples/cfengine/webserver.cf -share/examples/cfengine/win_dns_client.cf -share/examples/cfengine/win_emergency.cf -share/examples/cfengine/win_registry.cf -share/examples/cfengine/win_schedule.cf -share/examples/cfengine/zenoss.cf -@rcscript ${RCDIR}/cf_execd -@rcscript ${RCDIR}/cf_monitord -@rcscript ${RCDIR}/cf_serverd -@rcscript ${RCDIR}/cfengine -@cwd ${CFENGINE_BASE} -bin/ -bin/cf-agent -bin/cf-execd -bin/cf-key -bin/cf-monitord -bin/cf-promises -bin/cf-runagent -bin/cf-serverd -bin/cf-upgrade -@mode 0750 -@sample ${CFENGINE_BASE}/ -@mode 0700 -@sample ${CFENGINE_BASE}/inputs/ -@sample ${CFENGINE_BASE}/masterfiles/ -@sample ${CFENGINE_BASE}/modules/ -@sample ${CFENGINE_BASE}/outputs/ -@sample ${CFENGINE_BASE}/ppkeys/ -@mode -@extraunexec rm -rf ${CFENGINE_BASE}/* Index: pkg/PLIST-main =================================================================== RCS file: pkg/PLIST-main diff -N pkg/PLIST-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/PLIST-main 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,462 @@ +@pkgpath sysutils/cfengine +@rcscript ${RCDIR}/cf_execd +@rcscript ${RCDIR}/cf_monitord +@rcscript ${RCDIR}/cf_serverd +@rcscript ${RCDIR}/cfengine +@bin bin/cf-agent +@bin bin/cf-check +@bin bin/cf-execd +@bin bin/cf-key +@bin bin/cf-monitord +@bin bin/cf-net +@bin bin/cf-promises +@bin bin/cf-runagent +@bin bin/cf-secret +@bin bin/cf-serverd +bin/cf-support +@bin bin/cf-upgrade +@bin bin/rpmvercmp +@static-lib lib/libpromises.a +lib/libpromises.la +@lib lib/libpromises.so.${LIBpromises_VERSION} +share/doc/cfengine/ +share/doc/cfengine/ChangeLog +share/doc/cfengine/README.md +share/doc/libntech/ +share/doc/libntech/README.md +share/doc/pkg-readmes/${PKGSTEM} +share/examples/cfengine/ +share/examples/cfengine/abort.cf +share/examples/cfengine/accessed_before.cf +share/examples/cfengine/accessedbefore.cf +share/examples/cfengine/accumulated_time.cf +share/examples/cfengine/acl.cf +share/examples/cfengine/acl_generic.cf +share/examples/cfengine/acl_ntfs.cf +share/examples/cfengine/acl_secret.cf +share/examples/cfengine/action_policy.cf +share/examples/cfengine/active_directory.cf +share/examples/cfengine/activedirectory_listusers.cf +share/examples/cfengine/activedirectory_showuser.cf +share/examples/cfengine/ago.cf +share/examples/cfengine/app_baseline.cf +share/examples/cfengine/appgroups.cf +share/examples/cfengine/arrays.cf +share/examples/cfengine/augment.cf +share/examples/cfengine/backreferences_files.cf +share/examples/cfengine/basename.cf +share/examples/cfengine/bsdflags.cf +share/examples/cfengine/bundle_return_values.cf +share/examples/cfengine/bundlesequence.cf +share/examples/cfengine/bundlesmatching.cf +share/examples/cfengine/bundlestate.cf +share/examples/cfengine/canonify.cf +share/examples/cfengine/cf-secret.cf +share/examples/cfengine/cf2_integration.cf +share/examples/cfengine/cf_version_after.cf +share/examples/cfengine/cf_version_at.cf +share/examples/cfengine/cf_version_before.cf +share/examples/cfengine/cf_version_between.cf +share/examples/cfengine/cf_version_maximum.cf +share/examples/cfengine/cf_version_minimum.cf +share/examples/cfengine/change_detect.cf +share/examples/cfengine/changedbefore.cf +share/examples/cfengine/chdir.cf +share/examples/cfengine/class-automatic-canonificiation.cf +share/examples/cfengine/classes_context_applies_multiple_promises.cf +share/examples/cfengine/classes_global.cf +share/examples/cfengine/classesmatching.cf +share/examples/cfengine/classfiltercsv.cf +share/examples/cfengine/classmatch.cf +share/examples/cfengine/classvar_convergence.cf +share/examples/cfengine/commands.cf +share/examples/cfengine/compare.cf +share/examples/cfengine/complicated_cpu_bound_benchmark.cf +share/examples/cfengine/const.cf +share/examples/cfengine/container_iteration.cf +share/examples/cfengine/container_key_iteration.cf +share/examples/cfengine/control_expand.cf +share/examples/cfengine/copy.cf +share/examples/cfengine/copy_classes.cf +share/examples/cfengine/copy_copbl.cf +share/examples/cfengine/copy_edit.cf +share/examples/cfengine/copydir_copbl.cf +share/examples/cfengine/copylinks.cf +share/examples/cfengine/countclassesmatching.cf +share/examples/cfengine/countlinesmatching.cf +share/examples/cfengine/create_filedir.cf +share/examples/cfengine/createdb.cf +share/examples/cfengine/customize_by_named_list.cf +share/examples/cfengine/data_expand.cf +share/examples/cfengine/data_readstringarray.cf +share/examples/cfengine/data_regextract.cf +share/examples/cfengine/data_sysctlvalues.cf +share/examples/cfengine/datastate.cf +share/examples/cfengine/defaults.cf +share/examples/cfengine/defaults2.cf +share/examples/cfengine/defaults3.cf +share/examples/cfengine/definitions.cf +share/examples/cfengine/deletelines.cf +share/examples/cfengine/depends_on.cf +share/examples/cfengine/depends_on2.cf +share/examples/cfengine/difference.cf +share/examples/cfengine/dirname.cf +share/examples/cfengine/disable.cf +share/examples/cfengine/disable_and_rotate_files.cf +share/examples/cfengine/diskfree.cf +share/examples/cfengine/dollar.cf +share/examples/cfengine/edit.empty_before_use.cf +share/examples/cfengine/edit.filename.cf +share/examples/cfengine/edit_column_files.cf +share/examples/cfengine/edit_comment_lines.cf +share/examples/cfengine/edit_deletenotmatch.cf +share/examples/cfengine/edit_insert_fuzzylines.cf +share/examples/cfengine/edit_insert_lines.cf +share/examples/cfengine/edit_insert_lines_silly.cf +share/examples/cfengine/edit_passwd_file.cf +share/examples/cfengine/edit_passwd_file_basic.cf +share/examples/cfengine/edit_replace_string.cf +share/examples/cfengine/edit_sectioned_file.cf +share/examples/cfengine/edit_setvar.cf +share/examples/cfengine/edit_template.cf +share/examples/cfengine/edit_triggerclass.cf +share/examples/cfengine/edit_xml.cf +share/examples/cfengine/ensure_line_present_prepend_append.cf +share/examples/cfengine/env.cf +share/examples/cfengine/epimenides.cf +share/examples/cfengine/escape.cf +share/examples/cfengine/eval.cf +share/examples/cfengine/every.cf +share/examples/cfengine/exec_args.cf +share/examples/cfengine/exec_in_sequence.cf +share/examples/cfengine/execd.cf +share/examples/cfengine/execresult.cf +share/examples/cfengine/execresult_as_data.cf +share/examples/cfengine/expand.cf +share/examples/cfengine/failedcommand.cf +share/examples/cfengine/file_change_detection.cf +share/examples/cfengine/file_hash.cf +share/examples/cfengine/file_owner_list_template.cf +share/examples/cfengine/fileexists.cf +share/examples/cfengine/filenames.cf +share/examples/cfengine/fileperms.cf +share/examples/cfengine/files_auto_define.cf +share/examples/cfengine/files_content.cf +share/examples/cfengine/files_depth_search_include_basedir.cf +share/examples/cfengine/files_transformer.cf +share/examples/cfengine/filesexist.cf +share/examples/cfengine/filesexist2.cf +share/examples/cfengine/filesize.cf +share/examples/cfengine/filestat.cf +share/examples/cfengine/filter.cf +share/examples/cfengine/findfiles.cf +share/examples/cfengine/findfiles_up.cf +share/examples/cfengine/fix_names.cf +share/examples/cfengine/format.cf +share/examples/cfengine/function-return-types.cf +share/examples/cfengine/getclassmetatags.cf +share/examples/cfengine/getenv.cf +share/examples/cfengine/getfields.cf +share/examples/cfengine/getgid.cf +share/examples/cfengine/getindices.cf +share/examples/cfengine/getindices_and_values.cf +share/examples/cfengine/getmacaddress.cf +share/examples/cfengine/getregistry.cf +share/examples/cfengine/getuid.cf +share/examples/cfengine/getuserinfo.cf +share/examples/cfengine/getusers.cf +share/examples/cfengine/getvalues.cf +share/examples/cfengine/getvariablemetatags.cf +share/examples/cfengine/global_list_expansion.cf +share/examples/cfengine/global_list_expansion_2.cf +share/examples/cfengine/grep.cf +share/examples/cfengine/groupexists.cf +share/examples/cfengine/guest_environment_kvm.cf +share/examples/cfengine/hash.cf +share/examples/cfengine/hash_to_int.cf +share/examples/cfengine/hashcomment.cf +share/examples/cfengine/hashmatch.cf +share/examples/cfengine/hashuncomment.cf +share/examples/cfengine/helloworld.cf +share/examples/cfengine/host2ip.cf +share/examples/cfengine/hostrange.cf +share/examples/cfengine/hostsseen.cf +share/examples/cfengine/hostswithclass.cf +share/examples/cfengine/hub.cf +share/examples/cfengine/id.cf +share/examples/cfengine/inform.cf +share/examples/cfengine/inherit.cf +share/examples/cfengine/inherit_from.cf +share/examples/cfengine/inherit_from_classes.cf +share/examples/cfengine/inline-json.cf +share/examples/cfengine/inline-yaml.cf +share/examples/cfengine/insert_users.cf +share/examples/cfengine/int.cf +share/examples/cfengine/intarray.cf +share/examples/cfengine/intersection.cf +share/examples/cfengine/inventory_cpu.cf +share/examples/cfengine/ip2host.cf +share/examples/cfengine/iprange.cf +share/examples/cfengine/irange.cf +share/examples/cfengine/isdir.cf +share/examples/cfengine/isexecutable.cf +share/examples/cfengine/isgreaterthan.cf +share/examples/cfengine/isipinsubnet.cf +share/examples/cfengine/islessthan.cf +share/examples/cfengine/islink.cf +share/examples/cfengine/isnewerthan.cf +share/examples/cfengine/isplain.cf +share/examples/cfengine/isvariable.cf +share/examples/cfengine/iteration.cf +share/examples/cfengine/join.cf +share/examples/cfengine/kill_process_running_wrong_user.cf +share/examples/cfengine/lastnode.cf +share/examples/cfengine/ldap.cf +share/examples/cfengine/length.cf +share/examples/cfengine/linking.cf +share/examples/cfengine/literal_server.cf +share/examples/cfengine/local_group_present.cf +share/examples/cfengine/local_user_password.cf +share/examples/cfengine/local_user_secondary_group_member.cf +share/examples/cfengine/local_users_absent.cf +share/examples/cfengine/local_users_locked.cf +share/examples/cfengine/local_users_present.cf +share/examples/cfengine/locate_files_and_compress.cf +share/examples/cfengine/log_private.cf +share/examples/cfengine/loops.cf +share/examples/cfengine/lsdir.cf +share/examples/cfengine/main.cf +share/examples/cfengine/main_entry_point.cf +share/examples/cfengine/main_library.cf +share/examples/cfengine/maparray.cf +share/examples/cfengine/mapdata.cf +share/examples/cfengine/mapdata_jsonpipe.cf +share/examples/cfengine/maplist.cf +share/examples/cfengine/max-min-mean-variance.cf +share/examples/cfengine/measure_log.cf +share/examples/cfengine/measurements.cf +share/examples/cfengine/menu.cf +share/examples/cfengine/mergedata-last-key-wins.cf +share/examples/cfengine/mergedata.cf +share/examples/cfengine/meta.cf +share/examples/cfengine/method.cf +share/examples/cfengine/method_polymorph.cf +share/examples/cfengine/method_validate.cf +share/examples/cfengine/method_var.cf +share/examples/cfengine/method_var2.cf +share/examples/cfengine/missing_ok.cf +share/examples/cfengine/module_exec.cf +share/examples/cfengine/module_exec_2.cf +share/examples/cfengine/monitord.cf +share/examples/cfengine/mount_fs.cf +share/examples/cfengine/multipassvars.cf +share/examples/cfengine/multiple_outcomes.cf +share/examples/cfengine/mustache_classes.cf +share/examples/cfengine/mustache_comments.cf +share/examples/cfengine/mustache_extension_compact_json.cf +share/examples/cfengine/mustache_extension_expand_key.cf +share/examples/cfengine/mustache_extension_multiline_json.cf +share/examples/cfengine/mustache_extension_top.cf +share/examples/cfengine/mustache_sections_empty_list.cf +share/examples/cfengine/mustache_sections_inverted.cf +share/examples/cfengine/mustache_sections_non_empty_list.cf +share/examples/cfengine/mustache_sections_non_false_value.cf +share/examples/cfengine/mustache_set_delimiters.cf +share/examples/cfengine/mustache_template_motd.cf +share/examples/cfengine/mustache_variables.cf +share/examples/cfengine/namespace_bodies.cf +share/examples/cfengine/namespace_classes.cf +share/examples/cfengine/namespace_declaration.cf +share/examples/cfengine/namespace_hard_classes.cf +share/examples/cfengine/namespace_methods-usebundle.cf +share/examples/cfengine/namespace_special_var_exception.cf +share/examples/cfengine/namespace_var_meta.cf +share/examples/cfengine/namespace_var_meta2.cf +share/examples/cfengine/namespace_variable_references.cf +share/examples/cfengine/neighbourhood_watch.cf +share/examples/cfengine/none.cf +share/examples/cfengine/nth.cf +share/examples/cfengine/null_config.cf +share/examples/cfengine/orchestrate_chain1.cf +share/examples/cfengine/orchestrate_chain2.cf +share/examples/cfengine/orchestrate_delay_trigger.cf +share/examples/cfengine/orchestrate_dominoes1.cf +share/examples/cfengine/orchestrate_dominoes2.cf +share/examples/cfengine/orchestrate_dragon.cf +share/examples/cfengine/orchestrate_dragon_load_balancer.cf +share/examples/cfengine/orchestrate_n_of_m.cf +share/examples/cfengine/orchestration_hostlist.cf +share/examples/cfengine/ordering.cf +share/examples/cfengine/package_apt.cf +share/examples/cfengine/package_bundles.cf +share/examples/cfengine/package_freebsd.cf +share/examples/cfengine/package_latest.cf +share/examples/cfengine/package_msi_file.cf +share/examples/cfengine/package_msi_version.cf +share/examples/cfengine/package_rpm.cf +share/examples/cfengine/package_solaris.cf +share/examples/cfengine/package_windows_feature.cf +share/examples/cfengine/package_yum.cf +share/examples/cfengine/package_zypper.cf +share/examples/cfengine/packagesmatching.cf +share/examples/cfengine/parallel_exec.cf +share/examples/cfengine/parseintarray.cf +share/examples/cfengine/parserealarray.cf +share/examples/cfengine/parsestringarray.cf +share/examples/cfengine/parsestringarrayidx.cf +share/examples/cfengine/pathtype.cf +share/examples/cfengine/pattern_and_edit.cf +share/examples/cfengine/peerleader.cf +share/examples/cfengine/peerleaders.cf +share/examples/cfengine/peers.cf +share/examples/cfengine/postfix.cf +share/examples/cfengine/printfile.cf +share/examples/cfengine/process_kill.cf +share/examples/cfengine/process_matching.cf +share/examples/cfengine/process_matching2.cf +share/examples/cfengine/process_matching3.cf +share/examples/cfengine/process_restart.cf +share/examples/cfengine/process_restart_basic.cf +share/examples/cfengine/process_signalling.cf +share/examples/cfengine/processes_define_class_based_on_process_runtime.cf +share/examples/cfengine/product.cf +share/examples/cfengine/promises.cf +share/examples/cfengine/quoting.cf +share/examples/cfengine/randomint.cf +share/examples/cfengine/read_module_protocol.cf +share/examples/cfengine/readcsv.cf +share/examples/cfengine/readdata.cf +share/examples/cfengine/readenvfile.cf +share/examples/cfengine/readfile.cf +share/examples/cfengine/readintarray.cf +share/examples/cfengine/readintlist.cf +share/examples/cfengine/readintrealstringlist.cf +share/examples/cfengine/readlist.cf +share/examples/cfengine/readrealarray.cf +share/examples/cfengine/readreallist.cf +share/examples/cfengine/readstringarray.cf +share/examples/cfengine/readstringlist.cf +share/examples/cfengine/readtcp.cf +share/examples/cfengine/reference_values_inside_data.cf +share/examples/cfengine/reg_multiline.cf +share/examples/cfengine/regarray.cf +share/examples/cfengine/regcmp.cf +share/examples/cfengine/regex_replace.cf +share/examples/cfengine/regex_win.cf +share/examples/cfengine/regextract.cf +share/examples/cfengine/registry.cf +share/examples/cfengine/registry_cache.cf +share/examples/cfengine/registryvalue.cf +share/examples/cfengine/regline.cf +share/examples/cfengine/reglist.cf +share/examples/cfengine/remake_outputs.pl +share/examples/cfengine/remoteclasses.cf +share/examples/cfengine/remoteclasses2.cf +share/examples/cfengine/remotescalar.cf +share/examples/cfengine/remove_deadlinks.cf +share/examples/cfengine/rename.cf +share/examples/cfengine/repairedcommand.cf +share/examples/cfengine/report_custom.cf +share/examples/cfengine/report_state.cf +share/examples/cfengine/reports.cf +share/examples/cfengine/reporttofile.cf +share/examples/cfengine/resolveconf.cf +share/examples/cfengine/returnszero.cf +share/examples/cfengine/reverse.cf +share/examples/cfengine/root_passwd.cf +share/examples/cfengine/rxdirs.cf +share/examples/cfengine/select_class.cf +share/examples/cfengine/select_mode.cf +share/examples/cfengine/select_region.cf +share/examples/cfengine/select_size.cf +share/examples/cfengine/selectservers.cf +share/examples/cfengine/server_callback.cf +share/examples/cfengine/server_copy_localhost.cf +share/examples/cfengine/server_copy_purge.cf +share/examples/cfengine/server_copy_remote.cf +share/examples/cfengine/server_flatcopy_localhost.cf +share/examples/cfengine/service_catalogue.cf +share/examples/cfengine/service_catalogue_separate.cf +share/examples/cfengine/service_disable.cf +share/examples/cfengine/service_start.cf +share/examples/cfengine/services.cf +share/examples/cfengine/services_concept.cf +share/examples/cfengine/services_default_service_bundle.cf +share/examples/cfengine/services_win.cf +share/examples/cfengine/setuidlog.cf +share/examples/cfengine/setvar.cf +share/examples/cfengine/shuffle.cf +share/examples/cfengine/simple_ssh_key_distribution.cf +share/examples/cfengine/software_dist.cf +share/examples/cfengine/software_update_version_yum.cf +share/examples/cfengine/some.cf +share/examples/cfengine/sort.cf +share/examples/cfengine/splitstring.cf +share/examples/cfengine/sql_table_structure.cf +share/examples/cfengine/storage-cifs.cf +share/examples/cfengine/storage.cf +share/examples/cfengine/storejson.cf +share/examples/cfengine/strcmp.cf +share/examples/cfengine/strftime.cf +share/examples/cfengine/string.cf +share/examples/cfengine/string_downcase.cf +share/examples/cfengine/string_head.cf +share/examples/cfengine/string_length.cf +share/examples/cfengine/string_mustache.cf +share/examples/cfengine/string_replace.cf +share/examples/cfengine/string_reverse.cf +share/examples/cfengine/string_split.cf +share/examples/cfengine/string_tail.cf +share/examples/cfengine/string_trim.cf +share/examples/cfengine/string_upcase.cf +share/examples/cfengine/stringarray.cf +share/examples/cfengine/style_PascaleCase.cf +share/examples/cfengine/style_camelCase.cf +share/examples/cfengine/style_hungarian.cf +share/examples/cfengine/style_snake_case.cf +share/examples/cfengine/sublist.cf +share/examples/cfengine/sum.cf +share/examples/cfengine/switchcase.cf +share/examples/cfengine/symlink.cf +share/examples/cfengine/symlink_children.cf +share/examples/cfengine/sys_interfaces_ip_addresses_ipv4.cf +share/examples/cfengine/syslog.cf +share/examples/cfengine/syslog2.cf +share/examples/cfengine/template.cf +share/examples/cfengine/template2.cf +share/examples/cfengine/template_method-inline_mustache.cf +share/examples/cfengine/test_environment.cf +share/examples/cfengine/tidy_all_files.cf +share/examples/cfengine/translatepath.cf +share/examples/cfengine/type.cf +share/examples/cfengine/unique.cf +share/examples/cfengine/unpack_method_calls.cf +share/examples/cfengine/update.cf +share/examples/cfengine/user_edit.cf +share/examples/cfengine/user_edit_method.cf +share/examples/cfengine/userexists.cf +share/examples/cfengine/users_type.cf +share/examples/cfengine/validdata.cf +share/examples/cfengine/validjson.cf +share/examples/cfengine/varclass.cf +share/examples/cfengine/varexpansion.cf +share/examples/cfengine/variablesmatching.cf +share/examples/cfengine/variablesmatching_as_data.cf +share/examples/cfengine/varnet.cf +share/examples/cfengine/vars.cf +share/examples/cfengine/warnifline.cf +share/examples/cfengine/webserver.cf +share/examples/cfengine/win_dns_client.cf +share/examples/cfengine/win_emergency.cf +share/examples/cfengine/win_registry.cf +share/examples/cfengine/win_schedule.cf +share/examples/cfengine/with.cf +share/examples/cfengine/zenoss.cf +@mode 0750 +@sample ${CFENGINE_BASE}/ +@mode 0700 +@sample ${CFENGINE_BASE}/inputs/ +@sample ${CFENGINE_BASE}/masterfiles/ +@sample ${CFENGINE_BASE}/modules/ +@sample ${CFENGINE_BASE}/outputs/ +@sample ${CFENGINE_BASE}/ppkeys/ Index: pkg/PLIST-masterfiles =================================================================== RCS file: pkg/PLIST-masterfiles diff -N pkg/PLIST-masterfiles --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/PLIST-masterfiles 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,158 @@ +@mode 750 +cfengine/ +@mode 700 +cfengine/masterfiles/ +@mode +cfengine/masterfiles/cfe_internal/ +cfengine/masterfiles/cfe_internal/CFE_cfengine.cf +cfengine/masterfiles/cfe_internal/core/ +cfengine/masterfiles/cfe_internal/core/deprecated/ +cfengine/masterfiles/cfe_internal/core/deprecated/cfengine_processes.cf +cfengine/masterfiles/cfe_internal/core/host_info_report.cf +cfengine/masterfiles/cfe_internal/core/limit_robot_agents.cf +cfengine/masterfiles/cfe_internal/core/log_rotation.cf +cfengine/masterfiles/cfe_internal/core/main.cf +cfengine/masterfiles/cfe_internal/core/watchdog/ +cfengine/masterfiles/cfe_internal/core/watchdog/templates/ +cfengine/masterfiles/cfe_internal/core/watchdog/templates/watchdog-windows.ps1.mustache +cfengine/masterfiles/cfe_internal/core/watchdog/templates/watchdog.mustache +cfengine/masterfiles/cfe_internal/core/watchdog/watchdog.cf +cfengine/masterfiles/cfe_internal/enterprise/ +cfengine/masterfiles/cfe_internal/enterprise/CFE_hub_specific.cf +cfengine/masterfiles/cfe_internal/enterprise/CFE_knowledge.cf +cfengine/masterfiles/cfe_internal/enterprise/federation/ +cfengine/masterfiles/cfe_internal/enterprise/federation/federation.cf +cfengine/masterfiles/cfe_internal/enterprise/file_change.cf +cfengine/masterfiles/cfe_internal/enterprise/ha/ +cfengine/masterfiles/cfe_internal/enterprise/ha/ha.cf +cfengine/masterfiles/cfe_internal/enterprise/ha/ha_def.cf +cfengine/masterfiles/cfe_internal/enterprise/ha/ha_update.cf +cfengine/masterfiles/cfe_internal/enterprise/main.cf +cfengine/masterfiles/cfe_internal/enterprise/mission_portal.cf +cfengine/masterfiles/cfe_internal/enterprise/templates/ +cfengine/masterfiles/cfe_internal/enterprise/templates/apachectl.mustache +cfengine/masterfiles/cfe_internal/enterprise/templates/httpd.conf.mustache +cfengine/masterfiles/cfe_internal/enterprise/templates/runalerts.php.mustache +cfengine/masterfiles/cfe_internal/enterprise/templates/runalerts.sh.mustache +cfengine/masterfiles/cfe_internal/recommendations.cf +cfengine/masterfiles/cfe_internal/update/ +cfengine/masterfiles/cfe_internal/update/cfe_internal_dc_workflow.cf +cfengine/masterfiles/cfe_internal/update/cfe_internal_update_from_repository.cf +cfengine/masterfiles/cfe_internal/update/lib.cf +cfengine/masterfiles/cfe_internal/update/systemd_units.cf +cfengine/masterfiles/cfe_internal/update/update_bins.cf +cfengine/masterfiles/cfe_internal/update/update_policy.cf +cfengine/masterfiles/cfe_internal/update/update_processes.cf +cfengine/masterfiles/cfe_internal/update/windows_unattended_upgrade.cf +cfengine/masterfiles/controls/ +cfengine/masterfiles/controls/cf_agent.cf +cfengine/masterfiles/controls/cf_execd.cf +cfengine/masterfiles/controls/cf_hub.cf +cfengine/masterfiles/controls/cf_monitord.cf +cfengine/masterfiles/controls/cf_runagent.cf +cfengine/masterfiles/controls/cf_serverd.cf +cfengine/masterfiles/controls/def.cf +cfengine/masterfiles/controls/def_inputs.cf +cfengine/masterfiles/controls/reports.cf +cfengine/masterfiles/controls/update_def.cf +cfengine/masterfiles/controls/update_def_inputs.cf +cfengine/masterfiles/inventory/ +cfengine/masterfiles/inventory/aix.cf +cfengine/masterfiles/inventory/any.cf +cfengine/masterfiles/inventory/debian.cf +cfengine/masterfiles/inventory/freebsd.cf +cfengine/masterfiles/inventory/generic.cf +cfengine/masterfiles/inventory/linux.cf +cfengine/masterfiles/inventory/lsb.cf +cfengine/masterfiles/inventory/macos.cf +cfengine/masterfiles/inventory/os.cf +cfengine/masterfiles/inventory/redhat.cf +cfengine/masterfiles/inventory/suse.cf +cfengine/masterfiles/inventory/windows.cf +cfengine/masterfiles/lib/ +cfengine/masterfiles/lib/autorun.cf +cfengine/masterfiles/lib/bundles.cf +cfengine/masterfiles/lib/cfe_internal.cf +cfengine/masterfiles/lib/cfe_internal_hub.cf +cfengine/masterfiles/lib/cfengine_enterprise_hub_ha.cf +cfengine/masterfiles/lib/commands.cf +cfengine/masterfiles/lib/common.cf +cfengine/masterfiles/lib/databases.cf +cfengine/masterfiles/lib/edit_xml.cf +cfengine/masterfiles/lib/event.cf +cfengine/masterfiles/lib/examples.cf +cfengine/masterfiles/lib/feature.cf +cfengine/masterfiles/lib/files.cf +cfengine/masterfiles/lib/guest_environments.cf +cfengine/masterfiles/lib/monitor.cf +cfengine/masterfiles/lib/packages-ENT-3719.cf +cfengine/masterfiles/lib/packages.cf +cfengine/masterfiles/lib/paths.cf +cfengine/masterfiles/lib/processes.cf +cfengine/masterfiles/lib/reports.cf +cfengine/masterfiles/lib/services.cf +cfengine/masterfiles/lib/stdlib.cf +cfengine/masterfiles/lib/storage.cf +cfengine/masterfiles/lib/templates/ +cfengine/masterfiles/lib/templates/junit.mustache +cfengine/masterfiles/lib/templates/tap.mustache +cfengine/masterfiles/lib/testing.cf +cfengine/masterfiles/lib/users.cf +cfengine/masterfiles/lib/vcs.cf +cfengine/masterfiles/modules/ +cfengine/masterfiles/modules/packages/ +cfengine/masterfiles/modules/packages/vendored/ +cfengine/masterfiles/modules/packages/vendored/WiRunSQL.vbs.mustache +cfengine/masterfiles/modules/packages/vendored/apk.mustache +cfengine/masterfiles/modules/packages/vendored/apt_get.mustache +cfengine/masterfiles/modules/packages/vendored/freebsd_ports.mustache +cfengine/masterfiles/modules/packages/vendored/msiexec-list.vbs.mustache +cfengine/masterfiles/modules/packages/vendored/msiexec.bat.mustache +cfengine/masterfiles/modules/packages/vendored/nimclient.mustache +cfengine/masterfiles/modules/packages/vendored/pkg.mustache +cfengine/masterfiles/modules/packages/vendored/pkgsrc.mustache +cfengine/masterfiles/modules/packages/vendored/slackpkg.mustache +cfengine/masterfiles/modules/packages/vendored/snap.mustache +cfengine/masterfiles/modules/packages/vendored/yum.mustache +cfengine/masterfiles/modules/packages/vendored/zypper.mustache +cfengine/masterfiles/promises.cf +cfengine/masterfiles/services/ +cfengine/masterfiles/services/autorun/ +cfengine/masterfiles/services/autorun/hello.cf +cfengine/masterfiles/services/init.cf +cfengine/masterfiles/services/main.cf +cfengine/masterfiles/standalone_self_upgrade.cf +cfengine/masterfiles/templates/ +cfengine/masterfiles/templates/cf-apache.service.mustache +cfengine/masterfiles/templates/cf-execd.service.mustache +cfengine/masterfiles/templates/cf-hub.service.mustache +cfengine/masterfiles/templates/cf-monitord.service.mustache +cfengine/masterfiles/templates/cf-postgres.service.mustache +cfengine/masterfiles/templates/cf-reactor.service.mustache +cfengine/masterfiles/templates/cf-runalerts.service.mustache +cfengine/masterfiles/templates/cf-serverd.service.mustache +cfengine/masterfiles/templates/cfengine3.service.mustache +cfengine/masterfiles/templates/cfengine_watchdog.mustache +cfengine/masterfiles/templates/federated_reporting/ +cfengine/masterfiles/templates/federated_reporting/10-base_filter.sed +cfengine/masterfiles/templates/federated_reporting/50-merge_inserts.awk +cfengine/masterfiles/templates/federated_reporting/cfsecret.py +cfengine/masterfiles/templates/federated_reporting/config.sh.mustache +cfengine/masterfiles/templates/federated_reporting/distributed_cleanup.py +cfengine/masterfiles/templates/federated_reporting/dump.sh +cfengine/masterfiles/templates/federated_reporting/import.sh +cfengine/masterfiles/templates/federated_reporting/import_file.sh +cfengine/masterfiles/templates/federated_reporting/log.sh.mustache +cfengine/masterfiles/templates/federated_reporting/nova_api.py +cfengine/masterfiles/templates/federated_reporting/parallel.sh +cfengine/masterfiles/templates/federated_reporting/psql_wrapper.sh.mustache +cfengine/masterfiles/templates/federated_reporting/pull_dumps_from.sh +cfengine/masterfiles/templates/federated_reporting/transfer_distributed_cleanup_items.sh +cfengine/masterfiles/templates/federated_reporting/transport.sh +cfengine/masterfiles/templates/host_info_report.mustache +cfengine/masterfiles/templates/json_multiline.mustache +cfengine/masterfiles/templates/json_serial.mustache +cfengine/masterfiles/templates/vercmp.ps1 +cfengine/masterfiles/update.cf +cfengine/plugins/ +cfengine/state/ Index: pkg/README =================================================================== RCS file: pkg/README diff -N pkg/README --- pkg/README 11 Mar 2022 19:57:16 -0000 1.4 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,69 +0,0 @@ -+----------------------------------------------------------------------- -| Running ${PKGSTEM} on OpenBSD -+----------------------------------------------------------------------- - -This is a brief quick-start guide. For more information, see the -documentation: - - https://cfengine.com/manuals/cf3-tutorial - https://cfengine.com/manuals/cf3-reference - https://cfengine.com/manuals/cf3-quickstart - -Configuring a policy hub -======================== -To setup a policy hub (cfengine "server"), or to setup a stand-alone -machine fetching policy from itself, perform the following steps as root. - -Create a key-pair, necessary directories, and copy the sample configuration: - - # cf-key - # cp -pR ${LOCALBASE}/share/examples/cfengine/CoreBase/* \ - /var/cfengine/masterfiles/ - -Edit the files you have just copied as appropriate. You will certainly -need to change the domain and probably acl here: - - # $EDITOR /var/cfengine/masterfiles/def.cf - -Bootstrap the server, using its own IP address: - - # cf-agent --bootstrap --policy-server <own IP> - -To start the services at boot, add "cf_serverd cfengine" to the pkg_scripts -line in /etc/rc.conf.local. - -Configuring client machines -=========================== -To setup a client, fetching policy from a hub configured as above, -perform the following steps as root. - -Create a key-pair and necessary directories: - - # cf-key - -Bootstrap the client: - - # cf-agent --bootstrap --policy-server <hub IP> - -For normal operation, cf-execd(8) and cf-monitord(8) should be running - -to configure this at boot, add "cfengine" to the pkg_scripts line in -/etc/rc.conf.local. - -Resource limits -=============== -If cf-report(8) fails with a "Too many open files" message, raise your -resource limits. This can be done temporarily in your shell (in ksh(1) -you might use "ulimit -n 256"). For a more permanent change, increase -the openfiles limits for your user's class in /etc/login.conf; this -takes effect at login. - -Notable changes from cfengine community packages -================================================ -The standard packages from cfengine.com have their programs -dynamically-linked to libraries in /var/cfengine/lib, but the OpenBSD -packages are dynamically-linked to libraries in ${LOCALBASE}. As a -result, some of the self-repair functionality is not available. - -As per package(5) standards, the program files are installed under -${LOCALBASE}/sbin; courtesy symlinks are provided in /var/cfengine/bin -for compatibility with standard documentation. Index: pkg/README-main =================================================================== RCS file: pkg/README-main diff -N pkg/README-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/README-main 16 Aug 2023 21:47:07 -0000 @@ -0,0 +1,69 @@ ++----------------------------------------------------------------------- +| Running ${PKGSTEM} on OpenBSD ++----------------------------------------------------------------------- + +This is a brief quick-start guide. For more information, see the +documentation: + + https://cfengine.com/manuals/cf3-tutorial + https://cfengine.com/manuals/cf3-reference + https://cfengine.com/manuals/cf3-quickstart + +Configuring a policy hub +======================== +To setup a policy hub (cfengine "server"), or to setup a stand-alone +machine fetching policy from itself, perform the following steps as root. + +Create a key-pair, necessary directories, and copy the sample configuration: + + # cf-key + # cp -pR ${LOCALBASE}/share/examples/cfengine/CoreBase/* \ + /var/cfengine/masterfiles/ + +Edit the files you have just copied as appropriate. You will certainly +need to change the domain and probably acl here: + + # $EDITOR /var/cfengine/masterfiles/def.cf + +Bootstrap the server, using its own IP address: + + # cf-agent --bootstrap --policy-server <own IP> + +To start the services at boot, add "cf_serverd cfengine" to the pkg_scripts +line in /etc/rc.conf.local. + +Configuring client machines +=========================== +To setup a client, fetching policy from a hub configured as above, +perform the following steps as root. + +Create a key-pair and necessary directories: + + # cf-key + +Bootstrap the client: + + # cf-agent --bootstrap --policy-server <hub IP> + +For normal operation, cf-execd(8) and cf-monitord(8) should be running - +to configure this at boot, add "cfengine" to the pkg_scripts line in +/etc/rc.conf.local. + +Resource limits +=============== +If cf-report(8) fails with a "Too many open files" message, raise your +resource limits. This can be done temporarily in your shell (in ksh(1) +you might use "ulimit -n 256"). For a more permanent change, increase +the openfiles limits for your user's class in /etc/login.conf; this +takes effect at login. + +Notable changes from cfengine community packages +================================================ +The standard packages from cfengine.com have their programs +dynamically-linked to libraries in /var/cfengine/lib, but the OpenBSD +packages are dynamically-linked to libraries in ${LOCALBASE}. As a +result, some of the self-repair functionality is not available. + +As per package(5) standards, the program files are installed under +${LOCALBASE}/sbin; courtesy symlinks are provided in /var/cfengine/bin +for compatibility with standard documentation.
