- package: tis-opensc
- name: OpenSC
- version: 0.26.1-5
- categories: Drivers
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
- licence: LGPL
- locale: all
- target_os: windows
- impacted_process: pkcs11-tool,opensc-notify,opensc-tool
- architecture: all
- signature_date:
- size: 40.10 Mo
- homepage : https://github.com/OpenSC/OpenSC/wiki
package : tis-opensc
version : 0.26.1-5
architecture : all
section : base
priority : optional
name : OpenSC
categories : Drivers
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
description : OpenSC smartcard framework
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources : https://github.com/OpenSC/OpenSC/releases
installed_size :
impacted_process : pkcs11-tool,opensc-notify,opensc-tool
description_fr : Cadre de carte à puce OpenSC
description_pl : OpenSC smartcard framework
description_de : OpenSC Smartcard-Framework
description_es : Marco de la tarjeta inteligente OpenSC
description_pt : Estrutura do OpenSC smartcard
description_it : Quadro di riferimento per smartcard OpenSC
description_nl : OpenSC smartcard-kader
description_ru : Система смарт-карт OpenSC
audit_schedule :
editor :
keywords :
licence : LGPL
homepage : https://github.com/OpenSC/OpenSC/wiki
package_uuid : 560720bd-83cd-42ad-befe-617738bc7ff1
valid_from :
valid_until :
forced_install_on :
changelog : https://github.com/OpenSC/OpenSC/releases
min_os_version :
max_os_version :
icon_sha256sum : b80b143a5ab7954131c83e41e21b34607c7ed9a02d307f064c3099ec6a342f62
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-01-19T19:33:48.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 : NmNmAnK9Y2ancCZwiDz9YebnT3otEfqKtrAFxKiRw4C3BUzRffycYRPKB1Dhp2/GdFkhxI1Y+bCStQUTJp+Siwhlu4XImQEBrrmn/1/W+znq46fnug24+7oiI4PsUYPsODg1KrhVQ8QbX/YVNuadNYpD+yIJHVGQQvKnBFrFeCH6KKL3Xv2SBfBURfuuGFaMJyb9j1Zgq3mPHOGrs9ul0HAssi5IMNulRJJ9rBxbvIV7TJBvpWXI/mvFnliA2Ahn90/WLbOdn2apIYg8oC7JUvZeCCwA4niWzaAolNtpr464tei/1YXvBI8tOR5cS+f9K4e5vUPDPjKpbrKp0AQXaQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
# Initializing variables
package_version = control.get_software_version()
# removing previous version
for uninstall in installed_softwares("OpenSC smartcard framework"):
print("Uninstall %s" % uninstall["name"])
cmd = uninstall_cmd(uninstall["key"])
run(cmd)
# Installing the package
install_msi_if_needed(
"OpenSC-%s_win32.msi" % package_version,
min_version=package_version,
)
if iswin64():
install_msi_if_needed(
"OpenSC-%s_win64.msi" % package_version,
min_version=package_version,
)
if not 'opensc' in registry_readstring(HKEY_LOCAL_MACHINE,r"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","Path").lower():
add_to_system_path(makepath(programfiles,'OpenSC Project','OpenSC','tools'))
# -*- coding: utf-8 -*-
from setuphelpers import *
import json
def update_package():
print("Download/Update package content from upstream binary sources")
# Initializing variables
app_name = control.name
url_api = "https://api.github.com/repos/OpenSC/OpenSC/releases/latest"
proxy = get_proxies()
bin_name_string_x64 = "OpenSC-%s_win64.msi"
bin_name_string_x86 = "OpenSC-%s_win32.msi"
# Getting latest informations from Github API
json_load = json.loads(wgets(url_api, proxies=proxy))
for download in json_load:
version = json_load["tag_name"]
break
latest_bin_x64 = bin_name_string_x64 % version
latest_bin_x86 = bin_name_string_x86 % version
url_dl_x64 = "https://github.com/OpenSC/OpenSC/releases/download/" + version + "/" + latest_bin_x64
url_dl_x86 = "https://github.com/OpenSC/OpenSC/releases/download/" + version + "/" + latest_bin_x86
print("Latest " + app_name + " version is: " + version)
# Downloading latest binaries
if not isfile(latest_bin_x64):
print("Downloading: " + latest_bin_x64)
wget(url_dl_x64, latest_bin_x64, proxies=proxy)
if not isfile(latest_bin_x86):
print("Downloading: " + latest_bin_x86)
wget(url_dl_x86, latest_bin_x86, proxies=proxy)
# Changing version of the package
control.version = "%s-%s" % (version, int(control.version.split("-")[-1]) + 1)
control.save_control_to_wapt()
print("Changing version to: %s in WAPT\\control" % control.version)
# Deleting outdated binaries
for bin_in_dir in glob.glob("*.msi"):
if bin_in_dir != latest_bin_x64 and bin_in_dir != latest_bin_x86:
print("Outdated binary: " + bin_in_dir + " Deleted")
remove_file(bin_in_dir)
fde5dbd86fd21424eb048484d7b151c0a9b2953decab44576ad54ac98366cfc7 : OpenSC-0.26.1_win32.msi
bb2a47bd7a87617f38828c17eb7129a40fe27fe6656781882f2924fc2c9cf96e : OpenSC-0.26.1_win64.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
33b7e03e3fd8de6389dadbedffdf2935adf3fdd710ab49d05bf5edb7cac5ee1e : WAPT/control
b80b143a5ab7954131c83e41e21b34607c7ed9a02d307f064c3099ec6a342f62 : WAPT/icon.png
59b66ea762f73eee496b854daa6bb9a65fde9b6b46a5edf1484e6d3350e92fe3 : luti.json
1bed22889e8d9acc8a9394785e1daaee7aa45bebd9b8ea9967333435fd1890d3 : setup.py
5c15b87136b034a34aed63960d1b2c2caa20d9a25cccf840590b0084c1b6babc : update_package.py