From 17251d433ab18f59dab060e3ebadef6367969943 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 16 Aug 2010 19:08:17 +0200 Subject: fusioninventory-agent-2.1 --- fusioninventory-agent.init | 2 +- fusioninventory-agent.patch | 11 +++++++++++ fusioninventory-agent.spec | 32 ++++++++++++++++++++++++++------ 3 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 fusioninventory-agent.patch diff --git a/fusioninventory-agent.init b/fusioninventory-agent.init index e6bfffc..9c64035 100755 --- a/fusioninventory-agent.init +++ b/fusioninventory-agent.init @@ -45,7 +45,7 @@ do_start() done if [ -n "$OPTS" ]; then echo -n $"Starting $prog: " - daemon $prog $FUSINVOPT --logfile=$logfile --daemon $OPTS + daemon $prog --logfile=$logfile $FUSINVOPT --daemon $OPTS &>/dev/null RETVAL=$? echo else diff --git a/fusioninventory-agent.patch b/fusioninventory-agent.patch new file mode 100644 index 0000000..b229fcf --- /dev/null +++ b/fusioninventory-agent.patch @@ -0,0 +1,11 @@ +--- lib/FusionInventory/LoggerBackend/File.pm.orig 2010-08-16 18:59:25.573441022 +0200 ++++ lib/FusionInventory/LoggerBackend/File.pm 2010-08-16 18:59:44.390565256 +0200 +@@ -57,6 +57,8 @@ + + return if $message =~ /^$/; + ++ $self->open() unless stat($handle); ++ + $self->watchSize(); + + print $handle "[".localtime()."][$level] $message\n"; diff --git a/fusioninventory-agent.spec b/fusioninventory-agent.spec index 10729ce..9eccbc0 100644 --- a/fusioninventory-agent.spec +++ b/fusioninventory-agent.spec @@ -4,16 +4,19 @@ Name: fusioninventory-agent Summary: FusionInventory agent Summary(fr): Agent FusionInventory -Version: 2.0.6 +Version: 2.1 %if 0%{?gitver:1} Release: 5.git%{gitver}%{?dist} Source0: fusinv-fusioninventory-agent-2.0.4-20-gf7c5492.tar.gz %else Release: 1%{?dist} -Source0: http://forge.fusioninventory.org/attachments/download/66/FusionInventory-Agent-2.0.6.tar.gz +Source0: http://search.cpan.org/CPAN/authors/id/F/FU/FUSINV/FusionInventory-Agent-%{version}.tar.gz %endif +# http://github.com/fusinv/fusioninventory-agent/commit/75d7e778c108889cad36b17f06eb876181d9d183 +Patch0: fusioninventory-agent.patch + Source1: %{name}.cron Source2: %{name}.init @@ -37,7 +40,10 @@ Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig, /sbin/service Requires(postun): /sbin/service -%{?perl_default_filter} +%{?filter_setup: +%filter_from_requires /perl(Win32/d +%?perl_default_filter +} %description @@ -84,6 +90,8 @@ Vous pouvez ajouter les paquets additionnels pour les tâches optionnelles : %setup -q -n FusionInventory-Agent-%{version} %endif +%patch0 -p0 + cat </dev/null ';' %clean -rm -rf %{buildroot} +%{__rm} -rf %{buildroot} %{buildroot}%{_datarootdir} %post @@ -181,6 +193,7 @@ exit 0 %{_sysconfdir}/cron.hourly/%{name} %{_initrddir}/%{name} %{perl_vendorlib}/FusionInventory +%{perl_vendorlib}/auto %{_bindir}/%{name} %exclude %{_bindir}/%{name}-config %{_mandir}/man1/%{name}* @@ -190,6 +203,13 @@ exit 0 %changelog +* Mon Aug 16 2010 Remi Collet 2.1-1 +- update to 2.1 +- switch download URL back to CPAN +- add %%{perl_vendorlib}/auto +- filter perl(Win32*) from Requires +- add patch (from git) to reopen the file logger if needed + * Sat May 29 2010 Remi Collet 2.0.6-1 - update to 2.0.6 - swicth download URL to forge -- cgit