summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 766885b)
raw | patch | inline | side by side (parent: 766885b)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Dec 2007 14:28:23 +0000 (14:28 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Dec 2007 14:28:23 +0000 (14:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8079 594d385d-05f5-0310-b6e9-bd551577e9d8
14 files changed:
diff --git a/contrib/daemon/debian/README.debian b/contrib/daemon/debian/README.debian
--- /dev/null
@@ -0,0 +1,11 @@
+README.Debian for GOto 3.0
+--------------------------
+
+* Configuring GOto 3.0
+
+You need a proper LDAP/FAI/GOsa setup to make this run. More
+text will follow later. Sorry.
+
+----
+Cajus Pollmeier <cajus@debian.org> Fri 02 Jun 2006 16:23:50 +0200
+
diff --git a/contrib/daemon/debian/changelog b/contrib/daemon/debian/changelog
--- /dev/null
@@ -0,0 +1,6 @@
+gosa-sd (1.0-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Cajus Pollmeier <cajus@debian.org> Fri, 7 Dec 2007 11:37:45 +0100
+
diff --git a/contrib/daemon/debian/compat b/contrib/daemon/debian/compat
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/contrib/daemon/debian/control b/contrib/daemon/debian/control
--- /dev/null
@@ -0,0 +1,40 @@
+Source: gosa-si
+Section: utils
+Priority: optional
+Maintainer: Cajus Pollmeier <cajus@debian.org>
+Standards-Version: 3.7.2.2
+Build-Depends: debhelper(>= 4.2.32), dpatch
+
+Package: gosa-si-common
+Architecture: any
+Depends: libconfig-inifiles-perl, libcrypt-rijndael-perl, libxml-simple-perl, libipc-shareable-perl, libdata-dumper-simple-perl, libmime-perl
+Suggests: gosa-si-daemon, gosa-si-client
+Description: GOsa support infrastructure
+ This package provides common library functionality used by the
+ infrastructure server and client packages.
+ .
+ GOsa is a combination of system-administrator and end-user web
+ interface, designed to handle LDAP based setups.
+
+Package: gosa-si-daemon
+Architecture: any
+Depends: gosa-si-common
+Suggests: gosa
+Description: GOsa support infrastructure daemon
+ This package provides everything you need in order to deploy a simple
+ or distributed GOsa support infrastructure. It can be used to trigger
+ certain actions or retrieve information from clients.
+ .
+ GOsa is a combination of system-administrator and end-user web
+ interface, designed to handle LDAP based setups.
+
+Package: gosa-si-client
+Architecture: any
+Depends: gosa-si-common
+Suggests: gosa
+Description: GOsa support infrastructure client
+ This package lets you join to a GOsa support infrastructure as a
+ client in order to provide information or to act on events.
+ .
+ GOsa is a combination of system-administrator and end-user web
+ interface, designed to handle LDAP based setups.
diff --git a/contrib/daemon/debian/copyright b/contrib/daemon/debian/copyright
--- /dev/null
@@ -0,0 +1,8 @@
+This package was debianized by Cajus Pollmeier
+<cajus@debian.org> on Mon, 25 Jun 2007 12:57:35 +0100.
+
+Copyright: GPL2
+
+This code is released under the terms of the GPLv2 license.
+
+See /usr/share/common-licenses/GPL-2 for the full license.
diff --git a/contrib/daemon/debian/default b/contrib/daemon/debian/default
--- /dev/null
@@ -0,0 +1,2 @@
+# /etc/default/gosa-si - configure the init script
+START_BUS=0
diff --git a/contrib/daemon/debian/gosa-si-client.dirs b/contrib/daemon/debian/gosa-si-client.dirs
--- /dev/null
@@ -0,0 +1,4 @@
+usr/share/ltsp/plugins/ltsp-build-client/common
+usr/share/ltsp/scripts
+usr/sbin
+etc/default
diff --git a/contrib/daemon/debian/gosa-si-client.install b/contrib/daemon/debian/gosa-si-client.install
--- /dev/null
@@ -0,0 +1,12 @@
+debian/goto etc/default
+build-goto-client usr/sbin
+plugins/001-ltsp-addon-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/020-ssh-pubkey-login usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-goto-ldap-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-sane-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/020-nx-client usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/010-goto-ldap-files usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/999-goto-ldap-final usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-snmp-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/030-late-packages-goto usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/000-goto-ldap-vars usr/share/ltsp/plugins/ltsp-build-client/common
diff --git a/contrib/daemon/debian/gosa-si-common.dirs b/contrib/daemon/debian/gosa-si-common.dirs
--- /dev/null
@@ -0,0 +1,4 @@
+usr/share/ltsp/plugins/ltsp-build-client/common
+usr/share/ltsp/scripts
+usr/sbin
+etc/default
diff --git a/contrib/daemon/debian/gosa-si-common.install b/contrib/daemon/debian/gosa-si-common.install
--- /dev/null
@@ -0,0 +1,12 @@
+debian/goto etc/default
+build-goto-client usr/sbin
+plugins/001-ltsp-addon-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/020-ssh-pubkey-login usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-goto-ldap-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-sane-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/020-nx-client usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/010-goto-ldap-files usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/999-goto-ldap-final usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-snmp-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/030-late-packages-goto usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/000-goto-ldap-vars usr/share/ltsp/plugins/ltsp-build-client/common
diff --git a/contrib/daemon/debian/gosa-si-daemon.dirs b/contrib/daemon/debian/gosa-si-daemon.dirs
--- /dev/null
@@ -0,0 +1,4 @@
+usr/share/ltsp/plugins/ltsp-build-client/common
+usr/share/ltsp/scripts
+usr/sbin
+etc/default
diff --git a/contrib/daemon/debian/gosa-si-daemon.init b/contrib/daemon/debian/gosa-si-daemon.init
--- /dev/null
@@ -0,0 +1,91 @@
+#!/bin/sh
+# Start/stop the GOsa support daemon infrastructure.
+#
+### BEGIN INIT INFO
+# Provides: gosa-sd
+# Required-Start: $syslog $time
+# Required-Stop: $syslog $time
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: GOsa message bus and server component
+# Description: gosa-sd establishes the communication between a couple of
+# GOsa hosting servers and optionally clients to do event
+# signaling for all communication partners.
+### END INIT INFO
+
+# Sanity checks
+test -f /usr/sbin/gosa-sd || exit 0
+test -f /usr/sbin/gosa-sd-bus || exit 0
+
+# Load defaults
+START_BUS=0
+[ -r /etc/default/gosa-si ] && . /etc/default/gosa-si
+
+# Load LSB support functions
+. /lib/lsb/init-functions
+
+
+start_bus() {
+ start-stop-daemon --start --quiet --pidfile /var/run/gosa-sd-bus.pid --name gosa-sd-bus --startas /usr/sbin/gosa-sd-bus
+}
+
+
+start_daemon() {
+ start-stop-daemon --start --quiet --pidfile /var/run/gosa-sd.pid --name gosa-sd --startas /usr/sbin/gosa-sd -- $1
+}
+
+
+stop_bus() {
+ start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/gosa-sd-bus.pid --name gosa-sd-bus
+}
+
+
+stop_daemon() {
+ start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/gosa-sd.pid --name gosa-sd
+}
+
+
+case "$1" in
+start) log_daemon_msg "Starting GOsa support infrastructure"
+ if [ "$START_BUS" == "1" ]; then
+ log_progress_msg "bus"
+ start_bus
+ log_progress_msg "daemon"
+ start_daemon
+ else
+ log_progress_msg "daemon"
+ start_daemon --no-bus
+ fi
+ log_end_msg $?
+ ;;
+stop) log_daemon_msg "Stopping GOsa support infrastructure"
+ if [ "$START_BUS" == "1" ]; then
+ log_progress_msg "daemon"
+ stop_daemon
+ log_progress_msg "bus"
+ stop_bus
+ else
+ log_progress_msg "daemon"
+ stop_daemon
+ fi
+ log_end_msg $?
+ ;;
+reload|force-reload|restart) log_daemon_msg "Restarting GOsa support infrastructure"
+ if [ "$START_BUS" == "1" ]; then
+ stop_daemon
+ stop_bus
+ start_bus
+ start_daemon --no-bus
+ log_progress_msg "done"
+ else
+ stop_daemon
+ start_daemon --no-bus
+ log_progress_msg "done"
+ fi
+ log_end_msg $?
+ ;;
+*) log_action_msg "Usage: /etc/init.d/gosa-sd {start|stop|restart|reload|force-reload}"
+ exit 2
+ ;;
+esac
+exit 0
diff --git a/contrib/daemon/debian/gosa-si-daemon.install b/contrib/daemon/debian/gosa-si-daemon.install
--- /dev/null
@@ -0,0 +1,12 @@
+debian/goto etc/default
+build-goto-client usr/sbin
+plugins/001-ltsp-addon-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/020-ssh-pubkey-login usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-goto-ldap-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-sane-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/020-nx-client usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/010-goto-ldap-files usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/999-goto-ldap-final usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/001-snmp-packages usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/030-late-packages-goto usr/share/ltsp/plugins/ltsp-build-client/common
+plugins/000-goto-ldap-vars usr/share/ltsp/plugins/ltsp-build-client/common
diff --git a/contrib/daemon/debian/rules b/contrib/daemon/debian/rules
--- /dev/null
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: patch
+ #********************************************************
+ #* Building ltsp-goto into a Debian/GNU Linux Package *
+ #* please stand by *
+ #********************************************************
+
+clean: clean-patched unpatch
+clean-patched:
+ dh_testdir
+ rm -f install-stamp
+ -rm -f debian/files
+ -rm -rf debian/tmp
+ -rm -f debian/substvars
+ dh_clean
+
+unpatch:
+ dpatch deapply-all
+ rm -rf patch-stamp debian/patched
+
+install: install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Create a copy, remove svn stuff
+ -mkdir debian/tmp
+ -for i in `ls | grep -v debian`; do \
+ cp -R $$i debian/tmp ; \
+ done
+ -find debian/tmp -name '*.svn' -type d -exec rm -rf {} \; 2> /dev/null
+
+ touch install-stamp
+
+patch: patch-stamp
+patch-stamp:
+ dpatch apply-all
+ dpatch cat-all >patch-stamp
+
+binary-indep: install
+ dh_testdir
+ dh_testroot
+
+ dh_install
+ dh_installdocs
+ dh_installcron
+ dh_installexamples
+ dh_installchangelogs
+ #dh_installdebconf
+ #dh_installcron -p goto-agents-printmanager
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_perl
+ dh_installdeb
+ dh_shlibdeps
+
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep
+.PHONY: build install clean binary-indep binary
+
+binary-arch:
+