commit
cf095a3aa8
4 changed files with 92 additions and 0 deletions
@ -0,0 +1,44 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<packages> |
||||
<package id="ultradefrag" |
||||
name="UltraDefrag" |
||||
revision="1" |
||||
reboot="false" |
||||
priority="10"> |
||||
|
||||
<variable name="PKG_VERSION" value="5.0.6" /> |
||||
|
||||
<variable architecture="x86" name="EXE_PATH" value="%SOFTWARE%\ultradefrag\ultradefrag-%PKG_VERSION%.bin.i386.exe" /> |
||||
<variable architecture="x64" name="EXE_PATH" value="%SOFTWARE%\ultradefrag\ultradefrag-%PKG_VERSION%.bin.amd64.exe" /> |
||||
|
||||
<check type="uninstall" condition="versiongreaterorequal" path="Ultra Defragmenter" value="%PKG_VERSION%" /> |
||||
|
||||
<install cmd='"%EXE_PATH%" /S /LANG="French (FR)"' /> |
||||
<!-- Delete shortcuts --> |
||||
<!-- XP --> |
||||
<install cmd='%COMSPEC% /C del /q /f "%ALLUSERSPROFILE%\Bureau\UltraDefrag.lnk"'> |
||||
<exit code="any" /> |
||||
</install> |
||||
<!-- Vista / 7 --> |
||||
<install cmd='%COMSPEC% /C del /q /f "%PUBLIC%\Desktop\UltraDefrag.lnk"'> |
||||
<exit code="any" /> |
||||
</install> |
||||
|
||||
<!-- Delete ContextMenu entries --> |
||||
<!--<install cmd='reg delete "HKCR\*\shell\udefrag" /f' /> |
||||
<install cmd='reg delete "HKCR\Drive\shell\udefrag" /f' /> |
||||
<install cmd='reg delete "HKCR\Folder\shell\udefrag" /f' />--> |
||||
|
||||
<upgrade include="install" /> |
||||
|
||||
<downgrade include="install" /> |
||||
|
||||
<!-- <remove cmd='"%SystemRoot%\system32\bootexctrl.exe" /u defrag_native' /> --> |
||||
<remove cmd='"%SystemRoot%\UltraDefrag\uninstall.exe" /S' /> |
||||
<!-- Uninstall returns immediatly, so just wait a few seconds for it to remove before checking the status again |
||||
Unfortunatly, WINDOWS has no sleep commands --> |
||||
<remove cmd='%COMSPEC% /C ping -n 5 127.0.0.1 1>NUL 2>NUL' > |
||||
<exit code="any" /> |
||||
</remove> |
||||
</package> |
||||
</packages> |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,48 @@ |
||||
%define package ultradefrag |
||||
%define version 5.0.6 |
||||
%define release 1.beta0 |
||||
|
||||
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: misc |
||||
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
||||
BuildArch: noarch |
||||
BuildRequires: unix2dos |
||||
|
||||
Requires: ipasserelle-gp |
||||
|
||||
%description |
||||
%{package} for WPKG on iPasserelle |
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
unix2dos packages/* |
||||
|
||||
%install |
||||
/bin/rm -rf %{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/ |
||||
|
||||
%clean |
||||
/bin/rm -rf %{buildroot} |
||||
|
||||
%changelog |
||||
* Wed Jul 4 2012 Daniel Berteaud <daniel@firewall-services.com> - 5.0.5 |
||||
- initial release |
||||
|
Loading…
Reference in new issue