From 7d369ddeafdf3c17ad58641123347bcd9c7df854 Mon Sep 17 00:00:00 2001 From: noraj Date: Tue, 19 Nov 2024 22:58:09 +0100 Subject: [PATCH 1/2] add gpowned --- packages/gpowned/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 packages/gpowned/PKGBUILD diff --git a/packages/gpowned/PKGBUILD b/packages/gpowned/PKGBUILD new file mode 100644 index 00000000000..2cb8959da88 --- /dev/null +++ b/packages/gpowned/PKGBUILD @@ -0,0 +1,45 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=gpowned +pkgver=13.b524eb7 +pkgrel=1 +pkgdesc='GPOs manipulation tool.' +arch=('any') +groups=('blackarch' 'blackarch-windows') +url='https://github.com/X-C3LL/gpowned' +license=('FIXME') +depends=('impacket' 'python' 'python-ldap3') +makedepends=('git') +source=("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/" README.md + + cp -a GPOwned.py "$pkgdir/usr/share/$pkgname/" + + cat > "$pkgdir/usr/bin/$pkgname" << EOF +#!/bin/sh +exec python /usr/share/$pkgname/GPOwned.py "\$@" +EOF + + chmod a+x "$pkgdir/usr/bin/$pkgname" +} + From a33f2af1f712f7bcbd9a00fdcbaee7f36b99f467 Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:14:30 +0100 Subject: [PATCH 2/2] fix license --- packages/gpowned/PKGBUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gpowned/PKGBUILD b/packages/gpowned/PKGBUILD index 2cb8959da88..79b56036fdf 100644 --- a/packages/gpowned/PKGBUILD +++ b/packages/gpowned/PKGBUILD @@ -8,7 +8,7 @@ pkgdesc='GPOs manipulation tool.' arch=('any') groups=('blackarch' 'blackarch-windows') url='https://github.com/X-C3LL/gpowned' -license=('FIXME') +license=('custom:custom') depends=('impacket' 'python' 'python-ldap3') makedepends=('git') source=("git+$url.git") @@ -33,6 +33,8 @@ package() { install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cp -a GPOwned.py "$pkgdir/usr/share/$pkgname/" cat > "$pkgdir/usr/bin/$pkgname" << EOF