initial commit

tags/0.1 0.1
Daniel Berteaud 12 years ago
commit bfe2040695
  1. 5
      createlinks
  2. 29
      packages/userprofile.xml
  3. 2
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/userprofile/portail.url/10All
  4. 0
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/userprofile/portail.url/template-begin
  5. 53
      wpkg-userprofile.spec

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

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="userprofile"
name="Configuration du profile utilisateur"
revision="%PKG_VERSION%"
priority="10"
reboot="false">
<variable name='PKG_VERSION' value='1' />
<variable name='REG_PATH' value='HKLM\Software\iPasserelle' />
<check type="registry" condition="equals" path="%REG_PATH%\UserProfileRevision" value="%PKG_VERSION%" />
<!-- Vista/Seven -->
<install cmd='%COMSPEC% /C if exist "%PUBLIC%\Desktop" copy /Y "%SETTINGS%\userprofile\portail.url" "%PUBLIC%\Desktop\Portail.url"' />
<!-- XP -->
<install cmd='%COMSPEC% /C if exist "%ALLUSERSPROFILE%\Bureau" copy /Y "%SETTINGS%\userprofile\portail.url" "%ALLUSERSPROFILE%\Bureau\Portail.url"' />
<!-- Write the current profile revision so we know when we need to upgrade -->
<install cmd='%COMSPEC% /C reg add "%REG_PATH%" /v "UserProfileRevision" /t REG_SZ /d "%PKG_VERSION%" /f' />
<upgrade include="install" />
<downgrade include="install" />
<remove cmd='%COMSPEC% /C if exist "%PUBLIC%\Desktop" del /F "%PUBLIC%\Desktop\Portail.url"' />
<remove cmd='%COMSPEC% /C if exist "%ALLUSERSPROFILE%\Bureau" del /F "%ALLUSERSPROFILE%\Bureau\Portail.url"' />
<remove cmd='%COMSPEC% /C reg delete "%REG_PATH%" /v "UserProfileRevision" /f' />
</package>
</packages>

@ -0,0 +1,53 @@
%define package userprofile
%define version 0.1
%define release 1
Name: wpkg-%{package}
Version: %{version}
Release: %{release}%{?dist}
Summary: %{package} for WPKG on iPasserelle
Group: System/Softwares
URL: http://www.ipasserelle.com
Source0: %{name}-%{version}.tar.gz
License: GPL
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/userprofile
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/userprofile
#cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/firefox/
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 Feb 19 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1-1
- Initial release
Loading…
Cancel
Save