premier commit

tags/0.62
Daniel Berteaud 13 years ago
commit 8bbbaec987
  1. 25
      packages/putty.xml
  2. BIN
      softwares/putty-0.62-installer.exe
  3. 49
      wpkg-putty.spec

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="putty"
name="Client SSH PuTTY"
revision="1"
priority="0"
reboot="false">
<variable name="PKG_VERSION" value="0.62" />
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\PuTTY" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\PuTTY" />
<check type="uninstall" condition="exists" path="PuTTY version %PKG_VERSION%" />
<install cmd='%SOFTWARE%\putty\putty-%PKG_VERSION%-installer.exe /sp- /verysilent' />
<upgrade cmd='%SOFTWARE%\putty\putty-%PKG_VERSION%-installer.exe /sp- /verysilent' />
<remove cmd='%COMSPEC% /c copy "%SYSTEMROOT%\system32\print.exe" "%INSTALL_PATH%\putty.exe"' />
<remove cmd='"%INSTALL_PATH%\unins000.exe" /sp- /verysilent /norestart' >
<exit code="1" />
</remove>
<remove cmd='%COMSPEC% /c rmdir /s /q "%INSTALL_PATH%"' />
</package>
</packages>

@ -0,0 +1,49 @@
%define package putty
%define version 0.1
%define realversion 0.62
%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
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
* Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com>
- initial release with Putty 0.62
Loading…
Cancel
Save