commit
fd76af0724
8 changed files with 161 additions and 0 deletions
@ -0,0 +1,6 @@ |
||||
#!/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)); |
||||
|
@ -0,0 +1,31 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<packages> |
||||
<package id="fusioninventory" |
||||
name="Agent d'inventaire reseau" |
||||
revision="7" |
||||
priority="10"> |
||||
|
||||
<variable name="PKG_VERSION" value="2.2.0-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" /> |
||||
|
||||
<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 regedit /s "%REG_PATH%"' /> |
||||
<install cmd='%COMSPEC% /C sc stop FusionInventory-Agent'> |
||||
<exit code='any' /> |
||||
</install> |
||||
<install cmd='%COMSPEC% /C sc start FusionInventory-Agent'> |
||||
<exit code='any' /> |
||||
</install> |
||||
|
||||
<upgrade include="install" /> |
||||
|
||||
<downgrade include="install" /> |
||||
|
||||
<remove cmd='"%INSTALL_PATH%\uninstFI.exe" /S' /> |
||||
</package> |
||||
</packages> |
@ -0,0 +1,35 @@ |
||||
Windows Registry Editor Version 5.00 |
||||
|
||||
{ |
||||
|
||||
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"; |
||||
[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"="C:\\\\Program Files (x86)\\\\FusionInventory-Agent\\\\dumps" |
||||
"share-dir"="C:\\\\Program Files (x86)\\\\FusionInventory-Agent\\\\share" |
||||
"logfile"="C:\\\\Program Files (x86)\\\\FusionInventory-Agent\\\\agent-log.txt" |
||||
"logfile-maxsize"="5" |
||||
|
||||
EOF |
||||
|
||||
$out =~ s/\n/\r\n/g; |
||||
|
||||
$OUT = $out; |
||||
|
||||
} |
||||
|
@ -0,0 +1,35 @@ |
||||
Windows Registry Editor Version 5.00 |
||||
|
||||
{ |
||||
|
||||
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"; |
||||
[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"="C:\\\\Program Files\\\\FusionInventory-Agent\\\\dumps" |
||||
"share-dir"="C:\\\\Program Files\\\\FusionInventory-Agent\\\\share" |
||||
"logfile"="C:\\\\Program Files\\\\FusionInventory-Agent\\\\agent-log.txt" |
||||
"logfile-maxsize"="5" |
||||
|
||||
EOF |
||||
|
||||
$out =~ s/\n/\r\n/g; |
||||
|
||||
$OUT = $out; |
||||
|
||||
} |
||||
|
Binary file not shown.
@ -0,0 +1,54 @@ |
||||
%define package fusioninventory |
||||
%define version 0.1 |
||||
%define realversion 2.2.0 |
||||
%define release 0.beta1 |
||||
|
||||
Name: wpkg-%{package} |
||||
Version: %{version}+%{realversion} |
||||
Release: %{release}%{?dist} |
||||
Summary: %{package} for WPKG on iPasserelle |
||||
|
||||
Group: System/Softwares |
||||
URL: http://www.ipasserelle.com |
||||
Source0: %{name}-%{version}.tar.gz |
||||
License: misc |
||||
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
||||
BuildArch: noarch |
||||
BuildRequires: unix2dos |
||||
BuildRequires: e-smith-devtools |
||||
|
||||
Requires: ipasserelle-gp |
||||
|
||||
%description |
||||
%{package} for WPKG on iPasserelle |
||||
|
||||
%prep |
||||
%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}/ |
||||
cp -r packages/* %{buildroot}/home/e-smith/files/shares/wpkg/files/packages/ |
||||
|
||||
%files |
||||
%defattr(-,root,root) |
||||
%doc CHANGELOG.git |
||||
/home/e-smith/files/shares/wpkg/files/ |
||||
/etc/ |
||||
|
||||
%clean |
||||
/bin/rm -rf %{buildroot} |
||||
|
||||
%changelog |
||||
* Mon Jun 4 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1+2.2.0 |
||||
- initial release with Fusion Inventory Agent 2.2.0 |
||||
|
Loading…
Reference in new issue