debian/0000775000000000000000000000000012315771517007201 5ustar debian/control0000664000000000000000000000167712315771363010616 0ustar Source: glances Section: utils Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Geoffroy Youri Berret Build-Depends: debhelper (>= 9), python, python-setuptools (>= 0.6), dh-python, python-psutil (>=1.1.0) Standards-Version: 3.9.5.0 X-Python-Version: >= 2.6 Vcs-Git: git://git.kaliko.me/glances.git Vcs-browser: http://git.kaliko.me/?p=glances.git Homepage: http://nicolargo.github.com/glances/ Package: glances Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-psutil (>=1.1.0), python-pkg-resources, adduser, lsb-base Recommends: python-jinja2 (>=2.0) Description: CLI curses based monitoring tool Glances is a CLI curses based monitoring tool for GNU/Linux or BSD OS. Glances uses the PsUtil library to get information from your system. . It monitors CPU, load, memory, network bandwidth, disk I/O, disk use, process. debian/copyright0000664000000000000000000000225112107254015011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: glances Source: https://github.com/nicolargo/glances Files: * Copyright: 2012, 2013 Nicolas Hennion (aka) Nicolargo License: LGPL-3.0+ Files: debian/* Copyright: 2012, 2013 Geoffroy Youri Berret 2012 Arnaud License: LGPL-3.0+ License: LGPL-3.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-3". debian/changelog0000664000000000000000000000350312315771362011052 0ustar glances (1.7.3-2ubuntu1) trusty; urgency=medium * Fixed executable issue (LP: #1275579) * Add missing dependency python-pkg-resources (Closes: #742291) -- Geoffroy Youri Berret Sat, 22 Mar 2014 19:17:15 +0100 glances (1.7.3-2) unstable; urgency=medium * Overriding test (closes: #733168) -- Geoffroy Youri Berret Sat, 28 Dec 2013 20:16:02 +0100 glances (1.7.3-1) unstable; urgency=low * Add init scrip to start Glances server * Imported Upstream version 1.7.3 (closes: #729393) * Depends on python-psutil >= 1.1.0 * Build depends on python-psutil * Fixed files location with latest release * dh-python conversion * Bumped Standards-Version to 3.9.5.0 (no changes) -- Geoffroy Youri Berret Fri, 01 Nov 2013 16:01:03 +0100 glances (1.6-1) unstable; urgency=low * Imported Upstream version 1.6 * Removed useless install files * Dropped patches included upstream * New conf file in /etc/glances/glances.conf -- Geoffroy Youri Berret Sun, 27 Jan 2013 18:43:42 +0100 glances (1.5.1-1) unstable; urgency=low * Fixed watch file * Imported Upstream version 1.5.1 * Drop override_dh_install, filename fixed upstream * Cherry-picked patch to fix HMTL,CVS output * Fixed default HTML template location Use shell wrapper instead of symbolic link. -- Geoffroy Youri Berret Sun, 11 Nov 2012 12:05:38 +0100 glances (1.4.2.1-1) unstable; urgency=low * Imported Upstream version 1.4.2.1 * Removed man page patch (fixed upstream) * Bumped Standards-Version to 3.9.4.0 -- Geoffroy Youri Berret Sun, 23 Sep 2012 11:45:01 +0200 glances (1.4.1.1-1) unstable; urgency=low * Initial package (closes: #654888). -- Geoffroy Youri Berret Mon, 17 Sep 2012 17:27:25 +0200 debian/rules0000775000000000000000000000116212262323172010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 --buildsystem=pybuild override_dh_clean: rm -rf ./Glances.egg-info dh_clean # Overriding test to prevent FTBS (cf. #733168) # http://bugs.debian.org/733168 override_dh_auto_test: override_dh_installdocs: dh_installdocs rm -f debian/glances/usr/share/doc/glances/COPYING rm -f debian/glances/usr/share/doc/glances/AUTHORS rm -f debian/glances/usr/share/doc/glances/NEWS rm -rf debian/glances/usr/share/doc/glances/glances.conf override_dh_installchangelogs: dh_installchangelogs NEWS debian/glances.init0000664000000000000000000000630112244442515011474 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: glances # Required-Start: $remote_fs $local_fs $network # Required-Stop: $remote_fs $local_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts and daemonize Glances server # Description: Starts and daemonize Glances server ### END INIT INFO # Author: Geoffroy Youri Berret # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Glances server" NAME=glances USER=$NAME DAEMON="/usr/bin/$NAME" PIDFILE="/run/$NAME/$NAME.pid" CONF="/etc/glances/glances.conf" DAEMON_ARGS="-C $CONF -s" # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # Ensure /run/glances is there, cf. Debian policy 9.4.1 # http://www.debian.org/doc/debian-policy/ch-opersys.html#s-fhs-run if [ ! -d "$(dirname $PIDFILE)" ]; then mkdir "$(dirname $PIDFILE)" chown $USER:$USER "$(dirname $PIDFILE)" chmod 755 "$(dirname $PIDFILE)" fi # # Function that starts the daemon/service # do_start() { log_daemon_msg "Starting $DESC" "$NAME " # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started [ -e $PIDFILE ] && PID=$(cat "$PIDFILE") if ( [ -e $PIDFILE ] && ps -p $PID 1>&2 > /dev/null ) then log_action_end_msg 1 "already running, PID's $PID" exit 0 elif ( [ -w $PIDFILE ] ) then log_warning_msg "PID file found while ${NAME} is not running, removing file." rm $PIDFILE fi if [ "$RUN" != "true" ]; then log_action_msg "Not starting glances: disabled by /etc/default/$NAME". exit 0 fi start-stop-daemon --start --chuid $USER --pidfile=$PIDFILE --quiet -m -b --exec $DAEMON -- $DAEMON_ARGS || return 2 [ -e "$PIDFILE" ] && chown $USER $PIDFILE return 0 } # # Function that stops the daemon/service # do_stop() { log_daemon_msg "Stopping $DESC" "$NAME " if [ ! -w $PIDFILE ] then log_warning_msg "PID file not found" return 4 fi start-stop-daemon --stop --oknodo --chuid $USER --pidfile=$PID --user=$USER --pidfile="$PIDFILE" --retry=30 || return 1 /bin/rm -f $PIDFILE return 0 } case "$1" in start) do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) do_stop case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; esac ;; status) status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" ;; restart|force-reload) do_stop case "$?" in 0) log_end_msg 0 do_start case "$?" in 0) log_end_msg 0 ;; *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: invoke-rc.d $NAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac debian/source/0000775000000000000000000000000012026422545010472 5ustar debian/source/format0000664000000000000000000000001412026355163011701 0ustar 3.0 (quilt) debian/install0000664000000000000000000000005412315771320010561 0ustar conf/glances.conf etc/glances/ debian/watch0000664000000000000000000000034512057175214010227 0ustar version=3 opts=filenamemangle=s/^.*v([\d\.]+)\.tar\.gz$/glances-$1.tar.gz/ \ http://github.com/nicolargo/glances/tags .*/v(\d.*)\.(?:tgz|tbz2|tar\.(?:gz|bz2|xz)) # Bart Martens Fri, 23 Nov 2012 08:14:32 +0000 debian/manpages0000664000000000000000000000001712262323172010704 0ustar man/glances.1 debian/examples0000664000000000000000000000002212262323172010723 0ustar conf/glances.conf debian/compat0000664000000000000000000000000212026355163010371 0ustar 9 debian/glances.default0000664000000000000000000000020612244442515012153 0ustar # Default is to launch glances with '-s' option. #DAEMON_ARGS="-s" # Change to 'true' to have glances running at startup RUN="false" debian/README.Debian0000664000000000000000000000053212262323172011231 0ustar HTML Output: To have a nice web page with proper style and images you need to provide access to them. For instance: mkdir /tmp/glances cd /tmp/glances for dir in css img html; do ln -sf /usr/share/pyshared/glances/data/$dir;done glances -o html -f /tmp/glances -- Geoffroy Youri Berret Sun, 27 Jan 2013 18:10:13 +0100 debian/glances.postinst0000664000000000000000000000247212244442515012421 0ustar #!/bin/sh # postinst script for glances # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package do_adduser () { # add group if ! getent group glances >/dev/null ; then addgroup --quiet --system glances fi # add user if ! getent passwd glances >/dev/null; then echo -n "Creating system user 'glances'" adduser --quiet --ingroup glances --system --no-create-home --home /var/lib/glances glances && echo "." fi } case "$1" in configure) do_adduser ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0