1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

sysutils/cfengine322: Introduce cfengine322 and cfengine-masterfiles322

Add ports for the new cfengine and cfengine-masterfiles 3.22.0.

Make cfengine322 and cfengine-masterfiles322 the default cfengine
ports/packages.
This commit is contained in:
Cy Schubert 2023-06-17 20:51:17 -07:00
parent 42b269e42a
commit e6267c489a
14 changed files with 352 additions and 4 deletions

View File

@ -185,9 +185,11 @@
SUBDIR += cfengine-masterfiles318
SUBDIR += cfengine-masterfiles320
SUBDIR += cfengine-masterfiles321
SUBDIR += cfengine-masterfiles322
SUBDIR += cfengine318
SUBDIR += cfengine320
SUBDIR += cfengine321
SUBDIR += cfengine322
SUBDIR += chaoskube
SUBDIR += checkrestart
SUBDIR += chezmoi

View File

@ -1,5 +1,5 @@
VERSIONS= 319 320 321
CFENGINE_VERSION?= 321
VERSIONS= 320 321 322
CFENGINE_VERSION?= 322
MASTERDIR= ${.CURDIR}/../cfengine-masterfiles${CFENGINE_VERSION}

View File

@ -0,0 +1,31 @@
PORTNAME= cfengine-masterfiles
DISTVERSION= 3.22.0
CATEGORIES= sysutils
MASTER_SITES= https://cfengine-package-repos.s3.amazonaws.com/tarballs/
MAINTAINER= cy@FreeBSD.org
COMMENT= cfengine sample policies for installations and upgrades
WWW= https://cfengine.com/
LICENSE= GPLv3
CPE_VENDOR= gnu
CPE_PRODUCT= cfengine
CONFLICTS= cfengine-masterfiles3[0-9] cfengine-masterfiles31[0-79]
.if !defined(MASTERDIR)
PKGNAMESUFFIX= 322
CONFLICTS+= cfengine-masterfiles-3.*
.endif
RUN_DEPENDS= cf-agent:sysutils/cfengine${PKGNAMESUFFIX}
FETCH_BEFORE_ARGS= -o ${DISTDIR}/${DISTFILES}
MAKE_JOBS_UNSAFE= yes
USES= cpe gmake python:build
HAS_CONFIGURE= yes
EXAMPLESDIR= ${PREFIX}/share/examples/cfengine-masterfiles
CONFIGURE_ARGS= --prefix=${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1686974687
SHA256 (cfengine-masterfiles-3.22.0.tar.gz) = 5eae6ba6881de1aef4f8115cd6b6ecb0c0809c7ea956b7097a99d62c014506ea
SIZE (cfengine-masterfiles-3.22.0.tar.gz) = 524555

View File

@ -0,0 +1,8 @@
CFEngine 3 is a popular open source configuration management system.
Its primary function is to provide automated configuration and
maintenance of large-scale computer systems.
The repository is intended to provide a stable base policy for
installations and upgrades, and is used by CFEngine 3.6 and newer.
The port installs the repository as examples which should be copied by
the user to the masterfiles directory (usually /var/cfengine/masterfiles).

View File

@ -0,0 +1,92 @@
%%EXAMPLESDIR%%/masterfiles/cfe_internal/CFE_cfengine.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/deprecated/cfengine_processes.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/host_info_report.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/limit_robot_agents.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/log_rotation.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/main.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/watchdog/templates/watchdog.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/watchdog/watchdog.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/CFE_hub_specific.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/CFE_knowledge.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/file_change.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/ha/ha.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/ha/ha_def.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/ha/ha_update.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/main.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/mission_portal.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/templates/httpd.conf.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/templates/runalerts.php.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/templates/runalerts.sh.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/recommendations.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/cfe_internal_dc_workflow.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/cfe_internal_update_from_repository.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/lib.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/systemd_units.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/update_bins.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/update_policy.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/update_processes.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_agent.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_execd.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_hub.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_monitord.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_runagent.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_serverd.cf
%%EXAMPLESDIR%%/masterfiles/controls/def.cf
%%EXAMPLESDIR%%/masterfiles/controls/def_inputs.cf
%%EXAMPLESDIR%%/masterfiles/controls/reports.cf
%%EXAMPLESDIR%%/masterfiles/controls/update_def.cf
%%EXAMPLESDIR%%/masterfiles/controls/update_def_inputs.cf
%%EXAMPLESDIR%%/masterfiles/inventory/aix.cf
%%EXAMPLESDIR%%/masterfiles/inventory/any.cf
%%EXAMPLESDIR%%/masterfiles/inventory/debian.cf
%%EXAMPLESDIR%%/masterfiles/inventory/freebsd.cf
%%EXAMPLESDIR%%/masterfiles/inventory/generic.cf
%%EXAMPLESDIR%%/masterfiles/inventory/linux.cf
%%EXAMPLESDIR%%/masterfiles/inventory/lsb.cf
%%EXAMPLESDIR%%/masterfiles/inventory/macos.cf
%%EXAMPLESDIR%%/masterfiles/inventory/os.cf
%%EXAMPLESDIR%%/masterfiles/inventory/redhat.cf
%%EXAMPLESDIR%%/masterfiles/inventory/suse.cf
%%EXAMPLESDIR%%/masterfiles/inventory/windows.cf
%%EXAMPLESDIR%%/masterfiles/lib/autorun.cf
%%EXAMPLESDIR%%/masterfiles/lib/bundles.cf
%%EXAMPLESDIR%%/masterfiles/lib/cfe_internal.cf
%%EXAMPLESDIR%%/masterfiles/lib/cfe_internal_hub.cf
%%EXAMPLESDIR%%/masterfiles/lib/cfengine_enterprise_hub_ha.cf
%%EXAMPLESDIR%%/masterfiles/lib/commands.cf
%%EXAMPLESDIR%%/masterfiles/lib/common.cf
%%EXAMPLESDIR%%/masterfiles/lib/databases.cf
%%EXAMPLESDIR%%/masterfiles/lib/edit_xml.cf
%%EXAMPLESDIR%%/masterfiles/lib/event.cf
%%EXAMPLESDIR%%/masterfiles/lib/examples.cf
%%EXAMPLESDIR%%/masterfiles/lib/feature.cf
%%EXAMPLESDIR%%/masterfiles/lib/files.cf
%%EXAMPLESDIR%%/masterfiles/lib/guest_environments.cf
%%EXAMPLESDIR%%/masterfiles/lib/monitor.cf
%%EXAMPLESDIR%%/masterfiles/lib/packages.cf
%%EXAMPLESDIR%%/masterfiles/lib/paths.cf
%%EXAMPLESDIR%%/masterfiles/lib/processes.cf
%%EXAMPLESDIR%%/masterfiles/lib/reports.cf
%%EXAMPLESDIR%%/masterfiles/lib/services.cf
%%EXAMPLESDIR%%/masterfiles/lib/stdlib.cf
%%EXAMPLESDIR%%/masterfiles/lib/storage.cf
%%EXAMPLESDIR%%/masterfiles/lib/testing.cf
%%EXAMPLESDIR%%/masterfiles/lib/users.cf
%%EXAMPLESDIR%%/masterfiles/lib/vcs.cf
%%EXAMPLESDIR%%/masterfiles/promises.cf
%%EXAMPLESDIR%%/masterfiles/services/autorun/hello.cf
%%EXAMPLESDIR%%/masterfiles/services/main.cf
%%EXAMPLESDIR%%/masterfiles/standalone_self_upgrade.cf
%%EXAMPLESDIR%%/masterfiles/templates/cf-apache.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-execd.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-hub.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-monitord.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-postgres.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-runalerts.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-serverd.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cfengine3.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cfengine_watchdog.mustache
%%EXAMPLESDIR%%/masterfiles/templates/host_info_report.mustache
%%EXAMPLESDIR%%/masterfiles/templates/json_multiline.mustache
%%EXAMPLESDIR%%/masterfiles/templates/json_serial.mustache
%%EXAMPLESDIR%%/masterfiles/update.cf

View File

@ -1,5 +1,5 @@
VERSIONS= 319 320 321
CFENGINE_VERSION?= 321
VERSIONS= 320 321 322
CFENGINE_VERSION?= 322
MASTERDIR= ${.CURDIR}/../cfengine${CFENGINE_VERSION}

View File

@ -0,0 +1,31 @@
PORTNAME= cfengine-masterfiles
DISTVERSION= 3.22.0
CATEGORIES= sysutils
MASTER_SITES= https://cfengine-package-repos.s3.amazonaws.com/tarballs/
MAINTAINER= cy@FreeBSD.org
COMMENT= cfengine sample policies for installations and upgrades
WWW= https://cfengine.com/
LICENSE= GPLv3
CPE_VENDOR= gnu
CPE_PRODUCT= cfengine
CONFLICTS= cfengine-masterfiles3[0-9] cfengine-masterfiles31[0-79]
.if !defined(MASTERDIR)
PKGNAMESUFFIX= 322
CONFLICTS+= cfengine-masterfiles-3.*
.endif
RUN_DEPENDS= cf-agent:sysutils/cfengine${PKGNAMESUFFIX}
FETCH_BEFORE_ARGS= -o ${DISTDIR}/${DISTFILES}
MAKE_JOBS_UNSAFE= yes
USES= cpe gmake python:build
HAS_CONFIGURE= yes
EXAMPLESDIR= ${PREFIX}/share/examples/cfengine-masterfiles
CONFIGURE_ARGS= --prefix=${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1686974465
SHA256 (cfengine-masterfiles-3.22.0.tar.gz) = 5eae6ba6881de1aef4f8115cd6b6ecb0c0809c7ea956b7097a99d62c014506ea
SIZE (cfengine-masterfiles-3.22.0.tar.gz) = 524555

View File

@ -0,0 +1,26 @@
#!/bin/sh
# PROVIDE: cf-execd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable cf-execd(8)
#
# cf_execd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable cf-execd.
# cf_execd_flags (str): Custom additional arguments to be passed
# to cf-execd (default empty).
#
. /etc/rc.subr
name="cf_execd"
rcvar=cf_execd_enable
command="%%PREFIX%%/bin/cf-execd"
load_rc_config $name
: ${cf_execd_enable="NO"}
run_rc_command "$1"

View File

@ -0,0 +1,26 @@
#!/bin/sh
# PROVIDE: cf-monitord
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable cf-monitord(8)
#
# cf_monitord_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable cf-monitord.
# cf_monitord_flags (str): Custom additional arguments to be passed
# to cf-monitord (default empty).
#
. /etc/rc.subr
name="cf_monitord"
rcvar=cf_monitord_enable
command="%%PREFIX%%/bin/cf-monitord"
load_rc_config $name
: ${cf_monitord_enable="NO"}
run_rc_command "$1"

View File

@ -0,0 +1,26 @@
#!/bin/sh
# PROVIDE: cf-serverd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable cf-serverd(8)
#
# cf_serverd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable cf-serverd.
# cf_serverd_flags (str): Custom additional arguments to be passed
# to cf-serverd (default empty).
#
. /etc/rc.subr
name="cf_serverd"
rcvar=cf_serverd_enable
command="%%PREFIX%%/bin/cf-serverd"
load_rc_config $name
: ${cf_serverd_enable="NO"}
run_rc_command "$1"

View File

@ -0,0 +1,8 @@
CFEngine 3 is a popular open source configuration management system.
Its primary function is to provide automated configuration and
maintenance of large-scale computer systems.
The repository is intended to provide a stable base policy for
installations and upgrades, and is used by CFEngine 3.6 and newer.
The port installs the repository as examples which should be copied by
the user to the masterfiles directory (usually /var/cfengine/masterfiles).

View File

@ -0,0 +1,92 @@
%%EXAMPLESDIR%%/masterfiles/cfe_internal/CFE_cfengine.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/deprecated/cfengine_processes.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/host_info_report.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/limit_robot_agents.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/log_rotation.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/main.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/watchdog/templates/watchdog.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/core/watchdog/watchdog.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/CFE_hub_specific.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/CFE_knowledge.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/file_change.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/ha/ha.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/ha/ha_def.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/ha/ha_update.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/main.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/mission_portal.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/templates/httpd.conf.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/templates/runalerts.php.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/enterprise/templates/runalerts.sh.mustache
%%EXAMPLESDIR%%/masterfiles/cfe_internal/recommendations.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/cfe_internal_dc_workflow.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/cfe_internal_update_from_repository.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/lib.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/systemd_units.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/update_bins.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/update_policy.cf
%%EXAMPLESDIR%%/masterfiles/cfe_internal/update/update_processes.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_agent.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_execd.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_hub.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_monitord.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_runagent.cf
%%EXAMPLESDIR%%/masterfiles/controls/cf_serverd.cf
%%EXAMPLESDIR%%/masterfiles/controls/def.cf
%%EXAMPLESDIR%%/masterfiles/controls/def_inputs.cf
%%EXAMPLESDIR%%/masterfiles/controls/reports.cf
%%EXAMPLESDIR%%/masterfiles/controls/update_def.cf
%%EXAMPLESDIR%%/masterfiles/controls/update_def_inputs.cf
%%EXAMPLESDIR%%/masterfiles/inventory/aix.cf
%%EXAMPLESDIR%%/masterfiles/inventory/any.cf
%%EXAMPLESDIR%%/masterfiles/inventory/debian.cf
%%EXAMPLESDIR%%/masterfiles/inventory/freebsd.cf
%%EXAMPLESDIR%%/masterfiles/inventory/generic.cf
%%EXAMPLESDIR%%/masterfiles/inventory/linux.cf
%%EXAMPLESDIR%%/masterfiles/inventory/lsb.cf
%%EXAMPLESDIR%%/masterfiles/inventory/macos.cf
%%EXAMPLESDIR%%/masterfiles/inventory/os.cf
%%EXAMPLESDIR%%/masterfiles/inventory/redhat.cf
%%EXAMPLESDIR%%/masterfiles/inventory/suse.cf
%%EXAMPLESDIR%%/masterfiles/inventory/windows.cf
%%EXAMPLESDIR%%/masterfiles/lib/autorun.cf
%%EXAMPLESDIR%%/masterfiles/lib/bundles.cf
%%EXAMPLESDIR%%/masterfiles/lib/cfe_internal.cf
%%EXAMPLESDIR%%/masterfiles/lib/cfe_internal_hub.cf
%%EXAMPLESDIR%%/masterfiles/lib/cfengine_enterprise_hub_ha.cf
%%EXAMPLESDIR%%/masterfiles/lib/commands.cf
%%EXAMPLESDIR%%/masterfiles/lib/common.cf
%%EXAMPLESDIR%%/masterfiles/lib/databases.cf
%%EXAMPLESDIR%%/masterfiles/lib/edit_xml.cf
%%EXAMPLESDIR%%/masterfiles/lib/event.cf
%%EXAMPLESDIR%%/masterfiles/lib/examples.cf
%%EXAMPLESDIR%%/masterfiles/lib/feature.cf
%%EXAMPLESDIR%%/masterfiles/lib/files.cf
%%EXAMPLESDIR%%/masterfiles/lib/guest_environments.cf
%%EXAMPLESDIR%%/masterfiles/lib/monitor.cf
%%EXAMPLESDIR%%/masterfiles/lib/packages.cf
%%EXAMPLESDIR%%/masterfiles/lib/paths.cf
%%EXAMPLESDIR%%/masterfiles/lib/processes.cf
%%EXAMPLESDIR%%/masterfiles/lib/reports.cf
%%EXAMPLESDIR%%/masterfiles/lib/services.cf
%%EXAMPLESDIR%%/masterfiles/lib/stdlib.cf
%%EXAMPLESDIR%%/masterfiles/lib/storage.cf
%%EXAMPLESDIR%%/masterfiles/lib/testing.cf
%%EXAMPLESDIR%%/masterfiles/lib/users.cf
%%EXAMPLESDIR%%/masterfiles/lib/vcs.cf
%%EXAMPLESDIR%%/masterfiles/promises.cf
%%EXAMPLESDIR%%/masterfiles/services/autorun/hello.cf
%%EXAMPLESDIR%%/masterfiles/services/main.cf
%%EXAMPLESDIR%%/masterfiles/standalone_self_upgrade.cf
%%EXAMPLESDIR%%/masterfiles/templates/cf-apache.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-execd.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-hub.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-monitord.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-postgres.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-runalerts.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cf-serverd.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cfengine3.service.mustache
%%EXAMPLESDIR%%/masterfiles/templates/cfengine_watchdog.mustache
%%EXAMPLESDIR%%/masterfiles/templates/host_info_report.mustache
%%EXAMPLESDIR%%/masterfiles/templates/json_multiline.mustache
%%EXAMPLESDIR%%/masterfiles/templates/json_serial.mustache
%%EXAMPLESDIR%%/masterfiles/update.cf