commit
863b4cc2d2
6 changed files with 118 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
#!/usr/bin/perl -w |
||||
|
||||
use esmith::Build::CreateLinks qw(:all); |
||||
|
||||
event_link("sogo-update-addons", "wpkg-update", "10"); |
||||
event_link("sogo-update-addons", "bootstrap-console-save", "20"); |
||||
|
@ -0,0 +1,41 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
||||
<packages> |
||||
<package id="sogo-addons" |
||||
name="Addons SOGo" |
||||
revision="0.1" |
||||
reboot="false" |
||||
priority="10"> |
||||
|
||||
<!-- 7zip est nécessaire pour extraire l'XPI --> |
||||
<depends package-id="7zip" /> |
||||
<!-- Et bien sur, Thunderbird aussi est nécessaire ;-) --> |
||||
<depends package-id="thunderbird" /> |
||||
<!-- Lightning aussi doit être installé --> |
||||
<depends package-id="lightning" /> |
||||
|
||||
<variable name="PKG_VERSION" value="10.0.3" /> |
||||
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Thunderbird\distribution\bundles" /> |
||||
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Thunderbird\distribution\bundles" /> |
||||
|
||||
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\sogo-connector\install.rdf" | find /I "em:version=" | find "%PKG_VERSION%"' condition="exitcodeequalto" value="0" /> |
||||
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\sogo-integrator\install.rdf" | find /I "em:version=" | find "%PKG_VERSION%"' condition="exitcodeequalto" value="0" /> |
||||
|
||||
<install include="remove" /> |
||||
<install cmd='%COMSPEC% /C if not exist "%INSTALL_PATH%\sogo-connector" mkdir "%INSTALL_PATH%\sogo-connector"' /> |
||||
<install cmd='"%SOFTWARE%\7zip\unzip.bat" "%SOFTWARE%\thunderbird_addons\sogo-connector-%PKG_VERSION%.xpi" "%INSTALL_PATH%\sogo-connector"' /> |
||||
<install cmd='%COMSPEC% /C if not exist "%INSTALL_PATH%\sogo-integrator" mkdir "%INSTALL_PATH%\sogo-integrator"' /> |
||||
<install cmd='"%SOFTWARE%\7zip\unzip.bat" "%SOFTWARE%\thunderbird_addons\sogo-integrator.xpi" "%INSTALL_PATH%\sogo-integrator"' /> |
||||
|
||||
<upgrade include="install" /> |
||||
|
||||
<remove cmd='taskkill /F /IM thunderbird.exe'> |
||||
<exit code="0" /> |
||||
<exit code="128" /> |
||||
</remove> |
||||
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\sogo-connector" del /Q /F "%INSTALL_PATH%\sogo-connector"' /> |
||||
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\sogoo-integrator" del /Q /F "%INSTALL_PATH%\sogo-integrator"' /> |
||||
|
||||
</package> |
||||
</packages> |
||||
|
@ -0,0 +1,16 @@ |
||||
#!/bin/bash |
||||
|
||||
TMP=$(mktemp -d) |
||||
cd $TMP |
||||
unzip /home/e-smith/files/shares/wpkg/files/softwares/thunderbird_addons/sogo-integrator*sogo-demo.xpi 2>&1 > /dev/null |
||||
|
||||
HOSTNAME=$(db configuration get SystemName) |
||||
DOMAINNAME=$(db configuration get DomainName) |
||||
|
||||
sed -i -e "s|http://sogo-demo.inverse.ca/|https://$HOSTNAME.$DOMAINNAME/|g" ./chrome/content/extensions.rdf |
||||
rm -f $TMP/defaults/preferences/*.js |
||||
|
||||
rm -f /home/e-smith/files/shares/wpkg/files/softwares/thunderbird_addons/sogo-integrator.xpi |
||||
zip -r /home/e-smith/files/shares/wpkg/files/softwares/thunderbird_addons/sogo-integrator.xpi ./ 2>&1 > /dev/null |
||||
rm -rf $TMP/ |
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,54 @@ |
||||
%define package sogo-addons |
||||
%define version 10.0.3 |
||||
%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 |
||||
BuildRequires: e-smith-devtools |
||||
|
||||
Requires: ipasserelle-gp |
||||
Requires: wpkg-thunderbird |
||||
Requires: wpkg-7zip |
||||
|
||||
%description |
||||
%{package} for WPKG on iPasserelle |
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
unix2dos packages/* |
||||
perl ./createlinks |
||||
|
||||
%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/thunderbird_addons/ |
||||
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/thunderbird_addons/ |
||||
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 |
||||
* Thu May 31 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.3-1 |
||||
- initial release with connector and integrator 10.0.3 (for TB 10 esr) |
||||
|
Loading…
Reference in new issue