diff --git a/packages/breads/PKGBUILD b/packages/breads/PKGBUILD new file mode 100644 index 00000000000..831f0825805 --- /dev/null +++ b/packages/breads/PKGBUILD @@ -0,0 +1,50 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=breads +pkgver=129.dc012d7 +pkgrel=1 +pkgdesc='BREaking Active Directory Security; focused on enumerating and attacking Active Directory environments through LDAP and SMB protocols.' +arch=('any') +groups=('blackarch' 'blackarch-windows') +url='https://github.com/oppsec/breads' +license=('MIT') +depends=('python' 'python-ldap3' 'python-rich' 'impacket') +makedepends=('git' 'python-build' 'python-pip' 'python-setuptools') +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 + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + "$pkgname-ad" +} +