Skip to content

Commit

Permalink
add netscout (#4413)
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj authored Dec 1, 2024
1 parent 020a8a5 commit a2b384a
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions packages/netscout/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=netscout
pkgver=37.2f409df
pkgrel=1
pkgdesc="OSINT tool that finds domains, subdomains, directories, endpoints and files."
arch=('any')
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
url="https://github.com/caio-ishikawa/netscout"
license=('MIT')
makedepends=('git' 'go')
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

build() {
cd $pkgname

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
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

0 comments on commit a2b384a

Please sign in to comment.