View | Details | Raw Unified | Return to bug 21975
Collapse All | Expand All

(-)debian/control (-1 / +1 lines)
 Lines 6-12    Link Here 
6
6
7
Package: univention-showload
7
Package: univention-showload
8
Architecture: all
8
Architecture: all
9
Depends: bc, httpd
9
Depends: httpd
10
Description: UCS - load balancing server
10
Description: UCS - load balancing server
11
 This package contain the UCS load balancing server.
11
 This package contain the UCS load balancing server.
12
 .
12
 .
(-)debian/preinst (-73 lines)
 Lines 1-73    Link Here 
1
#! /bin/sh
2
#
3
# Univention Showload
4
#  preinst script
5
#
6
# Copyright 2004-2010 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
#
33
# see: dh_installdeb(1)
34
35
set -e
36
37
# summary of how this script can be called:
38
#        * <new-preinst> `install'
39
#        * <new-preinst> `install' <old-version>
40
#        * <new-preinst> `upgrade' <old-version>
41
#        * <old-preinst> `abort-upgrade' <new-version>
42
#
43
# for details, see http://www.debian.org/doc/debian-policy/ or
44
# the debian-policy package
45
46
47
case "$1" in
48
    install|upgrade)
49
#        if [ "$1" = "upgrade" ]
50
#        then
51
#            start-stop-daemon --stop --quiet --oknodo  \
52
#                --pidfile /var/run/univention-showload.pid  \
53
#                --exec /usr/sbin/univention-showload 2>/dev/null || true
54
#        fi
55
    ;;
56
57
    abort-upgrade)
58
    ;;
59
60
    *)
61
        echo "preinst called with unknown argument \`$1'" >&2
62
        exit 1
63
    ;;
64
esac
65
66
# dh_installdeb will replace this with shell code automatically
67
# generated by other debhelper scripts.
68
69
#DEBHELPER#
70
71
exit 0
72
73
(-)debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-showload (4.0.1-1) unstable; urgency=low
2
3
  * Rewrite CGI-script.
4
5
 -- Philipp Hahn <hahn@univention.de>  Thu, 24 Mar 2011 10:58:56 +0100
6
1
univention-showload (4.0.0-2) unstable; urgency=low
7
univention-showload (4.0.0-2) unstable; urgency=low
2
8
3
  * added GNU APGL V3 header (Bug #9620)
9
  * added GNU APGL V3 header (Bug #9620)
(-)debian/conffiles (-1 lines)
Line 1    Link Here 
1
(-)debian/docs (-1 lines)
Line 1    Link Here 
1
(-)debian/rules (-20 / +2 lines)
 Lines 30-55    Link Here 
30
# /usr/share/common-licenses/AGPL-3; if not, see
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
build:
33
34
34
configure: configure-stamp
35
configure-stamp:
36
	dh_testdir
37
38
	touch configure-stamp
39
40
41
build: build-stamp
42
43
build-stamp: configure-stamp
44
	dh_testdir
45
46
	touch build-stamp
47
48
clean:
35
clean:
49
	dh_testdir
36
	dh_testdir
50
	dh_testroot
51
	rm -f build-stamp configure-stamp
52
53
	dh_clean
37
	dh_clean
54
38
55
install: build
39
install: build
 Lines 57-66    Link Here 
57
	dh_testroot
41
	dh_testroot
58
	dh_clean -k
42
	dh_clean -k
59
	dh_installdirs
43
	dh_installdirs
60
61
	cp univention-showload.cgi $(CURDIR)/debian/univention-showload/usr/lib/cgi-bin
44
	cp univention-showload.cgi $(CURDIR)/debian/univention-showload/usr/lib/cgi-bin
62
45
63
64
# Build architecture-independent files here.
46
# Build architecture-independent files here.
65
binary-indep: build install
47
binary-indep: build install
66
48
 Lines 76-79    Link Here 
76
	dh_builddeb
58
	dh_builddeb
77
59
78
binary: binary-indep binary-arch
60
binary: binary-indep binary-arch
79
.PHONY: build clean binary-indep binary-arch binary install configure
61
.PHONY: build clean binary-indep binary-arch binary install
(-)univention-showload.cgi (-6 / +2 lines)
 Lines 1-4    Link Here 
1
#!/bin/bash
1
#!/bin/sh
2
# Univention Showload
2
# Univention Showload
3
#  showload cgi script
3
#  showload cgi script
4
#
4
#
 Lines 29-36    Link Here 
29
# /usr/share/common-licenses/AGPL-3; if not, see
29
# /usr/share/common-licenses/AGPL-3; if not, see
30
# <http://www.gnu.org/licenses/>.
30
# <http://www.gnu.org/licenses/>.
31
31
32
loadavg="`echo \`cat /proc/loadavg |awk '{print $3}'\`*100 | bc | cut -f1 -d"."`"
32
LC_ALL=C exec awk '{printf "Content-Type: text/plain\n\nLOAD:%d\n", $3*100}' /proc/loadavg
33
34
echo "Content-type: text/html"; echo
35
echo "LOAD:$loadavg"
36

Return to bug 21975