On Fri 2012.04.27 at 21:45 +0200, Martijn Rijkeboer wrote: > Hi, > > The following patch, based on Okan's work, updates cfengine to > 3.3.0. Tested on amd64.
thanks for the non-stop testing! ...and slightly more updated patch. There are some more things that can happen to this port, namely staticlly linking, but I've found the configure script unhappy; instead of messing around with that now, I'd like to move forward and put this in, then work on the above, plus possibly subpackaging it (though I'm leaning towards not anymore) and maybe doing a split install. Previous MAINTAINER has been OK with moving forward for quite some time now :) Feedback, comments, OKs? Cheers, Okan Index: Makefile =================================================================== RCS file: /home/open/anoncvs/cvs/ports/sysutils/cfengine/Makefile,v retrieving revision 1.38 diff -u -p -r1.38 Makefile --- Makefile 16 Sep 2011 11:41:39 -0000 1.38 +++ Makefile 30 Apr 2012 19:55:15 -0000 @@ -1,29 +1,40 @@ # $OpenBSD: Makefile,v 1.38 2011/09/16 11:41:39 espie Exp $ -COMMENT= GNU system administration tool for networks +COMMENT = GNU system administration tool for networks -DISTNAME= cfengine-2.2.10 -REVISION= 2 -CATEGORIES= sysutils +DISTNAME = cfengine-3.3.0 +CATEGORIES = sysutils -HOMEPAGE= http://www.cfengine.org/ +HOMEPAGE = http://www.cfengine.com/ +MASTER_SITES = ${HOMEPAGE}source-code/download?file=${DISTFILES}&dummy=/ -MAINTAINER= William Yodlowsky <b...@openbsd.rutgers.edu> +MAINTAINER = Okan Demirmen <o...@openbsd.org> + +# GPLv3 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB = c crypto m pcre pthread qdbm + +CONFIGURE_STYLE = gnu +USE_GMAKE = Yes + +LIB_DEPENDS = databases/qdbm \ + devel/pcre + +CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_ARGS += --with-openssl=/usr \ + --with-pcre \ + --with-qdbm \ + --without-mysql \ + --without-postgresql \ + --disable-shared \ + --enable-static \ + --enable-fhs -# GPLv2+ -PERMIT_PACKAGE_CDROM= Yes -PERMIT_PACKAGE_FTP= Yes -PERMIT_DISTFILES_CDROM= Yes -PERMIT_DISTFILES_FTP= Yes - -WANTLIB= c crypto m pthread lib/db4/db>=4 - -MASTER_SITES= ${HOMEPAGE}/tarballs/ - -CONFIGURE_STYLE= gnu -CONFIGURE_ARGS+= --with-docs -USE_GROFF = Yes - -LIB_DEPENDS= databases/db/v4 +NO_REGRESS = Yes .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /home/open/anoncvs/cvs/ports/sysutils/cfengine/distinfo,v retrieving revision 1.12 diff -u -p -r1.12 distinfo --- distinfo 1 Sep 2009 14:25:15 -0000 1.12 +++ distinfo 24 Apr 2012 18:25:08 -0000 @@ -1,5 +1,5 @@ -MD5 (cfengine-2.2.10.tar.gz) = O5D/i/LslBzTPPtl9QEvFg== -RMD160 (cfengine-2.2.10.tar.gz) = Z/09yAJw3AAIh+Pb8m83IzjiYA8= -SHA1 (cfengine-2.2.10.tar.gz) = AyvsC8Wf/ucXlCLpbf2QKvv5Q0A= -SHA256 (cfengine-2.2.10.tar.gz) = 80aXzFLhNCxexLRaSt+fv/36BaaL3HxTOC9y0D4QZ4M= -SIZE (cfengine-2.2.10.tar.gz) = 2690333 +MD5 (cfengine-3.3.0.tar.gz) = 1AQm/MRH5vFYGmq9YRbqIA== +RMD160 (cfengine-3.3.0.tar.gz) = HNSGvK83OhAnC4g0bz+PXTlOG7U= +SHA1 (cfengine-3.3.0.tar.gz) = FawAmsrr+PtALCPzYyRwVVvEjss= +SHA256 (cfengine-3.3.0.tar.gz) = FwplzONbmzM1lFQ7mzSA5dnBnCjidUMeblijvpNywKc= +SIZE (cfengine-3.3.0.tar.gz) = 1236769 Index: patches/patch-configure =================================================================== RCS file: /home/open/anoncvs/cvs/ports/sysutils/cfengine/patches/patch-configure,v retrieving revision 1.7 diff -u -p -r1.7 patch-configure --- patches/patch-configure 1 Sep 2009 14:25:15 -0000 1.7 +++ patches/patch-configure 30 Apr 2012 20:01:15 -0000 @@ -1,12 +1,23 @@ -$OpenBSD: patch-configure,v 1.7 2009/09/01 14:25:15 okan Exp $ ---- configure.orig Sat Apr 11 15:59:34 2009 -+++ configure Thu May 28 17:33:23 2009 -@@ -23738,7 +23738,7 @@ $as_echo_n "checking Checking for GCC Specific compile - if test x"$GCC" = "xyes"; then +$OpenBSD$ +--- configure.orig Tue Apr 10 02:20:47 2012 ++++ configure Mon Apr 30 14:01:08 2012 +@@ -13629,7 +13629,7 @@ fi + if test x"$enable_fhs" = xyes; then : -- GCC_CFLAG="-g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized" -+ GCC_CFLAG="" - { $as_echo "$as_me:$LINENO: result: yes" >&5 - $as_echo "yes" >&6; } +- projlibdir='${libexecdir}/cfengine' ++ projlibdir='${exec_prefix}/lib/cfengine' + projdatadir='${exec_prefix}/share/cfengine' + projdocdir='${exec_prefix}/share/doc/cfengine' + +@@ -15485,7 +15485,9 @@ _ACEOF + + fi + +-ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h> ++ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " ++#include <sys/types.h> ++#include <sys/socket.h> + " + if test "x$ac_cv_type_socklen_t" = xyes; then : Index: patches/patch-doc_Makefile_in =================================================================== RCS file: patches/patch-doc_Makefile_in diff -N patches/patch-doc_Makefile_in --- patches/patch-doc_Makefile_in 1 Sep 2009 14:25:15 -0000 1.5 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,30 +0,0 @@ -$OpenBSD: patch-doc_Makefile_in,v 1.5 2009/09/01 14:25:15 okan Exp $ ---- doc/Makefile.in.orig Sat Apr 11 15:59:32 2009 -+++ doc/Makefile.in Thu May 28 17:32:35 2009 -@@ -69,7 +69,7 @@ NROFF = nroff - MANS = $(man_MANS) - docDATA_INSTALL = $(INSTALL_DATA) - htmlDATA_INSTALL = $(INSTALL_DATA) --DATA = $(doc_DATA) $(html_DATA) -+DATA = - DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - ACLOCAL = @ACLOCAL@ - AMTAR = @AMTAR@ -@@ -697,7 +697,7 @@ info: info-am - - info-am: $(INFO_DEPS) - --install-data-am: install-docDATA install-htmlDATA install-info-am \ -+install-data-am: install-info-am \ - install-man - - install-dvi: install-dvi-am -@@ -818,7 +818,7 @@ uninstall-man: uninstall-man8 - - .PHONY: all all-am check check-am clean clean-generic clean-libtool \ - dist-info distclean distclean-generic distclean-libtool \ -- distdir dvi dvi-am html html-am info info-am install \ -+ distdir dvi dvi-am info info-am install \ - install-am install-data install-data-am install-docDATA \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-htmlDATA install-info \ Index: patches/patch-inputs_Makefile_in =================================================================== RCS file: patches/patch-inputs_Makefile_in diff -N patches/patch-inputs_Makefile_in --- patches/patch-inputs_Makefile_in 25 Apr 2009 22:07:37 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-inputs_Makefile_in,v 1.2 2009/04/25 22:07:37 okan Exp $ ---- inputs/Makefile.in.orig Wed Jun 11 12:39:21 2008 -+++ inputs/Makefile.in Thu Jul 3 13:02:36 2008 -@@ -15,7 +15,7 @@ - @SET_MAKE@ - - VPATH = @srcdir@ --pkgdatadir = $(datadir)/@PACKAGE@ -+pkgdatadir = $(datadir)/examples/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd Index: patches/patch-pub_getopt_c =================================================================== RCS file: /home/open/anoncvs/cvs/ports/sysutils/cfengine/patches/patch-pub_getopt_c,v retrieving revision 1.1 diff -u -p -r1.1 patch-pub_getopt_c --- patches/patch-pub_getopt_c 17 Jun 2004 11:21:42 -0000 1.1 +++ patches/patch-pub_getopt_c 24 Apr 2012 18:25:08 -0000 @@ -1,11 +1,12 @@ $OpenBSD: patch-pub_getopt_c,v 1.1 2004/06/17 11:21:42 sturm Exp $ ---- pub/getopt.c.orig 2004-06-12 23:37:42.000000000 -0400 -+++ pub/getopt.c 2004-06-12 23:38:17.000000000 -0400 -@@ -60,6 +60,10 @@ Cambridge, MA 02139, USA. */ - #include <stdlib.h> - #endif /* GNU C library. */ +--- pub/getopt.c.orig Tue Apr 10 04:20:40 2012 ++++ pub/getopt.c Fri Apr 13 17:58:20 2012 +@@ -62,6 +62,11 @@ Cambridge, MA 02139, USA. */ + + char *getenv(const char *name); +#ifdef __OpenBSD__ ++#include <string.h> +#include <unistd.h> +#endif + Index: patches/patch-src_cf3lex_c =================================================================== RCS file: patches/patch-src_cf3lex_c diff -N patches/patch-src_cf3lex_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_cf3lex_c 24 Apr 2012 18:25:08 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- src/cf3lex.c.orig Tue Apr 10 04:21:00 2012 ++++ src/cf3lex.c Fri Apr 13 17:58:20 2012 +@@ -1594,7 +1594,7 @@ static void yy_load_buffer_state (void) + } + + #ifndef __cplusplus +-extern int isatty (int ); ++#include <unistd.h> + #endif /* __cplusplus */ + + /* Initializes or reinitializes a buffer. Index: patches/patch-src_cflex_c =================================================================== RCS file: patches/patch-src_cflex_c diff -N patches/patch-src_cflex_c --- patches/patch-src_cflex_c 1 Sep 2009 14:25:15 -0000 1.5 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-src_cflex_c,v 1.5 2009/09/01 14:25:15 okan Exp $ ---- src/cflex.c.orig Sat Apr 11 16:00:11 2009 -+++ src/cflex.c Thu May 28 17:32:35 2009 -@@ -4890,7 +4890,7 @@ static void yy_load_buffer_state (void) - } - - #ifndef __cplusplus --extern int isatty (int ); -+#include <unistd.h> - #endif /* __cplusplus */ - - /* Initializes or reinitializes a buffer. Index: patches/patch-src_crypto_c =================================================================== RCS file: patches/patch-src_crypto_c diff -N patches/patch-src_crypto_c --- patches/patch-src_crypto_c 12 Oct 2007 20:12:19 -0000 1.4 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-src_crypto_c,v 1.4 2007/10/12 20:12:19 sturm Exp $ ---- src/crypto.c.orig Mon Jul 10 13:53:47 2006 -+++ src/crypto.c Sun Sep 2 15:44:05 2007 -@@ -294,7 +294,7 @@ snprintf(buffer,CF_BUFSIZE,"%d%d%25s",(int)CFSTARTTIME - - EVP_DigestUpdate(&context,buffer,CF_BUFSIZE); - --snprintf(pscomm,CF_BUFSIZE,"%s %s",VPSCOMM[VSYSTEMHARDCLASS],VPSOPTS[VSYSTEMHARDCLASS]); -+snprintf(pscomm,CF_MAXLINKSIZE,"%s %s",VPSCOMM[VSYSTEMHARDCLASS],VPSOPTS[VSYSTEMHARDCLASS]); - - if ((pp = cfpopen(pscomm,"r")) == NULL) - { Index: patches/patch-src_do_c =================================================================== RCS file: patches/patch-src_do_c diff -N patches/patch-src_do_c --- patches/patch-src_do_c 1 Sep 2009 14:25:15 -0000 1.9 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-src_do_c,v 1.9 2009/09/01 14:25:15 okan Exp $ ---- src/do.c.orig Sun Mar 8 12:27:56 2009 -+++ src/do.c Thu May 28 17:32:35 2009 -@@ -3401,7 +3401,7 @@ if (MatchStringInFstab(mountpt)) - CfLog(cfinform,"---------------------------------------------------",""); - - /* delete current fstab entry and unmount if necessary */ -- snprintf(mountspec,CF_BUFSIZE,".+:%s",mountpt); -+ snprintf(mountspec,MAXPATHLEN,".+:%s",mountpt); - mntentry = LocateItemContainingRegExp(VMOUNTED,mountspec); - if (mntentry) - { -@@ -3410,7 +3410,7 @@ if (MatchStringInFstab(mountpt)) - strcat(mountspec,mountpt); - } - else /* mountpt isn't mounted, so Unmount can use dummy host name */ -- snprintf(mountspec,CF_BUFSIZE,"host:%s",mountpt); -+ snprintf(mountspec,MAXPATHLEN,"host:%s",mountpt); - - /* delete current fstab entry and unmount if necessary (don't rmdir) */ - cleaner.name = mountspec; Index: patches/patch-src_instrument_c =================================================================== RCS file: patches/patch-src_instrument_c diff -N patches/patch-src_instrument_c --- patches/patch-src_instrument_c 1 Sep 2009 14:25:15 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-src_instrument_c,v 1.3 2009/09/01 14:25:15 okan Exp $ ---- src/instrument.c.orig Fri Feb 27 15:18:32 2009 -+++ src/instrument.c Thu May 28 17:32:35 2009 -@@ -542,7 +542,7 @@ while (dbcp->c_get(dbcp, &key, &value, DB_NEXT) == 0) - - tthen = (time_t)then; - -- snprintf(datebuf,CF_BUFSIZE-1,"%s",ctime(&tthen)); -+ snprintf(datebuf,CF_MAXVARSIZE-1,"%s",ctime(&tthen)); - datebuf[strlen(datebuf)-9] = '\0'; /* Chop off second and year */ - - snprintf(addr,15,"%s",hostname+1); Index: patches/patch-src_storage_tools_c =================================================================== RCS file: patches/patch-src_storage_tools_c diff -N patches/patch-src_storage_tools_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_storage_tools_c 30 Apr 2012 20:05:29 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- src/storage_tools.c.orig Mon Apr 30 14:04:19 2012 ++++ src/storage_tools.c Mon Apr 30 14:05:19 2012 +@@ -84,7 +84,7 @@ static off_t Unix_GetDiskUsage(char *file, enum cfsize + CfOut(cf_error, "getmnt", "Couldn't get filesystem info for %s\n", file); + return CF_INFINITY; + } +-# elif defined SOLARIS || defined OSF || defined UNIXWARE || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) ++# elif defined SOLARIS || defined OSF || defined UNIXWARE || defined OPENBSD || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) + if (statvfs(file, &buf) != 0) + { + CfOut(cf_error, "statvfs", "Couldn't get filesystem info for %s\n", file); Index: pkg/DESCR =================================================================== RCS file: /home/open/anoncvs/cvs/ports/sysutils/cfengine/pkg/DESCR,v retrieving revision 1.5 diff -u -p -r1.5 DESCR --- pkg/DESCR 21 Jul 2005 15:16:47 -0000 1.5 +++ pkg/DESCR 24 Apr 2012 18:25:08 -0000 @@ -1,6 +1,5 @@ -Cfengine, or the configuration engine, is an autonomous agent and a -middle to high level policy language for building expert systems which -administrate and configure large computer networks. Cfengine 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. +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: /home/open/anoncvs/cvs/ports/sysutils/cfengine/pkg/PLIST,v retrieving revision 1.12 diff -u -p -r1.12 PLIST --- pkg/PLIST 1 Sep 2009 14:25:15 -0000 1.12 +++ pkg/PLIST 30 Apr 2012 20:02:31 -0000 @@ -1,59 +1,276 @@ @comment $OpenBSD: PLIST,v 1.12 2009/09/01 14:25:15 okan Exp $ -@info info/cfengine-Reference.info -@info info/cfengine-Tutorial.info -lib/libcfengine.a -lib/libcfengine.la -@man man/man8/cfagent.8 -@man man/man8/cfengine.8 -@man man/man8/cfenvd.8 -@man man/man8/cfenvgraph.8 -@man man/man8/cfetoolcheck.8 -@man man/man8/cfetoolcreate.8 -@man man/man8/cfetooldump.8 -@man man/man8/cfetoolgraph.8 -@man man/man8/cfetoolimport.8 -@man man/man8/cfetoolinfo.8 -@man man/man8/cfetoolupdate.8 -@man man/man8/cfexecd.8 -@man man/man8/cfkey.8 -@man man/man8/cfrun.8 -@man man/man8/cfservd.8 -@man man/man8/cfshow.8 -@bin sbin/cfagent -sbin/cfdoc -@bin sbin/cfenvd -@bin sbin/cfenvgraph -@bin sbin/cfetool -@bin sbin/cfetoolgraph -@bin sbin/cfexecd -@bin sbin/cfkey -@bin sbin/cfrun -@bin sbin/cfservd -@bin sbin/cfshow +lib/cfengine/ +lib/cfengine/libpromises.a +lib/cfengine/libpromises.la +@man man/man8/cf-agent.8 +@man man/man8/cf-execd.8 +@man man/man8/cf-key.8 +@man man/man8/cf-know.8 +@man man/man8/cf-monitord.8 +@man man/man8/cf-promises.8 +@man man/man8/cf-report.8 +@man man/man8/cf-runagent.8 +@man man/man8/cf-serverd.8 +@bin sbin/cf-agent +@bin sbin/cf-execd +@bin sbin/cf-key +@bin sbin/cf-know +@bin sbin/cf-monitord +@bin sbin/cf-promises +@bin sbin/cf-report +@bin sbin/cf-runagent +@bin sbin/cf-serverd share/cfengine/ -share/cfengine/ChangeLog -share/cfengine/INSTALL -share/cfengine/NEWS -share/cfengine/README -share/cfengine/cfengine.el -share/examples/cfengine/ -share/examples/cfengine/cf.chflags.example -share/examples/cfengine/cf.freebsd.example -share/examples/cfengine/cf.ftp.example -share/examples/cfengine/cf.groups.example -share/examples/cfengine/cf.linux.example -share/examples/cfengine/cf.main.example -share/examples/cfengine/cf.motd.example -share/examples/cfengine/cf.preconf.example -share/examples/cfengine/cf.services.example -share/examples/cfengine/cf.site.example -share/examples/cfengine/cf.solaris.example -share/examples/cfengine/cf.sun4.example -share/examples/cfengine/cf.users.example -share/examples/cfengine/cfagent.conf-advanced.example -share/examples/cfengine/cfagent.conf.example -share/examples/cfengine/cfrc.example -share/examples/cfengine/cfrun.hosts.example -share/examples/cfengine/cfservd.conf.example -share/examples/cfengine/update.conf.example -@extraunexec rm -fr /var/cfengine +share/cfengine/CoreBase/ +share/cfengine/CoreBase/cfengine_stdlib.cf +share/cfengine/CoreBase/failsafe.cf +share/cfengine/CoreBase/promises.cf +share/doc/cfengine/ +share/doc/cfengine/ChangeLog +share/doc/cfengine/README +share/doc/cfengine/example_config/ +share/doc/cfengine/example_config/cfengine_stdlib.cf +share/doc/cfengine/example_config/failsafe.cf +share/doc/cfengine/example_config/promises.cf +share/doc/cfengine/example_config/site.cf +share/doc/cfengine/example_config/update.cf +share/doc/cfengine/examples/ +share/doc/cfengine/examples/active_directory.cf +share/doc/cfengine/examples/app_baseline.cf +share/doc/cfengine/examples/guest_environment_kvm.cf +share/doc/cfengine/examples/hostswithclass.cf +share/doc/cfengine/examples/promise_knowledge.cf +share/doc/cfengine/examples/unit_abort.cf +share/doc/cfengine/examples/unit_accessed_before.cf +share/doc/cfengine/examples/unit_accumulated_time.cf +share/doc/cfengine/examples/unit_acl.cf +share/doc/cfengine/examples/unit_acl_generic.cf +share/doc/cfengine/examples/unit_acl_ntfs.cf +share/doc/cfengine/examples/unit_acl_secret.cf +share/doc/cfengine/examples/unit_activedirectory_listusers.cf +share/doc/cfengine/examples/unit_activedirectory_showuser.cf +share/doc/cfengine/examples/unit_ago.cf +share/doc/cfengine/examples/unit_arrays.cf +share/doc/cfengine/examples/unit_backreferences_files.cf +share/doc/cfengine/examples/unit_badpromise.cf +share/doc/cfengine/examples/unit_badtype.cf +share/doc/cfengine/examples/unit_bsdflags.cf +share/doc/cfengine/examples/unit_cf2_integration.cf +share/doc/cfengine/examples/unit_change_detect.cf +share/doc/cfengine/examples/unit_changedbefore.cf +share/doc/cfengine/examples/unit_chdir.cf +share/doc/cfengine/examples/unit_classes_global.cf +share/doc/cfengine/examples/unit_classmatch.cf +share/doc/cfengine/examples/unit_classvar_convergence.cf +share/doc/cfengine/examples/unit_commands.cf +share/doc/cfengine/examples/unit_compare.cf +share/doc/cfengine/examples/unit_control_expand.cf +share/doc/cfengine/examples/unit_controlclasses.cf +share/doc/cfengine/examples/unit_copy.cf +share/doc/cfengine/examples/unit_copy_classes.cf +share/doc/cfengine/examples/unit_copy_copbl.cf +share/doc/cfengine/examples/unit_copy_edit.cf +share/doc/cfengine/examples/unit_copydir_copbl.cf +share/doc/cfengine/examples/unit_copylinks.cf +share/doc/cfengine/examples/unit_countclassesmatching.cf +share/doc/cfengine/examples/unit_countlinesmatching.cf +share/doc/cfengine/examples/unit_create_filedir.cf +share/doc/cfengine/examples/unit_createdb.cf +share/doc/cfengine/examples/unit_customize_by_named_list.cf +share/doc/cfengine/examples/unit_definitions.cf +share/doc/cfengine/examples/unit_deletelines.cf +share/doc/cfengine/examples/unit_disable.cf +share/doc/cfengine/examples/unit_disable_and_rotate_files.cf +share/doc/cfengine/examples/unit_diskfree.cf +share/doc/cfengine/examples/unit_dollar.cf +share/doc/cfengine/examples/unit_edit_column_files.cf +share/doc/cfengine/examples/unit_edit_comment_lines.cf +share/doc/cfengine/examples/unit_edit_deletenotmatch.cf +share/doc/cfengine/examples/unit_edit_insert_fuzzylines.cf +share/doc/cfengine/examples/unit_edit_insert_lines.cf +share/doc/cfengine/examples/unit_edit_insert_lines_silly.cf +share/doc/cfengine/examples/unit_edit_passwd_file.cf +share/doc/cfengine/examples/unit_edit_passwd_file_basic.cf +share/doc/cfengine/examples/unit_edit_replace_string.cf +share/doc/cfengine/examples/unit_edit_sectioned_file.cf +share/doc/cfengine/examples/unit_edit_setvar.cf +share/doc/cfengine/examples/unit_edit_triggerclass.cf +share/doc/cfengine/examples/unit_env.cf +share/doc/cfengine/examples/unit_epimenides.cf +share/doc/cfengine/examples/unit_escape.cf +share/doc/cfengine/examples/unit_exec_args.cf +share/doc/cfengine/examples/unit_exec_in_sequence.cf +share/doc/cfengine/examples/unit_execd.cf +share/doc/cfengine/examples/unit_execresult.cf +share/doc/cfengine/examples/unit_expand.cf +share/doc/cfengine/examples/unit_failedcommand.cf +share/doc/cfengine/examples/unit_failsafe.cf +share/doc/cfengine/examples/unit_file_change_detection.cf +share/doc/cfengine/examples/unit_file_owner_list_template.cf +share/doc/cfengine/examples/unit_fileexists.cf +share/doc/cfengine/examples/unit_filenames.cf +share/doc/cfengine/examples/unit_fileperms.cf +share/doc/cfengine/examples/unit_filesexist.cf +share/doc/cfengine/examples/unit_filesexist2.cf +share/doc/cfengine/examples/unit_filesize.cf +share/doc/cfengine/examples/unit_fix_names.cf +share/doc/cfengine/examples/unit_getenv.cf +share/doc/cfengine/examples/unit_getfields.cf +share/doc/cfengine/examples/unit_getgid.cf +share/doc/cfengine/examples/unit_getindices.cf +share/doc/cfengine/examples/unit_getindices_and_values.cf +share/doc/cfengine/examples/unit_getmacaddress.cf +share/doc/cfengine/examples/unit_getregistry.cf +share/doc/cfengine/examples/unit_getuid.cf +share/doc/cfengine/examples/unit_getusers.cf +share/doc/cfengine/examples/unit_global_list_expansion.cf +share/doc/cfengine/examples/unit_global_list_expansion_2.cf +share/doc/cfengine/examples/unit_grep.cf +share/doc/cfengine/examples/unit_groupexists.cf +share/doc/cfengine/examples/unit_hash.cf +share/doc/cfengine/examples/unit_hashcomment.cf +share/doc/cfengine/examples/unit_hashmatch.cf +share/doc/cfengine/examples/unit_hashuncomment.cf +share/doc/cfengine/examples/unit_helloworld.cf +share/doc/cfengine/examples/unit_host2ip.cf +share/doc/cfengine/examples/unit_hostrange.cf +share/doc/cfengine/examples/unit_hostsseen.cf +share/doc/cfengine/examples/unit_hub.cf +share/doc/cfengine/examples/unit_id.cf +share/doc/cfengine/examples/unit_insert_users.cf +share/doc/cfengine/examples/unit_intarray.cf +share/doc/cfengine/examples/unit_inventory_cpu.cf +share/doc/cfengine/examples/unit_iprange.cf +share/doc/cfengine/examples/unit_irange.cf +share/doc/cfengine/examples/unit_isdir.cf +share/doc/cfengine/examples/unit_islink.cf +share/doc/cfengine/examples/unit_isnewerthan.cf +share/doc/cfengine/examples/unit_isplain.cf +share/doc/cfengine/examples/unit_isvariable.cf +share/doc/cfengine/examples/unit_iteration.cf +share/doc/cfengine/examples/unit_join.cf +share/doc/cfengine/examples/unit_knowledge_driver.cf +share/doc/cfengine/examples/unit_knowledge_txt.cf +share/doc/cfengine/examples/unit_lastnode.cf +share/doc/cfengine/examples/unit_ldap.cf +share/doc/cfengine/examples/unit_linking.cf +share/doc/cfengine/examples/unit_literal_server.cf +share/doc/cfengine/examples/unit_locate_files_and_compress.cf +share/doc/cfengine/examples/unit_log_private.cf +share/doc/cfengine/examples/unit_loops.cf +share/doc/cfengine/examples/unit_lsdir.cf +share/doc/cfengine/examples/unit_maplist.cf +share/doc/cfengine/examples/unit_measure_log.cf +share/doc/cfengine/examples/unit_measurements.cf +share/doc/cfengine/examples/unit_menu.cf +share/doc/cfengine/examples/unit_method.cf +share/doc/cfengine/examples/unit_method_polymorph.cf +share/doc/cfengine/examples/unit_method_validate.cf +share/doc/cfengine/examples/unit_method_var.cf +share/doc/cfengine/examples/unit_method_var2.cf +share/doc/cfengine/examples/unit_module_exec.cf +share/doc/cfengine/examples/unit_module_exec_2.cf +share/doc/cfengine/examples/unit_monitord.cf +share/doc/cfengine/examples/unit_mount_fs.cf +share/doc/cfengine/examples/unit_multipassvars.cf +share/doc/cfengine/examples/unit_neighbourhood_watch.cf +share/doc/cfengine/examples/unit_null_config.cf +share/doc/cfengine/examples/unit_occurrences.cf +share/doc/cfengine/examples/unit_orchestration_hostlist.cf +share/doc/cfengine/examples/unit_ordering.cf +share/doc/cfengine/examples/unit_package_apt.cf +share/doc/cfengine/examples/unit_package_freebsd.cf +share/doc/cfengine/examples/unit_package_latest.cf +share/doc/cfengine/examples/unit_package_msi_file.cf +share/doc/cfengine/examples/unit_package_msi_version.cf +share/doc/cfengine/examples/unit_package_rpm.cf +share/doc/cfengine/examples/unit_package_solaris.cf +share/doc/cfengine/examples/unit_package_yum.cf +share/doc/cfengine/examples/unit_package_zypper.cf +share/doc/cfengine/examples/unit_parallel_exec.cf +share/doc/cfengine/examples/unit_parsestringarray.cf +share/doc/cfengine/examples/unit_pathtype.cf +share/doc/cfengine/examples/unit_pattern_and_edit.cf +share/doc/cfengine/examples/unit_peers.cf +share/doc/cfengine/examples/unit_postfix.cf +share/doc/cfengine/examples/unit_process_kill.cf +share/doc/cfengine/examples/unit_process_matching.cf +share/doc/cfengine/examples/unit_process_matching2.cf +share/doc/cfengine/examples/unit_process_matching3.cf +share/doc/cfengine/examples/unit_process_restart.cf +share/doc/cfengine/examples/unit_process_restart_basic.cf +share/doc/cfengine/examples/unit_process_signalling.cf +share/doc/cfengine/examples/unit_product.cf +share/doc/cfengine/examples/unit_promises.cf +share/doc/cfengine/examples/unit_readlist.cf +share/doc/cfengine/examples/unit_readtcp.cf +share/doc/cfengine/examples/unit_reg_multiline.cf +share/doc/cfengine/examples/unit_regarray.cf +share/doc/cfengine/examples/unit_regex_win.cf +share/doc/cfengine/examples/unit_regextract.cf +share/doc/cfengine/examples/unit_registry.cf +share/doc/cfengine/examples/unit_registry_cache.cf +share/doc/cfengine/examples/unit_regline.cf +share/doc/cfengine/examples/unit_reglist.cf +share/doc/cfengine/examples/unit_remoteclasses.cf +share/doc/cfengine/examples/unit_remove_deadlinks.cf +share/doc/cfengine/examples/unit_rename.cf +share/doc/cfengine/examples/unit_repairedcommand.cf +share/doc/cfengine/examples/unit_report_custom.cf +share/doc/cfengine/examples/unit_report_diffs.cf +share/doc/cfengine/examples/unit_report_state.cf +share/doc/cfengine/examples/unit_reporting.cf +share/doc/cfengine/examples/unit_reporttofile.cf +share/doc/cfengine/examples/unit_resolveconf.cf +share/doc/cfengine/examples/unit_returnszero.cf +share/doc/cfengine/examples/unit_root_passwd.cf +share/doc/cfengine/examples/unit_select_class.cf +share/doc/cfengine/examples/unit_select_mode.cf +share/doc/cfengine/examples/unit_select_region.cf +share/doc/cfengine/examples/unit_select_size.cf +share/doc/cfengine/examples/unit_selectservers.cf +share/doc/cfengine/examples/unit_server_copy_localhost.cf +share/doc/cfengine/examples/unit_server_copy_purge.cf +share/doc/cfengine/examples/unit_server_copy_remote.cf +share/doc/cfengine/examples/unit_server_flatcopy_localhost.cf +share/doc/cfengine/examples/unit_service_disable.cf +share/doc/cfengine/examples/unit_service_start.cf +share/doc/cfengine/examples/unit_services_concept.cf +share/doc/cfengine/examples/unit_services_win.cf +share/doc/cfengine/examples/unit_setuidlog.cf +share/doc/cfengine/examples/unit_setvar.cf +share/doc/cfengine/examples/unit_software_dist.cf +share/doc/cfengine/examples/unit_software_update_version_yum.cf +share/doc/cfengine/examples/unit_splitstring.cf +share/doc/cfengine/examples/unit_sql.cf +share/doc/cfengine/examples/unit_storage.cf +share/doc/cfengine/examples/unit_strcmp.cf +share/doc/cfengine/examples/unit_stringarray.cf +share/doc/cfengine/examples/unit_switchcase.cf +share/doc/cfengine/examples/unit_syslog.cf +share/doc/cfengine/examples/unit_syslog2.cf +share/doc/cfengine/examples/unit_template.cf +share/doc/cfengine/examples/unit_template2.cf +share/doc/cfengine/examples/unit_test_environment.cf +share/doc/cfengine/examples/unit_tidy_all_files.cf +share/doc/cfengine/examples/unit_translatepath.cf +share/doc/cfengine/examples/unit_update.cf +share/doc/cfengine/examples/unit_user_edit.cf +share/doc/cfengine/examples/unit_user_edit_method.cf +share/doc/cfengine/examples/unit_userexists.cf +share/doc/cfengine/examples/unit_varclass.cf +share/doc/cfengine/examples/unit_varexpansion.cf +share/doc/cfengine/examples/unit_varnet.cf +share/doc/cfengine/examples/unit_vars.cf +share/doc/cfengine/examples/unit_warnifline.cf +share/doc/cfengine/examples/unit_webserver.cf +share/doc/cfengine/examples/unit_zenoss.cf +share/doc/cfengine/examples/win_dns_client.cf +share/doc/cfengine/examples/win_emergency.cf +share/doc/cfengine/examples/win_registry.cf +share/doc/cfengine/examples/win_schedule.cf +share/doc/pkg-readmes/${FULLPKGNAME} +@rcscript ${RCDIR}/cf_execd +@rcscript ${RCDIR}/cf_monitord +@rcscript ${RCDIR}/cf_serverd +@rcscript ${RCDIR}/cfengine Index: pkg/README =================================================================== RCS file: pkg/README diff -N pkg/README --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/README 24 Apr 2012 18:25:08 -0000 @@ -0,0 +1,8 @@ +$OpenBSD$ + ++----------------------------------------------------------------------- +| Running ${FULLPKGNAME} on OpenBSD ++----------------------------------------------------------------------- + +Consider bumping the openfiles-cur to at least 256 in login.conf(5) for +the daemon class. Index: pkg/cf_execd.rc =================================================================== RCS file: pkg/cf_execd.rc diff -N pkg/cf_execd.rc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/cf_execd.rc 24 Apr 2012 18:25:08 -0000 @@ -0,0 +1,11 @@ +#!/bin/sh +# +# $OpenBSD$ + +daemon="${TRUEPREFIX}/sbin/cf-execd" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_cmd $1 Index: pkg/cf_monitord.rc =================================================================== RCS file: pkg/cf_monitord.rc diff -N pkg/cf_monitord.rc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/cf_monitord.rc 24 Apr 2012 18:25:08 -0000 @@ -0,0 +1,11 @@ +#!/bin/sh +# +# $OpenBSD$ + +daemon="${TRUEPREFIX}/sbin/cf-monitord" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_cmd $1 Index: pkg/cf_serverd.rc =================================================================== RCS file: pkg/cf_serverd.rc diff -N pkg/cf_serverd.rc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/cf_serverd.rc 24 Apr 2012 18:25:08 -0000 @@ -0,0 +1,11 @@ +#!/bin/sh +# +# $OpenBSD$ + +daemon="${TRUEPREFIX}/sbin/cf-serverd" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_cmd $1 Index: pkg/cfengine.rc =================================================================== RCS file: pkg/cfengine.rc diff -N pkg/cfengine.rc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/cfengine.rc 24 Apr 2012 18:25:08 -0000 @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $OpenBSD$ + +# "meta" script running the following rc.d(8) scripts with the given argument +_pkg_scripts="cf_serverd cf_monitord cf_execd" + +set -A _s -- ${_pkg_scripts} + +if [ "$1" = stop ]; then + i=$(echo ${_pkg_scripts} | wc -w) + while [ $i -ne 0 ]; do + i=$((i-1)) + /etc/rc.d/${_s[$i]} $1 + done +else + for i in ${_pkg_scripts}; do /etc/rc.d/$i $1; done +fi