tis-audit-glpi-inventory icon

GLPI Inventory with wapt

Silent install package for GLPI Inventory with wapt

1.15-0

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

package           : tis-audit-glpi-inventory
version           : 1.15-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      : 93e0dde5-0e6e-43b3-82e6-47102f5798e2
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-06-16T07:40:07.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         : pKXh8ApaYC/qzBdzYvkmZWTNKOcwJxh8QX/0KtTmEhZ5PkNK6vw4cldAr2FJRPVqNBSvYaSxAhn8+kGbnE2Dx+Bsduc7blfhjWGU36BHfNAK3dbLrQahXvE0Zjo9/vM2FVVTrzhRWVKIs1KZ/QuX/6xunDqsUVaC4w+Hly99npvTSLMHsoXzZLCYP+/w1/IbC/WQ55zJb4pEtmj6Loy5aFtLEhR3Xjqv37Sd70caowl81RzdZHAapj4QaMiW+dmh61KEZ7j66mFP01DK5mwtNZoPP5KB0XM4PVxOkwxWJuxz6I/n+gQEaac33iH/vWORZ2uV2th9i52oBzxI+uxpng==

# -*- 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()

3147e953b7eb429506595205b042b99a3d3900033fe3647c27be14a4d0b972c5 : GLPI-Agent-1.15-x64.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
bc663b5754925625b6535ab028d795fd19fdebccd76551f98b5f2e99f354252c : WAPT/control
ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97 : WAPT/icon.png
5bde5270057bcad2fa94f0280fdfe127173fd17875aa29ab05dd58ad9afab0a4 : luti.json
bf0c1836b5be16f1ec8a00b9657f76e3446dfedef6c7de0009c660fce1e82c57 : setup.py
cebd8b2dea75600eee27ac7ba96bcf1f2c8b4ecb55b51afbfdc6a03154959167 : update_package.py