-
-
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.
- Loading branch information
Showing
9 changed files
with
395 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,9 @@ | ||
python-cstruct | ||
python-lzallright | ||
jefferson | ||
python-plotext | ||
python-pyfatfs | ||
python-pyperscan | ||
python-ubi-reader | ||
python-unblob-native | ||
unblob |
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,50 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=jefferson | ||
pkgver=v0.4.5.r0.g96dd903 | ||
pkgrel=1 | ||
pkgdesc='JFFS2 filesystem extraction tool.' | ||
arch=('any') | ||
groups=('blackarch' 'blackarch-forensic' 'blackarch-reversing') | ||
url='https://github.com/onekey-sec/jefferson' | ||
license=('MIT') | ||
depends=('python' 'python-click' 'python-cstruct' 'python-lzallright') | ||
makedepends=('git' 'python-build' 'python-pip') | ||
source=("git+https://github.com/onekey-sec/$pkgname.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)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $pkgname | ||
|
||
python -m build --wheel --outdir="$startdir/dist" | ||
} | ||
|
||
package() { | ||
cd $pkgname | ||
|
||
pip install \ | ||
--verbose \ | ||
--disable-pip-version-check \ | ||
--no-warn-script-location \ | ||
--ignore-installed \ | ||
--no-compile \ | ||
--no-deps \ | ||
--root="$pkgdir" \ | ||
--prefix=/usr \ | ||
--no-index \ | ||
--find-links="file://$startdir/dist" \ | ||
$pkgname | ||
} | ||
|
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,39 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=python-cstruct | ||
pkgver=v5.3.r1.g1236e1e | ||
pkgrel=1 | ||
pkgdesc='C-style structs for Python.' | ||
arch=('any') | ||
url='https://github.com/andreax79/python-cstruct' | ||
license=('MIT') | ||
depends=('python') | ||
makedepends=('git' 'python-setuptools') | ||
options=(!emptydirs) | ||
source=("git+https://github.com/andreax79/$pkgname.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)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $pkgname | ||
|
||
python setup.py build | ||
} | ||
|
||
package() { | ||
cd $pkgname | ||
|
||
python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build | ||
} | ||
|
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,52 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=python-lzallright | ||
_pkgname=${pkgname#python-} | ||
pkgver=v0.2.5.r0.gcfa42fa | ||
pkgrel=1 | ||
pkgdesc='Python binding for LZ library.' | ||
arch=('any') | ||
url='https://github.com/vlaci/lzallright' | ||
license=('MIT') | ||
depends=('python') | ||
makedepends=('git' 'python-build' 'python-pip' 'rust') | ||
options=(!emptydirs) | ||
source=("git+https://github.com/vlaci/$_pkgname.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)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $_pkgname | ||
|
||
export CXXFLAGS="$CXXFLAGS -ffat-lto-objects" | ||
python -m build --wheel --outdir="$startdir/dist" | ||
} | ||
|
||
package() { | ||
cd $_pkgname | ||
|
||
pip install \ | ||
--verbose \ | ||
--disable-pip-version-check \ | ||
--no-warn-script-location \ | ||
--ignore-installed \ | ||
--no-compile \ | ||
--no-deps \ | ||
--root="$pkgdir" \ | ||
--prefix=/usr \ | ||
--no-index \ | ||
--find-links="file://$startdir/dist" \ | ||
$_pkgname | ||
} | ||
|
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,40 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=python-plotext | ||
_pkgname=${pkgname#python-} | ||
pkgver=5.3.2.r0.g4d19108 | ||
pkgrel=1 | ||
pkgdesc='Plotting on terminal.' | ||
arch=('any') | ||
url='https://github.com/piccolomo/plotext' | ||
depends=('python') | ||
makedepends=('git' 'python-setuptools') | ||
license=('MIT') | ||
options=(!emptydirs) | ||
source=("git+https://github.com/piccolomo/$_pkgname.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)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $_pkgname | ||
|
||
python setup.py build | ||
} | ||
|
||
package() { | ||
cd $_pkgname | ||
|
||
python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build | ||
} | ||
|
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,51 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=python-pyfatfs | ||
_pkgname=${pkgname#python-} | ||
pkgver=v1.1.0.r0.g5590fb8 | ||
pkgrel=1 | ||
pkgdesc='Python based FAT12/FAT16/FAT32 implementation with VFAT support.' | ||
arch=('x86_64' 'aarch64') | ||
url='https://github.com/nathanhi/pyfatfs' | ||
license=('MIT') | ||
depends=('python' 'python-fs') | ||
makedepends=('git' 'python-build' 'python-pip') | ||
options=(!emptydirs) | ||
source=("git+https://github.com/nathanhi/$_pkgname.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)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $_pkgname | ||
|
||
python -m build --wheel --outdir="$startdir/dist" | ||
} | ||
|
||
package() { | ||
cd $_pkgname | ||
|
||
pip install \ | ||
--verbose \ | ||
--disable-pip-version-check \ | ||
--no-warn-script-location \ | ||
--ignore-installed \ | ||
--no-compile \ | ||
--no-deps \ | ||
--root="$pkgdir" \ | ||
--prefix=/usr \ | ||
--no-index \ | ||
--find-links="file://$startdir/dist" \ | ||
$_pkgname | ||
} | ||
|
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,51 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=python-pyperscan | ||
_pkgname=${pkgname#python-} | ||
pkgver=v0.3.0.r8.g96f73ad | ||
pkgrel=1 | ||
pkgdesc='Python binding for Hyperscan.' | ||
arch=('any') | ||
url='https://github.com/vlaci/pyperscan' | ||
license=('Apache-2.0' 'MIT') | ||
depends=('python' 'hyperscan') | ||
makedepends=('git' 'python-build' 'python-pip' 'rust') | ||
options=(!emptydirs) | ||
source=("git+https://github.com/vlaci/$_pkgname.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)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $_pkgname | ||
|
||
python -m build --wheel --outdir="$startdir/dist" | ||
} | ||
|
||
package() { | ||
cd $_pkgname | ||
|
||
pip install \ | ||
--verbose \ | ||
--disable-pip-version-check \ | ||
--no-warn-script-location \ | ||
--ignore-installed \ | ||
--no-compile \ | ||
--no-deps \ | ||
--root="$pkgdir" \ | ||
--prefix=/usr \ | ||
--no-index \ | ||
--find-links="file://$startdir/dist" \ | ||
$_pkgname | ||
} | ||
|
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,52 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=python-ubi-reader | ||
_pkgname=ubi_reader | ||
pkgver=v0.8.9.r2.gcc7225e | ||
pkgrel=1 | ||
pkgdesc='Collection of Python scripts for reading information about and extracting data from UBI and UBIFS images.' | ||
arch=('any') | ||
groups=('blackarch' 'blackarch-forensic' 'blackarch-reversing') | ||
url='https://github.com/onekey-sec/ubi_reader' | ||
license=('GPL-3.0') | ||
depends=('python' 'python-lzallright') | ||
makedepends=('git' 'python-build' 'python-pip') | ||
options=(!emptydirs) | ||
source=("git+https://github.com/onekey-sec/$_pkgname.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)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $_pkgname | ||
|
||
python -m build --wheel --outdir="$startdir/dist" | ||
} | ||
|
||
package() { | ||
cd $_pkgname | ||
|
||
pip install \ | ||
--verbose \ | ||
--disable-pip-version-check \ | ||
--no-warn-script-location \ | ||
--ignore-installed \ | ||
--no-compile \ | ||
--no-deps \ | ||
--root="$pkgdir" \ | ||
--prefix=/usr \ | ||
--no-index \ | ||
--find-links="file://$startdir/dist" \ | ||
$_pkgname | ||
} | ||
|
Oops, something went wrong.