--- ocsinventory-client-1.0.debian.orig/Ocsinventory/ocsinventory-client.pl
+++ ocsinventory-client-1.0.debian/Ocsinventory/ocsinventory-client.pl
@@ -110,7 +110,7 @@
 }
 
 #Get last inventory state
-my $last_state = XML::Simple::XMLin($install_path."/last_state", SuppressEmpty => undef, ForceArray => ['hardware', 'inputs', 'controllers', 'memories', 'monitors', 'ports', 'softwares', 'storages', 'drives', 'inputs', 'modems', 'networks', 'printers', 'slots', 'sounds', 'videos', 'bios' ] ) if -r "$install_path/last_state";
+my $last_state = XML::Simple::XMLin("/var/state/ocs_last_state", SuppressEmpty => undef, ForceArray => ['hardware', 'inputs', 'controllers', 'memories', 'monitors', 'ports', 'softwares', 'storages', 'drives', 'inputs', 'modems', 'networks', 'printers', 'slots', 'sounds', 'videos', 'bios' ] ) if -r "/var/state/ocs_last_state";
 #If data are not available
 my %last_state;
 
@@ -1210,7 +1210,7 @@
 sub _save_checksums{
 	$last_state = \%last_state unless $last_state;
 	my $string = XML::Simple::XMLout( $last_state, RootName => 'LAST_STATE' );
-	open LAST_STATE, ">$install_path/last_state" or warn "Cannot save the checksum values (will be synchronized by GLPI!!): $!\n";
+	open LAST_STATE, ">/var/state/ocs_last_state" or warn "Cannot save the checksum values (will be synchronized by GLPI!!): $!\n";
 	print LAST_STATE $string;
 	close LAST_STATE;
 	my $base = $request{'CONTENT'}{'HARDWARE'};
--- ocsinventory-client-1.0.debian.orig/Ocsinventory/Makefile.old
+++ ocsinventory-client-1.0.debian/Ocsinventory/Makefile.old
@@ -0,0 +1,750 @@
+# This Makefile is for the Ocsinventory::Agent extension to perl.
+#
+# It was generated automatically by MakeMaker version
+# 6.17 (Revision: 1.133) from the contents of
+# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
+#
+#       ANY CHANGES MADE HERE WILL BE LOST!
+#
+#   MakeMaker ARGV: (q[INSTALLDIRS=vendor])
+#
+#   MakeMaker Parameters:
+
+#     AUTHOR => q[Pascal DANEK <hunal@users.sourceforge.net>]
+#     EXE_FILES => [q[ocsinventory-client.pl]]
+#     INSTALLSCRIPT => q[/usr/sbin]
+#     INSTALLSITESCRIPT => q[/usr/sbin]
+#     NAME => q[Ocsinventory::Agent]
+#     PREREQ_PM => { Net::SSLeay=>q[1.25], Compress::Zlib=>q[1.33], Digest::MD5=>q[2.33], Net::IP=>q[1.21], XML::Simple=>q[2.12], LWP=>q[5.8] }
+#     VERSION_FROM => q[Agent.pm]
+
+# --- MakeMaker post_initialize section:
+
+
+# --- MakeMaker const_config section:
+
+# These definitions are from config.sh (via /usr/lib/perl/5.8/Config.pm)
+
+# They may have been overridden via Makefile.PL or on the command line
+AR = ar
+CC = cc
+CCCDLFLAGS = -fPIC
+CCDLFLAGS = -Wl,-E
+DLEXT = so
+DLSRC = dl_dlopen.xs
+LD = cc
+LDDLFLAGS = -shared -L/usr/local/lib
+LDFLAGS =  -L/usr/local/lib
+LIBC = /lib/libc-2.3.2.so
+LIB_EXT = .a
+OBJ_EXT = .o
+OSNAME = linux
+OSVERS = 2.6.15.6
+RANLIB = :
+SITELIBEXP = /usr/local/share/perl/5.8.4
+SITEARCHEXP = /usr/local/lib/perl/5.8.4
+SO = so
+EXE_EXT = 
+FULL_AR = /usr/bin/ar
+VENDORARCHEXP = /usr/lib/perl5
+VENDORLIBEXP = /usr/share/perl5
+
+
+# --- MakeMaker constants section:
+AR_STATIC_ARGS = cr
+DIRFILESEP = /
+NAME = Ocsinventory::Agent
+NAME_SYM = Ocsinventory_Agent
+VERSION = 15
+VERSION_MACRO = VERSION
+VERSION_SYM = 15
+DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
+XS_VERSION = 15
+XS_VERSION_MACRO = XS_VERSION
+XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
+INST_ARCHLIB = blib/arch
+INST_SCRIPT = blib/script
+INST_BIN = blib/bin
+INST_LIB = blib/lib
+INST_MAN1DIR = blib/man1
+INST_MAN3DIR = blib/man3
+MAN1EXT = 1p
+MAN3EXT = 3pm
+INSTALLDIRS = vendor
+DESTDIR = 
+PREFIX = /usr
+PERLPREFIX = $(PREFIX)
+SITEPREFIX = $(PREFIX)/local
+VENDORPREFIX = $(PREFIX)
+INSTALLPRIVLIB = $(PERLPREFIX)/share/perl/5.8
+DESTINSTALLPRIVLIB = $(DESTDIR)$(INSTALLPRIVLIB)
+INSTALLSITELIB = $(SITEPREFIX)/share/perl/5.8.4
+DESTINSTALLSITELIB = $(DESTDIR)$(INSTALLSITELIB)
+INSTALLVENDORLIB = $(VENDORPREFIX)/share/perl5
+DESTINSTALLVENDORLIB = $(DESTDIR)$(INSTALLVENDORLIB)
+INSTALLARCHLIB = $(PERLPREFIX)/lib/perl/5.8
+DESTINSTALLARCHLIB = $(DESTDIR)$(INSTALLARCHLIB)
+INSTALLSITEARCH = $(SITEPREFIX)/lib/perl/5.8.4
+DESTINSTALLSITEARCH = $(DESTDIR)$(INSTALLSITEARCH)
+INSTALLVENDORARCH = $(VENDORPREFIX)/lib/perl5
+DESTINSTALLVENDORARCH = $(DESTDIR)$(INSTALLVENDORARCH)
+INSTALLBIN = $(PERLPREFIX)/bin
+DESTINSTALLBIN = $(DESTDIR)$(INSTALLBIN)
+INSTALLSITEBIN = $(SITEPREFIX)/bin
+DESTINSTALLSITEBIN = $(DESTDIR)$(INSTALLSITEBIN)
+INSTALLVENDORBIN = $(VENDORPREFIX)/bin
+DESTINSTALLVENDORBIN = $(DESTDIR)$(INSTALLVENDORBIN)
+INSTALLSCRIPT = /usr/sbin
+DESTINSTALLSCRIPT = $(DESTDIR)$(INSTALLSCRIPT)
+INSTALLMAN1DIR = $(PERLPREFIX)/share/man/man1
+DESTINSTALLMAN1DIR = $(DESTDIR)$(INSTALLMAN1DIR)
+INSTALLSITEMAN1DIR = $(SITEPREFIX)/man/man1
+DESTINSTALLSITEMAN1DIR = $(DESTDIR)$(INSTALLSITEMAN1DIR)
+INSTALLVENDORMAN1DIR = $(VENDORPREFIX)/share/man/man1
+DESTINSTALLVENDORMAN1DIR = $(DESTDIR)$(INSTALLVENDORMAN1DIR)
+INSTALLMAN3DIR = $(PERLPREFIX)/share/man/man3
+DESTINSTALLMAN3DIR = $(DESTDIR)$(INSTALLMAN3DIR)
+INSTALLSITEMAN3DIR = $(SITEPREFIX)/man/man3
+DESTINSTALLSITEMAN3DIR = $(DESTDIR)$(INSTALLSITEMAN3DIR)
+INSTALLVENDORMAN3DIR = $(VENDORPREFIX)/share/man/man3
+DESTINSTALLVENDORMAN3DIR = $(DESTDIR)$(INSTALLVENDORMAN3DIR)
+PERL_LIB = /usr/share/perl/5.8
+PERL_ARCHLIB = /usr/lib/perl/5.8
+LIBPERL_A = libperl.a
+FIRST_MAKEFILE = Makefile
+MAKEFILE_OLD = $(FIRST_MAKEFILE).old
+MAKE_APERL_FILE = $(FIRST_MAKEFILE).aperl
+PERLMAINCC = $(CC)
+PERL_INC = /usr/lib/perl/5.8/CORE
+PERL = /usr/bin/perl
+FULLPERL = /usr/bin/perl
+ABSPERL = $(PERL)
+PERLRUN = $(PERL)
+FULLPERLRUN = $(FULLPERL)
+ABSPERLRUN = $(ABSPERL)
+PERLRUNINST = $(PERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
+FULLPERLRUNINST = $(FULLPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
+ABSPERLRUNINST = $(ABSPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
+PERL_CORE = 0
+PERM_RW = 644
+PERM_RWX = 755
+
+MAKEMAKER   = /usr/share/perl/5.8/ExtUtils/MakeMaker.pm
+MM_VERSION  = 6.17
+MM_REVISION = 1.133
+
+# FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle).
+# BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle)
+# PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar)
+# DLBASE  = Basename part of dynamic library. May be just equal BASEEXT.
+FULLEXT = Ocsinventory/Agent
+BASEEXT = Agent
+PARENT_NAME = Ocsinventory
+DLBASE = $(BASEEXT)
+VERSION_FROM = Agent.pm
+OBJECT = 
+LDFROM = $(OBJECT)
+LINKTYPE = dynamic
+
+# Handy lists of source code files:
+XS_FILES = 
+C_FILES  = 
+O_FILES  = 
+H_FILES  = 
+MAN1PODS = 
+MAN3PODS = 
+
+# Where is the Config information that we are using/depend on
+CONFIGDEP = $(PERL_ARCHLIB)$(DIRFILESEP)Config.pm $(PERL_INC)$(DIRFILESEP)config.h
+
+# Where to build things
+INST_LIBDIR      = $(INST_LIB)/Ocsinventory
+INST_ARCHLIBDIR  = $(INST_ARCHLIB)/Ocsinventory
+
+INST_AUTODIR     = $(INST_LIB)/auto/$(FULLEXT)
+INST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT)
+
+INST_STATIC      = 
+INST_DYNAMIC     = 
+INST_BOOT        = 
+
+# Extra linker info
+EXPORT_LIST        = 
+PERL_ARCHIVE       = 
+PERL_ARCHIVE_AFTER = 
+
+
+TO_INST_PM = Agent.pm \
+	Agent/Common.pm \
+	Agent/Option/Download.pm \
+	Agent/Option/Ipdiscover.pm \
+	Agent/Option/Update.pm \
+	ocsinventory-client.pl
+
+PM_TO_BLIB = Agent.pm \
+	$(INST_LIB)/Ocsinventory/Agent.pm \
+	Agent/Option/Update.pm \
+	$(INST_LIB)/Ocsinventory/Agent/Option/Update.pm \
+	Agent/Option/Download.pm \
+	$(INST_LIB)/Ocsinventory/Agent/Option/Download.pm \
+	Agent/Common.pm \
+	$(INST_LIB)/Ocsinventory/Agent/Common.pm \
+	ocsinventory-client.pl \
+	$(INST_LIB)/Ocsinventory/ocsinventory-client.pl \
+	Agent/Option/Ipdiscover.pm \
+	$(INST_LIB)/Ocsinventory/Agent/Option/Ipdiscover.pm
+
+
+# --- MakeMaker platform_constants section:
+MM_Unix_VERSION = 1.42
+PERL_MALLOC_DEF = -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
+
+
+# --- MakeMaker tool_autosplit section:
+# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto
+AUTOSPLITFILE = $(PERLRUN)  -e 'use AutoSplit;  autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1)'
+
+
+
+# --- MakeMaker tool_xsubpp section:
+
+
+# --- MakeMaker tools_other section:
+SHELL = /bin/sh
+CHMOD = chmod
+CP = cp
+MV = mv
+NOOP = $(SHELL) -c true
+NOECHO = @
+RM_F = rm -f
+RM_RF = rm -rf
+TEST_F = test -f
+TOUCH = touch
+UMASK_NULL = umask 0
+DEV_NULL = > /dev/null 2>&1
+MKPATH = $(PERLRUN) "-MExtUtils::Command" -e mkpath
+EQUALIZE_TIMESTAMP = $(PERLRUN) "-MExtUtils::Command" -e eqtime
+ECHO = echo
+ECHO_N = echo -n
+UNINST = 0
+VERBINST = 0
+MOD_INSTALL = $(PERLRUN) -MExtUtils::Install -e 'install({@ARGV}, '\''$(VERBINST)'\'', 0, '\''$(UNINST)'\'');'
+DOC_INSTALL = $(PERLRUN) "-MExtUtils::Command::MM" -e perllocal_install
+UNINSTALL = $(PERLRUN) "-MExtUtils::Command::MM" -e uninstall
+WARN_IF_OLD_PACKLIST = $(PERLRUN) "-MExtUtils::Command::MM" -e warn_if_old_packlist
+
+
+# --- MakeMaker makemakerdflt section:
+makemakerdflt: all
+	$(NOECHO) $(NOOP)
+
+
+# --- MakeMaker dist section:
+TAR = tar
+TARFLAGS = cvf
+ZIP = zip
+ZIPFLAGS = -r
+COMPRESS = gzip --best
+SUFFIX = .gz
+SHAR = shar
+PREOP = $(NOECHO) $(NOOP)
+POSTOP = $(NOECHO) $(NOOP)
+TO_UNIX = $(NOECHO) $(NOOP)
+CI = ci -u
+RCS_LABEL = rcs -Nv$(VERSION_SYM): -q
+DIST_CP = best
+DIST_DEFAULT = tardist
+DISTNAME = Ocsinventory-Agent
+DISTVNAME = Ocsinventory-Agent-15
+
+
+# --- MakeMaker macro section:
+
+
+# --- MakeMaker depend section:
+
+
+# --- MakeMaker cflags section:
+
+
+# --- MakeMaker const_loadlibs section:
+
+
+# --- MakeMaker const_cccmd section:
+
+
+# --- MakeMaker post_constants section:
+
+
+# --- MakeMaker pasthru section:
+
+PASTHRU = LIB="$(LIB)"\
+	LIBPERL_A="$(LIBPERL_A)"\
+	LINKTYPE="$(LINKTYPE)"\
+	PREFIX="$(PREFIX)"\
+	OPTIMIZE="$(OPTIMIZE)"\
+	PASTHRU_DEFINE="$(PASTHRU_DEFINE)"\
+	PASTHRU_INC="$(PASTHRU_INC)"
+
+
+# --- MakeMaker special_targets section:
+.SUFFIXES: .xs .c .C .cpp .i .s .cxx .cc $(OBJ_EXT)
+
+.PHONY: all config static dynamic test linkext manifest
+
+
+
+# --- MakeMaker c_o section:
+
+
+# --- MakeMaker xs_c section:
+
+
+# --- MakeMaker xs_o section:
+
+
+# --- MakeMaker top_targets section:
+all :: pure_all manifypods
+	$(NOECHO) $(NOOP)
+
+
+pure_all :: config pm_to_blib subdirs linkext
+	$(NOECHO) $(NOOP)
+
+subdirs :: $(MYEXTLIB)
+	$(NOECHO) $(NOOP)
+
+config :: $(FIRST_MAKEFILE) $(INST_LIBDIR)$(DIRFILESEP).exists
+	$(NOECHO) $(NOOP)
+
+config :: $(INST_ARCHAUTODIR)$(DIRFILESEP).exists
+	$(NOECHO) $(NOOP)
+
+config :: $(INST_AUTODIR)$(DIRFILESEP).exists
+	$(NOECHO) $(NOOP)
+
+$(INST_AUTODIR)/.exists :: /usr/lib/perl/5.8/CORE/perl.h
+	$(NOECHO) $(MKPATH) $(INST_AUTODIR)
+	$(NOECHO) $(EQUALIZE_TIMESTAMP) /usr/lib/perl/5.8/CORE/perl.h $(INST_AUTODIR)/.exists
+
+	-$(NOECHO) $(CHMOD) $(PERM_RWX) $(INST_AUTODIR)
+
+$(INST_LIBDIR)/.exists :: /usr/lib/perl/5.8/CORE/perl.h
+	$(NOECHO) $(MKPATH) $(INST_LIBDIR)
+	$(NOECHO) $(EQUALIZE_TIMESTAMP) /usr/lib/perl/5.8/CORE/perl.h $(INST_LIBDIR)/.exists
+
+	-$(NOECHO) $(CHMOD) $(PERM_RWX) $(INST_LIBDIR)
+
+$(INST_ARCHAUTODIR)/.exists :: /usr/lib/perl/5.8/CORE/perl.h
+	$(NOECHO) $(MKPATH) $(INST_ARCHAUTODIR)
+	$(NOECHO) $(EQUALIZE_TIMESTAMP) /usr/lib/perl/5.8/CORE/perl.h $(INST_ARCHAUTODIR)/.exists
+
+	-$(NOECHO) $(CHMOD) $(PERM_RWX) $(INST_ARCHAUTODIR)
+
+help:
+	perldoc ExtUtils::MakeMaker
+
+
+# --- MakeMaker linkext section:
+
+linkext :: $(LINKTYPE)
+	$(NOECHO) $(NOOP)
+
+
+# --- MakeMaker dlsyms section:
+
+
+# --- MakeMaker dynamic section:
+
+dynamic :: $(FIRST_MAKEFILE) $(INST_DYNAMIC) $(INST_BOOT)
+	$(NOECHO) $(NOOP)
+
+
+# --- MakeMaker dynamic_bs section:
+
+BOOTSTRAP =
+
+
+# --- MakeMaker dynamic_lib section:
+
+
+# --- MakeMaker static section:
+
+## $(INST_PM) has been moved to the all: target.
+## It remains here for awhile to allow for old usage: "make static"
+static :: $(FIRST_MAKEFILE) $(INST_STATIC)
+	$(NOECHO) $(NOOP)
+
+
+# --- MakeMaker static_lib section:
+
+
+# --- MakeMaker manifypods section:
+
+POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--"
+POD2MAN = $(POD2MAN_EXE)
+
+
+manifypods : pure_all 
+	$(NOECHO) $(NOOP)
+
+
+
+
+# --- MakeMaker processPL section:
+
+
+# --- MakeMaker installbin section:
+
+$(INST_SCRIPT)/.exists :: /usr/lib/perl/5.8/CORE/perl.h
+	$(NOECHO) $(MKPATH) $(INST_SCRIPT)
+	$(NOECHO) $(EQUALIZE_TIMESTAMP) /usr/lib/perl/5.8/CORE/perl.h $(INST_SCRIPT)/.exists
+
+	-$(NOECHO) $(CHMOD) $(PERM_RWX) $(INST_SCRIPT)
+
+EXE_FILES = ocsinventory-client.pl
+
+FIXIN = $(PERLRUN) "-MExtUtils::MY" -e "MY->fixin(shift)"
+
+pure_all :: $(INST_SCRIPT)/ocsinventory-client.pl
+	$(NOECHO) $(NOOP)
+
+realclean ::
+	$(RM_F) $(INST_SCRIPT)/ocsinventory-client.pl
+
+$(INST_SCRIPT)/ocsinventory-client.pl: ocsinventory-client.pl $(FIRST_MAKEFILE) $(INST_SCRIPT)/.exists
+	$(NOECHO) $(RM_F) $(INST_SCRIPT)/ocsinventory-client.pl
+	$(CP) ocsinventory-client.pl $(INST_SCRIPT)/ocsinventory-client.pl
+	$(FIXIN) $(INST_SCRIPT)/ocsinventory-client.pl
+	-$(NOECHO) $(CHMOD) $(PERM_RWX) $(INST_SCRIPT)/ocsinventory-client.pl
+
+
+# --- MakeMaker subdirs section:
+
+# none
+
+# --- MakeMaker clean_subdirs section:
+clean_subdirs :
+	$(NOECHO) $(NOOP)
+
+
+# --- MakeMaker clean section:
+
+# Delete temporary files but do not touch installed files. We don't delete
+# the Makefile here so a later make realclean still has a makefile to use.
+
+clean :: clean_subdirs
+	-$(RM_RF) ./blib $(MAKE_APERL_FILE) $(INST_ARCHAUTODIR)/extralibs.all $(INST_ARCHAUTODIR)/extralibs.ld perlmain.c tmon.out mon.out so_locations pm_to_blib *$(OBJ_EXT) *$(LIB_EXT) perl.exe perl perl$(EXE_EXT) $(BOOTSTRAP) $(BASEEXT).bso $(BASEEXT).def lib$(BASEEXT).def $(BASEEXT).exp $(BASEEXT).x core core.*perl.*.? *perl.core core.[0-9] core.[0-9][0-9] core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9][0-9]
+	-$(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL)
+
+
+# --- MakeMaker realclean_subdirs section:
+realclean_subdirs :
+	$(NOECHO) $(NOOP)
+
+
+# --- MakeMaker realclean section:
+
+# Delete temporary files (via clean) and also delete installed files
+realclean purge ::  clean realclean_subdirs
+	$(RM_RF) $(INST_AUTODIR) $(INST_ARCHAUTODIR)
+	$(RM_RF) $(DISTVNAME)
+	$(RM_F)  $(INST_LIB)/Ocsinventory/ocsinventory-client.pl $(MAKEFILE_OLD) $(INST_LIB)/Ocsinventory/Agent/Common.pm $(INST_LIB)/Ocsinventory/Agent/Option/Ipdiscover.pm $(INST_LIB)/Ocsinventory/Agent.pm
+	$(RM_F) $(INST_LIB)/Ocsinventory/Agent/Option/Update.pm $(FIRST_MAKEFILE) $(INST_LIB)/Ocsinventory/Agent/Option/Download.pm
+
+
+# --- MakeMaker metafile section:
+metafile :
+	$(NOECHO) $(ECHO) '# http://module-build.sourceforge.net/META-spec.html' > META.yml
+	$(NOECHO) $(ECHO) '#XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#' >> META.yml
+	$(NOECHO) $(ECHO) 'name:         Ocsinventory-Agent' >> META.yml
+	$(NOECHO) $(ECHO) 'version:      15' >> META.yml
+	$(NOECHO) $(ECHO) 'version_from: Agent.pm' >> META.yml
+	$(NOECHO) $(ECHO) 'installdirs:  vendor' >> META.yml
+	$(NOECHO) $(ECHO) 'requires:' >> META.yml
+	$(NOECHO) $(ECHO) '    Compress::Zlib:                1.33' >> META.yml
+	$(NOECHO) $(ECHO) '    Digest::MD5:                   2.33' >> META.yml
+	$(NOECHO) $(ECHO) '    LWP:                           5.8' >> META.yml
+	$(NOECHO) $(ECHO) '    Net::IP:                       1.21' >> META.yml
+	$(NOECHO) $(ECHO) '    Net::SSLeay:                   1.25' >> META.yml
+	$(NOECHO) $(ECHO) '    XML::Simple:                   2.12' >> META.yml
+	$(NOECHO) $(ECHO) '' >> META.yml
+	$(NOECHO) $(ECHO) 'distribution_type: module' >> META.yml
+	$(NOECHO) $(ECHO) 'generated_by: ExtUtils::MakeMaker version 6.17' >> META.yml
+
+
+# --- MakeMaker metafile_addtomanifest section:
+metafile_addtomanifest:
+	$(NOECHO) $(PERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{META.yml} => q{Module meta-data (added by MakeMaker)}}) } ' \
+	-e '    or print "Could not add META.yml to MANIFEST: $${'\''@'\''}\n"'
+
+
+# --- MakeMaker dist_basics section:
+distclean :: realclean distcheck
+	$(NOECHO) $(NOOP)
+
+distcheck :
+	$(PERLRUN) "-MExtUtils::Manifest=fullcheck" -e fullcheck
+
+skipcheck :
+	$(PERLRUN) "-MExtUtils::Manifest=skipcheck" -e skipcheck
+
+manifest :
+	$(PERLRUN) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest
+
+veryclean : realclean
+	$(RM_F) *~ *.orig */*~ */*.orig
+
+
+
+# --- MakeMaker dist_core section:
+
+dist : $(DIST_DEFAULT) $(FIRST_MAKEFILE)
+	$(NOECHO) $(PERLRUN) -l -e 'print '\''Warning: Makefile possibly out of date with $(VERSION_FROM)'\''' \
+	-e '    if -e '\''$(VERSION_FROM)'\'' and -M '\''$(VERSION_FROM)'\'' < -M '\''$(FIRST_MAKEFILE)'\'';'
+
+tardist : $(DISTVNAME).tar$(SUFFIX)
+	$(NOECHO) $(NOOP)
+
+uutardist : $(DISTVNAME).tar$(SUFFIX)
+	uuencode $(DISTVNAME).tar$(SUFFIX) $(DISTVNAME).tar$(SUFFIX) > $(DISTVNAME).tar$(SUFFIX)_uu
+
+$(DISTVNAME).tar$(SUFFIX) : distdir
+	$(PREOP)
+	$(TO_UNIX)
+	$(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME)
+	$(RM_RF) $(DISTVNAME)
+	$(COMPRESS) $(DISTVNAME).tar
+	$(POSTOP)
+
+zipdist : $(DISTVNAME).zip
+	$(NOECHO) $(NOOP)
+
+$(DISTVNAME).zip : distdir
+	$(PREOP)
+	$(ZIP) $(ZIPFLAGS) $(DISTVNAME).zip $(DISTVNAME)
+	$(RM_RF) $(DISTVNAME)
+	$(POSTOP)
+
+shdist : distdir
+	$(PREOP)
+	$(SHAR) $(DISTVNAME) > $(DISTVNAME).shar
+	$(RM_RF) $(DISTVNAME)
+	$(POSTOP)
+
+
+# --- MakeMaker distdir section:
+distdir : metafile metafile_addtomanifest
+	$(RM_RF) $(DISTVNAME)
+	$(PERLRUN) "-MExtUtils::Manifest=manicopy,maniread" \
+		-e "manicopy(maniread(),'$(DISTVNAME)', '$(DIST_CP)');"
+
+
+
+# --- MakeMaker dist_test section:
+
+disttest : distdir
+	cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL
+	cd $(DISTVNAME) && $(MAKE) $(PASTHRU)
+	cd $(DISTVNAME) && $(MAKE) test $(PASTHRU)
+
+
+# --- MakeMaker dist_ci section:
+
+ci :
+	$(PERLRUN) "-MExtUtils::Manifest=maniread" \
+	  -e "@all = keys %{ maniread() };" \
+	  -e "print(qq{Executing $(CI) @all\n}); system(qq{$(CI) @all});" \
+	  -e "print(qq{Executing $(RCS_LABEL) ...\n}); system(qq{$(RCS_LABEL) @all});"
+
+
+# --- MakeMaker install section:
+
+install :: all pure_install doc_install
+
+install_perl :: all pure_perl_install doc_perl_install
+
+install_site :: all pure_site_install doc_site_install
+
+install_vendor :: all pure_vendor_install doc_vendor_install
+
+pure_install :: pure_$(INSTALLDIRS)_install
+
+doc_install :: doc_$(INSTALLDIRS)_install
+
+pure__install : pure_site_install
+	$(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
+
+doc__install : doc_site_install
+	$(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
+
+pure_perl_install ::
+	$(NOECHO) umask 022; $(MOD_INSTALL) \
+		$(INST_LIB) $(DESTINSTALLPRIVLIB) \
+		$(INST_ARCHLIB) $(DESTINSTALLARCHLIB) \
+		$(INST_BIN) $(DESTINSTALLBIN) \
+		$(INST_SCRIPT) $(DESTINSTALLSCRIPT) \
+		$(INST_MAN1DIR) $(DESTINSTALLMAN1DIR) \
+		$(INST_MAN3DIR) $(DESTINSTALLMAN3DIR)
+	$(NOECHO) $(WARN_IF_OLD_PACKLIST) \
+		$(SITEARCHEXP)/auto/$(FULLEXT)
+
+
+pure_site_install ::
+	$(NOECHO) umask 02; $(MOD_INSTALL) \
+		read $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist \
+		write $(DESTINSTALLSITEARCH)/auto/$(FULLEXT)/.packlist \
+		$(INST_LIB) $(DESTINSTALLSITELIB) \
+		$(INST_ARCHLIB) $(DESTINSTALLSITEARCH) \
+		$(INST_BIN) $(DESTINSTALLSITEBIN) \
+		$(INST_SCRIPT) $(DESTINSTALLSCRIPT) \
+		$(INST_MAN1DIR) $(DESTINSTALLSITEMAN1DIR) \
+		$(INST_MAN3DIR) $(DESTINSTALLSITEMAN3DIR)
+	$(NOECHO) $(WARN_IF_OLD_PACKLIST) \
+		$(PERL_ARCHLIB)/auto/$(FULLEXT)
+
+pure_vendor_install ::
+	$(NOECHO) umask 022; $(MOD_INSTALL) \
+		$(INST_LIB) $(DESTINSTALLVENDORLIB) \
+		$(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \
+		$(INST_BIN) $(DESTINSTALLVENDORBIN) \
+		$(INST_SCRIPT) $(DESTINSTALLSCRIPT) \
+		$(INST_MAN1DIR) $(DESTINSTALLVENDORMAN1DIR) \
+		$(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR)
+
+doc_perl_install ::
+
+doc_site_install ::
+	$(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLSITEARCH)/perllocal.pod
+	-$(NOECHO) umask 02; $(MKPATH) $(DESTINSTALLSITEARCH)
+	-$(NOECHO) umask 02; $(DOC_INSTALL) \
+		"Module" "$(NAME)" \
+		"installed into" "$(INSTALLSITELIB)" \
+		LINKTYPE "$(LINKTYPE)" \
+		VERSION "$(VERSION)" \
+		EXE_FILES "$(EXE_FILES)" \
+		>> $(DESTINSTALLSITEARCH)/perllocal.pod
+
+doc_vendor_install ::
+
+
+uninstall :: uninstall_from_$(INSTALLDIRS)dirs
+
+uninstall_from_perldirs ::
+	$(NOECHO) $(UNINSTALL) $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist
+
+uninstall_from_sitedirs ::
+	$(NOECHO) $(UNINSTALL) $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist
+
+uninstall_from_vendordirs ::
+	$(NOECHO) $(UNINSTALL) $(VENDORARCHEXP)/auto/$(FULLEXT)/.packlist
+
+
+# --- MakeMaker force section:
+# Phony target to force checking subdirectories.
+FORCE:
+	$(NOECHO) $(NOOP)
+
+
+# --- MakeMaker perldepend section:
+
+
+# --- MakeMaker makefile section:
+
+# We take a very conservative approach here, but it's worth it.
+# We move Makefile to Makefile.old here to avoid gnu make looping.
+$(FIRST_MAKEFILE) : Makefile.PL $(CONFIGDEP)
+	$(NOECHO) $(ECHO) "Makefile out-of-date with respect to $?"
+	$(NOECHO) $(ECHO) "Cleaning current config before rebuilding Makefile..."
+	$(NOECHO) $(RM_F) $(MAKEFILE_OLD)
+	$(NOECHO) $(MV)   $(FIRST_MAKEFILE) $(MAKEFILE_OLD)
+	-$(MAKE) -f $(MAKEFILE_OLD) clean $(DEV_NULL) || $(NOOP)
+	$(PERLRUN) Makefile.PL "INSTALLDIRS=vendor"
+	$(NOECHO) $(ECHO) "==> Your Makefile has been rebuilt. <=="
+	$(NOECHO) $(ECHO) "==> Please rerun the make command.  <=="
+	false
+
+
+
+# --- MakeMaker staticmake section:
+
+# --- MakeMaker makeaperl section ---
+MAP_TARGET    = perl
+FULLPERL      = /usr/bin/perl
+
+$(MAP_TARGET) :: static $(MAKE_APERL_FILE)
+	$(MAKE) -f $(MAKE_APERL_FILE) $@
+
+$(MAKE_APERL_FILE) : $(FIRST_MAKEFILE)
+	$(NOECHO) $(ECHO) Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET)
+	$(NOECHO) $(PERLRUNINST) \
+		Makefile.PL DIR= \
+		MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \
+		MAKEAPERL=1 NORECURS=1 CCCDLFLAGS= \
+		INSTALLDIRS=vendor
+
+
+# --- MakeMaker test section:
+
+TEST_VERBOSE=0
+TEST_TYPE=test_$(LINKTYPE)
+TEST_FILE = test.pl
+TEST_FILES = 
+TESTDB_SW = -d
+
+testdb :: testdb_$(LINKTYPE)
+
+test :: $(TEST_TYPE)
+	$(NOECHO) $(ECHO) 'No tests defined for $(NAME) extension.'
+
+test_dynamic :: pure_all
+
+testdb_dynamic :: pure_all
+	PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE)
+
+test_ : test_dynamic
+
+test_static :: test_dynamic
+testdb_static :: testdb_dynamic
+
+
+# --- MakeMaker ppd section:
+# Creates a PPD (Perl Package Description) for a binary distribution.
+ppd:
+	$(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="15,0,0,0">' > $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '    <TITLE>$(DISTNAME)</TITLE>' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '    <ABSTRACT></ABSTRACT>' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '    <AUTHOR>Pascal DANEK &lt;hunal@users.sourceforge.net&gt;</AUTHOR>' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '    <IMPLEMENTATION>' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <DEPENDENCY NAME="Compress-Zlib" VERSION="1,33,0,0" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <DEPENDENCY NAME="Digest-MD5" VERSION="2,33,0,0" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <DEPENDENCY NAME="LWP" VERSION="5,8,0,0" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <DEPENDENCY NAME="Net-IP" VERSION="1,21,0,0" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <DEPENDENCY NAME="Net-SSLeay" VERSION="1,25,0,0" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <DEPENDENCY NAME="XML-Simple" VERSION="2,12,0,0" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <OS NAME="$(OSNAME)" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <ARCHITECTURE NAME="i386-linux-thread-multi" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '        <CODEBASE HREF="" />' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '    </IMPLEMENTATION>' >> $(DISTNAME).ppd
+	$(NOECHO) $(ECHO) '</SOFTPKG>' >> $(DISTNAME).ppd
+
+
+# --- MakeMaker pm_to_blib section:
+
+pm_to_blib: $(TO_INST_PM)
+	$(NOECHO) $(PERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)/auto'\'', '\''$(PM_FILTER)'\'')'\
+	  Agent.pm $(INST_LIB)/Ocsinventory/Agent.pm \
+	  Agent/Option/Update.pm $(INST_LIB)/Ocsinventory/Agent/Option/Update.pm \
+	  Agent/Option/Download.pm $(INST_LIB)/Ocsinventory/Agent/Option/Download.pm \
+	  Agent/Common.pm $(INST_LIB)/Ocsinventory/Agent/Common.pm \
+	  ocsinventory-client.pl $(INST_LIB)/Ocsinventory/ocsinventory-client.pl \
+	  Agent/Option/Ipdiscover.pm $(INST_LIB)/Ocsinventory/Agent/Option/Ipdiscover.pm 
+	$(NOECHO) $(TOUCH) $@
+
+# --- MakeMaker selfdocument section:
+
+
+# --- MakeMaker postamble section:
+
+
+# End.
--- ocsinventory-client-1.0.debian.orig/debian/dirs
+++ ocsinventory-client-1.0.debian/debian/dirs
@@ -0,0 +1,4 @@
+var/log/ocsinventory-client
+etc/ocsinventory-client
+var/lib/ocsinventory-client
+var/cache/ocsinventory-client
--- ocsinventory-client-1.0.debian.orig/debian/changelog
+++ ocsinventory-client-1.0.debian/debian/changelog
@@ -0,0 +1,11 @@
+ocsinventory-client (1.0.debian-1~ipsyn) sarge; urgency=low
+
+  * compiled for sarge
+
+ -- JLB <jlb@ipsyn.net>  Wed,  7 Mar 2007 00:11:26 +0100
+
+ocsinventory-client (1.0.debian-1) unstable; urgency=low
+
+  * Initial release (closes Bug#406964).
+  
+ -- Ludovic Drolez <ldrolez@debian.org>  Mon, 30 Jan 2006 14:59:13 +0100
--- ocsinventory-client-1.0.debian.orig/debian/config
+++ ocsinventory-client-1.0.debian/debian/config
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+STATE=1
+while [ "$STATE" != 0 -a "$STATE" != 4 ]; do
+        case "$STATE" in
+        1)
+                db_input high ocsinventory-client/method || true
+                ;;
+        2)
+                db_input high ocsinventory-client/server || true
+                ;;
+        3)
+                db_input medium ocsinventory-client/tag || true
+                ;;
+        esac                    
+
+        if db_go; then
+                STATE=$(($STATE + 1))
+		case "$STATE" in
+		2)
+			db_get ocsinventory-client/method || true
+			if [ "$RET" = local ]; then
+                		STATE=$(($STATE + 1))
+			fi
+			;;
+		esac
+        else
+                STATE=$(($STATE - 1))
+		case "$STATE" in
+		2)
+                	STATE=$(($STATE - 1))
+			;;
+		esac
+        fi
+done
+
+exit 0
--- ocsinventory-client-1.0.debian.orig/debian/ipdiscover.8
+++ ocsinventory-client-1.0.debian/debian/ipdiscover.8
@@ -0,0 +1,34 @@
+.TH IPDISCOVER 8 "January 2006" "Version 1.0"
+
+.SH NAME
+.B ipdiscover
+is a tools that collects informations about your local area network.
+
+.SH SYNOPSIS
+.B ipdiscover <interface_name> <latency>
+
+.SH DESCRIPTION
+.B ipdiscover
+listen your network interface for ARP requests and generate a map of your local network.
+
+.SH OPTIONS
+.TP
+.I <interface_name>
+Name of your local network interface.
+.TP
+.I <latency>
+Latency (in ms).
+
+.SH EXAMPLES
+ipdiscover eth0 10
+
+.SH SEE ALSO
+.B Homepage:
+http://ocsinventory.sourceforge.net/
+
+.SH AUTHOR
+This manual page was written by Linbox FAS <libre@linbox.org> for the Debian system (but may be used by others).
+.br
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation
+.br
+On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
--- ocsinventory-client-1.0.debian.orig/debian/templates
+++ ocsinventory-client-1.0.debian/debian/templates
@@ -0,0 +1,23 @@
+Template: ocsinventory-client/method
+Type: select
+Choices: local, http
+Default: local
+_Description: Method used to generate the inventory:
+ Choose the local method if you do not have a network connection
+ .
+ Choose the http method if you have an OCS Inventory server set up (you
+ will be asked the name of the server at the next question)
+
+Template: ocsinventory-client/server
+Type: string
+Default: 
+_Description: Name of the OCS Inventory server:
+ A remote server is identified by its hostname (or IP address) and its port.
+ .
+ Syntax must be hostname:port
+
+Template: ocsinventory-client/tag
+Type: string
+Default: 
+_Description: Tag for the generated inventory:
+ Leave blank to ignore
--- ocsinventory-client-1.0.debian.orig/debian/postrm
+++ ocsinventory-client-1.0.debian/debian/postrm
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+case "$1" in
+    purge)
+        rm -rf /etc/ocsinventory-client
+        rm -rf /var/lib/ocsinventory-client
+        rm -rf /var/cache/ocsinventory-client
+        rm -rf /var/log/ocsinventory-client
+        ;;
+       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        ;;
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+esac
+
+#DEBHELPER#
+
+exit 0
--- ocsinventory-client-1.0.debian.orig/debian/ocsinv.conf
+++ ocsinventory-client-1.0.debian/debian/ocsinv.conf
@@ -0,0 +1,6 @@
+<CONF>
+  <DEVICEID>deviceid</DEVICEID>
+  <DMIVERSION>1</DMIVERSION>
+  <IPDISCOVER_VERSION>1</IPDISCOVER_VERSION>
+  <OCSFSERVER>server:port</OCSFSERVER>
+</CONF>
--- ocsinventory-client-1.0.debian.orig/debian/docs
+++ ocsinventory-client-1.0.debian/debian/docs
@@ -0,0 +1 @@
+changelogs
--- ocsinventory-client-1.0.debian.orig/debian/ocsinventory-client.8
+++ ocsinventory-client-1.0.debian/debian/ocsinventory-client.8
@@ -0,0 +1,32 @@
+.TH OCSINVENTORY-CLIENT 8 "January 2006" "Version 1.0"
+
+.SH NAME
+.B ocsinventory-client
+is a software and hardware inventory client.
+
+.SH SYNOPSIS
+.B ocsinventory-client
+
+.SH DESCRIPTION
+.B ocsinventory-client
+is a software and hardware inventory client.
+
+.SH OPTIONS
+.BI ocsinventory-client
+has no options.
+
+.SH FILES
+.TP
+.I /etc/ocsinventory-client/ocsinv.conf
+Configuration file (contains parameters of the OCS server).
+
+.SH SEE ALSO
+.B Homepage:
+http://ocsinventory.sourceforge.net/
+
+.SH AUTHOR
+This manual page was written by Linbox FAS <libre@linbox.org> for the Debian system (but may be used by others).
+.br
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation
+.br
+On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
--- ocsinventory-client-1.0.debian.orig/debian/cron.daily
+++ ocsinventory-client-1.0.debian/debian/cron.daily
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+BINARY=/usr/bin/ocsinventory-client
+
+if [ ! -x "$BINARY" ]; then
+    exit 0
+fi
+    
+$BINARY
--- ocsinventory-client-1.0.debian.orig/debian/manpages
+++ ocsinventory-client-1.0.debian/debian/manpages
@@ -0,0 +1,2 @@
+debian/ocsinventory-client.8
+debian/ipdiscover.8
--- ocsinventory-client-1.0.debian.orig/debian/ocsinv.adm
+++ ocsinventory-client-1.0.debian/debian/ocsinv.adm
@@ -0,0 +1,6 @@
+<ADM>
+  <ACCOUNTINFO>
+    <KEYNAME>TAG</KEYNAME>
+    <KEYVALUE></KEYVALUE>
+  </ACCOUNTINFO>
+</ADM>
--- ocsinventory-client-1.0.debian.orig/debian/po/POTFILES.in
+++ ocsinventory-client-1.0.debian/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
--- ocsinventory-client-1.0.debian.orig/debian/po/templates.pot
+++ ocsinventory-client-1.0.debian/debian/po/templates.pot
@@ -0,0 +1,68 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: gandalf@le-vert.net\n"
+"POT-Creation-Date: 2006-01-30 17:10+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Description
+#: ../templates:1001
+msgid "Method used to generate the inventory:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:1001
+msgid "Choose the local method if you do not have a network connection"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:1001
+msgid ""
+"Choose the http method if you have an OCS Inventory server set up (you will "
+"be asked the name of the server at the next question)"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:2001
+msgid "Name of the OCS Inventory server:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:2001
+msgid ""
+"A remote server is identified by its hostname (or IP address) and its port."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:2001
+msgid "Syntax must be hostname:port"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:3001
+msgid "Tag for the generated inventory:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:3001
+msgid "Leave blank to ignore"
+msgstr ""
--- ocsinventory-client-1.0.debian.orig/debian/compat
+++ ocsinventory-client-1.0.debian/debian/compat
@@ -0,0 +1 @@
+5
--- ocsinventory-client-1.0.debian.orig/debian/postinst
+++ ocsinventory-client-1.0.debian/debian/postinst
@@ -0,0 +1,45 @@
+#! /bin/sh
+
+CONF="/etc/ocsinventory-client/ocsinv.conf"
+ADM="/etc/ocsinventory-client/ocsinv.adm"
+
+case "$1" in
+    configure|reconfigure)
+	# Source debconf library
+	. /usr/share/debconf/confmodule
+	
+	# Create an id
+	HOST=`hostname -s`
+	DEVICEID=`date +$HOST-%Y-%m-%d-%H-%M-%S`
+	sed -i "s!\(<DEVICEID>\)deviceid\(</DEVICEID>\)!\1$DEVICEID\2!" $CONF
+
+	db_get ocsinventory-client/method || true
+	if [ "$RET" = http ]; then
+		db_get ocsinventory-client/server || true
+		SERVER="$RET"
+		sed -i "s!\(<OCSFSERVER>\).*\(</OCSFSERVER>\)!\1$SERVER\2!" $CONF
+	else
+		sed -i "s!\(<OCSFSERVER>\).*\(</OCSFSERVER>\)!\1local\2!" $CONF
+	fi
+	db_get ocsinventory-client/tag || true
+	TAG="$RET"
+		sed -i "s!\(<KEYVALUE>\).*\(</KEYVALUE>\)!\1$TAG\2!" $ADM
+	
+	db_stop
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
--- ocsinventory-client-1.0.debian.orig/debian/logrotate
+++ ocsinventory-client-1.0.debian/debian/logrotate
@@ -0,0 +1,7 @@
+/var/log/ocsinventory-client/*.log {
+        daily
+        rotate 7
+        compress
+        notifempty
+        missingok
+}
--- ocsinventory-client-1.0.debian.orig/debian/install
+++ ocsinventory-client-1.0.debian/debian/install
@@ -0,0 +1,2 @@
+debian/ocsinv.conf	/etc/ocsinventory-client 
+debian/ocsinv.adm	/etc/ocsinventory-client
--- ocsinventory-client-1.0.debian.orig/debian/rules
+++ ocsinventory-client-1.0.debian/debian/rules
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Include dpatch targets
+include /usr/share/dpatch/dpatch.make
+
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+DESTDIR = $(CURDIR)/debian/ocsinventory-client
+
+build: build-stamp
+
+build-stamp: patch-stamp
+	# Build ipdiscover
+	$(CC) ipdiscover.c $(CFLAGS) -o ipdiscover
+	# Create agent's Makefile
+	cd Ocsinventory; perl Makefile.PL INSTALLDIRS=vendor
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f ipdiscover
+	-$(MAKE) -C Ocsinventory/ clean
+	rm -f build-stamp
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	# Install ipdiscover
+	install -D ipdiscover $(DESTDIR)/usr/sbin/ipdiscover
+	# And perl stuff
+	$(MAKE) -C Ocsinventory/ DESTDIR=$(DESTDIR) install
+	# Fix main binary name (remove pl extensions)
+	mkdir $(DESTDIR)/usr/bin
+	mv $(DESTDIR)/usr/sbin/ocsinventory-client.pl \
+	   $(DESTDIR)/usr/bin/ocsinventory-client
+	# Remove binary from perl modules path
+	rm -f $(DESTDIR)/usr/share/perl5/Ocsinventory/ocsinventory-client.pl
+	# Remove empty directory
+	rm -rf $(DESTDIR)/usr/lib/perl5
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs changelogs
+	dh_install
+	dh_installdocs
+	dh_installdirs
+	dh_installman
+	dh_installlogrotate
+	dh_installcron
+	dh_installdebconf
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_perl
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- ocsinventory-client-1.0.debian.orig/debian/README.Debian
+++ ocsinventory-client-1.0.debian/debian/README.Debian
@@ -0,0 +1,17 @@
+ocsinventory-client for Debian
+------------------------------
+
+This Perl script is only useful with an OCS Inventory server. It's currently
+compatible with:
+- the original OCS Inventory server available at http://ocsinventory.sf.net
+- and the Linbox Rescue Server available at http://lrs.linbox.org
+
+By default, it's configured to send the inventory via HTTP.
+Auto-update is disabled by default because of security concerns (The script
+runs as root and IP spoofing is easy).
+
+Modifications:
+- Rebuilt the original tarball to remove CVS directories
+- state file moved to /var/state/ocs_last_state
+
+ -- Linbox FAS <libre@debian.org>  Mon, 30 Jan 2006 14:59:13 +0100
--- ocsinventory-client-1.0.debian.orig/debian/copyright
+++ ocsinventory-client-1.0.debian/debian/copyright
@@ -0,0 +1,28 @@
+This package was debianized by Linbox FAS <libre@linbox.org> on
+Mon, 30 Jan 2006 14:59:13 +0100.
+
+It was downloaded from http://ocsinventory.sourceforge.net 
+
+Upstream Author:  Pascal Danek
+
+Copyright: (C) 2006, Pascal Danek
+
+License:
+
+   This package 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 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 General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
--- ocsinventory-client-1.0.debian.orig/debian/control
+++ ocsinventory-client-1.0.debian/debian/control
@@ -0,0 +1,19 @@
+Source: ocsinventory-client
+Section: admin
+Priority: extra
+Maintainer: Linbox FAS <libre@linbox.org>
+Uploaders: Ludovic Drolez <ldrolez@debian.org>
+Build-Depends: debhelper (>= 5), perl (>= 5.6.0-16), dpatch, po-debconf
+Standards-Version: 3.7.2
+
+Package: ocsinventory-client
+Architecture: any
+Depends: ${shlibs:Depends}, ${perl:Depends}, libcompress-zlib-perl, libnet-ip-perl, libnet-ssleay-perl, dmidecode, libxml-simple-perl, libwww-perl, debconf
+Description: hardware and software inventory (client)
+ Open Computer and Software Inventory Next Generation is an application
+ designed to help a network or system administrator keep track of the computers
+ configuration and software that are installed on the network.
+ .
+ This package contains the client part.
+ .
+  Homepage: http://ocsinventory.sourceforge.net
