tis-glpi-agent

1.7.3-0
The GLPI Agent is a generic management agent. It can perform a certain number of tasks, according to its own execution plan, or on behalf of a GLPI server acting as a control point.
17511 downloads
Download
See build result See VirusTotal scan
tis-glpi-agent icon
  • package : tis-glpi-agent
  • name : GLPI Agent
  • version : 1.7.3-0
  • categories :
  • maintainer : Simon Fonteneau
  • installed_size : 72138232
  • editor :
  • licence : GPL-2.0
  • signature_date : 2024-04-08T12:04:59.795253
  • size : 17.66 Mo
  • locale : all
  • target_os : windows
  • impacted_process : glpi-agent.exe
  • architecture : x86
  • Homepage : https://github.com/glpi-project/glpi-agent
package           : tis-glpi-agent
version           : 1.7.3-0
architecture      : x86
section           : base
priority          : optional
name              : GLPI Agent
categories        : 
maintainer        : Simon Fonteneau
description       : The GLPI Agent is a generic management agent. It can perform a certain number of tasks, according to its own execution plan, or on behalf of a GLPI server acting as a control point.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : 
installed_size    : 72138232
impacted_process  : glpi-agent.exe
description_fr    : L'Agent GLPI est un agent de gestion générique. Il peut effectuer un certain nombre de tâches, selon son propre plan d'exécution, ou pour le compte d'un serveur GLPI faisant office de point de contrôle.
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : glpi
licence           : GPL-2.0
homepage          : https://github.com/glpi-project/glpi-agent
package_uuid      : abb38474-73cc-4ae2-8e91-8ccfd874d6c2
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : jK93DgjqxyvbSw7Soc6LH/Yv7FAkVMAQ8zkCuanRZlj7506yM4bg/ToR37PFq4uHP7iHx5AevFBHou9ZGuVV+TKUL0A1I+RVl5ZZ2/jfzKq4OQaWkVauWjYgJPVpIsQn1KnOJDdXgt0hh09YMoW4DichpDtd/05LMi1vpTWtnObFN+gJTvQ5UvIMCGWgBQk0gTq/lZ7cmVuD4NudsjShFemKfJWiJSdtBuh1pOObhRehn/3Lw4wZj9AG1jXJOHs2H+iT4W/f1xxST5jop2vvMbCriMVbiTToQAd0EIs7M3EV0HHZQsTcXa+6uawSYP8ji96VRQE6+4ByGRKGLB5kOw==
signature_date    : 2024-04-08T12:04:59.795253
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 *


def install():

    install_msi_if_needed(
        glob.glob("*.msi")[0]
    )
# -*- coding: utf-8 -*-
from setuphelpers import *
import os
import json


def update_package():
    proxies = {}
    if isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxies = {"http": proxywapt, "https": proxywapt}

    currentpath = os.path.dirname(os.path.realpath(__file__))

    url_api = "https://api.github.com/repos/glpi-project/glpi-agent/releases"

    json_load = json.loads(wgets(url_api, proxies=proxies))

    found = False
    for releases in json_load:
        if found:
            break
        for download in releases["assets"]:
            if download["browser_download_url"].endswith("%s.msi" % control.architecture):
                url_dl = download["browser_download_url"]
                binary = url_dl.split("/")[-1]
                found = True
                break


    version = binary.split('-')[2]
    allmsi = glob.glob("*.msi")
    for msi in allmsi:
        vers = get_msi_properties(msi)["ProductVersion"]
        if vers != version:
            remove_file(msi)

    if not isfile(binary):
        wget(url_dl,binary,proxies=proxies)


    control.version = get_msi_properties(glob.glob("*.msi")[0])["ProductVersion"] + "-0"
    control.save_control_to_wapt()
101622b948ee3b3cd57d5203d133fb30120366c505d04a694d00c1b010ee320b : setup.py
 : __pycache__
d2b2cf3019e767af3121f3ad45a5722df85f5de07d336a248f39d906dda3e5b3 : update_package.py
c6246be77fa0d87cb8860fc9de433dfc02b56edaaca368712d5b6267141eeee4 : WAPT/wapt.psproj
ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
9d8461bef96d26c9b9a522f959230dea4cf88cfaf5b11d5b62c844a28f3e14da : luti.json
357a51f5c0ea8f7d844b774d2960862b0b4652fb50e1b957323a3482c3564409 : GLPI-Agent-1.7.3-x86.msi
d6112ce4be715f7fe3ad004eba6390d8913d8df2e863ac6635d623fda1e4384c : WAPT/control