Upgrade to 2.3.0, adapt to the new installer. Might need some more work

tags/wpkg-fusioninventory-2.4-0.beta1
Daniel Berteaud 11 years ago
parent c3a8fe8402
commit b9265428aa
  1. 6
      createlinks
  2. 20
      packages/fusioninventory.xml
  3. 3
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/profiles/variables.xml/20FusionInventory
  4. 34
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All
  5. 0
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/template-begin
  6. 34
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All
  7. 0
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/template-begin
  8. BIN
      softwares/fusioninventory-agent_windows-x64_2.3.0-1.exe
  9. BIN
      softwares/fusioninventory-agent_windows-x86_2.3.0-1.exe
  10. 2
      wpkg-fusioninventory.spec

@ -1,6 +0,0 @@
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
templates2events("/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg", qw(wpkg-update bootstrap-console-save));
templates2events("/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg", qw(wpkg-update bootstrap-console-save));

@ -2,25 +2,17 @@
<packages>
<package id="fusioninventory"
name="Agent d'inventaire reseau"
revision="17"
revision="18"
priority="10">
<variable name="PKG_VERSION" value="2.2.7-4" />
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\FusionInventory-Agent\" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\FusionInventory-Agent\" />
<variable architecture="x86" name="REG_PATH" value="%SETTINGS%\fusioninventory\fusioninventory_x86.reg" />
<variable architecture="x64" name="REG_PATH" value="%SETTINGS%\fusioninventory\fusioninventory_x64.reg" />
<variable name="PKG_VERSION" value="2.3.0-1" />
<variable name="INSTALL_PATH" value="%PROGRAMFILES%\FusionInventory-Agent\" />
<variable name="INSTALL_FLAGS" value="/S /acceptlicense /execmode=Service /httpd-ip=127.0.0.1 installtype=/from-scratch /no-p2p /user='%FUSINV_USER%' /password='%FUSINV_PASS%' /server='%FUSINV_SERVER%'" />
<check type="uninstall" condition="versiongreaterorequal" path="FusionInventory Agent" value="%PKG_VERSION%" />
<install cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-i386_%PKG_VERSION%.exe /S' />
<install cmd='%COMSPEC% /C sc stop FusionInventory-Agent'>
<exit code='any' />
</install>
<install cmd='%COMSPEC% /C regedit /s "%REG_PATH%"' />
<install cmd='%COMSPEC% /C sc start FusionInventory-Agent'>
<exit code='any' />
</install>
<install architecture="x86" cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-x86_%PKG_VERSION%.exe %INSTALL_FLAGS%' />
<install architecture="x64" cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-x64_%PKG_VERSION%.exe %INSTALL_FLAGS%' />
<upgrade include="install" />

@ -0,0 +1,3 @@
<variable name="FUSINV_USER" value="{${'fusioninventory-agent'}{'User'} || $DomainName}" />
<variable name="FUSINV_PASS" value="{${'fusioninventory-agent'}{'Password'} || 'secret'}" />
<variable name="FUSINV_SERVER" value="{${'fusioninventory-agent'}{'Server'} || 'https://inventory.firewall-services.com/'}" />

@ -1,34 +0,0 @@
{
my $server = ${'fusioninventory-agent'}{'Server'} || 'https://inventory.firewall-services.com/';
my $user = ${'fusioninventory-agent'}{'User'} || $DomainName;
my $pass = ${'fusioninventory-agent'}{'Password'} || 'secret';
my $out .=<<"EOF";
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\FusionInventory-Agent]
"server"="$server"
"tag"="$DomainName"
"user"="$user"
"password"="$pass"
"realm"=""
"ca-cert-file"=""
"no-ssl-check"="0"
"proxy"=""
"rpc-port"=""
"debug"="1"
"rpc-trust-localhost"="1"
"scan-homedirs"="0"
"basevardir"=-
"share-dir"=-
"logfile"=-
"logfile-maxsize"="5"
EOF
$out =~ s/\n/\r\n/g;
$OUT = $out;
}

@ -1,34 +0,0 @@
{
my $server = ${'fusioninventory-agent'}{'Server'} || 'https://inventory.firewall-services.com/';
my $user = ${'fusioninventory-agent'}{'User'} || $DomainName;
my $pass = ${'fusioninventory-agent'}{'Password'} || 'secret';
my $out .=<<"EOF";
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\\SOFTWARE\\FusionInventory-Agent]
"server"="$server"
"tag"="$DomainName"
"user"="$user"
"password"="$pass"
"realm"=""
"ca-cert-file"=""
"no-ssl-check"="0"
"proxy"=""
"rpc-port"=""
"debug"="1"
"rpc-trust-localhost"="1"
"scan-homedirs"="0"
"basevardir"=-
"share-dir"=-
"logfile"=-
"logfile-maxsize"="5"
EOF
$out =~ s/\n/\r\n/g;
$OUT = $out;
}

@ -26,13 +26,11 @@ Requires: ipasserelle-gp
%setup -q -n %{name}-%{version}
%build
perl createlinks
unix2dos packages/*
%install
/bin/rm -rf %{buildroot}
cp -a root %{buildroot}/
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/settings/fusioninventory
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package}
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package}/

Loading…
Cancel
Save