
tofu
Paquet d’installation silencieuse pour tofu
1.10.2-1
- package: tis-opentofu-portable
- name: tofu
- version: 1.10.2-1
- maintainer: Amel FRADJ
- licence: MPL-2.0 license
- target_os: windows
- architecture: all
- signature_date:
- size: 25.64 Mo
- homepage : opentofu.org
package : tis-opentofu-portable
version : 1.10.2-1
architecture : all
section : base
priority : optional
name : tofu
categories :
maintainer : Amel FRADJ
description : OpenTofu is an OSS tool for creating, modifying and versioning infrastructure securely and efficiently
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : OpenTofu est un outil OSS permettant de créer, de modifier et de versionner une infrastructure de manière sûre et efficace
description_pl : OpenTofu to narzędzie OSS do bezpiecznego i wydajnego tworzenia, modyfikowania i wersjonowania infrastruktury
description_de : OpenTofu ist ein OSS-Tool, mit dem man eine Infrastruktur sicher und effizient erstellen, ändern und versionieren kann
description_es : OpenTofu es una herramienta OSS para crear, modificar y versionar infraestructuras de forma segura y eficiente
description_pt : O OpenTofu é uma ferramenta OSS para criar, modificar e versionar infra-estruturas de forma segura e eficiente
description_it : OpenTofu è uno strumento OSS per la creazione, la modifica e il versionamento di infrastrutture in modo sicuro ed efficiente
description_nl : OpenTofu is een OSS-tool voor het veilig en efficiënt maken, wijzigen en versiebeheer van infrastructuur
description_ru : OpenTofu - это OSS-инструмент для безопасного и эффективного создания, изменения и версионирования инфраструктуры
audit_schedule :
editor :
keywords :
licence : MPL-2.0 license
homepage : opentofu.org
package_uuid : c1cb2db3-6673-48e1-9411-472bdb9be27b
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 68a49e9c72829057aafb675ea8f2a67602d89a93321bb0fa1e0f48d685c5e679
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-07-06T20:06:40.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 : lYOe2y9W4BFuXlrikDTVUavlWc/LC6K/K8H5mmNM7g/esrEyYU+d2a8Xcze+rB4qkujp1+TxCN0uJFwZNh+o+x/KqlZgEOiisZVC31v7Y5Hk/l8LE25QweOFAi9+wEoCZwnwFJRw7zHHjzQSTYonFWOyuku8bVRZUc7F11w2IrKF7fqJ0B5yaze1skOQaVG9jWNSigVnGWJhKIlLB067BK5RSsSJxb/OeWgitfc8CIAExo+UoYMgw4uUh927xhf2RHTu5shkIjWm4x86+BvxaT9Yx5U5nUl0dfExGStnQPN5qxLGsEyR1j1ccWyTgPxLRUHdIO6LXp+CC95ZpUghvw==
# -*- coding: utf-8 -*-
from setuphelpers import *
"""
"""
app_name = "tofu "
editor_dir = makepath(programfiles, "tofu")
app_dir = makepath(editor_dir, "tofu")
app_path = makepath(app_dir,"tofu.exe")
audit_version = False
def get_installed_version(app_path):
return get_file_properties(app_path).get("FileVersion", "")
def install():
# Declaring local variables
zip_name = glob.glob(f"*.zip")[0]
unzipped_dir = "tofu"
# 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, unzipped_dir))
unzip(zip_name, unzipped_dir)
print('Copy tofu to %s' % app_dir)
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 audit():
# Auditing software
audit_status = "OK"
installed_version = get_installed_version(app_path)
if Version(installed_version) < Version(control.get_software_version()) and audit_version:
print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
audit_status = "WARNING"
elif isdir(app_dir) and not dir_is_empty(app_dir):
print("%s (%s) is installed" % (app_name, installed_version))
audit_status = "OK"
else:
print("%s is not installed" % app_name)
audit_status = "ERROR"
return audit_status
def uninstall():
# Uninstalling software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir):
remove_tree(app_dir)
if dir_is_empty(editor_dir):
remove_tree(editor_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()
git_repo = "opentofu/opentofu"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if download["browser_download_url"].endswith("windows_386.zip") :
url_dl = download["browser_download_url"]
version = json_load["tag_name"].replace("v", "")
filename = download["name"]
break
if not isfile(filename):
package_updated = True
wget(url_dl,filename,proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.zip'):
if f != filename:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
6265db1fdda2041f649914d2e47bd40e6b7bd3bbef5dc77b3f83581e3bf06161 : WAPT/control
68a49e9c72829057aafb675ea8f2a67602d89a93321bb0fa1e0f48d685c5e679 : WAPT/icon.png
4da0f4c27ba46de50599818e6758846b96d923a966f6eccfd0e86ff8b61a3c1b : luti.json
9b5d20c72a0c8e96f7fbdcc6e5e7f3bae84eee18270f4364fab15913461cd5e2 : setup.py
104ee4ef2f5b125dac13c15efb3252cbec45754da2814798457e939ba03b8554 : tofu_1.10.2_windows_386.zip
146cfc90f815af7bf32984092d697c4e798b2e3a3e317913c59b6fd82b185e5b : update_package.py