Détails du package smp-config-for-firefox_5_all.wapt
retour Revenir à la liste des packages

smp-config-for-firefox

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-config-for-firefox
version           : 5
architecture      : all
section           : base
priority          : optional
maintainer        : Simon Fonteneau
description       : Configure Firefox (force wpad, diable migration from ie, disable update, disable pdf ,disable ipv6 ...)
depends           : 
conflicts         : 
maturity          : 
locale            : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : YTkRiGsum9T95/fu/ufJUFyAFjq/EbhFqH+2RTtjg2x2PuUn1IKMbnHW8wrUVn4t4htBUzJ4ubmfzYVDx7R5yqFWaJctaQweFArH1oojycxuOyQtkxeNb99ojxTi7yevWFK46+ySyt+CUyVJTX550TCLGHShFcU0qnhbGirmi7F+ys/QSYsxZSa+t1nLXehYRByFRGzIDxKjV9kiDxdMnb7pnLmUuAk1R9xnwMerycuRfv48jn/t+7BgdFebuYC9MNOgvYM1fePij4HHyebdPX/z/R6efBedN4qElFFEXC5cQpuDadYSJB5MUWDa+axEWEzv2K/TiRnVeNmln9pDUg==
signature_date    : 20180129-215525
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,min_os_version,max_os_version,min_wapt_version,sources,installed_size,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

# -*- coding: UTF-8 -*-
from setuphelpers import *

uninstallkey = []

def install():

    for uninstallkey in installed_softwares('Firefox'):
        locationfirefox =  uninstallkey['install_location']

        print("Disabling auto update")
        filecopyto("mozilla.cfg",makepath(locationfirefox))
        filecopyto("local-settings.js",makepath(locationfirefox,"defaults","pref"))

        print ("Disabling profile migration from ie")
        filecopyto("override.ini",makepath(locationfirefox,"browser"))

        print ("Override User UI")
        ensure_dir(makepath(locationfirefox,"browser","defaults","profile","chrome",""))
        filecopyto("userChrome.css",makepath(locationfirefox,"browser","defaults","profile","chrome"))

        """
        print ("Deploy extensions")
        ensure_dir(makepath(installlocation,"browser","extensions",""))
        copytree2("extensions",makepath(installlocation,"browser","extensions"))
        """
    if not installed_softwares('Firefox'):
        error('you must first install a Firefox')