diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 19abcc77..b791063a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,6 +73,7 @@ jobs: - package-nuclei - package-paru - package-peas + - package-petitpotam - package-pkinittools - package-pretender - package-prox-ez @@ -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: diff --git a/petitpotam/PKGBUILD b/petitpotam/PKGBUILD new file mode 100644 index 00000000..fa2cca1e --- /dev/null +++ b/petitpotam/PKGBUILD @@ -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 <"${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)" +}