GLPI Inventory with wapt
Silent install package for GLPI Inventory with wapt
1.7.2-0
- package: tis-audit-glpi-inventory
- name: GLPI Inventory with wapt
- version: 1.7.2-0
- maintainer: Simon Fonteneau
- licence: GPL-2.0
- locale: all
- target_os: windows
- architecture: x86
- signature_date:
- size: 25.52 Mo
- installed_size: 72.14 Mo
- homepage : https://github.com/glpi-project/glpi-agent
package : tis-audit-glpi-inventory
version : 1.7.2-0
architecture : x86
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 : 0f1879a5-360c-434e-9599-b1742cf193e2
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : dCJ53h5rVJFaMag5TIpwOGPnorvRPV5fuHCykbFFZFaFLOVa8bUEdBSnQBWvk+bdwja9jSuvpJj/Zg6T6PJxmt8SKTTAZd5t7GA8nHiEgwgPRjiipbFEbSPTqKOJNXS/JkV15EP0b7K64tvOLW2sWjmU1OC63ub+jgpzpZ7YzypWA0NWnzB7EWIqP4lUvZRcOURsjMJSWp6/7bFkUci/0szyXo1hdvJ/dRRyUolQDL5enlMq6VdFO8/XI02tF8Q/azXM1xe9gEy7lDDcmvPWxtzUpL/IP34j6cpYk7b73hdQhHVCHoWL9vS3yJQ0B3SlFV1jMt08VDvR3mOQroFuaQ==
signature_date : 2024-03-30T14:00:31.109100
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 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()
bf0c1836b5be16f1ec8a00b9657f76e3446dfedef6c7de0009c660fce1e82c57 : setup.py
d28f7cf963064c2907893cb00ed67ecf1c59e5771b489afe30ffbbae33749861 : glpi-agent-1.7.2-x86.zip
cebd8b2dea75600eee27ac7ba96bcf1f2c8b4ecb55b51afbfdc6a03154959167 : update_package.py
ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
3a95cc2d3d587d38bc7c98cacb2a9be839c2fef1216f633bb2c4cd6aafaa7e10 : luti.json
e663bd44a75decd5a011ea00934c0be6faa6b2d4b69b687bccc1001b7da79f1c : WAPT/control