commit
8dcdd3fb83
6 changed files with 101 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/firefox/firefox.cfg", qw(wpkg-update bootstrap-console-save)); |
||||||
|
|
@ -0,0 +1,22 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<packages> |
||||||
|
<package id="firefox-config" |
||||||
|
name="Configuration Firefox" |
||||||
|
revision="2" |
||||||
|
priority="10" |
||||||
|
reboot="false"> |
||||||
|
|
||||||
|
<depends package-id="firefox" /> |
||||||
|
|
||||||
|
<variable architecture='x86' name='PROG' value='%PROGRAMFILES%\Mozilla Firefox' /> |
||||||
|
<variable architecture='x64' name='PROG' value='%PROGRAMFILES(x86)%\Mozilla Firefox' /> |
||||||
|
|
||||||
|
<install cmd='%COMSPEC% /C copy /Y "%SOFTWARE%\firefox\autoconf.js" "%PROG%\defaults\pref\"' /> |
||||||
|
<install cmd='%COMSPEC% /C copy /Y "%SETTINGS%\firefox\firefox.cfg" "%PROG%\"' /> |
||||||
|
|
||||||
|
<upgrade include="install" /> |
||||||
|
|
||||||
|
<remove cmd='%COMSPEC% /C del /F "%PROG%\defaults\pref\autoconf.js"' /> |
||||||
|
<remove cmd='%COMSPEC% /C del /F "%PROG%\firefox.cfg"' /> |
||||||
|
</package> |
||||||
|
</packages> |
@ -0,0 +1,15 @@ |
|||||||
|
// Autoconf |
||||||
|
|
||||||
|
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"}/firefox.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", "firefox.cfg"); |
||||||
|
|
@ -0,0 +1,54 @@ |
|||||||
|
%define package firefox-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-firefox |
||||||
|
|
||||||
|
%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/firefox |
||||||
|
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages |
||||||
|
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/firefox |
||||||
|
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/firefox/ |
||||||
|
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