From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4d5fSL1SnLz2y97 for ; Tue, 11 Nov 2025 21:14:58 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4d5fSG6DPKz2xS5 for ; Tue, 11 Nov 2025 21:14:54 +0000 (UTC) Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4d5fSF4wJCz2v for ; Tue, 11 Nov 2025 21:14:53 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=disroot.org header.s=mail header.b=Q9U23aQW; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (mail01.ipfire.org: domain of robin.roevens@disroot.org designates 178.21.23.139 as permitted sender) smtp.mailfrom=robin.roevens@disroot.org ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none; t=1762895693; b=NJgSyLSCCvfoZxFQ1fToFxbkaQvabQ+PnfZe7ceqABx/eHJoyHzoeBlICdTRZU01b9HbsH Aj3WCWVqfmmxkacb4w4NgpJyF7Jpsz0TAi4fAqBjP5DHFh+7XqsKY6r5arvoruNhVD+f0x kr8mOOzWuvr7Q4mV/YWCgpASGtNTjIkINnN50+BTbA5DKczXKqXuoIO4UMEMkruPhmTiyc N226TKDK9eoBwNI3M9X9Crk+K927NlBqjJ1mjXDhZoG/QmfIIQ3Wv8B0zHLJ1/ZlQw7PJo XMbC5lxfcVVz10qUW9p80Ig0+1efFJYZhk2vtioHXYjoc6TDy7XgxeAoSaUOLQ== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=disroot.org header.s=mail header.b=Q9U23aQW; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (mail01.ipfire.org: domain of robin.roevens@disroot.org designates 178.21.23.139 as permitted sender) smtp.mailfrom=robin.roevens@disroot.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1762895693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=gIqG7hKVEkhL6HEggPaY+kdgRmqY99Nq0wphFTSc2qk=; b=u7RqhJ6pcLWlSLDty40pUPqcTTp3D4vDm3eaXnYGqDS3+bmao3nd+/HgBuDIiuou2C1oS/ tFkoEbOcYusfWqWod3ju1i8IzSgqG+HMJqqXOGLffEFXVrjdKo81dnFwHGCtcKSrQUnivQ JT/Ocb4QWZdqsXx7MVXXBzsfhp9ENMep1RI3WYagJKcq2aDaoHJcPb5zv7DQp+R5LhKPUw 9XvxdH1xpmhX9ub/Se0CV1EbP/LQcF+8Njt8RVc9WBcqjpJg8fkZpwtOVP/EbJ2rIhA3qB LXCuogDrvalShklt2rzNwLVMXB/e6xffBEHHsQr6z/5+bQt7LTg6DiVUWtx/xA== Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 48BD625F7C for ; Tue, 11 Nov 2025 22:14:53 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SGLqNtzGqV7Y for ; Tue, 11 Nov 2025 22:14:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1762895692; bh=hT3x8jxEL5niGcNkmVIsXBGttQ4JM/qZ6ejpJ6ZCv4Y=; h=From:To:Cc:Subject:Date; b=Q9U23aQWDYTpbdtc+9KZASIMaOCsp+/hkZR6m/DuWvz2Jgq/nlHOn6+4YeC5cJWxv S4qmKah8tiDZTeiDYh92/rgqEf8LcpAl842cPJ1+EnHo6lbGRdOTa4pPHId/PL3GFq Y3cJSgyzhwdd+o8I1PwVOLXCRT9tZtLixs8MW5sK/xEoy01c2/m1DeUWZMdugYFLch LD7w0b0FVOfStd74l9yg/TpaPxZFJAKIYWzGcFzpObfSDxX/f8vBEpNfXoVcsE/M+J 0Le3bePu3HV5+YZLjEAuBgq2He3j9okBTjatl/c3eqUlkdru12EbAjjB/BMV80LaDN f6wcTZ6wEJncw== Received: from chojin.roevenslambrechts.be (chojin.roevenslambrechts.be [192.168.0.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (no client certificate requested) (Authenticated sender) by hachiman (MailScanner Milter) with SMTP id 4329B42F3E1; Tue, 11 Nov 2025 22:14:47 +0100 (CET) From: Robin Roevens To: development@lists.ipfire.org Cc: Robin Roevens Subject: [PATCH] python3-zabbix-utils: New package: v2.0.3 Date: Tue, 11 Nov 2025 22:14:41 +0100 Message-ID: <20251111211442.579737-1-robin.roevens@disroot.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-RoevensLambrechts-MailScanner-ID: 4329B42F3E1.AD543 X-RoevensLambrechts-MailScanner: Found to be clean X-RoevensLambrechts-MailScanner-From: robin.roevens@disroot.org X-RoevensLambrechts-MailScanner-Watermark: 1763500487.87751@OQwKOK2LbFyBssbiNVxSqg X-Rspamd-Action: no action X-Spamd-Result: default: False [-2.26 / 11.00]; BAYES_HAM(-3.00)[100.00%]; SPF_REPUTATION_SPAM(1.64)[0.54693038783546]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-0.98)[-0.982]; DMARC_POLICY_ALLOW(-0.50)[disroot.org,reject]; R_MISSING_CHARSET(0.50)[]; RWL_MAILSPIKE_EXCELLENT(-0.40)[178.21.23.139:from]; R_SPF_ALLOW(-0.20)[+a:c]; R_DKIM_ALLOW(-0.20)[disroot.org:s=mail]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; IP_REPUTATION_HAM(-0.01)[asn: 50673(0.00), country: NL(-0.01), ip: 178.21.23.139(0.00)]; RCPT_COUNT_TWO(0.00)[2]; FUZZY_RATELIMITED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; ASN(0.00)[asn:50673, ipnet:178.21.23.0/24, country:NL]; DKIM_REPUTATION(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[disroot.org:+]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org] X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4d5fSF4wJCz2v A Python library with modules for working with Zabbix (Zabbix API, Zabbix sender, Zabbix get) Signed-off-by: Robin Roevens --- .../rootfiles/packages/python3-zabbix-utils | 19 ++++ lfs/python3-zabbix-utils | 86 +++++++++++++++++++ make.sh | 1 + 3 files changed, 106 insertions(+) create mode 100644 config/rootfiles/packages/python3-zabbix-utils create mode 100644 lfs/python3-zabbix-utils diff --git a/config/rootfiles/packages/python3-zabbix-utils b/config/rootfiles/packages/python3-zabbix-utils new file mode 100644 index 000000000..d3a5d602d --- /dev/null +++ b/config/rootfiles/packages/python3-zabbix-utils @@ -0,0 +1,19 @@ +#usr/lib/python3.10/site-packages/zabbix_utils +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.3-py3.10.egg-info +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.3-py3.10.egg-info/PKG-INFO +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.3-py3.10.egg-info/SOURCES.txt +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.3-py3.10.egg-info/dependency_links.txt +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.3-py3.10.egg-info/requires.txt +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.3-py3.10.egg-info/top_level.txt +usr/lib/python3.10/site-packages/zabbix_utils/__init__.py +usr/lib/python3.10/site-packages/zabbix_utils/aioapi.py +usr/lib/python3.10/site-packages/zabbix_utils/aiogetter.py +usr/lib/python3.10/site-packages/zabbix_utils/aiosender.py +usr/lib/python3.10/site-packages/zabbix_utils/api.py +usr/lib/python3.10/site-packages/zabbix_utils/common.py +usr/lib/python3.10/site-packages/zabbix_utils/exceptions.py +usr/lib/python3.10/site-packages/zabbix_utils/getter.py +usr/lib/python3.10/site-packages/zabbix_utils/logger.py +usr/lib/python3.10/site-packages/zabbix_utils/sender.py +usr/lib/python3.10/site-packages/zabbix_utils/types.py +usr/lib/python3.10/site-packages/zabbix_utils/version.py diff --git a/lfs/python3-zabbix-utils b/lfs/python3-zabbix-utils new file mode 100644 index 000000000..8c292a4a0 --- /dev/null +++ b/lfs/python3-zabbix-utils @@ -0,0 +1,86 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2025 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 2.0.3 +SUMMARY = A Python library with modules for working with Zabbix (Zabbix API, Zabbix sender, Zabbix get) + +THISAPP = zabbix_utils-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = python3-zabbix-utils +PAK_VER = 1 + +DEPS = + +SERVICES = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = 4002d05afadf0512e142988fffbe99ff81fa8c9e270a875f145b4060cf785f7138fb3a90d14ba7d31436813d2adc741b69549dcc9be14a84f92a63c68b227df5 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +b2 : $(subst %,%_BLAKE2,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, b2sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_BLAKE2,$(objects)) : + @$(B2SUM) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + #cd $(DIR_APP) && python3 setup.py build + cd $(DIR_APP) && python3 setup.py install --root=/ + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index ed4222ac5..9358a16ba 100755 --- a/make.sh +++ b/make.sh @@ -2126,6 +2126,7 @@ build_system() { lfsmake2 arpwatch lfsmake2 suricata-reporter lfsmake2 lldpd + lfsmake2 python3-zabbix-utils lfsmake2 linux lfsmake2 rtl8812au -- 2.51.1 -- Dit bericht is gescanned op virussen en andere gevaarlijke inhoud door MailScanner en lijkt schoon te zijn.