[Lunar-commits] r20297 - in moonbase/trunk/net: . cfengine cfengine/init.d

Stefan Wold ratler at lunar-linux.org
Sat Jun 3 09:06:53 UTC 2006


Author: ratler
Date: 2006-06-03 09:06:52 +0000 (Sat, 03 Jun 2006)
New Revision: 20297

Added:
   moonbase/trunk/net/cfengine/
   moonbase/trunk/net/cfengine/BUILD
   moonbase/trunk/net/cfengine/DEPENDS
   moonbase/trunk/net/cfengine/DETAILS
   moonbase/trunk/net/cfengine/POST_INSTALL
   moonbase/trunk/net/cfengine/init.d/
   moonbase/trunk/net/cfengine/init.d/cfservd
Log:
Initial version of cfengine, an administration tool for large networks

Added: moonbase/trunk/net/cfengine/BUILD
===================================================================
--- moonbase/trunk/net/cfengine/BUILD	                        (rev 0)
+++ moonbase/trunk/net/cfengine/BUILD	2006-06-03 09:06:52 UTC (rev 20297)
@@ -0,0 +1,28 @@
+(
+
+    ./configure --prefix=/usr \
+	        --with-workdir=/var/lib/cfengine \
+	        --with-berkeleydb=/usr \
+                $OPTS &&
+
+    # Sigh, documents are installed in a crazy place
+    sedit 's:\(DIST_SUBDIRS.*\) contrib inputs doc:\1:;
+           s:\(SUBDIRS.*\) contrib inputs:\1:;
+           s:\(install-data-am.*\) install-docDATA:\1:' Makefile &&
+
+    default_make &&
+
+    if [ ! -d /var/lib/cfengine/bin ]; then
+	mkdir -p /var/lib/cfengine/bin 
+    fi &&
+
+    # Install man-pages and docs manually
+    mkdir -p /usr/share/doc/cfengine/examples &&
+    install -m644 inputs/*.example /usr/share/doc/cfengine/examples/ &&
+    install -m644 doc/*.8 /usr/share/man/man8/ &&
+    install -m644 doc/*.html /usr/share/doc/cfengine &&
+
+    # cfexecd will search for these binaries in the working dir
+    cp -f /usr/sbin/cf{agent,servd,execd} /var/lib/cfengine/bin
+
+) > $C_FIFO 2>&1

Added: moonbase/trunk/net/cfengine/DEPENDS
===================================================================
--- moonbase/trunk/net/cfengine/DEPENDS	                        (rev 0)
+++ moonbase/trunk/net/cfengine/DEPENDS	2006-06-03 09:06:52 UTC (rev 20297)
@@ -0,0 +1,6 @@
+depends db &&
+depends openssl &&
+optional_depends "pcre" 		\
+		 "--with-pcre"		\
+		 "--without-pcre"	\
+                 "for perl style regex support"

Added: moonbase/trunk/net/cfengine/DETAILS
===================================================================
--- moonbase/trunk/net/cfengine/DETAILS	                        (rev 0)
+++ moonbase/trunk/net/cfengine/DETAILS	2006-06-03 09:06:52 UTC (rev 20297)
@@ -0,0 +1,19 @@
+          MODULE=cfengine
+         VERSION=2.1.20
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=ftp://ftp.iu.hio.no/pub/cfengine/
+   SOURCE_URL[1]=ftp://sunsite.uio.no/pub/cfengine/
+      SOURCE_VFY=sha1:98bae354ee6134a3f3274095a57a40b3620a1a64
+        WEB_SITE=http://www.cfengine.org/
+      MAINTAINER=ratler at lunar-linux.org
+         ENTERED=20060602
+         UPDATED=20060202
+           SHORT="An administration tool and policy language to administrate and configure large computer networks" 
+cat << EOF
+Cfengine, or the configuration engine is an autonomous agent and a middle
+to high level policy language and agent for building expert systems to
+administrate and configure large computer networks. Cfengine is designed
+to be a part of a computer immune system. It is ideal for cluster
+management and has been adopted for use all over the world in small and
+huge organizations alike.
+EOF

Added: moonbase/trunk/net/cfengine/POST_INSTALL
===================================================================
--- moonbase/trunk/net/cfengine/POST_INSTALL	                        (rev 0)
+++ moonbase/trunk/net/cfengine/POST_INSTALL	2006-06-03 09:06:52 UTC (rev 20297)
@@ -0,0 +1,9 @@
+
+# We dont want everything tracked by lunar
+
+mkdir -p /var/lib/cfengine/{inputs,modules} &&
+
+if [ ! -f "/var/lib/cfengine/ppkeys/localhost.priv" ]; then
+    /usr/sbin/cfkey
+fi
+

Added: moonbase/trunk/net/cfengine/init.d/cfservd
===================================================================
--- moonbase/trunk/net/cfengine/init.d/cfservd	                        (rev 0)
+++ moonbase/trunk/net/cfengine/init.d/cfservd	2006-06-03 09:06:52 UTC (rev 20297)
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+#  Startup/shutdown script for the cfengine daemon
+#
+# chkconfig: 345 95 10
+# description: cfengine server daemon
+# processname: cfservd
+
+. /lib/lsb/init-functions $1



More information about the Lunar-commits mailing list