tis-veracrypt

1.26.14-2
VeraCrypt is a free and open-source utility for on-the-fly encryption (OTFE)
2807 downloads
Download
See build result See VirusTotal scan
tis-veracrypt icon
  • package : tis-veracrypt
  • name : VeraCrypt
  • version : 1.26.14-2
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Clément BAZIRET
  • editor :
  • licence : opensource_free,cpe:/a:apache:license_2.0,wapt_private
  • locale : all
  • target_os : centos7
  • impacted_process : VeraCrypt
  • architecture : x64
  • signature_date : 2024-12-25 14:13
  • size : 8.56 Mo
  • installed_size : 44.13 Mo
  • homepage : https://www.veracrypt.fr/en/Home.html
package           : tis-veracrypt
version           : 1.26.14-2
architecture      : x64
section           : base
priority          : optional
name              : VeraCrypt
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Clément BAZIRET
description       : VeraCrypt is a free and open-source utility for on-the-fly encryption (OTFE)
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : centos7
min_wapt_version  : 2.3
sources           : https://www.veracrypt.fr/en/Downloads.html
installed_size    : 44126078
impacted_process  : VeraCrypt
description_fr    : VeraCrypt est un utilitaire libre et gratuit pour le chiffrement à la volée (OTFE)
description_pl    : VeraCrypt to darmowe i otwarte narzędzie do szyfrowania w locie (OTFE)
description_de    : VeraCrypt ist ein kostenloses und quelloffenes Dienstprogramm für fliegende Verschlüsselung (OTFE)
description_es    : VeraCrypt es una utilidad gratuita y de código abierto para el cifrado al vuelo (OTFE)
description_pt    : O VeraCrypt é um utilitário gratuito e de código aberto para encriptação on-the-fly (OTFE)
description_it    : VeraCrypt è un'utility gratuita e open-source per la crittografia al volo (OTFE)
description_nl    : VeraCrypt is een gratis en open-source hulpprogramma voor on-the-fly encryptie (OTFE)
description_ru    : VeraCrypt - это бесплатная утилита с открытым исходным кодом для шифрования "на лету" (OTFE)
audit_schedule    : 
editor            : 
keywords          : veracrypt,free,open,source,utility,encryption
licence           : opensource_free,cpe:/a:apache:license_2.0,wapt_private
homepage          : https://www.veracrypt.fr/en/Home.html
package_uuid      : efbd54a4-13cd-4463-9968-76debff8e83f
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/veracrypt/VeraCrypt/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 3efa1d2410d693f6c3ef1aec3342a4ae1b0216cd7821f77079bfa8027baaab70
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-25T14:13:16.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         : ABYuZ/FScbTvva5Ga18y/GJ0Ho8Q9+ivdzOWmhU4qwM+fygV6U3ogoX6Ub6KcIjYksFSfPg7X48axlSO+V6+SUvsQBJSbo1iHOQFwioBEK8QYT3jxm2tnS8J32PlhkFFNLTUNkmT4coCvg1mUQF0hS5cN2/Voin1fn2cVKrZ6T2px4S2JYBNNPr027f81Nu6eBOxB48D0qmkuVhTKsgceH6h+hgSSZXA8ZW7jsL1uwg4QDPvILPek38XGVcbvaA4lkKoLqzVPMcmbkxecUVQzvp9gq/Wjq52qy6aCSEZEeTCaF+N3AhD2d+BSUxkEN9Bp0avOhfBcULuq+227LFzkg==
# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    bin_name = glob.glob("veracrypt-*-CentOS-7-x86_64.rpm")[0]

    install_rpm(bin_name)


def uninstall():
    run("rpm -e veracrypt")
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    app_name = control.name

    api_url = "https://api.github.com/repos/veracrypt/VeraCrypt/releases"

    download_dict = {
        "windows-x64": ".msi",
        "mac-all": ".dmg",
        "debian-bookworm-x64": "Debian-12-amd64.deb",
        "centos7-x64": "CentOS-7-x86_64.rpm",
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    print("API used is: %s" % api_url)
    releases_dict = wgets(api_url, proxies=proxies, as_json=True)[:5] # Limit to 5 latest release
    valid_releases = [
        release for release in releases_dict
        if not release['prerelease']
        and not any(i in release['name'] for i in ['Windows', 'MacOSX'])
    ]
    latest_release = sorted(valid_releases, key=lambda release: Version(release['tag_name'].split("_")[-1]), reverse=True)[0]

    version = latest_release["tag_name"].split("_")[-1]
    for to_download in latest_release["assets"]:
        if to_download["name"].endswith(download_dict[os_type]):
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            break

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b84d12202e1652d89501d9c8e18b2f41ea2322ab1751c7f45e1223be2f756d3a : WAPT/control
3efa1d2410d693f6c3ef1aec3342a4ae1b0216cd7821f77079bfa8027baaab70 : WAPT/icon.png
af5ead5a5db6032fbec969a0d06cafd8c0baba3e20479a441a51cc8fad91df71 : luti.json
3dcf38a2e9409a80960defa05a15607680adeffa6242dd7ab36885fbbc68eaee : setup.py
f4761c498eb7d8eb40d374ed6bf9caeb86ce68c99f62a59a3897bfc44022f6ec : update_package.py
3cd6c3dfde2389cc0518f5237153f630b935531c4e347777b1e961ea529b51e2 : veracrypt-1.26.14-CentOS-7-x86_64.rpm