tis-gopass

1.15.14-1
Gopass is an open-source password manager that allows you to store your passwords securely
928 downloads
Download
See build result See VirusTotal scan
tis-gopass icon
  • package : tis-gopass
  • name : gopass
  • version : 1.15.14-1
  • categories : Security
  • maintainer : WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor : gopass
  • licence : opensource_free,cpe:/a:mit:x11_license,wapt_public
  • locale : all
  • target_os : macos
  • impacted_process : gopass
  • architecture : x64
  • signature_date : 2024-08-28 10:01
  • size : 7.08 Mo
  • installed_size : 19.85 Mo
  • homepage : https://www.gopass.pw/
package           : tis-gopass
version           : 1.15.14-1
architecture      : x64
section           : base
priority          : optional
name              : gopass
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Gopass is an open-source password manager that allows you to store your passwords securely
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : macos
min_wapt_version  : 2.3
sources           : 
installed_size    : 19845693
impacted_process  : gopass
description_fr    : Gopass est un gestionnaire de mots de passe open-source qui vous permet de stocker vos mots de passe en toute sécurité
description_pl    : Gopass to menedżer haseł o otwartym kodzie źródłowym, który umożliwia bezpieczne przechowywanie haseł
description_de    : Gopass ist ein Open-Source-Passwortmanager, mit dem Sie Ihre Passwörter sicher speichern können
description_es    : Gopass es un gestor de contraseñas de código abierto que te permite almacenar tus contraseñas de forma segura
description_pt    : O Gopass é um gestor de senhas de código aberto que lhe permite guardar as suas senhas de forma segura
description_it    : Gopass è un gestore di password open-source che consente di memorizzare le password in modo sicuro
description_nl    : Gopass is een open-source wachtwoordmanager waarmee u uw wachtwoorden veilig kunt opslaan
description_ru    : Gopass - это менеджер паролей с открытым исходным кодом, который позволяет безопасно хранить пароли
audit_schedule    : 
editor            : gopass
keywords          : password,manager
licence           : opensource_free,cpe:/a:mit:x11_license,wapt_public
homepage          : https://www.gopass.pw/
package_uuid      : abd313e2-a05b-44c0-84ad-630b77474086
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 29c84dc37ac73e7844251874296e39e8411147b50487314d80e1393d8dae8615
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : kHp4gMiK4miVbpnUkh/33dyqGdQNu/YbyhQuo4eBrPzK0N3sq8owf78W6o6PPXCIaSlizt2N5Z6hmo7xV2/xViJcgVqB3cAH06pMstuqXQBgtTeY+fw/a9rLoKuJWXWoDKrss5POj/psD3jUWSH2m+yyEUWmm/V4SyjszBoyHim316smPxVDOfigSlMMOTXdr/onWn8DR3+Y3iHbEBCxEWBmhQTLNHAdhpqAm61ppmqpEkat4qWKOpVJTgkeBHO3jodaMjBZaBX34xZWDZhQK6FxehC9AicfpD//yrMsJCBGYYvc0IvE0UCm4BTS7H+Loe0rBYyqBMlXZifaQDHoFQ==
signature_date    : 2024-08-28T10:01:15.453885
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
# -*- coding: utf-8 -*-
from setuphelpers import *

bin_path = makepath("/", "usr", "local", "bin")
app_path = "/opt/gopass"

def install():
    # Extraction and copying to /opt/typst
    extract_path = glob.glob("gopass-*-darwin-amd64.tar.gz")[0]
    run(f"tar -xJvf {extract_path}")
    char_len = len(extract_path) - len('.tar.gz')
    extract_path = extract_path[:char_len]
    bin_name = "gopass"
    print(f"copying gopass to {app_path}")
    if not isdir(app_path):
        mkdirs(app_path)
    filecopyto(bin_name, app_path)
    # Creation of symlink
    if not isfile(f"{bin_path}/gopass"):
        print("create typst alias in path")
        os.symlink(f"{app_path}/gopass", f"{bin_path}/gopass")
    if isdir(extract_path):
        remove_tree(extract_path)


def uninstall():
    # Removing of symlink
    if isfile(f"{bin_path}/gopass"):
        remove_file(f"{bin_path}/gopass")
    # Removing of the software 
    if isdir(app_path):
        remove_tree(app_path)

# -*- 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": ".zip", "redhat_based" : "amd64.rpm", "debian_based" : "amd64.deb", "macos": "darwin-amd64.tar.gz"}
    api_url = "https://api.github.com/repos/gopasspw/gopass/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    tar_gz_found = False  # Flag pour indiquer la découverte d'un fichier .tar.gz
    for release in releases_dict:
        if tar_gz_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".tar.gz") 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", "")
                tar_gz_found = True  # Mettre à jour le flag pour indiquer qu'un tar.gz a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.tar.gz"):
        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()
1f5f35deebc72c2c9308c08031faaf8a6b6cdaa92f2b702a1b852821f3818273 : setup.py
 : __pycache__
5a5daa0f6fbd1e2b15e61e1482fb111c79737d4b7df24e430f1229977ae67d98 : update_package.py
29c84dc37ac73e7844251874296e39e8411147b50487314d80e1393d8dae8615 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
2d5da15e2bd7cf143687a6567e0819aae5672a433753d3e74baca607fd1af279 : luti.json
e7ade8617f27679fc1bb99c247f759917d96acac959578df0e37e5aa88eb8436 : gopass-1.15.14-darwin-amd64.tar.gz
adda7923d35606e653c756494e478669fd1cb33956e557e2cba7dcd67c7d4089 : WAPT/control