tis-audit-glpi-inventory icon

GLPI Inventory with wapt

Silent install package for GLPI Inventory with wapt

1.14-0

  • package: tis-audit-glpi-inventory
  • name: GLPI Inventory with wapt
  • version: 1.14-0
  • maintainer: Simon Fonteneau
  • licence: GPL-2.0
  • locale: all
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 29.47 Mo
  • installed_size: 72.14 Mo
  • homepage : https://github.com/glpi-project/glpi-agent

package           : tis-audit-glpi-inventory
version           : 1.14-0
architecture      : x64
section           : base
priority          : optional
name              : GLPI Inventory with wapt
categories        : 
maintainer        : Simon Fonteneau
description       : GLPI Inventory with wapt
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : 
installed_size    : 72138232
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 7d
editor            : 
keywords          : glpi
licence           : GPL-2.0
homepage          : https://github.com/glpi-project/glpi-agent
package_uuid      : 54b63f66-cb1c-418f-ac9e-467c23d3bcd7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-22T11:00:15.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         : EEc8P/Hi+zewCssXAcWOxhUZ2x2LYIF2MGQmItfoivV0+x8hrMP5kiD/D/fDTabRnVzgSA4xPzaCa3Swu9w0hzvyPFW6u1wiVan3g6QJpWS2pVAfxfC/AOmFP52dSBsUio+BSX8T0cTpkdZ3XeEcwW+G6+1fiTyoAKaG8shL044IvRRkhLrj+SfI1f/nF8w5h6r+q+FV0S0pulgW0enTw7S7wN/WEg1H6pOLPXEdWVhHay3WDaKfNikAwY7by8swHk5fNO5JLH2gd7szWC7KiZYbs0kiR9qFyoYu2F0L6Y0Z1eIhWBY77n18PVPp05Invn9nLw5YtkqWiO9EDGO6nA==

# -*- coding: utf-8 -*-
from setuphelpers import *
import json


def install():

    azip = glob.glob("*.zip")[0]
    unzip(azip,makepath(persistent_dir))


def audit():
    jsonfile = makepath(persistent_dir,'inventory.json')
    run('"%s" --json > "%s"' % (makepath(persistent_dir,'glpi-inventory.bat'),jsonfile))
    with open(jsonfile,'rb') as f:
        datajson = json.load(f)

    WAPT.write_audit_data_if_changed("audit-glpi-inventory", "audit-glpi-inventory", datajson, keep_days=365,max_count=1)

    return "OK"

# -*- 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.zip" % control.architecture):
                url_dl = download["browser_download_url"]
                binary = url_dl.split("/")[-1]
                found = True
                break


    version = binary.split('-')[2]
    allexe = glob.glob("*.zip")
    for f in allexe:
        if f != binary:
            remove_file(f)

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


    control.version = version + "-0"
    control.save_control_to_wapt()

fdb6ee086dc15df4ddbd61d9d9f0439b08e6d46f7d019eb56ca7d6df105c1842 : GLPI-Agent-1.14-x64.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
7691bc54d41ae995302c70b0595ac3108e40978bb36e3aab07438506404a8ba7 : WAPT/control
ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97 : WAPT/icon.png
c0155e198100c2cdbaa8b6395c7ac3d4f45d6ba05993de02232ddf7b51209ae6 : luti.json
bf0c1836b5be16f1ec8a00b9657f76e3446dfedef6c7de0009c660fce1e82c57 : setup.py
cebd8b2dea75600eee27ac7ba96bcf1f2c8b4ecb55b51afbfdc6a03154959167 : update_package.py