tis-glpi-agent

1.10-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.
17556 downloads
Download
See build result See VirusTotal scan
tis-glpi-agent icon
  • package : tis-glpi-agent
  • name : GLPI Agent
  • version : 1.10-0
  • categories :
  • maintainer : Simon Fonteneau
  • installed_size : 72138232
  • editor :
  • licence : GPL-2.0
  • signature_date : 2024-07-14T11:01:52.308372
  • size : 4.22 Mo
  • locale : all
  • target_os : debian_based
  • impacted_process :
  • architecture : all
  • Homepage : https://github.com/glpi-project/glpi-agent
package           : tis-glpi-agent
version           : 1.10-0
architecture      : all
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         : debian_based
min_wapt_version  : 2.0
sources           : 
installed_size    : 72138232
impacted_process  : 
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      : 1b597ef3-c8f7-4496-9c6a-07118719585d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : aU+6hUtv5juns5VbU55qTpHtqRcwImr2Yuah3oaBfhUNo9p7o3oaxHlCO8yWLCf4yM9afIddrLk7tQ4I1o2nRhlYIncSpEmxkNlBy6llQMnMgkhqNO9VTpesh9cZRCCf3hUFhDWhX2umLK6NeIrZAeuEOHcYv56MmUpGn1hmHZFXYe+1KD4RXEvm2zE149BAEaljnIPOexLygNOR90o7lCWli3pWLdp+Qo/Lwet2lK3wJTA9i90yVLUr/GUaiJkMWwiq/+Z+Jl/0aDO5dghEaJfzDYojGTex5/3hY7Hj3U7k11zWScLdodxeke7PXFxyNc1+WAw+6ON+PoIJ5jxMkQ==
signature_date    : 2024-07-14T11:01:52.308372
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_deb(glob.glob("*.deb")[0])

def uninstall():
    uninstall_apt('glpi-agent*')
# -*- 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("_all.deb") and "glpi-agent_" in download["browser_download_url"] :
                url_dl = download["browser_download_url"]
                binary = url_dl.split("/")[-1]
                found = True
                break


    alldeb = glob.glob("*.deb")
    for deb in alldeb:
        if deb != binary:
            remove_file(deb)

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

    version = binary.split('_')[1].split('-')[0]

    control.version = version  + "-0"
    control.save_control_to_wapt()
f010b4cb5ac6e2c902858240f2237efd153cc67e3e4484fcfd186182d51d9a9c : glpi-agent_1.10-1_all.deb
a562c3e8720ab827b52e611c5efe5421d4af2f64aaf91790d1335bec31879165 : setup.py
 : __pycache__
858d9aadd802b8f17430fdf72285fa8b14aa86588047e174f0cb6f65e9a2dad2 : update_package.py
c6246be77fa0d87cb8860fc9de433dfc02b56edaaca368712d5b6267141eeee4 : WAPT/wapt.psproj
ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
9fbd32203fa2030ae1fc3c86e192f8e0847847908df95263191d33ff66e6fe36 : luti.json
72f7e644dbdc5ce258bbe3b4a3b3af0307da0049ac33546381fa7dc0f0e572bb : WAPT/control