tis-glpi-agent

1.11-2
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.
17785 downloads
Download
See build result See VirusTotal scan
tis-glpi-agent icon
  • package : tis-glpi-agent
  • name : GLPI Agent
  • version : 1.11-2
  • categories :
  • maintainer : Simon Fonteneau
  • installed_size : 72138232
  • editor :
  • licence : GPL-2.0
  • signature_date : 2024-12-10T16:02:28.000000
  • size : 21.75 Mo
  • locale : all
  • target_os : macos
  • impacted_process : glpi-agent
  • architecture : x64
  • Homepage : https://github.com/glpi-project/glpi-agent
package           : tis-glpi-agent
version           : 1.11-2
architecture      : x64
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         : macos
min_wapt_version  : 2.0
sources           : 
installed_size    : 72138232
impacted_process  : glpi-agent
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      : 43b7bd58-cd35-4e70-b9e3-21e07b5cbc57
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    : 2024-12-10T16:02:28.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         : XQM/o+ypgvesIOzcaOWXkm5FGMI0QkhKc9q4UJG6KR9iHiyvo2HBYKZbSygAhGRhnCp47QgRpy/W8XtHI/mMJglwF2gHJmKgJpHQzCxR/WDSEq0BZaREd4mEo+RFSjUhp3ArnKi9mi0hSZBVB1DGYn5SRwFtFCV89hFH/eTpjo4sZOdg3LH9jcI9GvSdXjAtcvy6AavvG0aZ0aMrwG9DACGOkT5aEDUxxeZqwZpKxH46nMZanyvWti9XPwWn3/oY6lBB5unbKCkzhLnKeS59VxQdmhQWj+TvOO5EbeZFCcB7m3GbQHZ7g//qEZ5eAYX0H7M0acppHWaidURANM3VDQ==
# -*- coding: utf-8 -*-
from setuphelpers import *


def install():

    if installed_softwares('org.glpi-project.glpi-agent'):
        uninstall_pkg('org.glpi-project.glpi-agent')

    install_pkg(
        glob.glob("*.pkg")[0],
        key='pkgid:com.teclib.glpi-agent',
        min_version=control.get_software_version()
    )

def uninstall():
    files_to_delete = [
        "/Applications/GLPI-Agent",
        "/var/log/glpi-agent.log",
        "/usr/local/bin/dmidecode",
        "/Library/LaunchDaemons/com.teclib.glpi-agent.plist"
    ]
    for file in files_to_delete:
        if isfile(file):
            remove_file(file)
        if isdir(file):
            remove_tree(file)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import os
import json


def update_package():
    proxies = get_proxies_from_wapt_console()

    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("x86_64.pkg"):
                url_dl = download["browser_download_url"]
                binary = url_dl.split("/")[-1]
                found = True
                break


    version = binary.split('-')[2].split('_')[0]
    allbin = glob.glob("*.pkg")
    for f in allbin:
        if f != binary:
            remove_file(f)

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

    control.set_software_version(version)
    control.save_control_to_wapt()
9a793298ff8dda35450feb7e09e5871fc9c6127a26a5291585a7f10c5033cc77 : GLPI-Agent-1.11_x86_64.pkg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
bd08ec57b417c2e15de52771e10b58a173f27826240f40e590c791d5520bc95e : WAPT/control
ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97 : WAPT/icon.png
c6246be77fa0d87cb8860fc9de433dfc02b56edaaca368712d5b6267141eeee4 : WAPT/wapt.psproj
e8c523efefb1b0ac1c0f476411dfbe81591a52a2c763f61930eece08c1031168 : luti.json
4f775420fde59540302bba1c94a6c19bcda46a117834f90fd109faa0d0eb6119 : setup.py
a434fe7c8f82d1cdba886570db31d84abba6fc9e7f1d0e645fae871107f3de51 : update_package.py