Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions srcpkgs/NetExec/patches/dynamic-versioning.patch
Original file line number Diff line number Diff line change
@@ -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<base>\\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 = "*"
22 changes: 22 additions & 0 deletions srcpkgs/NetExec/template
Original file line number Diff line number Diff line change
@@ -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 <soulful.sailer@entropic.pro>"
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
}
13 changes: 13 additions & 0 deletions srcpkgs/python3-libnmap/template
Original file line number Diff line number Diff line change
@@ -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 <soulful.sailer@entropic.pro>"
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
Loading