summaryrefslogtreecommitdiff
path: root/sysutils/cfengine3
diff options
context:
space:
mode:
authorpettai <pettai@pkgsrc.org>2010-11-05 13:57:21 +0000
committerpettai <pettai@pkgsrc.org>2010-11-05 13:57:21 +0000
commit89b36559257350c2f93cf21e60e8b6986729ffb2 (patch)
tree31ef1403be49405b84ea7c44dbb7d86801cdb467 /sysutils/cfengine3
parenta8d86bc558adaf8ba1dc1362f172c631d2f70384 (diff)
downloadpkgsrc-89b36559257350c2f93cf21e60e8b6986729ffb2.tar.gz
Cfengine, or the "configuration engine" is a very high level language
for building expert systems which administrate and configure large computer networks. Cfengine uses the idea of classes and a primitive form of intelligence to define and automate the configuration of large systems in the most economical way possible. Cfengine is designed to be a part of computer immune system. Cfengine 3 is operationally backwards compatible with Cfengine 2, but the language is not. Cfengine 3 is not a drop-in replacement for Cfengine 2.
Diffstat (limited to 'sysutils/cfengine3')
-rw-r--r--sysutils/cfengine3/DESCR9
-rw-r--r--sysutils/cfengine3/INSTALL9
-rw-r--r--sysutils/cfengine3/MESSAGE9
-rw-r--r--sysutils/cfengine3/Makefile46
-rw-r--r--sysutils/cfengine3/PLIST228
-rw-r--r--sysutils/cfengine3/distinfo5
-rw-r--r--sysutils/cfengine3/files/cfagent.sh15
-rw-r--r--sysutils/cfengine3/files/cfserverd.sh15
8 files changed, 336 insertions, 0 deletions
diff --git a/sysutils/cfengine3/DESCR b/sysutils/cfengine3/DESCR
new file mode 100644
index 00000000000..12a53367681
--- /dev/null
+++ b/sysutils/cfengine3/DESCR
@@ -0,0 +1,9 @@
+Cfengine, or the "configuration engine" is a very high level language
+for building expert systems which administrate and configure large
+computer networks. Cfengine uses the idea of classes and a primitive
+form of intelligence to define and automate the configuration of
+large systems in the most economical way possible. Cfengine is
+designed to be a part of computer immune system.
+
+Cfengine 3 is operationally backwards compatible with Cfengine 2, but the
+language is not. Cfengine 3 is not a drop-in replacement for Cfengine 2.
diff --git a/sysutils/cfengine3/INSTALL b/sysutils/cfengine3/INSTALL
new file mode 100644
index 00000000000..5bff872626c
--- /dev/null
+++ b/sysutils/cfengine3/INSTALL
@@ -0,0 +1,9 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
+
+case ${STAGE} in
+POST-INSTALL)
+ #${MKDIR} -p @VARBASE@/cfengine
+ ${LN} -sf @PKG_SYSCONFDIR@/cfengine @VARBASE@/cfengine/inputs
+ ${LN} -sf @PREFIX@/sbin @VARBASE@/cfengine/bin
+ @PREFIX@/sbin/cf-key
+esac
diff --git a/sysutils/cfengine3/MESSAGE b/sysutils/cfengine3/MESSAGE
new file mode 100644
index 00000000000..e3f62045dc7
--- /dev/null
+++ b/sysutils/cfengine3/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
+
+IMPORTANT NOTE:
+
+Cfengine 3 is operationally backwards compatible with Cfengine 2, but the
+language is not. Cfengine 3 is not a drop-in replacement for Cfengine 2.
+
+===========================================================================
diff --git a/sysutils/cfengine3/Makefile b/sysutils/cfengine3/Makefile
new file mode 100644
index 00000000000..454d446c6bc
--- /dev/null
+++ b/sysutils/cfengine3/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
+#
+
+DISTNAME= cfengine-3.0.5p1
+CATEGORIES= sysutils
+MASTER_SITES= http://www.cfengine.org/tarballs/
+
+MAINTAINER= pettai@NetBSD.org
+HOMEPAGE= http://www.cfengine.org/
+COMMENT= Tool for automating system administration
+LICENSE= gnu-gpl-v3
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= flex yacc gmake
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4:Q}
+CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl:Q}
+CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre:Q}
+
+BUILD_DEFS+= ${VARBASE}
+BUILDLINK_TRANSFORM+=l:db:db4
+
+EGDIR= ${PREFIX}/share/examples/cfengine
+SYSCONFDIR= ${PKG_SYSCONFDIR}/cfengine
+
+CONF_FILES+= ${EGDIR}/inputs/failsafe.cf ${SYSCONFDIR}/failsafe.cf
+CONF_FILES+= ${EGDIR}/inputs/library.cf ${SYSCONFDIR}/library.cf
+CONF_FILES+= ${EGDIR}/inputs/promises.cf ${SYSCONFDIR}/promises.cf
+CONF_FILES+= ${EGDIR}/inputs/site.cf ${SYSCONFDIR}/site.cf
+CONF_FILES+= ${EGDIR}/inputs/update.cf ${SYSCONFDIR}/update.cf
+
+RCD_SCRIPTS= cfserverd cfagent
+
+INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${SYSCONFDIR:Q} inputsdir=${EGDIR:Q}/inputs
+
+MAKE_DIRS= ${VARBASE}/cfengine
+INSTALLATION_DIRS= ${EGDIR}/inputs ${SYSCONFDIR}
+
+.include "../../databases/db4/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/cfengine3/PLIST b/sysutils/cfengine3/PLIST
new file mode 100644
index 00000000000..473bc579dec
--- /dev/null
+++ b/sysutils/cfengine3/PLIST
@@ -0,0 +1,228 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
+lib/libpromises.la
+man/man8/cf-agent.8
+man/man8/cf-execd.8
+man/man8/cf-key.8
+man/man8/cf-know.8
+man/man8/cf-monitord.8
+man/man8/cf-promises.8
+man/man8/cf-report.8
+man/man8/cf-runagent.8
+man/man8/cf-serverd.8
+sbin/cf-agent
+sbin/cf-execd
+sbin/cf-key
+sbin/cf-know
+sbin/cf-monitord
+sbin/cf-promises
+sbin/cf-report
+sbin/cf-runagent
+sbin/cf-serverd
+share/doc/cfengine/ChangeLog
+share/doc/cfengine/INSTALL
+share/doc/cfengine/NEWS
+share/doc/cfengine/README
+share/doc/cfengine/cfengine_stdlib.cf
+share/doc/cfengine/promise_knowledge.cf
+share/doc/cfengine/unit_accessed_before.cf
+share/doc/cfengine/unit_accumulated_time.cf
+share/doc/cfengine/unit_acl.cf
+share/doc/cfengine/unit_acl_generic.cf
+share/doc/cfengine/unit_acl_secret.cf
+share/doc/cfengine/unit_activedirectory_listusers.cf
+share/doc/cfengine/unit_activedirectory_showuser.cf
+share/doc/cfengine/unit_ago.cf
+share/doc/cfengine/unit_arrays.cf
+share/doc/cfengine/unit_backreferences_files.cf
+share/doc/cfengine/unit_badpromise.cf
+share/doc/cfengine/unit_badtype.cf
+share/doc/cfengine/unit_bsdflags.cf
+share/doc/cfengine/unit_cf2_integration.cf
+share/doc/cfengine/unit_change_detect.cf
+share/doc/cfengine/unit_changedbefore.cf
+share/doc/cfengine/unit_chdir.cf
+share/doc/cfengine/unit_classes_global.cf
+share/doc/cfengine/unit_classmatch.cf
+share/doc/cfengine/unit_classvar_convergence.cf
+share/doc/cfengine/unit_compare.cf
+share/doc/cfengine/unit_control_expand.cf
+share/doc/cfengine/unit_controlclasses.cf
+share/doc/cfengine/unit_copy.cf
+share/doc/cfengine/unit_copy_classes.cf
+share/doc/cfengine/unit_copy_edit.cf
+share/doc/cfengine/unit_copylinks.cf
+share/doc/cfengine/unit_countclassesmatching.cf
+share/doc/cfengine/unit_countlinesmatching.cf
+share/doc/cfengine/unit_create_filedir.cf
+share/doc/cfengine/unit_createdb.cf
+share/doc/cfengine/unit_customize_by_named_list.cf
+share/doc/cfengine/unit_definitions.cf
+share/doc/cfengine/unit_deletelines.cf
+share/doc/cfengine/unit_disable_and_rotate_files.cf
+share/doc/cfengine/unit_diskfree.cf
+share/doc/cfengine/unit_dollar.cf
+share/doc/cfengine/unit_edit_column_files.cf
+share/doc/cfengine/unit_edit_comment_lines.cf
+share/doc/cfengine/unit_edit_deletenotmatch.cf
+share/doc/cfengine/unit_edit_insert_fuzzylines.cf
+share/doc/cfengine/unit_edit_insert_lines.cf
+share/doc/cfengine/unit_edit_insert_lines_silly.cf
+share/doc/cfengine/unit_edit_passwd_file.cf
+share/doc/cfengine/unit_edit_replace_string.cf
+share/doc/cfengine/unit_edit_sectioned_file.cf
+share/doc/cfengine/unit_edit_setvar.cf
+share/doc/cfengine/unit_edit_triggerclass.cf
+share/doc/cfengine/unit_env.cf
+share/doc/cfengine/unit_environment.cf
+share/doc/cfengine/unit_environment_simple.cf
+share/doc/cfengine/unit_epimenides.cf
+share/doc/cfengine/unit_escape.cf
+share/doc/cfengine/unit_exec_args.cf
+share/doc/cfengine/unit_exec_in_sequence.cf
+share/doc/cfengine/unit_execd.cf
+share/doc/cfengine/unit_execresult.cf
+share/doc/cfengine/unit_expand.cf
+share/doc/cfengine/unit_failsafe.cf
+share/doc/cfengine/unit_file_change_detection.cf
+share/doc/cfengine/unit_file_owner_list_template.cf
+share/doc/cfengine/unit_fileexists.cf
+share/doc/cfengine/unit_filenames.cf
+share/doc/cfengine/unit_fileperms.cf
+share/doc/cfengine/unit_filesexist.cf
+share/doc/cfengine/unit_filesexist2.cf
+share/doc/cfengine/unit_fix_names.cf
+share/doc/cfengine/unit_getenv.cf
+share/doc/cfengine/unit_getfields.cf
+share/doc/cfengine/unit_getgid.cf
+share/doc/cfengine/unit_getindices.cf
+share/doc/cfengine/unit_getindixes.cf
+share/doc/cfengine/unit_getregistry.cf
+share/doc/cfengine/unit_getuid.cf
+share/doc/cfengine/unit_global_list_expansion.cf
+share/doc/cfengine/unit_global_list_expansion_2.cf
+share/doc/cfengine/unit_grep.cf
+share/doc/cfengine/unit_groupexists.cf
+share/doc/cfengine/unit_hash.cf
+share/doc/cfengine/unit_hashcomment.cf
+share/doc/cfengine/unit_hashmatch.cf
+share/doc/cfengine/unit_hashuncomment.cf
+share/doc/cfengine/unit_helloworld.cf
+share/doc/cfengine/unit_hostrange.cf
+share/doc/cfengine/unit_hostsseen.cf
+share/doc/cfengine/unit_id.cf
+share/doc/cfengine/unit_insert_users.cf
+share/doc/cfengine/unit_intarray.cf
+share/doc/cfengine/unit_iprange.cf
+share/doc/cfengine/unit_irange.cf
+share/doc/cfengine/unit_isdir.cf
+share/doc/cfengine/unit_islink.cf
+share/doc/cfengine/unit_isnewerthan.cf
+share/doc/cfengine/unit_isplain.cf
+share/doc/cfengine/unit_isvariable.cf
+share/doc/cfengine/unit_iteration.cf
+share/doc/cfengine/unit_join.cf
+share/doc/cfengine/unit_knowledge_driver.cf
+share/doc/cfengine/unit_knowledge_txt.cf
+share/doc/cfengine/unit_lastnode.cf
+share/doc/cfengine/unit_ldap.cf
+share/doc/cfengine/unit_linking.cf
+share/doc/cfengine/unit_literal_server.cf
+share/doc/cfengine/unit_locate_files_and_compress.cf
+share/doc/cfengine/unit_log_private.cf
+share/doc/cfengine/unit_loops.cf
+share/doc/cfengine/unit_measure_log.cf
+share/doc/cfengine/unit_measurements.cf
+share/doc/cfengine/unit_menu.cf
+share/doc/cfengine/unit_method.cf
+share/doc/cfengine/unit_method_validate.cf
+share/doc/cfengine/unit_module_exec.cf
+share/doc/cfengine/unit_module_exec_2.cf
+share/doc/cfengine/unit_monitord.cf
+share/doc/cfengine/unit_mount_fs.cf
+share/doc/cfengine/unit_multipassvars.cf
+share/doc/cfengine/unit_neighbourhood_watch.cf
+share/doc/cfengine/unit_null_config.cf
+share/doc/cfengine/unit_occurrences.cf
+share/doc/cfengine/unit_ordering.cf
+share/doc/cfengine/unit_package_apt.cf
+share/doc/cfengine/unit_package_freebsd.cf
+share/doc/cfengine/unit_package_hash.cf
+share/doc/cfengine/unit_package_msi_file.cf
+share/doc/cfengine/unit_package_msi_version.cf
+share/doc/cfengine/unit_package_rpm.cf
+share/doc/cfengine/unit_package_solaris.cf
+share/doc/cfengine/unit_package_yum.cf
+share/doc/cfengine/unit_package_zypper.cf
+share/doc/cfengine/unit_parallel_exec.cf
+share/doc/cfengine/unit_pathtype.cf
+share/doc/cfengine/unit_pattern_and_edit.cf
+share/doc/cfengine/unit_peers.cf
+share/doc/cfengine/unit_postfix.cf
+share/doc/cfengine/unit_process_kill.cf
+share/doc/cfengine/unit_process_matching.cf
+share/doc/cfengine/unit_process_matching2.cf
+share/doc/cfengine/unit_process_matching3.cf
+share/doc/cfengine/unit_process_signalling.cf
+share/doc/cfengine/unit_promises.cf
+share/doc/cfengine/unit_readlist.cf
+share/doc/cfengine/unit_readtcp.cf
+share/doc/cfengine/unit_reg_multiline.cf
+share/doc/cfengine/unit_regarray.cf
+share/doc/cfengine/unit_regex_win.cf
+share/doc/cfengine/unit_regextract.cf
+share/doc/cfengine/unit_registry.cf
+share/doc/cfengine/unit_registry_cache.cf
+share/doc/cfengine/unit_regline.cf
+share/doc/cfengine/unit_reglist.cf
+share/doc/cfengine/unit_remoteclasses.cf
+share/doc/cfengine/unit_remove_deadlinks.cf
+share/doc/cfengine/unit_rename.cf
+share/doc/cfengine/unit_report_custom.cf
+share/doc/cfengine/unit_report_diffs.cf
+share/doc/cfengine/unit_report_state.cf
+share/doc/cfengine/unit_reporting.cf
+share/doc/cfengine/unit_reporttofile.cf
+share/doc/cfengine/unit_resolveconf.cf
+share/doc/cfengine/unit_returnszero.cf
+share/doc/cfengine/unit_root_passwd.cf
+share/doc/cfengine/unit_select_mode.cf
+share/doc/cfengine/unit_select_region.cf
+share/doc/cfengine/unit_select_size.cf
+share/doc/cfengine/unit_selectservers.cf
+share/doc/cfengine/unit_server_copy_localhost.cf
+share/doc/cfengine/unit_server_copy_purge.cf
+share/doc/cfengine/unit_server_copy_remote.cf
+share/doc/cfengine/unit_server_flatcopy_localhost.cf
+share/doc/cfengine/unit_service_disable.cf
+share/doc/cfengine/unit_service_start.cf
+share/doc/cfengine/unit_setuidlog.cf
+share/doc/cfengine/unit_setvar.cf
+share/doc/cfengine/unit_splitstring.cf
+share/doc/cfengine/unit_sql.cf
+share/doc/cfengine/unit_storage.cf
+share/doc/cfengine/unit_strcmp.cf
+share/doc/cfengine/unit_stringarray.cf
+share/doc/cfengine/unit_switchcase.cf
+share/doc/cfengine/unit_syslog.cf
+share/doc/cfengine/unit_syslog2.cf
+share/doc/cfengine/unit_template.cf
+share/doc/cfengine/unit_tidy_all_files.cf
+share/doc/cfengine/unit_translatepath.cf
+share/doc/cfengine/unit_update.cf
+share/doc/cfengine/unit_user_edit.cf
+share/doc/cfengine/unit_user_edit_method.cf
+share/doc/cfengine/unit_userexists.cf
+share/doc/cfengine/unit_varclass.cf
+share/doc/cfengine/unit_varnet.cf
+share/doc/cfengine/unit_vars.cf
+share/doc/cfengine/unit_warnifline.cf
+share/doc/cfengine/unit_webserver.cf
+share/doc/cfengine/unit_zenoss.cf
+share/examples/cfengine/inputs/failsafe.cf
+share/examples/cfengine/inputs/library.cf
+share/examples/cfengine/inputs/promises.cf
+share/examples/cfengine/inputs/site.cf
+share/examples/cfengine/inputs/update.cf
+share/examples/rc.d/cfagent
+share/examples/rc.d/cfserverd
+@pkgdir etc/cfengine
diff --git a/sysutils/cfengine3/distinfo b/sysutils/cfengine3/distinfo
new file mode 100644
index 00000000000..9582cdd1b04
--- /dev/null
+++ b/sysutils/cfengine3/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
+
+SHA1 (cfengine-3.0.5p1.tar.gz) = bc7cc5fbc6c9a973f2f74c45e6835934230b6d63
+RMD160 (cfengine-3.0.5p1.tar.gz) = 909ee306cdbd0e674fbdb54ddcbca66b0cc5213b
+Size (cfengine-3.0.5p1.tar.gz) = 1517992 bytes
diff --git a/sysutils/cfengine3/files/cfagent.sh b/sysutils/cfengine3/files/cfagent.sh
new file mode 100644
index 00000000000..ae3f4389335
--- /dev/null
+++ b/sysutils/cfengine3/files/cfagent.sh
@@ -0,0 +1,15 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: cfagent.sh,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
+
+# PROVIDE: cfagent
+
+. /etc/rc.subr
+
+name="cfagent"
+rcvar=$name
+command="@PREFIX@/sbin/cf-agent"
+required_files="/var/cfengine/inputs/promises.cf"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/sysutils/cfengine3/files/cfserverd.sh b/sysutils/cfengine3/files/cfserverd.sh
new file mode 100644
index 00000000000..5528954cdf3
--- /dev/null
+++ b/sysutils/cfengine3/files/cfserverd.sh
@@ -0,0 +1,15 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: cfserverd.sh,v 1.1.1.1 2010/11/05 13:57:21 pettai Exp $
+
+# PROVIDE: cfserverd
+
+. /etc/rc.subr
+
+name="cfserverd"
+rcvar=$name
+command="@PREFIX@/sbin/cf-serverd"
+required_files="/var/cfengine/inputs/site.cf"
+
+load_rc_config $name
+run_rc_command "$1"