-
-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add gpowned * fix license
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 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=('custom:custom') | ||
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 | ||
|
||
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
|
||
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" | ||
} | ||
|