From bf9444e0b1a79bda7a057d423574c6f987c75eaf Mon Sep 17 00:00:00 2001 From: Xavier Beaudouin Date: Thu, 22 Aug 2024 13:39:03 +0200 Subject: [PATCH] mv net/netbox-agent net-mgmt/netbox-agent --- net-mgmt/netbox-agent/Makefile | 36 +++++++++++++++++++++++++++++++++ net-mgmt/netbox-agent/distinfo | 3 +++ net-mgmt/netbox-agent/pkg-descr | 4 ++++ 3 files changed, 43 insertions(+) create mode 100644 net-mgmt/netbox-agent/Makefile create mode 100644 net-mgmt/netbox-agent/distinfo create mode 100644 net-mgmt/netbox-agent/pkg-descr diff --git a/net-mgmt/netbox-agent/Makefile b/net-mgmt/netbox-agent/Makefile new file mode 100644 index 0000000..0e06438 --- /dev/null +++ b/net-mgmt/netbox-agent/Makefile @@ -0,0 +1,36 @@ +PORTNAME= netbox-agent +DISTVERSION= 20240822 +DISTVERSIONPREFIX= v +CATEGORIES= net python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kiwi@oav.net +COMMENT= Netbox Agent +WWW= https://github.com/KlaraSystems/netbox-agent + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${LOCALBASE}/bin/ipmitool:sysutils/ipmitool \ + ${LOCALBASE}/sbin/dmidecode:sysutils/dmidecode \ + ${LOCALBASE}/sbin/lldpctl:net-mgmt/lldpd \ + ${PYTHON_PKGNAMEPREFIX}distro>=1.8.0:sysutils/py-distro@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jsonargparse>=3.11.2:devel/py-jsonargparse@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}netaddr>=1.0:net/py-netaddr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}netifaces-plus>=0.11:net/py-netifaces-plus@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>=5.9.0:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pynetbox>=7:net-mgmt/py-pynetbox@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-slugify>=8.0.1:textproc/py-python-slugify@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sysctl>=0.3.0:devel/py-sysctl@${PY_FLAVOR} + +USES= python +# PyPi sdist do not have tests +USE_GITHUB= yes +GH_ACCOUNT= KlaraSystems +GH_TAGNAME= 6ae055c + +USE_PYTHON= autoplist distutils pytest + +NO_ARCH= yes + +.include diff --git a/net-mgmt/netbox-agent/distinfo b/net-mgmt/netbox-agent/distinfo new file mode 100644 index 0000000..92a2cd5 --- /dev/null +++ b/net-mgmt/netbox-agent/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724321105 +SHA256 (KlaraSystems-netbox-agent-v20240822-6ae055c_GH0.tar.gz) = 3f61170d3b6a09c96c8e12b62069b9fc1de022701913222e8b2f4b1ef954c318 +SIZE (KlaraSystems-netbox-agent-v20240822-6ae055c_GH0.tar.gz) = 92423 diff --git a/net-mgmt/netbox-agent/pkg-descr b/net-mgmt/netbox-agent/pkg-descr new file mode 100644 index 0000000..c5fbe53 --- /dev/null +++ b/net-mgmt/netbox-agent/pkg-descr @@ -0,0 +1,4 @@ +This project aims to create hardware automatically into Netbox based on +standard tools (dmidecode, lldpd, parsing /sys/, etc). +The goal is to generate an existing infrastructure on Netbox and have the +ability to update it regularly by executing the agent.