Skip to content

Commit

Permalink
add breads (#4356)
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj authored Nov 17, 2024
1 parent 62ad60b commit 4ec97d9
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions packages/breads/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 4ec97d9

Please sign in to comment.