--- fusioninventory-agent-2.2.0.orig/debian/init.d +++ fusioninventory-agent-2.2.0/debian/init.d @@ -0,0 +1,66 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: fusioninventory-agent +# Required-Start: $local_fs $remote_fs $network $syslog +# Required-Stop: $local_fs $remote_fs $network $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: starts FusionInventory Agent +# Description: starts FusionInventory Agent using start-stop-daemon +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/fusioninventory-agent +DAEMON_OPTS=-d +NAME=fusioninventory-agent +DESC=fusioninventory-agent + +test -x $DAEMON || exit 0 + +# Include fusioninventory-_agent defaults if available +if [ -f /etc/default/fusioninventory-agent ] ; then + . /etc/default/fusioninventory-agent +fi + +. /lib/lsb/init-functions + + +if [ ! "$MODE" = "daemon" ]; then + echo "Daemon mode disabled in /etc/default/fusioninventory-agent" + exit 0 +fi + + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON -- $DAEMON_OPTS || true + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --exec /usr/bin/perl || true + echo "$NAME." + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON || true + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true + echo "$NAME." + ;; + status) + status_of_proc -p /var/run/$NAME.pid "$DAEMON" fusioninventory-agent && exit 0 || exit $? + ;; + *) + echo "Usage: $NAME {start|stop|restart|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- fusioninventory-agent-2.2.0.orig/debian/fusioninventory-agent.install +++ fusioninventory-agent-2.2.0/debian/fusioninventory-agent.install @@ -0,0 +1,2 @@ +etc/agent.cfg etc/fusioninventory +debian/default/fusioninventory-agent etc/default --- fusioninventory-agent-2.2.0.orig/debian/compat +++ fusioninventory-agent-2.2.0/debian/compat @@ -0,0 +1 @@ +7 --- fusioninventory-agent-2.2.0.orig/debian/control +++ fusioninventory-agent-2.2.0/debian/control @@ -0,0 +1,41 @@ +Source: fusioninventory-agent +Section: net +Priority: extra +Maintainer: Gonéri Le Bouder +Build-Depends: debhelper (>= 7.0.50~), + libnet-ip-perl, libwww-perl, quilt, + libnet-ssleay-perl, perl, + libuniversal-require-perl, libtest-compile-perl, + libtest-exception-perl, libhttp-server-simple-perl, + libfile-which-perl, libxml-treepp-perl, libyaml-perl, + libipc-run-perl, libhttp-proxy-perl, libtext-template-perl, + libjson-perl, libio-capture-perl, + libtest-simple-perl, libtest-mockmodule-perl, +# libcompress-zlib-perl, +# LWP6 + libhttp-server-simple-authen-perl, libhttp-server-simple-authen-perl, + libhttp-daemon-perl +Standards-Version: 3.9.3 +Homepage: http://fusioninventory.org/ +Vcs-Browser: http://git.debian.org/?p=users/goneri/fusioninventory-agent.git;a=summary +Vcs-Git: git://git.debian.org/users/goneri/fusioninventory-agent.git + +Package: fusioninventory-agent +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, + ucf, libnet-ip-perl, libwww-perl, libnet-ssleay-perl, + libproc-daemon-perl, dmidecode [amd64 i386 ia64 kfreebsd-amd64 kfreebsd-i386], + libuniversal-require-perl, libproc-pid-file-perl, hdparm, + libfile-which-perl, libxml-treepp-perl, libyaml-perl, libtext-template-perl, + libjson-perl, pciutils, +# libcompress-zlib-perl, +# LWP 6 + libhttp-daemon-perl, +Suggests: smartmontools, read-edid +Description: Hardware and software inventory tool (client) + FusionInventory Agent is an application designed to help a network + or system administrator to keep track of the hardware and software + configurations of computers that are installed on the network. + This agent can send information about the computer to a OCS Inventory + or GLPI server with the FusionInventory for GLPI plugin. + --- fusioninventory-agent-2.2.0.orig/debian/watch +++ fusioninventory-agent-2.2.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/FusionInventory-Agent/ .*/FusionInventory-Agent-([[:digit:]].*)\.tar\.gz --- fusioninventory-agent-2.2.0.orig/debian/fusioninventory-agent.docs +++ fusioninventory-agent-2.2.0/debian/fusioninventory-agent.docs @@ -0,0 +1,2 @@ +README +etc/agent.cfg --- fusioninventory-agent-2.2.0.orig/debian/changelog +++ fusioninventory-agent-2.2.0/debian/changelog @@ -0,0 +1,224 @@ +fusioninventory-agent (2.2.0-1~precise1~ppa1) precise; urgency=low + + * No-change backport to precise + + -- Micah Gersten Sun, 15 Apr 2012 05:48:00 -0500 + +fusioninventory-agent (2.2.0-1) unstable; urgency=low + + * New upstream release + * Bump Standards-Version + * new build-dep: libtest-mockmodule-perl + * use pciutils pci.ids file + add pciutils-pciids.diff + * disable t/inventory/generic/lspci/controllers.t + http://forge.fusioninventory.org/issues/1548 + + -- Gonéri Le Bouder Sun, 08 Apr 2012 21:20:18 +0200 + +fusioninventory-agent (2.1.9904-1) experimental; urgency=low + + * New upstream beta release + - refresh the debian/rules to pass the location dir parameters + and so drop debian/patches/etc-location.diff + - just comment libcompress-zlib-perl dependency to be able to + turn it back for backport + + -- Gonéri Le Bouder Fri, 13 Jan 2012 10:48:28 +0100 + +fusioninventory-agent (2.1.9902-1) experimental; urgency=low + + * New upstream beta release + + -- Gonéri Le Bouder Fri, 21 Oct 2011 17:51:50 +0200 + +fusioninventory-agent (2.1.9901-2) experimental; urgency=low + + * Restore the B-D, sorry + + -- Gonéri Le Bouder Tue, 20 Sep 2011 12:15:44 +0200 + +fusioninventory-agent (2.1.9901-1) experimental; urgency=low + + * New upstream beta release + * Drop the 2.1.x patches + - add etc-location.diff + * Refresh dependency + - drop nmap suggest, not used anymore + * use a debian/control + + -- Gonéri Le Bouder Thu, 08 Sep 2011 17:30:04 +0200 + +fusioninventory-agent (2.1.10-1) unstable; urgency=low + + * New upstream release + * Install a copy of agent.cfg in doc + Closes: #638413 + + -- Gonéri Le Bouder Tue, 06 Sep 2011 11:31:38 +0200 + +fusioninventory-agent (2.1.9-3) unstable; urgency=low + + * Remplace cfg.diff with fix-sharedir + * Really remove inactive upload + + -- Gonéri Le Bouder Thu, 30 Jun 2011 10:57:32 +0200 + +fusioninventory-agent (2.1.9-2) unstable; urgency=low + + * Fix the test-suite: + -add 0001-Fix-ignore-REST-build-in-the-test-suite.patch + * Remove inactive maintainer from the uploader + + -- Gonéri Le Bouder Tue, 21 Jun 2011 10:09:59 +0200 + +fusioninventory-agent (2.1.9-1) unstable; urgency=low + + * New upstream release + * Standard-Version: 3.9.2 + + -- Gonéri Le Bouder Tue, 14 Jun 2011 21:35:30 +0200 + +fusioninventory-agent (2.1.8-2) unstable; urgency=low + + * Add the dependency on libproc-pid-file-perl + * Add a B-D on libhttp-daemon-perl and a recommends on this dependency + Closes: #620414 + + -- Gonéri Le Bouder Fri, 08 Apr 2011 12:31:03 +0200 + +fusioninventory-agent (2.1.8-1) unstable; urgency=low + + * New upstream release + * Remove Benoit Mortier from Uploaders + + -- Gonéri Le Bouder Sun, 27 Mar 2011 14:52:46 +0200 + +fusioninventory-agent (2.1.8~rc1-1) experimental; urgency=low + + * New upstream release + + -- Gonéri Le Bouder Sun, 20 Mar 2011 14:43:24 +0100 + +fusioninventory-agent (2.1.7stable-2) experimental; urgency=low + + * Recommends hdparm + + -- Gonéri Le Bouder Thu, 13 Jan 2011 14:09:59 +0100 + +fusioninventory-agent (2.1.7stable-1) experimental; urgency=low + + * New upstream release + + -- Gonéri Le Bouder Sun, 12 Dec 2010 20:37:27 +0100 + +fusioninventory-agent (2.1.7beta1-1) experimental; urgency=low + + * New upstream release + * Remove fix-pod.diff + * Add BD: libtest-compile-perl + + -- Gonéri Le Bouder Fri, 19 Nov 2010 15:30:41 +0100 + +fusioninventory-agent (2.1.6-1) experimental; urgency=low + + * New upstream release + * add fix-pod.diff to fix a syntax error in fusioninventory-agent + + -- Gonéri Le Bouder Sun, 10 Oct 2010 00:59:51 +0200 + +fusioninventory-agent (2.1.5-1) experimental; urgency=low + + * New upstream release + * refresh debian/patches/cfg.diff + + -- Gonéri Le Bouder Thu, 16 Sep 2010 00:06:56 +0200 + +fusioninventory-agent (2.1.3-1) experimental; urgency=low + + * New upstream release + + -- Gonéri Le Bouder Wed, 01 Sep 2010 22:08:08 +0200 + +fusioninventory-agent (2.1.2-1) experimental; urgency=low + + * New upstream release + * remove debian-changes-2.1.1-1 + * Install README.html as documentation + + -- Gonéri Le Bouder Tue, 31 Aug 2010 00:06:49 +0200 + +fusioninventory-agent (2.1.1-1) experimental; urgency=low + + * New upstream release + * Remove pod.diff, merged upstream + + -- Gonéri Le Bouder Wed, 18 Aug 2010 21:55:04 +0200 + +fusioninventory-agent (2.1-1) experimental; urgency=low + + * New upstream release + * Upload in experimental because of the Squeeze freeze. + * Add dependency on libuniversal-require-perl + * Standard version 3.9.1 + * fix various minor POD error + * Use upstream agent.cfg + * Add fix-share-dir-loc.diff to fix share-dir loc + * Disable daemon mode in agent.cfg + + -- Gonéri Le Bouder Sun, 15 Aug 2010 23:13:13 +0200 + +fusioninventory-agent (2.0.6-2) unstable; urgency=low + + * Fix the init.d script so it can stop the service, thanks + David Hannequin + * Standard version 3.9.0 + * remove the set -e from the init.d script + + -- Gonéri Le Bouder Mon, 12 Jul 2010 15:26:47 +0200 + +fusioninventory-agent (2.0.6-1) unstable; urgency=low + + * New upstream release + + -- Gonéri Le Bouder Fri, 28 May 2010 16:24:54 +0200 + +fusioninventory-agent (2.0.5-2) unstable; urgency=low + + * Add an optional daemon mode + + -- Gonéri Le Bouder Tue, 18 May 2010 00:28:22 +0200 + +fusioninventory-agent (2.0.5-1) unstable; urgency=low + + * New upstream release + * Drop debian/patches/debian-changes-2.0.3-2 + + -- Gonéri Le Bouder Fri, 14 May 2010 02:29:27 +0200 + +fusioninventory-agent (2.0.3-2) unstable; urgency=low + + * control: drop two duplicated spaces in description, thank you Rhonda. + * remove debian/patches/debian-changes-2.0-1 + * changes Architecture: from all to any since dmidecode conditional + dependency is eval during build process, thanks Kibi :) + * remove tools/build-perl-tree.sh MANIFEST.SKIP from the git repository + * Create /etc/fusioninventory, thanks Fabrice Flore-Thebault + (Closes: #578400) + * drop the debconf menu and template + * install a template agent.cfg in /etc/fusioninventory + + -- Gonéri Le Bouder Thu, 22 Apr 2010 10:31:15 +0200 + +fusioninventory-agent (2.0.3-1) unstable; urgency=low + + * New upstream release + * Fix the Vcs-Git URL and add a Vcs-Browser link + + -- Gonéri Le Bouder Sun, 11 Apr 2010 00:19:27 +0200 + +fusioninventory-agent (2.0-1) unstable; urgency=low + + * Initial release (Closes: #570768) + + -- Gonéri Le Bouder Sat, 20 Mar 2010 23:34:03 +0100 --- fusioninventory-agent-2.2.0.orig/debian/fusioninventory-agent.cron.daily +++ fusioninventory-agent-2.2.0/debian/fusioninventory-agent.cron.daily @@ -0,0 +1,18 @@ +#!/bin/sh + +PROG=/usr/bin/fusioninventory-agent + +if [ -f /etc/default/fusioninventory-agent ] ; then + . /etc/default/fusioninventory-agent +fi + +if [ ! -x "$PROG" ]; then + exit 0 +fi + +if [ ! "$MODE" = "cron" ]; then + exit 0 +fi + +$PROG > /dev/null 2>&1 + --- fusioninventory-agent-2.2.0.orig/debian/copyright +++ fusioninventory-agent-2.2.0/debian/copyright @@ -0,0 +1,44 @@ +It was downloaded from http://search.cpan.org/dist/FusionInventory-Agent/ + +Upstream maintainer: Gonéri Le Bouder + +Copyright 2006-2010 OCS Inventory contributors +Copyright 2010 FusionInventory Team +Copyright 2005 Mandriva +Copyright 2007 Gonéri Le Bouder +Copyright 2008 Jean Parpaillon + + +License: + +lib/FusionInventory/Agent/Task/Inventory/OS/Generic/Screen.pm +and memconf are released under this license: + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + +The rest of the files are released under this license: + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +The Debian packaging is Copyright (C) 2007-2010,Pierre Chifflier, + Benoit Mortier and Gonéri Le Bouder and is licensed under the +GPLv2, see `/usr/share/common-licenses/GPL-2'. + --- fusioninventory-agent-2.2.0.orig/debian/README.source +++ fusioninventory-agent-2.2.0/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- fusioninventory-agent-2.2.0.orig/debian/fusioninventory-agent.postrm +++ fusioninventory-agent-2.2.0/debian/fusioninventory-agent.postrm @@ -0,0 +1,44 @@ +#!/bin/sh +# postrm script for fusioninventory-agent +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + ucf --purge /etc/fusioninventory/agent.cfg + rm -rf /var/lib/fusioninventory-agent + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm 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 + + --- fusioninventory-agent-2.2.0.orig/debian/fusioninventory-agent.dirs +++ fusioninventory-agent-2.2.0/debian/fusioninventory-agent.dirs @@ -0,0 +1,2 @@ +var/lib/fusioninventory-agent +etc/fusioninventory --- fusioninventory-agent-2.2.0.orig/debian/rules +++ fusioninventory-agent-2.2.0/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +BACKPORT = no + +%: + dh $@ --with quilt + +override_dh_auto_configure: + perl Makefile.PL PREFIX=/usr SYSCONFDIR=/etc/fusioninventory LOCALSTATEDIR=/var/lib/fusioninventory-agent + +override_dh_auto_install: + dh_auto_install + rm ./debian/fusioninventory-agent/usr/share/fusioninventory/pci.ids + +override_dh_auto_clean: + [ ! -d var ] || rm -r var + [ ! -d blib ] || rm -r blib + [ ! -f fusioninventory-agent.1.html ] || rm fusioninventory-agent.1.html + [ ! -f pod2htmd.tmp ] || rm pod2htmd.tmp + [ ! -f pod2htmi.tmp ] || rm pod2htmi.tmp + [ ! -f Makefile ] || rm Makefile + [ ! -f MYMETA.yml ] || rm MYMETA.yml + [ ! -f MYMETA.json ] || rm MYMETA.json + [ ! -f t/inventory/generic/lspci/controllers.t ] || rm t/inventory/generic/lspci/controllers.t +ifeq ($(BACKPORT),yes) + [ ! -f t/components/client/ocs/response.t ] || rm t/components/client/ocs/response.t + [ ! -f t/components/client/connection.t ] || rm t/components/client/connection.t + [ ! -f t/components/logger.t ] || rm t/components/logger.t + [ ! -f t/xml/response.t ] || rm t/xml/response.t +# HTTP::Server::Simple::Authen is missing + [ ! -f t/components/client/ssl.t ] || rm t/components/client/ssl.t +endif + dh_clean --- fusioninventory-agent-2.2.0.orig/debian/source/format +++ fusioninventory-agent-2.2.0/debian/source/format @@ -0,0 +1 @@ +1.0 --- fusioninventory-agent-2.2.0.orig/debian/patches/series +++ fusioninventory-agent-2.2.0/debian/patches/series @@ -0,0 +1 @@ +pciutils-pciids.diff --- fusioninventory-agent-2.2.0.orig/debian/patches/pciutils-pciids.diff +++ fusioninventory-agent-2.2.0/debian/patches/pciutils-pciids.diff @@ -0,0 +1,13 @@ +Index: fusioninventory-agent/lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Lspci/Controllers.pm +=================================================================== +--- fusioninventory-agent.orig/lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Lspci/Controllers.pm 2011-12-06 14:07:35.210214226 +0100 ++++ fusioninventory-agent/lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Lspci/Controllers.pm 2012-04-08 21:56:57.139985804 +0200 +@@ -95,7 +95,7 @@ + my (%params) = @_; + + my $handle = getFileHandle( +- file => "$params{datadir}/pci.ids", ++ file => "/usr/share/misc/pci.ids", + logger => $params{logger} + ); + return unless $handle; --- fusioninventory-agent-2.2.0.orig/debian/tools/gen-ppa.sh +++ fusioninventory-agent-2.2.0/debian/tools/gen-ppa.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +VERSION=`dpkg-parsechangelog | awk '/Version/ {print $2}'` +UBUREV=1 + +echo $VERSION + +for dist in natty maverick lucid hardy; do + git checkout HEAD -- debian/changelog + dch --force-distribution -v $VERSION$dist$UBUREV -D $dist "Backport for $dist" + dpkg-buildpackage -S -D -sa -i.git + dput ppa ../fusioninventory-agent_$VERSION$dist${UBUREV}_source.changes +done --- fusioninventory-agent-2.2.0.orig/debian/default/fusioninventory-agent +++ fusioninventory-agent-2.2.0/debian/default/fusioninventory-agent @@ -0,0 +1,6 @@ +# FusionInventory Agent Options +# +# MODE can be either "daemon" or "cron" +MODE=cron +# You need to set the server in +# /etc/fusioninventory/agent.cfg