commit fd76af07249018d9b45e425e805c22b41b7833f4 Author: Daniel Berteaud Date: Mon Jun 4 17:57:42 2012 +0200 premier commit diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..e156574 --- /dev/null +++ b/createlinks @@ -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)); + diff --git a/packages/fusioninventory.xml b/packages/fusioninventory.xml new file mode 100755 index 0000000..299555e --- /dev/null +++ b/packages/fusioninventory.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All new file mode 100644 index 0000000..667d33a --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All @@ -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; + +} + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/template-begin b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All new file mode 100644 index 0000000..75412e8 --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All @@ -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; + +} + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/template-begin b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/softwares/fusioninventory-agent_windows-i386_2.2.0-4.exe b/softwares/fusioninventory-agent_windows-i386_2.2.0-4.exe new file mode 100755 index 0000000..c08053f Binary files /dev/null and b/softwares/fusioninventory-agent_windows-i386_2.2.0-4.exe differ diff --git a/wpkg-fusioninventory.spec b/wpkg-fusioninventory.spec new file mode 100644 index 0000000..5a8051c --- /dev/null +++ b/wpkg-fusioninventory.spec @@ -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 0.1+2.2.0 +- initial release with Fusion Inventory Agent 2.2.0 +