Updated to 3.4.4...

@sample files based on NetBSD port, mandatory is promises.cf,
failsafe.cf if promises.cf not found. promises.cf tries to
load other files... This is OK for local agent.

     1  @sample ${CFENGINE_BASE}/
     2  @sample ${CFENGINE_BASE}/masterfiles/
     3  @sample ${SYSCONFDIR}/cfengine/
     4  @sample ${SYSCONFDIR}/cfengine/cf-sketch-runfile.cf
     5  @sample ${SYSCONFDIR}/cfengine/controls/
     6  @sample ${SYSCONFDIR}/cfengine/controls/cf_agent.cf
     7  @sample ${SYSCONFDIR}/cfengine/controls/cf_execd.cf
     8  @sample ${SYSCONFDIR}/cfengine/controls/cf_monitord.cf
     9  @sample ${SYSCONFDIR}/cfengine/controls/cf_report.cf
    10  @sample ${SYSCONFDIR}/cfengine/controls/cf_runagent.cf
    11  @sample ${SYSCONFDIR}/cfengine/controls/cf_serverd.cf
    12  @sample ${SYSCONFDIR}/cfengine/def.cf
    13  @sample ${SYSCONFDIR}/cfengine/failsafe.cf
    14  @sample ${SYSCONFDIR}/cfengine/libraries/
    15  @sample ${SYSCONFDIR}/cfengine/libraries/cfengine_stdlib.cf
    16  @sample ${SYSCONFDIR}/cfengine/promises.cf
    17  @sample ${SYSCONFDIR}/cfengine/services/
    18  @sample ${SYSCONFDIR}/cfengine/services/init_msg.cf
    19  @sample ${SYSCONFDIR}/cfengine/update.cf

symlinks based on NetBSD port (we are not building it statically
anyway...).

# find /var/cfengine/ -type l -ls
   257    0 lrwxr-xr-x    1 root     wheel          15 Mar 20 02:17 
/var/cfengine/bin -> /usr/local/sbin
   258    0 lrwxr-xr-x    1 root     wheel          13 Mar 20 02:17 
/var/cfengine/inputs -> /etc/cfengine

removing some crap like (Free|Net)BSD ports...

post-extract:
        perl -i -pe \
                's|^sbin_PROGRAMS.*rpmvercmp||;' \
                ${WRKDIST}/ext/Makefile.in

I have no idea why these warning appear:

$ head -n3 pkg/PLIST
@comment $OpenBSD$
@extraunexec rm -rf ${SYSCONFDIR}/cfengine
@extraunexec rm -rf ${CFENGINE_BASE}

# pkg_delete -c cfengine                                                        
                                                                                
      
cfengine-3.4.4: ok
Read shared items: ok
--- -cfengine-3.4.4 -------------------
File /etc/cfengine/cf-sketch-runfile.cf does not exist
File /etc/cfengine/controls/cf_agent.cf does not exist
File /etc/cfengine/controls/cf_execd.cf does not exist
File /etc/cfengine/controls/cf_monitord.cf does not exist
File /etc/cfengine/controls/cf_report.cf does not exist
File /etc/cfengine/controls/cf_runagent.cf does not exist
File /etc/cfengine/controls/cf_serverd.cf does not exist
File /etc/cfengine/def.cf does not exist
File /etc/cfengine/libraries/cfengine_stdlib.cf does not exist
File /etc/cfengine/promises.cf does not exist
File /etc/cfengine/services/init_msg.cf does not exist
File /etc/cfengine/update.cf does not exist
File /etc/cfengine/failsafe.cf does not exist
Error deleting directory /var/cfengine/masterfiles: No such file or directory
Error deleting directory /var/cfengine: No such file or directory
Error deleting directory /etc/cfengine/services: No such file or directory
Error deleting directory /etc/cfengine/libraries: No such file or directory
Error deleting directory /etc/cfengine/controls: No such file or directory
Error deleting directory /etc/cfengine: No such file or directory

And this is normal?

# /etc/rc.d/cfengine -d start
doing rc_read_runfile
usage: /etc/rc.d/cf_execd [-df] {start|check|reload|restart|stop}
doing rc_read_runfile
usage: /etc/rc.d/cf_serverd [-df] {start|check|reload|restart|stop}
doing rc_read_runfile
usage: /etc/rc.d/cf_monitord [-df] {start|check|reload|restart|stop}

TODO:
- logging to /var/log/cfengine, we can check Debian patch
- reame about bootstrapping from policy server
- mode for 'masterfiles'?

jirib

Attachment: cfengine-3.4.4.tgz
Description: application/tar-gz

Reply via email to