Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sr-71
1 change: 1 addition & 0 deletions lists/to-remove
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lrod
2 changes: 1 addition & 1 deletion packages/lrod/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=lrod
pkgver=Version.r34.gbdd9b82
pkgrel=2
pkgrel=3
pkgdesc='Perform subdomain enumeration, endpoint recognition, and more.'
arch=('any')
groups=('blackarch' 'blackarch-recon')
Expand Down
1 change: 0 additions & 1 deletion packages/lrod/lrod.install
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ post_upgrade() {
post_remove() {
rm -rf /usr/share/lrod
}

50 changes: 50 additions & 0 deletions packages/sr-71/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=sr-71
pkgver=Version.r34.gbdd9b82
pkgrel=1
pkgdesc='Perform subdomain enumeration, endpoint recognition, and more.'
arch=('any')
groups=('blackarch' 'blackarch-recon')
url='https://gitlab.com/Edu0x01/SR-71'
license=('MIT')
depends=('python')
makedepends=('git' 'python-setuptools' 'python-pip')
source=("$pkgname::git+https://gitlab.com/Edu0x01/$pkgname.git")
sha512sums=('SKIP')
install="$pkgname.install"

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)"
)
}

package() {
cd $pkgname

install -dm 755 "$pkgdir/usr/bin"
install -Dm 644 requirements.txt "$pkgdir/usr/share/$pkgname/requirements.txt"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md

install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

rm -rf LICENSE *.md .gitignore

cp -a * "$pkgdir/usr/share/$pkgname/"

cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
source /usr/share/$pkgname/venv/bin/activate
exec python /usr/share/$pkgname/SR-71.py "\$@"
EOF

chmod +x "$pkgdir/usr/bin/$pkgname"
}

16 changes: 16 additions & 0 deletions packages/sr-71/sr-71.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
post_install() {
set -e
cd /usr/share/sr-71
python -m venv venv
source venv/bin/activate &&
pip install --isolated --root=/usr/share/sr-71 --prefix=venv \
-r requirements.txt
}

post_upgrade() {
post_install "$@"
}

post_remove() {
rm -rf /usr/share/sr-71
}