From c93f6c797485ef48944bbc19c0a7ce0b0f745a64 Mon Sep 17 00:00:00 2001 From: s7x <33422344+s7x@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:47:29 +0000 Subject: [PATCH] navgix: initial commit. Added navgix tool. --- packages/navgix/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 packages/navgix/PKGBUILD diff --git a/packages/navgix/PKGBUILD b/packages/navgix/PKGBUILD new file mode 100644 index 00000000000..64353b02f48 --- /dev/null +++ b/packages/navgix/PKGBUILD @@ -0,0 +1,46 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=navgix +pkgver=3.6f25c98 +pkgrel=1 +pkgdesc='Blazing fast, advanced Padding Oracle exploit.' +arch=('x86_64' 'aarch64') +groups=('blackarch' 'blackarch-exploit' 'blackarch-crypto') +url='https://github.com/hakaioffsec/navgix' +license=('NONE') +makedepends=('git' 'go') +source=("git+https://github.com/hakaioffsec/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + # use, if no version string provided neither in sources nor in git describe: + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +build() { + cd $pkgname + + # If you encounter the error: go mod download: no modules specified (see 'go help mod download') + # while building, then uncomment the following lines: + # GOPATH="$srcdir" go mod init go.mod + GOPATH="$srcdir" go mod tidy + GOPATH="$srcdir" go mod download + GOPATH="$srcdir" go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-s -w" \ + -o $pkgname . +} + +package() { + cd $pkgname + + install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname" + install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md +} +