diff --git a/net/netbox-agent/Makefile b/net/netbox-agent/Makefile new file mode 100644 index 0000000..f19d2cb --- /dev/null +++ b/net/netbox-agent/Makefile @@ -0,0 +1,31 @@ +PORTNAME= netbox-agent +DISTVERSION= 20240821 +DISTVERSIONPREFIX= v +CATEGORIES= misc 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= ${PYTHON_PKGNAMEPREFIX}pynetbox>=7:net-mgmt/py-pynetbox@${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}psutils>=5.9.0:sysutils/py-psutil@${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= 86d2a03 + +USE_PYTHON= autoplist distutils pytest + +NO_ARCH= yes + +.include diff --git a/net/netbox-agent/distinfo b/net/netbox-agent/distinfo new file mode 100644 index 0000000..6e5e6c3 --- /dev/null +++ b/net/netbox-agent/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724235222 +SHA256 (KlaraSystems-netbox-agent-v20240821-86d2a03_GH0.tar.gz) = 5166c34b100db8ebd655b1ca6a80b6bb02c986e6eef518dc3fdf5d343b8d5af2 +SIZE (KlaraSystems-netbox-agent-v20240821-86d2a03_GH0.tar.gz) = 92426 diff --git a/net/netbox-agent/pkg-descr b/net/netbox-agent/pkg-descr new file mode 100644 index 0000000..c5fbe53 --- /dev/null +++ b/net/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.