commit 09727bba9f09d2c4dfb0d17e36faa949fb75ea1b Author: Daniel Berteaud Date: Mon Jun 25 19:26:27 2012 +0200 premier commit diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..5f1825d --- /dev/null +++ b/createlinks @@ -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)); + diff --git a/packages/thunderbird-config.xml b/packages/thunderbird-config.xml new file mode 100644 index 0000000..2ed74aa --- /dev/null +++ b/packages/thunderbird-config.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/tools/wpkg/files/settings/thunderbird/thunderbird.cfg/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/wpkg/files/settings/thunderbird/thunderbird.cfg/10All new file mode 100644 index 0000000..829fe93 --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/wpkg/files/settings/thunderbird/thunderbird.cfg/10All @@ -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); diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/tools/wpkg/files/settings/thunderbird/thunderbird.cfg/template-begin b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/wpkg/files/settings/thunderbird/thunderbird.cfg/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/softwares/autoconf.js b/softwares/autoconf.js new file mode 100644 index 0000000..88d1f4b --- /dev/null +++ b/softwares/autoconf.js @@ -0,0 +1,4 @@ +// Autoconfig +pref("general.config.obscure_value", 0); +pref("general.config.filename", "thunderbird.cfg"); + diff --git a/wpkg-thunderbird-config.spec b/wpkg-thunderbird-config.spec new file mode 100644 index 0000000..1bf9215 --- /dev/null +++ b/wpkg-thunderbird-config.spec @@ -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 0.1-1 +- Initial release +