DESCR

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.

MESSAGE

===========================================================================
$NetBSD: MESSAGE,v 1.3 2005/05/03 15:51:51 wiz Exp $

To set up cfengine, install sysutils/cfengine2-doc and see:
${PREFIX}/share/doc/html/cfengine/cfengine-Tutorial.html

At a minimum, you will need:

1. /var/cfengine/inputs/update.conf

2. Manually add the "cfengine" service to /etc/services or
automate it in /var/cfengine/inputs/cfagent.conf:

editfiles:

{ /etc/services

Backup "false"
AppendIfNoSuchLine "cfengine 5308/tcp # CFengine"
}

3. Once you are happy using cfengine, you will want it to
run least once per hour. This is easily achieved by
adding the following line to the root crontab:
7,37 * * * * ${PREFIX}/sbin/cfexecd -F
===========================================================================

Makefile

# $NetBSD: Makefile,v 1.32 2010/05/11 14:50:27 pettai Exp $
#

DISTNAME= cfengine-2.2.10
CATEGORIES= sysutils net
MASTER_SITES= http://www.cfengine.org/tarballs/ \
http://ftp.osuosl.org/pub/cfengine/ \
ftp://sunsite.uio.no/pub/cfengine/
MAINTAINER= rhaen@NetBSD.org
HOMEPAGE= http://www.cfengine.org/
COMMENT= Automate configuration and administration of large systems
LICENSE= gnu-gpl-v2

PKG_DESTDIR_SUPPORT= user-destdir

BUILD_DEFS+= IPV6_READY

USE_TOOLS+= flex perl:run
USE_LIBTOOL= yes

GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}

PTHREAD_OPTS+= require
REPLACE_PERL= contrib/cfdoc

RCD_SCRIPTS= cfexecd cfservd cfenvd

INSTALLATION_DIRS= ${PKGMANDIR}/man8 ${VARBASE}/cfengine/inputs

post-install:
${INSTALL_MAN} ${WRKSRC}/doc/*.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8

.include "../../mk/pthread.buildlink3.mk"
.include "../../databases/db4/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.13 2009/06/14 18:16:02 joerg Exp $
lib/libcfengine.la
man/man8/cfagent.8
man/man8/cfengine.8
man/man8/cfenvd.8
man/man8/cfenvgraph.8
man/man8/cfetoolcheck.8
man/man8/cfetoolcreate.8
man/man8/cfetooldump.8
man/man8/cfetoolgraph.8
man/man8/cfetoolimport.8
man/man8/cfetoolinfo.8
man/man8/cfetoolupdate.8
man/man8/cfexecd.8
man/man8/cfkey.8
man/man8/cfrun.8
man/man8/cfservd.8
man/man8/cfshow.8
sbin/cfagent
sbin/cfdoc
sbin/cfenvd
sbin/cfenvgraph
sbin/cfetool
sbin/cfetoolgraph
sbin/cfexecd
sbin/cfkey
sbin/cfrun
sbin/cfservd
sbin/cfshow
share/cfengine/ChangeLog
share/cfengine/INSTALL
share/cfengine/NEWS
share/cfengine/README
share/cfengine/cfengine.el
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
share/examples/rc.d/cfenvd
share/examples/rc.d/cfexecd
share/examples/rc.d/cfservd

distinfo

$NetBSD: distinfo,v 1.13 2010/05/09 22:09:30 pettai Exp $

SHA1 (cfengine-2.2.10.tar.gz) = 032bec0bc59ffee7179422e96dfd902afbf94340
RMD160 (cfengine-2.2.10.tar.gz) = 67fd3dc80270dc000887e3dbf26f372338e2600f
Size (cfengine-2.2.10.tar.gz) = 2690333 bytes
SHA1 (patch-aa) = cdbebcf1a8d284bbaa9e8e0deb60112c5e33287c
SHA1 (patch-ab) = bd2946d1cd5b21e3cf664258360c38c9651542a9
SHA1 (patch-ac) = ca643a6dd76307053923c93b321533b684d22474