commit
09727bba9f
6 changed files with 99 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||||||
|
#!/usr/bin/perl -w |
||||||
|
|
||||||
|
use esmith::Build::CreateLinks qw(:all); |
||||||
|
|
||||||
|
templates2events("/home/e-smith/files/shares/wpkg/files/settings/thunderbird/thunderbird.cfg", qw(wpkg-update bootstrap-console-save)); |
||||||
|
|
@ -0,0 +1,22 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<packages> |
||||||
|
<package id="thunderbird-config" |
||||||
|
name="Configuration Thunderbird" |
||||||
|
revision="1" |
||||||
|
priority="10" |
||||||
|
reboot="false"> |
||||||
|
|
||||||
|
<depends package-id="thunderbird" /> |
||||||
|
|
||||||
|
<variable architecture='x86' name='PROG' value='%PROGRAMFILES%\Mozilla Thunderbird' /> |
||||||
|
<variable architecture='x64' name='PROG' value='%PROGRAMFILES(x86)%\Mozilla Thunderbird' /> |
||||||
|
|
||||||
|
<install cmd='copy /Y %SOFTWARE%\thunderbird\autoconf.js %PROG%\defaults\pref\' /> |
||||||
|
<install cmd='copy /Y %SETTINGS%\thunderbird\thunderbird.cfg %PROG%\' /> |
||||||
|
|
||||||
|
<upgrade include="install" /> |
||||||
|
|
||||||
|
<remove cmd='del /F %PROG%\defaults\pref\autoconf.js' /> |
||||||
|
<remove cmd='del /F %PROG%\thunderbird.cfg' /> |
||||||
|
</package> |
||||||
|
</packages> |
@ -0,0 +1,13 @@ |
|||||||
|
if(getenv("USER") != "") \{ |
||||||
|
var user = getenv("USER"); |
||||||
|
\} else \{ |
||||||
|
var env_user = getenv("USERNAME"); |
||||||
|
\} |
||||||
|
|
||||||
|
var mail = env_user + '@{$DomainName}'; |
||||||
|
|
||||||
|
lockPref("mail.identity.useremail", mail); |
||||||
|
lockPref("autoadmin.append_emailaddr", true); |
||||||
|
lockPref("autoadmin.global_config_url", "http://{$SystemName.$DomainName}/thunderbird.cfg"); |
||||||
|
lockPref("autoadmin.failover_to_cached", true); |
||||||
|
lockPref("autoadmin.offline_failover", true); |
@ -0,0 +1,4 @@ |
|||||||
|
// Autoconfig
|
||||||
|
pref("general.config.obscure_value", 0); |
||||||
|
pref("general.config.filename", "thunderbird.cfg"); |
||||||
|
|
@ -0,0 +1,54 @@ |
|||||||
|
%define package thunderbird-config |
||||||
|
%define version 0.1 |
||||||
|
%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 |
||||||
|
|
||||||
|
%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/thunderbird |
||||||
|
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages |
||||||
|
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/thunderbird |
||||||
|
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/thunderbird/ |
||||||
|
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 |
||||||
|
* Mon Jun 25 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-1 |
||||||
|
- Initial release |
||||||
|
|
Loading…
Reference in new issue