-
-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* navgix: initial commit. Added navgix tool. * navgix: fix package desc. * navgix: fix PKGBUILD.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=navgix | ||
pkgver=3.6f25c98 | ||
pkgrel=1 | ||
pkgdesc='Multi-threaded golang tool that will check for nginx alias traversal vulnerabilities.' | ||
arch=('x86_64' 'aarch64') | ||
groups=('blackarch' 'blackarch-scanner') | ||
url='https://github.com/hakaioffsec/navgix' | ||
license=('NONE') | ||
makedepends=('git' 'go') | ||
source=("git+https://github.com/hakaioffsec/$pkgname.git") | ||
sha512sums=('SKIP') | ||
|
||
pkgver() { | ||
cd $pkgname | ||
|
||
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) | ||
} | ||
|
||
build() { | ||
cd $pkgname | ||
|
||
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 | ||
} | ||
|