From patchwork Thu Jul 30 22:29:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Roevens X-Patchwork-Id: 10084 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4hB3nM5YCtz3wqJ for ; Thu, 30 Jul 2026 22:30:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "YE1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4hB3nB0W6Pz6m9 for ; Thu, 30 Jul 2026 22:30:38 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4hB3mv1qW4z36V9 for ; Thu, 30 Jul 2026 22:30:23 +0000 (UTC) X-Original-To: development@lists.ipfire.org 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) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4hB3mf5Dk3z2xqt for ; Thu, 30 Jul 2026 22:30:10 +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 4hB3mV26H7z6Y for ; Thu, 30 Jul 2026 22:30:02 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=disroot.org header.s=mail header.b=KtUD5gk8; 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; dmarc=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none; t=1785450602; b=e4El+4sp4g+Aibe8kVXvtvRUP2L2HJY9q/atw7ywpLExdmEggbETpywrqx14tBKJmAA58O AQZSNEfB5FJrddDOET6Sno0OdRx4JgMOKjNKqWwJOWPagAU55x8qqrtW62wHehAZ+xZenb dtQs9JBVGn2Fa4R3VQ6OfdzAM0160mgvkiDwiSjjJgagJ1J30pGkIoxUD8xpiw0ihyns1B hIl4paI3AMi5XVTHamXo2d/1ub5nORqPP1O4kHe9iEyHJn0eWAa70qhyKVgMKbc1nmBsqQ 1W1vKY/PHn1vbTgZlhhVAqvmnpKHvykMoyHqMgesGoVohJMfSSnwz+zl6kebLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1785450602; 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=SCrceZqU+KZKEMNtDoL1/cOn/RW3x55Doq61BTArx4o=; b=iLnF5D/wPUd0itQvS9FkS1E9brW7BwsR+pc0FG287mLNbeOi51EBOTVBMt74eFo7ttu1rf 7rQEdiSpYO5p0uHkDXlNhpf+JeE+S9rBRl2r0N0d5HvDgT3WTAAUGojpyx7Cuk5PXxHMAW g4rBtmoruSzfWtbABQ7N+tqj7rgzpnt3/rMRkZnNk8dFxy58BmLW0jd2zbZjHe0sVkLfHz CCwu95CZwfw2UzKbeCB8WoNEKsGRkAPAm9xiIyUqePURyx8eTB1Bdl3qDGvP6yUek1kEbO lg4efhxBOpKuwEagM6sw0nG43ZSlTPXB/zkLUU0nHyZWCpz09HNpMNY2uwgqiw== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=disroot.org header.s=mail header.b=KtUD5gk8; 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; dmarc=pass (policy=reject) header.from=disroot.org Received: from mail01.layka.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E076141BEC for ; Fri, 31 Jul 2026 00:30:01 +0200 (CEST) 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 3kNLqJp042PJ for ; Fri, 31 Jul 2026 00:30:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1785450601; bh=xOW61KG+jqz1Gn1wDeuCldUivl+6TbYbNf1gAzI62IE=; h=From:To:Cc:Subject:Date; b=KtUD5gk8qpHyYC6zDdGiJWMWmibaI0L0o4QUdMU7YK7/Bo7g6GXSt8TF27MBBpB0H iFzmEH/0ErxGpJu2P8v0gQGieZi5TwLtQJlTqjtpNW6c2zjEYK/5SHfbGzeEC3u5ws n/e9iYfCnNKnpmpMC1w9W5wSHsXa087u6EVQWWDYsqMVzBvTDIuuGTLgNuYe/E/pBz MJiajHZ2AMD5RWaxOHmNr4/wgyYSsU4jYa1YTdEknsVEdPWbNRDSRKG00DKZ7NitVp hk6247FHoUTXmHGiYJx1MEiZXWrntM+GI32IoGE5gAe8tb4PRpvcEHCr/j7/MYsp7O g2PhnrJVxde4A== 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 ADDDE5862AB; Fri, 31 Jul 2026 00:29:56 +0200 (CEST) From: Robin Roevens To: development@lists.ipfire.org Cc: Robin Roevens Subject: [PATCH] python3-zabbix-utils: New package: v2.0.4 Date: Fri, 31 Jul 2026 00:29:54 +0200 Message-ID: <20260730222954.795437-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 X-RoevensLambrechts-MailScanner-ID: ADDDE5862AB.AD543 X-RoevensLambrechts-MailScanner: Found to be clean X-RoevensLambrechts-MailScanner-From: robin.roevens@disroot.org X-RoevensLambrechts-MailScanner-Watermark: 1786055398.84293@6YAhgZiHUfUMguiyAKk/1Q X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4hB3mV26H7z6Y X-Rspamd-Action: no action X-Spamd-Result: default: False [-5.63 / 11.00]; BAYES_HAM(-3.00)[100.00%]; R_DKIM_ALLOW(-1.65)[disroot.org:s=mail]; MID_CONTAINS_FROM(1.00)[]; DKIM_REPUTATION(-0.92)[-0.92148383946959]; SPF_REPUTATION_HAM(-0.66)[-0.65719389998114]; DMARC_POLICY_ALLOW(-0.50)[disroot.org,reject]; R_MISSING_CHARSET(0.50)[]; R_SPF_ALLOW(-0.20)[+a:c]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.10)[disroot.org]; RCPT_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:50673, ipnet:178.21.23.0/24, country:NL]; IP_REPUTATION_HAM(0.00)[asn: 50673(-0.36), country: NL(-0.01), ip: 178.21.23.139(-0.90)]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MISSING_XM_UA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[disroot.org:+]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; FROM_HAS_DN(0.00)[] 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..dc658ea27 --- /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.4-py3.10.egg-info +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.4-py3.10.egg-info/PKG-INFO +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.4-py3.10.egg-info/SOURCES.txt +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.4-py3.10.egg-info/dependency_links.txt +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.4-py3.10.egg-info/requires.txt +#usr/lib/python3.10/site-packages/zabbix_utils-2.0.4-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..fa4d25b81 --- /dev/null +++ b/lfs/python3-zabbix-utils @@ -0,0 +1,86 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 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.4 +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 = d7a8eff20b6a19cad55e8b5f126f17ed325bed704957f31c66a0c70d791a925a160e68b7612e6a38c2302154f05f68ba8589de63ee161c37d50a7d32a08357ce + +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 a4c6997ed..d86e09118 100755 --- a/make.sh +++ b/make.sh @@ -2147,6 +2147,7 @@ build_system() { lfsmake2 suricata-reporter lfsmake2 lldpd lfsmake2 perl-Net-LibIDN2 + lfsmake2 python3-zabbix-utils lfsmake2 linux lfsmake2 linux-initrd