diff --git a/srcpkgs/NetExec/patches/dynamic-versioning.patch b/srcpkgs/NetExec/patches/dynamic-versioning.patch new file mode 100644 index 00000000000000..4e0005ebd9a506 --- /dev/null +++ b/srcpkgs/NetExec/patches/dynamic-versioning.patch @@ -0,0 +1,31 @@ +Dynamic versioning doesn't work with release sources as it is missing a .git +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [project] + name = "netexec" +-dynamic = ["version"] ++version = "0.0.0" + description = "The Network Execution tool" + readme = "README.md" + requires-python = ">=3.10,<4.0" +@@ -69,18 +69,8 @@ + packages = [{ include = "nxc" }] + version = "0.0.0" # Poetry placeholder, do not remove + +-[tool.poetry.requires-plugins] +-poetry-dynamic-versioning = { version = ">=1.7.0,<2.0.0", extras = ["plugin"] } +- +-[tool.poetry-dynamic-versioning] +-enable = true +-style = "pep440" +-pattern = "(?P\\d+\\.\\d+\\.\\d+)" +-format = "{base}+{distance}.{commit}" +- + [build-system] +-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] +-build-backend = "poetry_dynamic_versioning.backend" ++requires = ["poetry-core>=1.0.0"] + + [tool.poetry.group.dev.dependencies] + flake8 = "*" diff --git a/srcpkgs/NetExec/template b/srcpkgs/NetExec/template new file mode 100644 index 00000000000000..fa0e751cbbac0f --- /dev/null +++ b/srcpkgs/NetExec/template @@ -0,0 +1,22 @@ +# Template file for 'NetExec' +pkgname=NetExec +version=1.5.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-poetry-core python3-build python3-installer python3-wheel PyInstaller" +depends="python3-termcolor python3-rich python3-libnmap python3-xmltodict python3-SQLAlchemy2 python3-pycryptodomex python3-argcomplete python3-BeautifulSoup4 python3-PyJWT python3-paramiko python3-pefile python3-requests python3-terminaltables python3-dateutil python3-dnspython python3-pyasn1-modules impacket python3-openssl" +short_desc="Network Execution Tool" +maintainer="Soulful Sailer " +license="BSD-2-Clause" +homepage="https://netexec.wiki/" +distfiles="https://github.com/Pennyw0rth/${pkgname}/archive/refs/tags/v${version}.tar.gz" +checksum=75de40a2f93b39f502d80487c2cdad08b86167882daccb78c43cf4ebad817fa5 + +post_patch() { + # Insert version as dynamic versioning is disabled (see dynamic-versioning.patch) + sed -i "s|version = \"0.0.0\"|version = \"${version}\"|g" pyproject.toml +} + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-libnmap/template b/srcpkgs/python3-libnmap/template new file mode 100644 index 00000000000000..81cd42660807d2 --- /dev/null +++ b/srcpkgs/python3-libnmap/template @@ -0,0 +1,13 @@ +# Template file for 'python3-libnmap' +pkgname=python3-libnmap +version=0.7.3 +revision=1 +build_style=python3-module +hostmakedepends="python3-build python3-installer python3-setuptools python3-wheel" +depends="python3" +short_desc="Python library to run nmap scans, parse and diff scan results" +maintainer="Soulful Sailer " +license="Apache-2.0" +homepage="https://github.com/savon-noir/python-libnmap/" +distfiles="https://github.com/savon-noir/python-libnmap/archive/refs/tags/v${version}.tar.gz" +checksum=18a890dd2a2615fdc1219a0e74e3d8b468b4adf6aeb19a9167a8d70c35e28afc