• package: tis-etcd
  • name: ETCD
  • version: 3.5.21-1
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • licence: opensource_free,cpe:/a:apache:license_2.0,wapt_private
  • locale: all
  • target_os: windows
  • impacted_process: etcd
  • architecture: x64
  • signature_date:
  • size: 21.42 Mo
  • installed_size: 57.06 Mo

package           : tis-etcd
version           : 3.5.21-1
architecture      : x64
section           : base
priority          : optional
name              : ETCD
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : etcd is a key-value store that provides a reliable way to store data that needs to be accessed by a distributed system or cluster of machines
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 57062601
impacted_process  : etcd
description_fr    : etcd est un magasin de valeurs clés qui offre un moyen fiable de stocker des données auxquelles un système distribué ou une grappe de machines doit accéder
description_pl    : etcd to magazyn klucz-wartość, który zapewnia niezawodny sposób przechowywania danych, do których musi mieć dostęp rozproszony system lub klaster maszyn
description_de    : etcd ist ein Key-Value-Store, der eine zuverlässige Möglichkeit bietet, Daten zu speichern, auf die ein verteiltes System oder ein Cluster von Rechnern zugreifen muss
description_es    : etcd es un almacén de claves y valores que proporciona una forma fiable de almacenar datos a los que debe acceder un sistema distribuido o un clúster de máquinas
description_pt    : O etcd é um armazenamento de valores chave que fornece uma forma fiável de armazenar dados que têm de ser acedidos por um sistema distribuído ou um cluster de máquinas
description_it    : etcd è un archivio di valori-chiave che fornisce un modo affidabile per memorizzare i dati a cui deve accedere un sistema distribuito o un cluster di macchine
description_nl    : etcd is een key-value store die een betrouwbare manier biedt om gegevens op te slaan die benaderd moeten worden door een gedistribueerd systeem of cluster van machines
description_ru    : etcd - это хранилище ключевых значений, которое обеспечивает надежный способ хранения данных, доступ к которым должен быть предоставлен распределенной системе или кластеру машин
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,cpe:/a:apache:license_2.0,wapt_private
homepage          : 
package_uuid      : 435608b6-f700-4e5f-891d-eb6aa5660186
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a28ec1bf1c8cfb456b57143aa632d743221b82504dff9c30f7720d38100539a7
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-02T12:57:09.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : TMjkLATgKVot9my/XnBKIvvAfxvZ/bBYYz4egoc4sJ//h/OtFY8ZuiIGfV/1NiQCyw8Vf8+B0uRNx2T4RpxuiKvM6YyueENTkYHoS05ZKlXdBF0+Dp0ALsVI5dsswxicOWLY7nWFa2D9WVl1VOlZofPGXGxoWPclo/0GTmvHXj4sRkzEJ3B/+v64trQroxv+me58VyVdDnTvnzV29ulGNqjRpHLotIk8R+v9YoF5rN5qmdNQlw6dhwAJgTdChuOu3GbEqAvOzksF9xn1szbfoD4ef5exVgHpm4YoSnD/5pDscgN3R2vymPl5GAsYi/iQAFh7iCqvele2YyJU5JlVjw==

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

app_name = "etcd"
app_dir = makepath(programfiles, app_name)
app_path = makepath(app_dir, f"{app_name}.exe")


def install():
    # Declaring local variables
    zip_name = glob.glob("etcd-v*-windows-amd64.zip")[0]
    unzip_dest = "."
    unzipped_dir = zip_name.rsplit(".", 1)[0]

    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)
    mkdirs(app_dir)
    print("Extracting: %s to: %s" % (zip_name, app_dir))
    unzip(zip_name, unzip_dest)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)

    # Creating custom shortcuts
    create_desktop_shortcut(app_name, target=app_path)
    create_programs_menu_shortcut(app_name, target=app_path)


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)

# -*- coding: utf-8 -*-
from setuphelpers import *
import re


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    update_dict = {"windows": "windows-amd64.zip", "macos": "darwin-amd64.zip"}
    api_url = "https://api.github.com/repos/etcd-io/etcd/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    zip_found = False  # Flag pour indiquer la découverte d'un fichier .zip
    for release in releases_dict:
        if zip_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".zip") and update_dict[control.target_os] in asset["browser_download_url"]:
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"].replace("v", "")
                zip_found = True  # Mettre à jour le flag pour indiquer qu'un zip a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.zip"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
1f165dd6665f97d7a32cc31dc91793a231f1039cda18af39d5e1f9edb85f59ff : WAPT/control
a28ec1bf1c8cfb456b57143aa632d743221b82504dff9c30f7720d38100539a7 : WAPT/icon.png
36fbf1ba0bff59a06ea994cac266fa855b2d06bc07ff0a2daf9a4b112b0afa24 : etcd-v3.5.21-windows-amd64.zip
d4a7c6fe8728481a380a3f9073743ed21737583d85edcf3d4b44e4ef59e5e680 : luti.json
88d32bfb4676e9ff20320d2a52ed197e4462715fd7a67b224cd84c3cd8295570 : setup.py
da55c4d9c7152dbffd0400839ac1c97c6b5c51217ef7a47a42ba54903060f634 : update_package.py