premier commit

master
Daniel Berteaud 13 years ago
commit e9c3c23aae
  1. 6
      createlinks
  2. 22
      packages/wpkg-gp.xml
  3. 35
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini/10All
  4. 0
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini/template-begin
  5. BIN
      softwares/Wpkg-GP-0.15_x64.exe
  6. BIN
      softwares/Wpkg-GP-0.15_x86.exe
  7. 53
      wpkg-wpkg-gp.spec

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

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="wpkg-gp"
name="Client de teledeploiement Wpkg-GP"
revision="1">
<variable name="PKG_VERSION" value="0.15" />
<variable architecture="x86" name="EXE_INSTALL_PATH" value="%SOFTWARE%\wpkg-gp\Wpkg-GP-%PKG_VERSION%_x86.exe" />
<variable architecture="x64" name="EXE_INSTALL_PATH" value="%SOFTWARE%\wpkg-gp\Wpkg-GP-%PKG_VERSION%_x64.exe" />
<check type="uninstall" condition="versiongreaterorequal" path="Wpkg-GP %PKG_VERSION% .+" value="%PKG_VERSION%"/>
<install cmd="%EXE_INSTALL_PATH% /S /Features Client /INI %SETTINGS%\wpkg-gp\Wpkg-GP.ini">
<exit code="3010" reboot="delayed" />
</install>
<upgrade include="install" />
<downgrade include="install" />
</package>
</packages>

@ -0,0 +1,35 @@
{
my $ip = $InternalInterface{'IPAddress'};
my $wg = $smb{'Workgroup'};
my $secret = $wpkg{'UserPassword'} || 'secret';
my $out .=<<"EOF";
[WpkgConfig]
EnableViaLGP = 1
IgnoreGroupPolicy = 0
DisableAtBootUp = 0
WpkgCommand = \\\\$ip\\wpkg\\wpkg.js /synchronize /debug /nonotify
WpkgVerbosity = 1
WpkgNetworkUsername = $wg\\deploiement
WpkgNetworkPassword = "clear:$secret"
WpkgMaxReboots = 10
WpkgRebootPolicy = force
WpkgExecuteByNonAdmins = 0
WpkgExecuteByLocalUsers = 1
WpkgActivityIndicator = 1
[EnvironmentVariables]
SOFTWARE = \\\\$ip\\wpkg\\softwares
SETTINGS = \\\\$ip\\wpkg\\settings
WPKGLOGS = \\\\$ip\\wpkglogs
IPASSERELLE_IP = $ip
EOF
$out =~ s/\n/\r\n/g;
$OUT = $out;
}

Binary file not shown.

Binary file not shown.

@ -0,0 +1,53 @@
%define package wpkg-gp
%define version 0.1
%define realversion 0.15
%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/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
* Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com>
- initial release with Wpkg-GP 0.15
Loading…
Cancel
Save