Skip to content

Commit

Permalink
add hexhttp & python-notify_py
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj authored and noptrix committed Feb 8, 2025
1 parent 0fbfc15 commit 306a40b
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
54 changes: 54 additions & 0 deletions packages/hexhttp/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hexhttp
pkgver=v1.7.4.r1.g0f01774
pkgrel=1
pkgdesc='Perform tests on HTTP headers and analyze the results to identify vulnerabilities and interesting behaviors.'
arch=('any')
groups=('blackarch' 'blackarch-scanner' 'blackarch-webapp')
url='https://github.com/c0dejump/HExHTTP'
license=('MIT')
depends=('python' # https://github.com/c0dejump/HExHTTP/blob/main/requirements.txt
'python-requests'
'wafw00f'
'python-urllib3'
'python-notify_py'
)
makedepends=('git')
source=("$pkgname::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)"
)
}

package() {
cd $pkgname

install -dm 755 "$pkgdir/usr/bin"
install -dm 755 "$pkgdir/usr/share/$pkgname"

install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md

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

rm -rf docs/ *.md LICENSE .github/ .gitignore Dockerfile requirements.txt

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

cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
#cd /usr/share/$pkgname
python /usr/share/$pkgname/$pkgname.py "\$@"
EOF

chmod a+x "$pkgdir/usr/bin/$pkgname"
}
43 changes: 43 additions & 0 deletions packages/python-notify_py/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-notify_py
_pkgname=${pkgname#python-}
pkgver=0.3.43
pkgrel=1
pkgdesc='Python Module for sending cross-platform desktop notifications.'
arch=('any')
url='https://github.com/ms7m/notify-py'
license=('MIT')
depends=('python' # https://github.com/ms7m/notify-py/blob/master/pyproject.toml
'python-loguru'
'python-jeepney'
'libnotify')
makedepends=('python-build' 'python-pip')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('573aedb394a2af1e5872851455af5584ab81f393c71a4229c1499cd68204a40a45f9a01dd72a7a79991e83160b12c4d7c9b3ef9cbec84a7ceb7bda1fdde641ba')

build() {
cd "$_pkgname-$pkgver"

python -m build --wheel --outdir="$startdir/dist"
}

package() {
cd "$_pkgname-$pkgver"

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
}

0 comments on commit 306a40b

Please sign in to comment.