tis-adoptium-openjdk11-jdk
11.0.15010-1
Adoptium OpenJDK 11 JDK HotSpot
31396 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal

- package : tis-adoptium-openjdk11-jdk
- name : Adoptium OpenJDK 11 JDK
- version : 11.0.15010-1
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
- editor : AdoptOpenJDK
- licence : GPLv2
- locale : all
- target_os : darwin
- impacted_process : java,javaw
- architecture : x64
- signature_date : 2022-06-15 17:05
- size : 186.07 Mo
- homepage : https://adoptium.net/
- conflicts :
package : tis-adoptium-openjdk11-jdk
version : 11.0.15010-1
architecture : x64
section : base
priority : optional
name : Adoptium OpenJDK 11 JDK
categories : System and network
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
description : Adoptium OpenJDK 11 JDK HotSpot
depends :
conflicts : tis-oracle-java11-jre-nonfree,tis-oracle-java11-jre-free
maturity : PROD
locale : all
target_os : darwin
min_wapt_version : 1.7
sources : https://github.com/adoptium/temurin11-binaries
installed_size :
impacted_process : java,javaw
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : AdoptOpenJDK
keywords : adopt,open,jdk,adoptopenjdk,java,jre
licence : GPLv2
homepage : https://adoptium.net/
package_uuid : e00b5e2f-a570-47b2-be9e-7a12e869eb0e
valid_from :
valid_until :
forced_install_on :
changelog : https://adoptium.net//release_notes.html
min_os_version : 6.1
max_os_version :
icon_sha256sum : 841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : rmpAoZkDA9fEV7YQQZyT6valFMwH0k4nNNengZONGVbhyXs2giLxVE4u+IzHxgaqK1GTkLDC4DYB8FtVa8bszyTthqJrBzp4GUPZK9EcY/ZKweifi5TfRFroCMKjfGHznnMcy6BH2PdAGoJ0oUk/+s3JA7L7AxLhUH7ymFFsr8RrUkoeYCQv7hAWCgiTaTffTA5KK10WlpfmwQ85H3EPmEI0sePefyUq6h2HsuXdtvzg6Rp3DqgXpncZuuN22/MCSTs4Wo9U8te6fqG5rWOb6EiH4KBIhuzalIfqni3bu0XMuWQyDhnOKmiMrZQM9r48KJIxxAxoOvLTPm4uu1n13g==
signature_date : 2022-06-15T17:05:26.678634
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 *
import platform
import json
# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "OpenJDK11U"
bin_type = "jdk"
bin_vm = "temurin-11.jdk"
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*%s*.pkg" % bin_contains)[0]
# Installing the software
print("Installing: %s" % bin_name)
install_pkg(bin_name)
def uninstall():
print("suppression de openjdk8")
shutil.rmtree("/Library/Java/JavaVirtualMachines/%s" % bin_vm)
def update_package():
# Declaring local variables
arch = control.architecture
result = False
proxies = get_proxies()
bin_name = bin_contains + arch + "-%s.msi"
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
# api : https://api.adoptium.net/q/swagger-ui/#/Assets/searchReleases
url_api = "https://api.adoptium.net/v3/assets/feature_releases/11/ga?architecture=x64&heap_size=normal&image_type=jdk&jvm_impl=hotspot&os=mac&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
found = False
for releases in json_load:
if found:
break
for binary in releases["binaries"]:
if (
bin_contains.lower() in binary["installer"]["link"].lower()
and binary["image_type"].lower() == bin_type.lower()
and binary["architecture"].lower() == "x64"
and binary["installer"]["link"].endswith(".pkg")
):
version = binary["scm_ref"].split("jdk-")[1].split("_")[0].replace("+", "0")
url_dl = binary["installer"]["link"]
latest_bin = url_dl.rsplit("/", 1)[1]
found = True
break
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# 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()
# renaming binary
os.rename(latest_bin, bin_contains + version + ".pkg")
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating update-package-sources
return result
def get_proxies():
r"""Return system proxy with the urllib python library
>>> get_proxies()
{'http': 'http://srvproxy.ad.domain.lan:8080',
'https': 'http://srvproxy.ad.domain.lan:8080'}
"""
if platform.python_version_tuple()[0] == "3":
from urllib.request import getproxies
else:
from urllib import getproxies
return getproxies()
def get_proxies_from_wapt_console():
r"""Return proxy information from the current user WAPT console
>>> get_proxies_from_wapt_console()
{'http': 'http://srvproxy.ad.domain.lan:8080',
'https': 'http://srvproxy.ad.domain.lan:8080'}
"""
proxies = {}
if platform.system() == "Windows":
waptconsole_ini_path = makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")
else:
waptconsole_ini_path = makepath(user_home_directory(), ".config", "waptconsole", "waptconsole.ini")
if isfile(waptconsole_ini_path):
proxy_wapt = inifile_readstring(waptconsole_ini_path, "global", "http_proxy")
if proxy_wapt:
proxies = {"http": proxy_wapt, "https": proxy_wapt}
return proxies
def get_version_from_binary(filename, property_name="ProductVersion"):
r"""Get installer version from file informations, for now, only exe and msi files are compatibles
Args:
filename (str): path to the file
property_name (str): selected property
Returns:
str: version number
"""
if filename.endswith(".msi"):
return get_msi_properties(filename)[property_name]
else:
return get_file_properties(filename)[property_name]
def remove_outdated_binaries(version, list_extensions=["exe", "msi", "deb", "rpm", "dmg", "pkg"], filename_contains=None):
r"""Remove files based on the version contained in his filename, failing over on file version on compatible OSes
Args:
version (str): version number of keeped files
list_extensions (str or list of str): file extensions of compared files
filename_contains (str or list of str): Part of the filename that must be contained (useful for distinguishing architecture and os)
Returns:
list: list of deleted files
.. versionadded:: 2.0
.. versionchanged:: 2.2
Now returns removed files, now checking .exe and .msi file versions
"""
files = []
if type(list_extensions) != list:
list_extensions = [list_extensions]
if filename_contains:
if type(filename_contains) != list:
filename_contains = [filename_contains]
list_extensions = ["." + ext for ext in list_extensions if ext[0] != "."]
for file_ext in list_extensions:
for bin_in_dir in glob.glob("*%s" % file_ext):
if not version in bin_in_dir:
if platform.system() == "Windows":
if file_ext == ".exe" or file_ext == ".msi":
if Version(version) == Version(get_version_from_binary(bin_in_dir, "ProductVersion")):
print("%s file or product version is correct (%s)" % (bin_in_dir, version))
continue
remove_file(bin_in_dir)
files.append(bin_in_dir)
if filename_contains:
for filename_contain in filename_contains:
if not filename_contain in bin_in_dir:
remove_file(bin_in_dir)
files.append(bin_in_dir)
return [fn for fn in files]
def wait_uninstallkey_absent(key=None, max_loop=120, keywords=None, name=None):
import time
if len([f for f in [key, keywords, name] if f]) > 1:
error("Arguments conflict key: %s keywords: %s name: %s" % (key, keywords, name))
if key:
searchparam = "key: %s" % str(key)
elif name:
searchparam = "name: %s" % str(name)
else:
searchparam = "keywords: %s" % str(keywords)
print("Waiting for the removal of %s from Windows registry" % searchparam)
loop = 0
while uninstall_key_exists(key, keywords=keywords, name=name):
loop += 1
if loop > max_loop:
return "timeout after %s seconds" % max_loop
time.sleep(1)
64d8685c9ea5e8c0b26792b8f6b6e90eb4f07c97eba78ebfca550e90a8d2e627 : setup.py
ade3d0e0ace5783a097c094cc91a304e7ceaaba0b65bd6ac901529c1c0a157bc : OpenJDK11U11.0.15010.pkg
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
6e3fbea32435a434f4482634cb4c6456017e78fb32dc8354a9ccdaf52acad578 : luti.json
a602a751c060003266d3230553a80f9047aaa87bc9ce0fd3d6cac489be768475 : WAPT/control