tis-smartmontools icon

smartmontools

Silent install package for smartmontools

7.3.0.5338-1

  • package: tis-smartmontools
  • name: smartmontools
  • version: 7.3.0.5338-1
  • categories: Utility
  • maintainer: WAPT Team,Tranquil IT,Pierre Cosson
  • editor: smartmontools
  • licence: gpl
  • locale: all
  • target_os: windows
  • impacted_process: smartctl,smartd
  • architecture: all
  • signature_date:
  • size: 1.25 Mo
  • installed_size: 4.05 Mo
  • homepage : https://www.smartmontools.org/

package           : tis-smartmontools
version           : 7.3.0.5338-1
architecture      : all
section           : base
priority          : optional
name              : smartmontools
categories        : Utility
maintainer        : WAPT Team,Tranquil IT,Pierre Cosson
description       : The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA/SATA, SCSI/SAS and NVMe disks
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/smartmontools/smartmontools/releases
installed_size    : 4050944
impacted_process  : smartctl,smartd
description_fr    : Le paquet smartmontools contient deux utilitaires (smartctl et smartd) pour contrôler et surveiller les systèmes de stockage en utilisant le système SMART (Self-Monitoring, Analysis and Reporting Technology System) intégré dans la plupart des disques modernes ATA/SATA, SCSI/SAS et NVMe.
description_pl    : Pakiet smartmontools zawiera dwa programy narzędziowe (smartctl i smartd) do kontroli i monitorowania systemów pamięci masowej z wykorzystaniem systemu Self-Monitoring, Analysis and Reporting Technology (SMART) wbudowanego w większość nowoczesnych dysków ATA/SATA, SCSI/SAS i NVMe
description_de    : Das smartmontools-Paket enthält zwei Dienstprogramme (smartctl und smartd) zur Steuerung und Überwachung von Speichersystemen unter Verwendung des in den meisten modernen ATA/SATA-, SCSI/SAS- und NVMe-Festplatten integrierten Self-Monitoring, Analysis and Reporting Technology System (SMART)
description_es    : El paquete smartmontools contiene dos programas de utilidad (smartctl y smartd) para controlar y supervisar los sistemas de almacenamiento utilizando el sistema de tecnología de autocontrol, análisis e información (SMART) incorporado en la mayoría de los discos ATA/SATA, SCSI/SAS y NVMe modernos
description_pt    : O pacote smartmontools contém dois programas utilitários (smartctl e smartd) para controlar e monitorizar sistemas de armazenamento usando o Sistema de Tecnologia de Auto Monitorização, Análise e Relatórios (SMART) incorporado na maioria dos discos modernos ATA/SATA, SCSI/SAS e NVMe
description_it    : Il pacchetto smartmontools contiene due programmi di utilità (smartctl e smartd) per controllare e monitorare i sistemi di archiviazione utilizzando il sistema tecnologico di auto-monitoraggio, analisi e reporting (SMART) integrato nella maggior parte dei moderni dischi ATA/SATA, SCSI/SAS e NVMe
description_nl    : Het smartmontools pakket bevat twee hulpprogramma's (smartctl en smartd) om opslagsystemen te controleren en te bewaken met behulp van het Self-Monitoring, Analysis and Reporting Technology System (SMART) dat in de meeste moderne ATA/SATA, SCSI/SAS en NVMe schijven is ingebouwd
description_ru    : Пакет smartmontools содержит две программы-утилиты (smartctl и smartd) для управления и мониторинга систем хранения данных с помощью системы технологии самоконтроля, анализа и отчетности (SMART), встроенной в большинство современных дисков ATA/SATA, SCSI/SAS и NVMe
audit_schedule    : 
editor            : smartmontools
keywords          : 
licence           : gpl
homepage          : https://www.smartmontools.org/
package_uuid      : 4f498733-111e-4f63-a5b2-9664ac451da1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : d642b35ce6441158dc071677fb958ad01830271d373c332d64e48dec67f80834
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : ZTcrI3Ph3pWS3Xsm4suQgyerH/clbYSKcsw9qY3zaaOgUU4sYcbHNjgDzl73N1EnbtKbEV6vTAdlUlfD6yIGEOJ05ZfuQkkLwiV66MmIZg15lNGzqZn9J+P3cIVVAMC4eFPJv1T+Fy3KWuGzqh8a4FpQ0BvBO6yxXuwHC4Ytz7Qc1VL0/t3LQg5cW5Jo8FZlZvmfwTrf4p83ZglWH+HbJMiRRoo103QM8ZfvKphOIXUy1uRXmQIt8a/4lCC/G2WbNW5W5v8Fz5VMKzWhmgnDT7k4KKzINd6VZkc32lQGGgOz+qVdAXBOYN7SpTv8lO2a2rJ8/cUAw7t+hJ2oZz2TCg==
signature_date    : 2022-07-30T11:03:04.793021
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 *


# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "smartmontools"
bin_path = makepath(programfiles, "smartmontools", "bin", "smartctl.exe")


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.exe" % bin_contains)[0]

    def get_version_bin(key):
        return get_file_properties(bin_path)["ProductVersion"]

    # uninstalling older versions of the package
    if package_version > get_version_bin("test") or not isdir(makepath(programfiles, "smartmontools")):
        for to_uninstall in installed_softwares(bin_contains):
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(control.impacted_process.split(","))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])

    # Installing the software
    print("Installing: %s" % bin_name)
    # print("Installing: %s (%s)" % (bin_name, package_version))
    # print("Installing: %s (%s)" % (control.name, package_version))
    install_exe_if_needed(
        bin_name,
        silentflags="/S",
        key="smartmontools",
        min_version=package_version,
        get_version=get_version_bin,
    )

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


# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "smartmontools"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/smartmontools/smartmontools/releases/latest"
    bin_ends = "win32-setup.exe"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if bin_contains in download["name"] and bin_ends in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].replace("v", "")
            latest_bin = download["name"]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        # if not version_from_file.startswith(version) and version_from_file != '':
        if Version(version_from_file) != Version(version) and version_from_file != "":
            print("Changing version to the version number of the binary")
            os.rename(latest_bin, bin_contains + version_from_file + bin_ends)
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

545ce373999a6ca5ddb86b6059b816b23b691298dc36884a57e34f6ef2e319b9 : setup.py
a6797be9cedc69e23d706d730680786146b803ca21c4e3fc0af1509d26364f5d : update_package.py
6fcdfd72f486f74700810ff1b8016ec842a3495990f356c2f76b984cbbc89e2a : smartmontools7.3.0.5338win32-setup.exe
d642b35ce6441158dc071677fb958ad01830271d373c332d64e48dec67f80834 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
b9a079a8a0911f61ca79d4ec589f38bc076a06bcf658772108551ca797266608 : luti.json
c8a793157ef8a43b787481957bd7396646ddcb74b126873309996268c844a43f : WAPT/control