diff options
-rw-r--r-- | system/cfengine/README | 18 | ||||
-rw-r--r-- | system/cfengine/cfengine.SlackBuild | 141 | ||||
-rw-r--r-- | system/cfengine/cfengine.info | 10 | ||||
-rw-r--r-- | system/cfengine/config/cfagent.conf | 16 | ||||
-rw-r--r-- | system/cfengine/config/cfrun.hosts | 1 | ||||
-rw-r--r-- | system/cfengine/config/cfservd.conf | 16 | ||||
-rw-r--r-- | system/cfengine/config/update.conf | 25 | ||||
-rw-r--r-- | system/cfengine/doinst.sh | 32 | ||||
-rw-r--r-- | system/cfengine/rc.cfengine | 53 | ||||
-rw-r--r-- | system/cfengine/rc.cfenvd | 45 | ||||
-rw-r--r-- | system/cfengine/rc.cfservd | 57 | ||||
-rw-r--r-- | system/cfengine/slack-desc | 19 |
12 files changed, 0 insertions, 433 deletions
diff --git a/system/cfengine/README b/system/cfengine/README deleted file mode 100644 index fba4ef5985cf0..0000000000000 --- a/system/cfengine/README +++ /dev/null @@ -1,18 +0,0 @@ -Cfengine is an autonomous agent (a software robot). - -Written by Mark Burgess, a Professor of Network and System Administration -at Oslo University College, Norway. - -It is used to implement policy-based configuration management on open systems -(Unix-like environments) through the interpretation of its own declarative -language. It emphasizes an 'immunological' viewpoint, making its modus -operandi convergence to a stable state. - -Note: Even though an rc file is included, at least an update.conf is needed -as well. A sample for which is included. For usage intros see: - -Cluster Management with GNU cfengine by Mark Burgess -http://www.ieeetcsc.org/newsletters/2002-01/burgess.html - -Automating Security with GNU cfengine by Kirk Bauer -http://www.linuxjournal.com/article/6848 diff --git a/system/cfengine/cfengine.SlackBuild b/system/cfengine/cfengine.SlackBuild deleted file mode 100644 index 8ad389d5c8c2b..0000000000000 --- a/system/cfengine/cfengine.SlackBuild +++ /dev/null @@ -1,141 +0,0 @@ -#!/bin/sh - -# Slackware build script for Cfengine -# Written by Menno Duursma <druiloor@zonnet.nl> - -# This program is free software. It comes without any warranty. -# Granted WTFPL, Version 2, as published by Sam Hocevar. See -# http://sam.zoy.org/wtfpl/COPYING for more details. - -PRGNAM=cfengine -VERSION=2.2.10 -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e # Exit on most errors - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# The system expects everything to live in /var/cfengine generally -# Its configuration is maintained in a version control system -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --bindir=/usr/bin \ - --sbindir=/usr/sbin \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --datadir=/usr/doc \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --enable-shared=yes \ - --enable-static=no \ - --build=$ARCH-slackware-linux - -make -make install-strip DESTDIR=$PKG - -# Install manpages -mkdir -p $PKG/usr/man/man8 -for manpage in doc/*.8; do - gzip -9c $manpage > $PKG/usr/man/man8/$(basename $manpage).gz -done - -# Prepare and install info pages and handy links to 'em -mkdir -p $PKG/usr/info -for infopage in doc/*.info*; do - gzip -9c $infopage > $PKG/usr/info/$(basename $infopage).gz -done -( cd $PKG/usr/info - ln -vsf cfengine-Tutorial.info.gz cfengine.info.gz - for ref in cfkey cfshow cfagent cfservd cfexecd; do - ln -vsf cfengine-Reference.info.gz $ref.info.gz - done - for anom in cfenvd cfenvgraph; do - ln -vsf cfengine-Anomalies.info.gz $anom.info.gz - done -) - -# Create basic work dirs -for dir in bin inputs outputs masterfiles ; do - mkdir -p $PKG/var/$PRGNAM/$dir -done - -# Include example start/stop/restart/reload scripts -mkdir -p $PKG/etc/rc.d -cat $CWD/rc.cfengine > $PKG/etc/rc.d/rc.cfengine.new -cat $CWD/rc.cfenvd > $PKG/etc/rc.d/rc.cfenvd.new -cat $CWD/rc.cfservd > $PKG/etc/rc.d/rc.cfservd.new -# Link the cfengine name to execd for compatibility -( cd $PKG/etc/rc.d ; ln -sf rc.cfengine rc.cfexecd ) - -# Include example config files -cat $CWD/config/update.conf > $PKG/var/$PRGNAM/inputs/update.conf.new -cat $CWD/config/cfagent.conf > $PKG/var/$PRGNAM/inputs/cfagent.conf.new -cat $CWD/config/cfservd.conf > $PKG/var/$PRGNAM/inputs/cfservd.conf.new -cat $CWD/config/cfrun.hosts > $PKG/var/$PRGNAM/inputs/cfrun.hosts.new - -# Try to be a bit more compatible to some other distros versions -( cd $PKG/etc - ln -sf /var/cfengine/inputs cfengine - ln -sf /var/cfengine/inputs cfengine2 - cd $PKG/var ; ln -sf cfengine cfengine2 -) - -# Following link is for backwards compatibility -mkdir -p $PKG/var/$PRGNAM/bin -( cd $PKG/var/cfengine/bin ; ln -sf /usr/sbin/cfagent . ) - -# Put docs in the versioned directory -mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION - -cp -a [A-Z][A-Z]* ChangeLog doc/*.{pdf,html} $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG -find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/cfengine/cfengine.info b/system/cfengine/cfengine.info deleted file mode 100644 index ba7d43d158456..0000000000000 --- a/system/cfengine/cfengine.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="cfengine" -VERSION="2.2.10" -HOMEPAGE="http://www.cfengine.org/" -DOWNLOAD="http://www.cfengine.org/tarballs/cfengine-2.2.10.tar.gz" -MD5SUM="3b90ff8bf2ec941cd33cfb65f5012f16" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -MAINTAINER="Menno Duursma" -EMAIL="druiloor@zonnet.nl" -APPROVED="rworkman" diff --git a/system/cfengine/config/cfagent.conf b/system/cfengine/config/cfagent.conf deleted file mode 100644 index 9645f08401ba4..0000000000000 --- a/system/cfengine/config/cfagent.conf +++ /dev/null @@ -1,16 +0,0 @@ -control: - - actionsequence = ( processes ) - domain = ( localhost ) - access = ( root ) - # Where cfexecd sends reports - smtpserver = ( localhost ) - sysadm = ( root@localhost ) - -processes: - - # Make sure these processes are always running - "cfenvd" restart "/etc/rc.d/rc.cfenvd restart" - "cfexecd" restart "/etc/rc.d/rc.cfexecd restart" - #"cfservd" restart "/etc/rc.d/rc.cfservd restart" - diff --git a/system/cfengine/config/cfrun.hosts b/system/cfengine/config/cfrun.hosts deleted file mode 100644 index 2fbb50c4a8dc7..0000000000000 --- a/system/cfengine/config/cfrun.hosts +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/system/cfengine/config/cfservd.conf b/system/cfengine/config/cfservd.conf deleted file mode 100644 index 292fbb96b5053..0000000000000 --- a/system/cfengine/config/cfservd.conf +++ /dev/null @@ -1,16 +0,0 @@ -# /var/cfengine/cfservd.conf -# -# Note: in case cfservd is started with 'cfengine' user privs, the path to -# this file might instead be /home/cfengine/.cfagent/inputs/cfservd.conf - -control: - - domain = ( localhost ) - AllowUsers = ( root ) - cfrunCommand = ( "/usr/sbin/cfagent" ) - -admit: - - /usr/sbin/cfagent localhost - /var/cfengine/masterfiles localhost - diff --git a/system/cfengine/config/update.conf b/system/cfengine/config/update.conf deleted file mode 100644 index 096e433d52a1f..0000000000000 --- a/system/cfengine/config/update.conf +++ /dev/null @@ -1,25 +0,0 @@ -control: - - actionsequence = ( copy tidy ) - domain = ( localhost ) - workdir = ( /var/cfengine ) - policyhost = ( localhost ) - master_cfinput = ( /var/cfengine/masterfiles ) - -copy: - - $(master_cfinput) - dest=$(workdir)/inputs - r=inf - mode=644 - type=binary - ignore=*.lst - ignore=*~ - ignore=#* - ignore=RCS - ignore=CVS - server=$(policyhost) - -tidy: - - $(workdir)/outputs pattern=* age=7 diff --git a/system/cfengine/doinst.sh b/system/cfengine/doinst.sh deleted file mode 100644 index 43efbf8aa35e9..0000000000000 --- a/system/cfengine/doinst.sh +++ /dev/null @@ -1,32 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -# Keep same permissions on rc files: -for PRGNAM in cfengine cfenvd cfservd ; do - if [ -e etc/rc.d/rc.$PRGNAM ]; then - cp -a etc/rc.d/rc.$PRGNAM etc/rc.d/rc.$PRGNAM.new.incoming - cat etc/rc.d/rc.$PRGNAM.new > etc/rc.d/rc.$PRGNAM.new.incoming - mv etc/rc.d/rc.$PRGNAM.new.incoming etc/rc.d/rc.$PRGNAM.new - fi - config etc/rc.d/rc.$PRGNAM.new -done - -config var/cfengine/inputs/update.conf.new -config var/cfengine/inputs/cfagent.conf.new -config var/cfengine/inputs/cfservd.conf.new -config var/cfengine/inputs/cfrun.hosts.new - -# Following link is for some backwards compatibility -if [ ! -d var/cfengine/bin ]; then mkdir -p var/$PRGNAM/bin ; fi -( cd var/cfengine/bin ; ln -sf ../../../usr/sbin/cfagent . ) - diff --git a/system/cfengine/rc.cfengine b/system/cfengine/rc.cfengine deleted file mode 100644 index 08a3300d627ba..0000000000000 --- a/system/cfengine/rc.cfengine +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -# start/stop/restart/reload cfexecd - -# 'cfexecd' may be used to capture cfagent output and send it as -# mail when run. All control parameters are set in cfagent.conf. -# cfagent can in turn start any other service (e.g. cfenvd, cfservd) - -# Start cfexecd: -cfexecd_start() { - if [ -x /usr/sbin/cfexecd ]; then - # Make sure localhost keys exist first - if [ ! -f /var/cfengine/ppkeys/localhost.priv ]; then - /usr/sbin/cfkey - fi - echo "Starting the CFEngine scheduler service: /usr/sbin/cfexecd" - /usr/sbin/cfexecd - fi -} - -# Stop cfexecd: -cfexecd_stop() { - /bin/killall cfexecd 2> /dev/null -} - -# Restart cfexecd: -cfexecd_restart() { - cfexecd_stop - sleep 1 - cfexecd_start -} - -# Reload cfexecd: -cfexecd_reload() { - /bin/killall -HUP cfexecd -} - -case "$1" in -'start') - cfexecd_start - ;; -'stop') - cfexecd_stop - ;; -'restart') - cfexecd_restart - ;; -'reload') - cfexecd_reload - ;; -*) - echo "usage $0 start|stop|restart|reload" -esac diff --git a/system/cfengine/rc.cfenvd b/system/cfengine/rc.cfenvd deleted file mode 100644 index 03bf800b9c653..0000000000000 --- a/system/cfengine/rc.cfenvd +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -# start/stop/restart/reload cfenvd - -# Start cfenvd: -cfenvd_start() { - if [ -x /usr/sbin/cfenvd ]; then - echo "Starting the CFEengine environment service: /usr/sbin/cfexecd" - /usr/sbin/cfenvd - fi -} - -# Stop cfenvd: -cfenvd_stop() { - /bin/killall cfenvd 2> /dev/null -} - -# Restart cfenvd: -cfenvd_restart() { - cfenvd_stop - sleep 1 - cfenvd_start -} - -# Reload cfenvd: -cfenvd_reload() { - /bin/killall -HUP cfenvd -} - -case "$1" in -'start') - cfenvd_start - ;; -'stop') - cfenvd_stop - ;; -'restart') - cfenvd_restart - ;; -'reload') - cfenvd_reload - ;; -*) - echo "usage $0 start|stop|restart|reload" -esac diff --git a/system/cfengine/rc.cfservd b/system/cfengine/rc.cfservd deleted file mode 100644 index 68db3261ab9ec..0000000000000 --- a/system/cfengine/rc.cfservd +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - -# start/stop/restart/reload cfservd - -# 'cfservd' looks for a configuration file cfservd.conf by default. - -# Note: this daemon doesn't actually need to run under the root account, -# assuming an account named 'cfservd' exists, one way of configuring it -# to use its own account would be to to run 'cfkey' and 'cfagent' ones -# which creates the ~/.cfagent subdir then start the service with: -# /bin/su - cfservd -c /usr/sbin/cfservd - -# Start cfservd: -cfservd_start() { - if [ -x /usr/sbin/cfservd ]; then - # Make sure localhost keys exist first - if [ ! -f /var/cfengine/ppkeys/localhost.priv ]; then - /usr/sbin/cfkey - fi - echo "Starting Cfengine: /usr/sbin/cfservd" - /usr/sbin/cfservd - fi -} - -# Stop cfservd: -cfservd_stop() { - /bin/killall cfservd 2> /dev/null -} - -# Restart cfservd: -cfservd_restart() { - cfservd_stop - sleep 1 - cfservd_start -} - -# Reload cfservd: -cfservd_reload() { - /bin/killall -HUP cfservd -} - -case "$1" in -'start') - cfservd_start - ;; -'stop') - cfservd_stop - ;; -'restart') - cfservd_restart - ;; -'reload') - cfservd_reload - ;; -*) - echo "usage $0 start|stop|restart|reload" -esac diff --git a/system/cfengine/slack-desc b/system/cfengine/slack-desc deleted file mode 100644 index 26a095cfbdf1a..0000000000000 --- a/system/cfengine/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler-----------------------------------------------------| -cfengine: Cfengine (the system administration tool for networks) -cfengine: -cfengine: Cfengine (configuration engine) is an autonomous agent / software -cfengine: robot and a middle- to high-level policy language for building -cfengine: expert systems to administer and configure large computer networks. -cfengine: Cfengine is designed to be a part of a computer immune system. -cfengine: -cfengine: Cfengine was written and is maintained by Mark Burgess. -cfengine: -cfengine: -cfengine: |