commit e9c3c23aaef65f2b73719daea175e846efa9bc2b Author: Daniel Berteaud Date: Tue Jun 5 17:33:46 2012 +0200 premier commit diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..8f999c3 --- /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/wpkg-gp/Wpkg-GP.ini", qw(wpkg-update bootstrap-console-save)); diff --git a/packages/wpkg-gp.xml b/packages/wpkg-gp.xml new file mode 100755 index 0000000..b4522a8 --- /dev/null +++ b/packages/wpkg-gp.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini/10All new file mode 100644 index 0000000..613a3dc --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini/10All @@ -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; + +} diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini/template-begin b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/softwares/Wpkg-GP-0.15_x64.exe b/softwares/Wpkg-GP-0.15_x64.exe new file mode 100755 index 0000000..a69f41b Binary files /dev/null and b/softwares/Wpkg-GP-0.15_x64.exe differ diff --git a/softwares/Wpkg-GP-0.15_x86.exe b/softwares/Wpkg-GP-0.15_x86.exe new file mode 100755 index 0000000..5ee894d Binary files /dev/null and b/softwares/Wpkg-GP-0.15_x86.exe differ diff --git a/wpkg-wpkg-gp.spec b/wpkg-wpkg-gp.spec new file mode 100644 index 0000000..e8d9f93 --- /dev/null +++ b/wpkg-wpkg-gp.spec @@ -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 +- initial release with Wpkg-GP 0.15 +