import de scripts depuis ipasserelle-gp

tags/wpkg-packages-0.0.25-1
Daniel Berteaud 13 years ago
parent 84c6b4928c
commit 6ade3d068f
  1. 5
      createlinks
  2. 4
      packages/wpkg.xml
  3. 51
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All
  4. 0
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/template-begin
  5. 11
      wpkg-packages.spec

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

@ -2,7 +2,7 @@
<packages> <packages>
<package id="wpkg" <package id="wpkg"
name="WPKG Client" name="WPKG Client"
revision="17" revision="1"
reboot="false" reboot="false"
priority="95"> priority="95">
@ -14,7 +14,7 @@
<install cmd='%COMSPEC% /C if not exist %SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown mkdir %SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown' /> <install cmd='%COMSPEC% /C if not exist %SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown mkdir %SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown' />
<install cmd='xcopy /Y %SETTINGS%\wpkg\wpkg.bat %SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown\' /> <install cmd='xcopy /Y %SETTINGS%\wpkg\wpkg.bat %SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown\' />
<install cmd='%COMSPEC% /C regedit /S %SOFTWARE%\wpkg\gp.reg' /> <install cmd='%COMSPEC% /C regedit /S %SOFTWARE%\wpkg\gp.reg' />
<install cmd='cscript //Nologo "%SOFTWARE%\misc\localgp.vbs" wpkg.bat false MACHINE' /> <install cmd='cscript //Nologo "%SOFTWARE%\wpkg\localgp.vbs" wpkg.bat false MACHINE' />
<upgrade include='install' /> <upgrade include='install' />

@ -0,0 +1,51 @@
{
my $ip = $InternalInterface{'IPAddress'};
my $nt = $smb{'Workgroup'};
my $pass = $wpkg{'UserPassword'};
my $out .=<<"EOF";
\@echo off
cls
echo.
echo # ######
echo. # # ## #### #### ###### ##### ###### # # ######
echo # # # # # # # # # # # # # #
echo. # ###### # # #### #### ##### # # ##### # # #####
echo # # ###### # # # ##### # # # #
echo. # # # # # # # # # # # # # # #
echo # # # # #### #### ###### # # ###### ###### ###### ######
echo.
echo.
echo.
echo.
echo.
echo. _________________________________________________________
echo i\\ _______________________________________________________\\
echo. i i i
echo i i Mises a jour en cours. N'eteignez pas l'ordinateur i
echo. i i i
echo i i Il s'eteindra lui-meme a la fin des operations i
echo. i i i
echo \\i________________________________________________________i
echo.
echo.
ping -n 2 -w 2000 $ip > NUL
if errorlevel 1 (
echo Reseau non connecte
exit /b %errorlevel%
)
net use \\\\$ip\\wpkg /user:$nt\\deploiement $pass >NUL
net use \\\\$ip\\wpkglogs /user:$nt\\deploiement $pass >NUL
set SOFTWARE=\\\\$ip\\wpkg\\softwares
set SETTINGS=\\\\$ip\\wpkg\\settings
set WPKGLOGS=\\\\$ip\\wpkglogs
cscript //Nologo \\\\$ip\\wpkg\\wpkg.js /synchronize /nonotify /quiet
EOF
$out =~ s/\n/\r\n/g;
$OUT = $out;
}

@ -1,4 +1,4 @@
%define version 0.0.1 %define version 0.0.2
%define release 0.beta1 %define release 0.beta1
Name: wpkg-packages Name: wpkg-packages
@ -14,6 +14,7 @@ License: misc
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch BuildArch: noarch
BuildRequires: unix2dos BuildRequires: unix2dos
BuildRequires: e-smith-devtools
Requires: ipasserelle-gp Requires: ipasserelle-gp
Requires: wpkg-7zip Requires: wpkg-7zip
@ -53,10 +54,12 @@ Meta package to install WPKG supported softwares on iPasserelle
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%build %build
perl createlinks
unix2dos packages/* unix2dos packages/*
%install %install
/bin/rm -rf %{buildroot} /bin/rm -rf %{buildroot}
cp -a root %{buildroot}/
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/misc mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/misc
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/misc/ cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/misc/
@ -66,11 +69,15 @@ cp -r packages/* %{buildroot}/home/e-smith/files/shares/wpkg/files/packages/
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGELOG.git %doc CHANGELOG.git
/home/e-smith/files/shares/wpkg/files/ /home/e-smith/files/shares/wpkg/files/
/etc
%clean %clean
/bin/rm -rf %{buildroot} /bin/rm -rf %{buildroot}
%changelog %changelog
* Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com> * Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com> 0.0.2-1
- Move scripts from ipasserelle-gp in wpkg-packages
* Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com> 0.0.1-1
- initial release - initial release

Loading…
Cancel
Save