diff options
author | seb <seb@pkgsrc.org> | 2002-12-22 13:04:38 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2002-12-22 13:04:38 +0000 |
commit | 3b91c7b547bd7b7980046cd0eae7e2066598635d (patch) | |
tree | 7ae7426b6cb4e614d4a1182fef6eabbbadd7119c | |
parent | 09cd588a0ceb9d3c52a5348538676d1c6aa0d388 (diff) | |
download | pkgsrc-3b91c7b547bd7b7980046cd0eae7e2066598635d.tar.gz |
Initial import of Cfengine version 2 into the NetBSD Packages Collection.
Provided in PR pkg/19456 by Michael Santos <mike at ethmoid dot org>, slighty
edited by me.
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
-rw-r--r-- | sysutils/cfengine2/DESCR | 6 | ||||
-rw-r--r-- | sysutils/cfengine2/Makefile | 22 | ||||
-rw-r--r-- | sysutils/cfengine2/Makefile.common | 12 | ||||
-rw-r--r-- | sysutils/cfengine2/PLIST | 31 | ||||
-rw-r--r-- | sysutils/cfengine2/distinfo | 12 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-aa | 9 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-ab | 11 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-ad | 35 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-ae | 20 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-af | 13 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-ag | 11 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-ah | 26 | ||||
-rw-r--r-- | sysutils/cfengine2/patches/patch-ai | 26 |
13 files changed, 234 insertions, 0 deletions
diff --git a/sysutils/cfengine2/DESCR b/sysutils/cfengine2/DESCR new file mode 100644 index 00000000000..81eca51babf --- /dev/null +++ b/sysutils/cfengine2/DESCR @@ -0,0 +1,6 @@ +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 diff --git a/sysutils/cfengine2/Makefile b/sysutils/cfengine2/Makefile new file mode 100644 index 00000000000..f418423d5a7 --- /dev/null +++ b/sysutils/cfengine2/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ +# + +.include "../../sysutils/cfengine2/Makefile.common" + +COMMENT= Automate configuration and administration of large systems + +USE_BUILDLINK2= YES +GNU_CONFIGURE= YES +PTHREAD_OPTS+= require + +CONFIGURE_ARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4} + +pre-configure: + ${MV} -f ${WRKSRC}/contrib/vicf.in ${WRKSRC}/contrib/vicf.in.orig + ${SED} -e "s|@ECHO@|${ECHO}|" \ + ${WRKSRC}/contrib/vicf.in.orig > ${WRKSRC}/contrib/vicf.in + +.include "../../mk/pthread.buildlink2.mk" +.include "../../databases/db4/buildlink2.mk" +.include "../../security/openssl/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/cfengine2/Makefile.common b/sysutils/cfengine2/Makefile.common new file mode 100644 index 00000000000..e254bee7f36 --- /dev/null +++ b/sysutils/cfengine2/Makefile.common @@ -0,0 +1,12 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ +# + +CFENGINE_VERSION= 2.0.4 +DISTNAME= cfengine-${CFENGINE_VERSION} +CATEGORIES= sysutils net +MASTER_SITES= ftp://ftp.iu.hio.no/pub/cfengine/ \ + http://sunsite.utk.edu/ftp/pub/cfengine/cfengine-ftp/ \ + ftp://ftp.cfengine.webmotion.net/pub/cfengine/ + +MAINTAINER= mike@ethmoid.org +HOMEPAGE= http://www.cfengine.org/ diff --git a/sysutils/cfengine2/PLIST b/sysutils/cfengine2/PLIST new file mode 100644 index 00000000000..6c940d281bf --- /dev/null +++ b/sysutils/cfengine2/PLIST @@ -0,0 +1,31 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ +sbin/cfagent +sbin/cfdoc +sbin/cfenvd +sbin/cfenvgraph +sbin/cfexecd +sbin/cfkey +sbin/cfrun +sbin/cfservd +sbin/vicf +share/cfengine/cf.chflags.example +share/cfengine/cf.freebsd.example +share/cfengine/cf.ftp.example +share/cfengine/cf.groups.example +share/cfengine/cf.linux.example +share/cfengine/cf.main.example +share/cfengine/cf.motd.example +share/cfengine/cf.preconf.example +share/cfengine/cf.services.example +share/cfengine/cf.site.example +share/cfengine/cf.solaris.example +share/cfengine/cf.sun4.example +share/cfengine/cf.users.example +share/cfengine/cfagent.conf-advanced.example +share/cfengine/cfagent.conf.example +share/cfengine/cfengine.el +share/cfengine/cfrc.example +share/cfengine/cfrun.hosts.example +share/cfengine/cfservd.conf.example +share/cfengine/update.conf.example +@dirrm share/cfengine diff --git a/sysutils/cfengine2/distinfo b/sysutils/cfengine2/distinfo new file mode 100644 index 00000000000..bed96377ed1 --- /dev/null +++ b/sysutils/cfengine2/distinfo @@ -0,0 +1,12 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +SHA1 (cfengine-2.0.4.tar.gz) = d5f0e6bbbee559b30e57184555c022dd26dbfa8c +Size (cfengine-2.0.4.tar.gz) = 1149946 bytes +SHA1 (patch-aa) = 93a957af8d124d5b6e584c1c3d3cdda73190d58c +SHA1 (patch-ab) = 23366845e2548ba119764d5f4927ec53c9b15046 +SHA1 (patch-ad) = d4861f1dd7547050edd216493d5640fd276a07ee +SHA1 (patch-ae) = 99496b14f80c8605886cd78a520af4d1c6cc0475 +SHA1 (patch-af) = 4b6f720fcfb45bdbcc3dc7271cd08ce06d12f3f0 +SHA1 (patch-ag) = f64e2d1f9f3a5c0e0dc37a40c56f0188382e02ed +SHA1 (patch-ah) = b0290d9edc57f0df953fd74e9741d69f52502c0e +SHA1 (patch-ai) = 659b3031613f6d882853372d0c9dc5f36e6773ba diff --git a/sysutils/cfengine2/patches/patch-aa b/sysutils/cfengine2/patches/patch-aa new file mode 100644 index 00000000000..b628e0e1f76 --- /dev/null +++ b/sysutils/cfengine2/patches/patch-aa @@ -0,0 +1,9 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- Makefile.am.orig Wed Dec 18 08:39:09 2002 ++++ Makefile.am Wed Dec 18 08:39:16 2002 +@@ -1,3 +1,3 @@ +-SUBDIRS = pub src contrib inputs doc ++SUBDIRS = pub src contrib inputs + + EXTRA_DIST = acconfig.h DOCUMENTATION doc/cfengine.8 COPYING ChangeLog INSTALL NEWS README diff --git a/sysutils/cfengine2/patches/patch-ab b/sysutils/cfengine2/patches/patch-ab new file mode 100644 index 00000000000..29b8f48e502 --- /dev/null +++ b/sysutils/cfengine2/patches/patch-ab @@ -0,0 +1,11 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- Makefile.in.orig Wed Dec 18 08:39:40 2002 ++++ Makefile.in Wed Dec 18 08:40:02 2002 +@@ -94,5 +94,5 @@ + am__quote = @am__quote@ + install_sh = @install_sh@ +-SUBDIRS = pub src contrib inputs doc ++SUBDIRS = pub src contrib inputs + + EXTRA_DIST = acconfig.h DOCUMENTATION doc/cfengine.8 COPYING ChangeLog INSTALL NEWS README diff --git a/sysutils/cfengine2/patches/patch-ad b/sysutils/cfengine2/patches/patch-ad new file mode 100644 index 00000000000..26b3f2e62fa --- /dev/null +++ b/sysutils/cfengine2/patches/patch-ad @@ -0,0 +1,35 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- contrib/vicf.in.orig Thu May 4 19:42:31 2000 ++++ contrib/vicf.in Wed Dec 18 09:09:35 2002 +@@ -4,4 +4,5 @@ + exec_prefix=@exec_prefix@ + sbindir=@sbindir@ ++ECHO=@ECHO@ + EDITOR="${EDITOR-vi}" + CFINPUTS="${CFINPUTS-"@pkgdata@"} +@@ -21,5 +22,5 @@ + echo "Only these files are eligible for editing:" + \ls $CFINPUTS +- /usr/ucb/echo -n "Create new file? (Y/n) " ++ ${ECHO} -n "Create new file? (Y/n) " + read answer + if [ "$answer" = "n" ] +@@ -33,8 +34,8 @@ + then + i=30 +- /usr/ucb/echo -n "File ${file} is busy -- waiting up to $i seconds..." ++ ${ECHO} -n "File ${file} is busy -- waiting up to $i seconds..." + while [ -f ${CFINPUTS}/.${file}.lock ] + do +- /usr/ucb/echo -n . ++ ${ECHO} -n . + i=`expr $i - 1` + if [ $i = 0 ] +@@ -63,5 +64,5 @@ + echo PARSE ERROR IN NEW INPUT-FILE: + cat /tmp/cfparse.$$ +- /usr/ucb/echo -n "Re-edit file? (Y/n) " ++ ${ECHO} -n "Re-edit file? (Y/n) " + read answer + if [ "$answer" = "n" ] diff --git a/sysutils/cfengine2/patches/patch-ae b/sysutils/cfengine2/patches/patch-ae new file mode 100644 index 00000000000..1879a33d6c3 --- /dev/null +++ b/sysutils/cfengine2/patches/patch-ae @@ -0,0 +1,20 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- src/image.c.orig Thu Feb 15 07:23:22 2001 ++++ src/image.c +@@ -206,9 +206,12 @@ + DeleteItemList(namecache); + } + +-DeleteCompressedArray(ip->inode_cache); +- +-ip->inode_cache = NULL; ++ /* Only flush when exiting initial call to RecursiveImage() */ ++if (strcmp(from,ip->path) == 0) ++ { ++ DeleteCompressedArray(ip->inode_cache); ++ ip->inode_cache = NULL; ++ } + + cfclosedir(dirh); + } diff --git a/sysutils/cfengine2/patches/patch-af b/sysutils/cfengine2/patches/patch-af new file mode 100644 index 00000000000..113a1eef61d --- /dev/null +++ b/sysutils/cfengine2/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- configure.orig Tue Dec 17 14:08:36 2002 ++++ configure Tue Dec 17 15:30:26 2002 +@@ -3488,6 +3488,6 @@ + done + fi +- if test "x$BERKELEY_DB_DIR" = "xyes" ; then +- for d in /opt /usr/local /usr; do ++ if test "x$BERKELEY_DB_DIR" != "x" ; then ++ for d in $BERKELEY_DB_DIR /opt /usr/local /usr; do + for v in db4 db3 db; do + if test -f "$d/include/$v/db.h" ; then diff --git a/sysutils/cfengine2/patches/patch-ag b/sysutils/cfengine2/patches/patch-ag new file mode 100644 index 00000000000..d329b296ba6 --- /dev/null +++ b/sysutils/cfengine2/patches/patch-ag @@ -0,0 +1,11 @@ +$NetBSD: patch-ag,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- src/cfservd.c.orig Thu Dec 19 13:24:23 2002 ++++ src/cfservd.c Thu Dec 19 13:24:50 2002 +@@ -722,5 +722,5 @@ + Debug("Bound to address %s on %s=%d\n",sockaddr_ntop(ap->ai_addr),CLASSTEXT[VSYSTEMHARDCLASS],VSYSTEMHARDCLASS); + +- if (VSYSTEMHARDCLASS == openbsd) ++ if (VSYSTEMHARDCLASS == openbsd || VSYSTEMHARDCLASS == netbsd) + { + continue; /* openbsd doesn't map ipv6 addresses */ diff --git a/sysutils/cfengine2/patches/patch-ah b/sysutils/cfengine2/patches/patch-ah new file mode 100644 index 00000000000..b85dce75f68 --- /dev/null +++ b/sysutils/cfengine2/patches/patch-ah @@ -0,0 +1,26 @@ +$NetBSD: patch-ah,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- src/cfenvd.c.orig Fri Aug 2 04:57:44 2002 ++++ src/cfenvd.c Thu Dec 19 17:16:13 2002 +@@ -512,11 +512,21 @@ + if (!NO_FORK) + { ++ int fd; + #ifdef HAVE_SETSID + setsid(); + #endif ++ fd = open("/dev/null", O_RDWR, 0); + fclose (stdin); + fclose (stdout); + fclose (stderr); + closelog(); ++ ++ if (fd != -1) ++ { ++ dup2(fd,STDIN_FILENO); ++ dup2(fd,STDOUT_FILENO); ++ dup2(fd,STDERR_FILENO); ++ close(fd); ++ } + } + diff --git a/sysutils/cfengine2/patches/patch-ai b/sysutils/cfengine2/patches/patch-ai new file mode 100644 index 00000000000..ced668b5962 --- /dev/null +++ b/sysutils/cfengine2/patches/patch-ai @@ -0,0 +1,26 @@ +$NetBSD: patch-ai,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ + +--- src/cfexecd.c.orig Thu Dec 19 17:21:24 2002 ++++ src/cfexecd.c Thu Dec 19 17:21:26 2002 +@@ -250,11 +250,21 @@ + if (!NO_FORK) + { ++ int fd; + #ifdef HAVE_SETSID + setsid(); + #endif ++ fd = open("/dev/null", O_RDWR, 0); + fclose (stdin); + fclose (stdout); + fclose (stderr); + closelog(); ++ ++ if (fd != -1) ++ { ++ dup2(fd,STDIN_FILENO); ++ dup2(fd,STDOUT_FILENO); ++ dup2(fd,STDERR_FILENO); ++ close(fd); ++ } + } + |