-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package katana, sccmsecrets and smbclient-ng
- Loading branch information
Showing
5 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
pkgname=katana | ||
pkgver=latest | ||
pkgrel=1 | ||
url="https://github.com/projectdiscovery/${pkgname}.git" | ||
arch=(any) | ||
license=(MIT) | ||
makedepends=(git go) | ||
source=("git+${url}") | ||
sha256sums=(SKIP) | ||
|
||
build() { | ||
cd "${srcdir}/${pkgname}/cmd/katana" | ||
go mod tidy | ||
go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . | ||
} | ||
|
||
package() { | ||
cd "${srcdir}/${pkgname}" | ||
mkdir -p "${pkgdir}/opt/archpkgs/bin" | ||
install -Dm 755 "./cmd/katana/${pkgname}" "${pkgdir}/opt/archpkgs/bin/${pkgname}" | ||
} | ||
|
||
pkgver() { | ||
cd "${srcdir}/${pkgname}" | ||
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
pkgname=sccmsecrets | ||
pkgver=latest | ||
pkgrel=1 | ||
url="https://github.com/synacktiv/${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 -r ./*.py ./utils/ "${pkgdir}/opt/archpkgs/${pkgname}/" | ||
declare -x VIRTUAL_ENV="${pkgdir}/opt/archpkgs/${pkgname}" PYTHONPATH="${pkgdir}/opt/archpkgs/${pkgname}" PATH="${pkgdir}/opt/archpkgs/${pkgname}/bin:$PATH" | ||
pip install -r ./requirements.txt | ||
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}/SCCMSecrets.py "\$@" | ||
EOF | ||
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}" | ||
} | ||
|
||
pkgver() { | ||
cd "${srcdir}/${pkgname}" | ||
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pkgname=smbclient-ng | ||
pkgver=latest | ||
pkgrel=1 | ||
url="https://github.com/p0dalirius/${pkgname}.git" | ||
arch=(any) | ||
license=(GPL3) | ||
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}" | ||
declare -x VIRTUAL_ENV="${pkgdir}/opt/archpkgs/${pkgname}" PYTHONPATH="${pkgdir}/opt/archpkgs/${pkgname}" PATH="${pkgdir}/opt/archpkgs/${pkgname}/bin:$PATH" | ||
pip install . | ||
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}/bin/smbclientng "\$@" | ||
EOF | ||
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}" | ||
} | ||
|
||
pkgver() { | ||
cd "${srcdir}/${pkgname}" | ||
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" | ||
} |