Skip to content

Commit

Permalink
Update PKGBUILD (adfind) (#4012)
Browse files Browse the repository at this point in the history
* Update PKGBUILD (adfind)

* Update PKGBUILD

* fixed comments))

* Update PKGBUILD
  • Loading branch information
sahakkhotsanyan authored Nov 23, 2023
1 parent 0f70b3b commit 8643210
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions packages/adfind/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,42 @@
# See COPYING for license details.

pkgname=adfind
pkgver=31.9808cb7
pkgver=v1.0.2.r1.gee408bd
pkgrel=1
pkgdesc='Simple admin panel finder for php,js,cgi,asp and aspx admin panels.'
groups=('blackarch' 'blackarch-webapp' 'blackarch-recon')
arch=('any')
url='https://github.com/sahakkhotsanyan/adfind'
license=('custom:unknown')
depends=('php' 'curl' 'git')
makedepends=('git')
makedepends=('git' 'go')
source=("git+https://github.com/sahakkhotsanyan/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
build() {
cd $pkgname

GOPATH="$srcdir" go mod download
GOPATH="$srcdir" go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-s -w" \
-o $pkgname ./cmd/adfind/main.go
}

package() {
cd $pkgname

install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
install -d wordlists/ "${pkgdir}/usr/share/${pkgname}/wordlists"
install -Dm 644 wordlists/* "$pkgdir/usr/share/${pkgname}/wordlists/"
install -Dm 644 config.yaml "$pkgdir/usr/share/${pkgname}/config.yaml"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

0 comments on commit 8643210

Please sign in to comment.