diff options
Diffstat (limited to 'debian/buildsys')
-rw-r--r-- | debian/buildsys/2.3/bcfg2-server.init | 53 | ||||
-rw-r--r-- | debian/buildsys/2.3/bcfg2.init | 72 | ||||
-rw-r--r-- | debian/buildsys/2.3/compat | 1 | ||||
-rw-r--r-- | debian/buildsys/2.3/control.in | 29 | ||||
-rw-r--r-- | debian/buildsys/2.4/control.in | 29 | ||||
-rw-r--r-- | debian/buildsys/common/bcfg2-server.init | 99 | ||||
-rw-r--r-- | debian/buildsys/common/bcfg2.init | 141 | ||||
-rw-r--r-- | debian/buildsys/common/compat | 1 | ||||
-rw-r--r-- | debian/buildsys/common/pycompat | 1 | ||||
-rw-r--r-- | debian/buildsys/pycentral/control.in | 32 | ||||
-rw-r--r-- | debian/buildsys/pycentral/pycompat | 1 |
11 files changed, 0 insertions, 459 deletions
diff --git a/debian/buildsys/2.3/bcfg2-server.init b/debian/buildsys/2.3/bcfg2-server.init deleted file mode 100644 index 235087465..000000000 --- a/debian/buildsys/2.3/bcfg2-server.init +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# -# Bcfg2Server - Bcfg2 configuration daemon -# -# chkconfig: 2345 19 81 -# description: bcfg2 server for configuration requests -# -### BEGIN INIT INFO -# Provides: bcfg2-server -# Required-Start: $network $remote_fs $named -# Required-Stop: $network $remote_fs $named -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Configuration management Server -# Description: Bcfg2 is a configuration management system that builds -# installs configuration files served by bcfg2-server -### END INIT INFO - -PIDFILE=/var/tmp/bcfg2-server.pid - -msg=echo -fail=echo - -case "$1" in - start) - $msg -n "Starting bcfg2-server: " - if [ -f "/etc/debian_version" ] ; then - /sbin/start-stop-daemon --pidfile "${PIDFILE}" --make-pidfile -b -S --startas /usr/sbin/bcfg2-server - else - /usr/sbin/bcfg2-server -D "${PIDFILE}" - fi - $msg "bcfg2-server" - ;; - stop) - $msg -n "Stopping bcfg2-server: " - if [ -f "/etc/debian_version" ] ; then - /sbin/start-stop-daemon -p "${PIDFILE}" -K /usr/sbin/bcfg2-server - else - kill -INT `cat ${PIDFILE}` - fi - echo done - ;; - restart|force-reload|reload) - $0 stop - sleep 5 - $0 start - ;; - *) - ${msg} "Usage: $0 {start|stop|status|reload|restart|force-reload}" - exit 1 -esac - -exit 0 diff --git a/debian/buildsys/2.3/bcfg2.init b/debian/buildsys/2.3/bcfg2.init deleted file mode 100644 index 463d6a414..000000000 --- a/debian/buildsys/2.3/bcfg2.init +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh -# -# bcfg2 - bcfg2 configuration client -# -# chkconfig: 2345 19 81 -# description: bcfg2 client for configuration requests -# -### BEGIN INIT INFO -# Provides: bcfg2 -# Required-Start: $network $remote_fs $named -# Required-Stop: $network $remote_fs $named -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Configuration management client -# Description: Bcfg2 is a configuration management system that builds -# installs configuration files served by bcfg2-server -# This is a client that installs the server provided -# Configuration. -### END INIT INFO - -# This might need some better logic -BCFG2=/usr/sbin/bcfg2 - -# Set default options -# You can set script specific options with BCFG2_OPTIONS_INIT -BCFG2_OPTIONS="-q" - -# Disabled per default -BCFG2_ENABLED=0 -BCFG2_INIT=0 -BCFG2_AGENT=0 - -# Include default startup configuration if exists -test -f "/etc/default/bcfg2" && . /etc/default/bcfg2 - -[ "$BCFG2_ENABLED" -eq 0 ] && exit 0 -[ "$BCFG2_AGENT" -eq 0 -a "$BCFG2_INIT" -eq 0 ] && exit 0 - -# Exit if bcfg2 doesn't exist and is not executable -test -x $BCFG2 || exit 5 - -case "$1" in - start) - echo -n "Running configuration management client: " - - if [ "$BCFG2_AGENT" -eq 1 ] - then - ${BCFG2} -A -i /var/run/bcfg2-agent.pid ${BCFG2_OPTIONS} ${BCFG2_OPTIONS_AGENT} - STATUS=$? - fi - - if [ "$BCFG2_INIT" -eq 1 ] - then - ${BCFG2} ${BCFG2_OPTIONS} ${BCFG2_OPTIONS_INIT} - STATUS=$? - fi - - echo "bcfg2" - ;; - status) - # Since we are always OK, always return OK as status - exit 0 - ;; - restart|reload|stop|force-reload) - true - ;; - *) - echo "Usage: $0 {start|stop|restart|reload|force-reload|status}" - exit 1 -esac - -exit 0 diff --git a/debian/buildsys/2.3/compat b/debian/buildsys/2.3/compat deleted file mode 100644 index b8626c4cf..000000000 --- a/debian/buildsys/2.3/compat +++ /dev/null @@ -1 +0,0 @@ -4 diff --git a/debian/buildsys/2.3/control.in b/debian/buildsys/2.3/control.in deleted file mode 100644 index 7d6e9eda6..000000000 --- a/debian/buildsys/2.3/control.in +++ /dev/null @@ -1,29 +0,0 @@ -Source: bcfg2 -Section: admin -Priority: optional -Maintainer: Sami Haahtinen <ressu@debian.org> -Build-Depends: @cdbs@, python2.3-dev, python -Standards-Version: 3.7.2.0 - -Package: bcfg2 -Architecture: all -Depends: ${python:Depends}, debsums, python-apt, python2.3-lxml (>= 0.8), ucf -Description: Configuration management client - Bcfg2 is a configuration management system that generates configuration sets - for clients bound by client profiles. - bcfg2 is the client portion of bcfg2 system which installs configuration - images provided by bcfg2-server - . - Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ - -Package: bcfg2-server -Architecture: all -Depends: ${python:Depends}, python2.3-lxml (>= 0.8), python2.3-gamin | python2.3-fam , libxml2-utils (>= 2.6.23), gamin | fam, ucf, bcfg2 (= ${Source-Version}), openssl -Recommends: graphviz, python-profiler -Description: Configuration management server - Bcfg2 is a configuration management system that generates configuration sets - for clients bound by client profiles. - bcfg2-server is the server for bcfg2 clients, which generates configuration - sets and stores statistics of client system states. - . - Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ diff --git a/debian/buildsys/2.4/control.in b/debian/buildsys/2.4/control.in deleted file mode 100644 index 526fc7d25..000000000 --- a/debian/buildsys/2.4/control.in +++ /dev/null @@ -1,29 +0,0 @@ -Source: bcfg2 -Section: admin -Priority: optional -Maintainer: Sami Haahtinen <ressu@debian.org> -Build-Depends: @cdbs@, python2.4-dev -Standards-Version: 3.7.2.0 - -Package: bcfg2 -Architecture: all -Depends: ${python:Depends}, debsums, python2.4-apt, python-lxml (>=0.9) | python2.4-lxml (>= 0.9), ucf, lsb-base (>= 3.1) -Description: Configuration management client - Bcfg2 is a configuration management system that generates configuration sets - for clients bound by client profiles. - bcfg2 is the client portion of bcfg2 system which installs configuration - images provided by bcfg2-server - . - Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ - -Package: bcfg2-server -Architecture: all -Depends: ${python:Depends}, python-lxml (>=0.9) | python2.4-lxml (>= 0.9), python2.4-gamin | python2.4-fam, python2.4-pyopenssl, libxml2-utils (>= 2.6.23), gamin | fam, lsb-base (>= 3.1), ucf, bcfg2 (= ${Source-Version}), openssl -Recommends: graphviz, python-profiler -Description: Configuration management server - Bcfg2 is a configuration management system that generates configuration sets - for clients bound by client profiles. - bcfg2-server is the server for bcfg2 clients, which generates configuration - sets and stores statistics of client system states. - . - Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ diff --git a/debian/buildsys/common/bcfg2-server.init b/debian/buildsys/common/bcfg2-server.init deleted file mode 100644 index 1302ec10c..000000000 --- a/debian/buildsys/common/bcfg2-server.init +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/sh -# -# bcfg-server - Bcfg2 configuration daemon -# -# chkconfig: 2345 19 81 -# description: bcfg2 server for configuration requests -# -### BEGIN INIT INFO -# Provides: bcfg2-server -# Required-Start: $network $remote_fs $named -# Required-Stop: $network $remote_fs $named -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Configuration management Server -# Description: Bcfg2 is a configuration management system that builds -# installs configuration files served by bcfg2-server -### END INIT INFO - -DAEMON=/usr/sbin/bcfg2-server -PIDFILE=/var/run/bcfg2-server.pid -PARAMS="-D $PIDFILE" - -# Exit if $DAEMON doesn't exist and is not executable -test -x $DAEMON || exit 5 - -# Include lsb functions -. /lib/lsb/init-functions - -# Internal variables -BINARY=$(basename $DAEMON) - -start () { - echo -n "Starting Configuration Management Server: " - start_daemon ${DAEMON} ${PARAMS} - STATUS=$? - if [ "$STATUS" = 0 ] - then - log_success_msg "bcfg2-server" - test -d /var/lock/subsys && touch /var/lock/subsys/bcfg2-server - else - log_failure_msg "bcfg2-server" - fi - return $STATUS -} - -stop () { - echo -n "Stopping Configuration Management Server: " - killproc -p $PIDFILE ${BINARY} - STATUS=$? - if [ "$STATUS" = 0 ]; then - log_success_msg "bcfg2-server" - test -d /var/lock/subsys && touch /var/lock/subsys/bcfg2-server - else - log_failure_msg "bcfg2-server" - fi - return $STATUS -} - -status () { - # Inspired by redhat /etc/init.d/functions status() call - PID=$(pidof -x $BINARY) - if [ -n "$PID" ]; then - echo "$BINARY (pid $PID) is running..." - return 0 - fi - - if [ -f $PIDFILE ]; then - if [ -n "$PID" ]; then - log_failure_msg "$BINARY dead but pid file exists..." - return 1 - fi - fi - - log_failure_msg "$BINARY is not running" - return 3 -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - status) - status - ;; - restart|reload|force-reload) - stop - sleep 5 - start - ;; - *) - log_success_msg "Usage: $0 {start|stop|status|reload|restart|force-reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/debian/buildsys/common/bcfg2.init b/debian/buildsys/common/bcfg2.init deleted file mode 100644 index a7b65ce05..000000000 --- a/debian/buildsys/common/bcfg2.init +++ /dev/null @@ -1,141 +0,0 @@ -#!/bin/sh -# -# bcfg2 - bcfg2 configuration client -# -# chkconfig: 2345 19 81 -# description: bcfg2 client for configuration requests -# -### BEGIN INIT INFO -# Provides: bcfg2 -# Required-Start: $network $remote_fs $named -# Required-Stop: $network $remote_fs $named -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Configuration management client -# Description: Bcfg2 is a configuration management system that builds -# installs configuration files served by bcfg2-server -# This is a client that installs the server provided -# Configuration. -### END INIT INFO - -# This might need some better logic -BCFG2=/usr/sbin/bcfg2 - -# Set default options -# You can set script specific options with BCFG2_OPTIONS_INIT -# You can set agent-mode specific options with BCFG2_OPTIONS_AGENT -BCFG2_OPTIONS="-q" - -# Disabled per default -BCFG2_ENABLED=0 -BCFG2_INIT=0 -BCFG2_AGENT=0 - -# Include default startup configuration if exists -test -f "/etc/default/bcfg2" && . /etc/default/bcfg2 - -[ "$BCFG2_ENABLED" -eq 0 ] && exit 0 -[ "$BCFG2_AGENT" -eq 0 -a "$BCFG2_INIT" -eq 0 ] && exit 0 - -# Exit if bcfg2 doesn't exist and is not executable -test -x $BCFG2 || exit 5 - -# Agent mode daemon capability -PIDFILE=/var/run/bcfg2-agent.pid -# Internal variables -BINARY=$(basename $BCFG2) - -AGENT_EXTRA_OPTS="-A -i ${PIDFILE}" - -# Include lsb functions -. /lib/lsb/init-functions - -start () { - echo -n "Running configuration management client: " - if [ "$BCFG2_AGENT" -eq 1 ] - then - start_daemon ${BCFG2} ${AGENT_EXTRA_OPTS} ${BCFG2_OPTIONS} ${BCFG2_OPTIONS_AGENT} - STATUS=$? - fi - - if [ "$BCFG2_INIT" -eq 1 ]; then - ${BCFG2} ${BCFG2_OPTIONS} ${BCFG2_OPTIONS_INIT} - STATUS=$? - fi - - if [ "$STATUS" -eq 0 ] - then - log_success_msg "bcfg2" - if [ "$BCFG2_AGENT" -eq 1 ]; then - test -d /var/lock/subsys && touch /var/lock/subsys/bcfg2-agent - fi - else - log_failure_msg "bcfg2" - fi - return $STATUS -} - -status () { - if [ "$BCFG2_AGENT" -eq 1 ] - then - PID=$(pidof -x $BINARY) - if [ -n "$PID" ] ; then - log_success_msg "$BINARY (pid $PID) is running..." - return 0 - fi - if [ -f $PIDFILE ]; then - if [ -n "$PID" ]; then - log_failure_msg "$BINARY dead but pid file exists..." - return 1 - fi - fi - else - return 0 - fi -} - -stop () { - if [ "$BCFG2_AGENT" -eq 1 ] - then - echo -n "Stopping configuration management client daemon: " - killproc -p $PIDFILE ${BINARY} - STATUS=$? - if [ "$STATUS" -eq 0 ] - then - log_success_msg "bcfg2" - if [ "$BCFG2_AGENT" -eq 1 ]; then - test -d /var/lock/subsys && rm -f /var/lock/subsys/bcfg2-agent - fi - else - log_failure_msg "bcfg2" - fi - return $STATUS - else - return 0 - fi -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - status) - status - ;; - restart|reload|force-reload) - if [ "$BCFG2_AGENT" -eq 1 ] - then - stop - sleep 5 - start - fi - ;; - *) - echo "Usage: $0 {start|stop|restart|reload|force-reload|status}" - exit 1 -esac - -exit 0 diff --git a/debian/buildsys/common/compat b/debian/buildsys/common/compat deleted file mode 100644 index 7ed6ff82d..000000000 --- a/debian/buildsys/common/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/debian/buildsys/common/pycompat b/debian/buildsys/common/pycompat deleted file mode 100644 index d00491fd7..000000000 --- a/debian/buildsys/common/pycompat +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/debian/buildsys/pycentral/control.in b/debian/buildsys/pycentral/control.in deleted file mode 100644 index 807b28c36..000000000 --- a/debian/buildsys/pycentral/control.in +++ /dev/null @@ -1,32 +0,0 @@ -Source: bcfg2 -Section: admin -Priority: optional -Maintainer: Sami Haahtinen <ressu@debian.org> -Build-Depends: @cdbs@ -Standards-Version: 3.7.2.0 -XS-Python-Version: >= 2.3 - -Package: bcfg2 -Architecture: all -Depends: ${python:Depends}, debsums, python-apt, python-lxml (>= 0.9), ucf, lsb-base (>= 3.1-9), python (>= 2.6) | python-m2crypto (>= 0.17) | python-ssl -XB-Python-Version: ${python:Versions} -Description: Configuration management client - Bcfg2 is a configuration management system that generates configuration sets - for clients bound by client profiles. - bcfg2 is the client portion of bcfg2 system which installs configuration - images provided by bcfg2-server - . - Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ - -Package: bcfg2-server -Architecture: all -Depends: ${python:Depends}, python-lxml (>= 0.9), python-fam | python-gamin, libxml2-utils (>= 2.6.23), gamin | fam, lsb-base (>= 3.1-9), ucf, bcfg2 (= ${Source-Version}), openssl -Recommends: python-genshi (>= 0.4.4), graphviz, python-profiler -XB-Python-Version: ${python:Versions} -Description: Configuration management server - Bcfg2 is a configuration management system that generates configuration sets - for clients bound by client profiles. - bcfg2-server is the server for bcfg2 clients, which generates configuration - sets and stores statistics of client system states. - . - Homepage: http://trac.mcs.anl.gov/projects/bcfg2/ diff --git a/debian/buildsys/pycentral/pycompat b/debian/buildsys/pycentral/pycompat deleted file mode 100644 index 0cfbf0888..000000000 --- a/debian/buildsys/pycentral/pycompat +++ /dev/null @@ -1 +0,0 @@ -2 |