Skip to content

Commit

Permalink
add petitpotam
Browse files Browse the repository at this point in the history
Signed-off-by: mabie <[email protected]>
  • Loading branch information
mabie authored and dadevel committed May 4, 2024
1 parent 897cab9 commit 49050f4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
- package-nuclei
- package-paru
- package-peas
- package-petitpotam
- package-pkinittools
- package-pretender
- package-prox-ez
Expand Down Expand Up @@ -993,6 +994,24 @@ jobs:
path: ./peas/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-petitpotam:
runs-on: ubuntu-20.04
needs:
- build-container
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build package
run: ./build-package.sh petitpotam
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: package-petitpotam
path: ./petitpotam/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-pkinittools:
runs-on: ubuntu-20.04
needs:
Expand Down
30 changes: 30 additions & 0 deletions petitpotam/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pkgname=petitpotam
pkgver=latest
pkgrel=1
url="https://github.com/topotam/${pkgname}.git"
arch=(any)
license=(unknown)
depends=(python)
source=("git+${url}")
sha256sums=(SKIP)

package() {
cd "${srcdir}/${pkgname}"
mkdir -p "${pkgdir}/opt/archpkgs/bin" "${pkgdir}/opt/archpkgs/${pkgname}"
python -m venv "${pkgdir}/opt/archpkgs/${pkgname}"
cp ./PetitPotam.py "${pkgdir}/opt/archpkgs/${pkgname}/${pkgname}.py"
declare -x VIRTUAL_ENV="${pkgdir}/opt/archpkgs/${pkgname}" PYTHONPATH="${pkgdir}/opt/archpkgs/${pkgname}" PATH="${pkgdir}/opt/archpkgs/${pkgname}/bin:$PATH"
pip install impacket
cat <<EOF >"${pkgdir}/opt/archpkgs/bin/${pkgname}"
#!/bin/sh
set -eu
export VIRTUAL_ENV=/opt/archpkgs/${pkgname} PYTHONPATH=/opt/archpkgs/${pkgname} PATH="/opt/archpkgs/${pkgname}/bin:\$PATH"
exec python /opt/archpkgs/${pkgname}/${pkgname}.py "\$@"
EOF
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}"
}

pkgver() {
cd "${srcdir}/${pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

0 comments on commit 49050f4

Please sign in to comment.