commit
e2256c6d9e
4 changed files with 92 additions and 0 deletions
@ -0,0 +1,34 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<packages> |
||||
<package id="filelink-dl" |
||||
name="FileLink DL Extension" |
||||
revision="1" |
||||
reboot="false" |
||||
priority="10"> |
||||
|
||||
<!-- 7zip est nécessaire pour extraire l'XPI --> |
||||
<depends package-id="7zip" /> |
||||
<!-- Thunderbird est aussi nécessaires ;-) --> |
||||
<depends package-id="thunderbird-config" /> |
||||
|
||||
<variable name="PKG_VERSION" value="0.12" /> |
||||
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Thunderbird\distribution\bundles\dl" /> |
||||
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Thunderbird\distribution\bundles\dl" /> |
||||
|
||||
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\install.rdf" | find /I "<em:version>%PKG_VERSION%"' condition="exitcodeequalto" value="0" /> |
||||
|
||||
<install include="remove" /> |
||||
<install cmd='%COMSPEC% /C if not exist "%INSTALL_PATH%" mkdir "%INSTALL_PATH%"' /> |
||||
<install cmd='"%SOFTWARE%\7zip\unzip.bat" "%SOFTWARE%\thunderbird_addons\thunderbird-filelink-dl-%PKG_VERSION%.xpi" "%INSTALL_PATH%"' /> |
||||
|
||||
<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%" del /Q /F "%INSTALL_PATH%"' /> |
||||
|
||||
</package> |
||||
</packages> |
||||
|
@ -0,0 +1,5 @@ |
||||
<?php echo $pref;?>("mail.cloud_files.accounts.account1.restURL", "https://uploadapi.<?php echo DOMAIN; ?>/rest.php");
|
||||
<?php echo $pref;?>("mail.cloud_files.accounts.account1.type", "DL");
|
||||
<?php echo $pref;?>("mail.cloud_files.accounts.account1.username", "<?php echo $uid; ?>");
|
||||
<?php echo $pref;?>("mail.cloud_files.inserted_urls.footer.link", "http://www.ipasserelle.com");
|
||||
<?php echo $pref;?>("mail.cloud_files.accounts.account1.displayName", "Lien iPasserelle");
|
Binary file not shown.
@ -0,0 +1,53 @@ |
||||
%define package filelink-dl |
||||
%define version 0.12 |
||||
%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-config |
||||
Requires: wpkg-7zip |
||||
|
||||
%description |
||||
%{package} for WPKG on iPasserelle |
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
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/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/ |
||||
/usr |
||||
|
||||
%clean |
||||
/bin/rm -rf %{buildroot} |
||||
|
||||
%changelog |
||||
* Wed Dec 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.12-1 |
||||
- initial release with DL for Thunderbird 0.12 |
||||
|
Loading…
Reference in new issue