mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
72 lines
2.0 KiB
Plaintext
72 lines
2.0 KiB
Plaintext
# Contributor: Marian <marian.buschsieweke@ovgu.de>
|
|
# Maintainer: Marian <marian.buschsieweke@ovgu.de>
|
|
pkgname=afl++
|
|
pkgver=4.00c
|
|
pkgrel=0
|
|
pkgdesc="Fuzzer relying on genetic algorithms instead of brute force"
|
|
url="https://aflplus.plus/"
|
|
# s390x: blocked by missing lld
|
|
# x86: basic unit tests fails
|
|
arch="all !s390x !x86"
|
|
license="Apache-2.0"
|
|
# afl-cmin requires stat
|
|
depends="
|
|
clang
|
|
cmd:stat
|
|
lld
|
|
llvm
|
|
python3
|
|
"
|
|
makedepends="
|
|
clang-dev
|
|
gmp-dev
|
|
grep
|
|
llvm-dev
|
|
python3-dev
|
|
"
|
|
checkdepends="
|
|
bash
|
|
cmocka-dev
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
provides="
|
|
afl=$pkgver-r$pkgrel
|
|
afl-clang=$pkgver-r$pkgrel
|
|
afl-gcc=$pkgver-r$pkgrel
|
|
"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/$pkgver.tar.gz
|
|
|
|
0001-fix-missing-max-path-define.patch
|
|
0002-fix-bin-dir.patch
|
|
0003-fix-wrong-format-specifier.patch
|
|
"
|
|
builddir="$srcdir/AFLplusplus-$pkgver"
|
|
|
|
build() {
|
|
# AFL++ is expecting clang, clang++ and ld.lld in LLVM_BINDIR,
|
|
# which is set to `llvm-config --bindir` by default, which points
|
|
# to /usr/lib/llvm13/bin rather than /usr/bin
|
|
export LLVM_BINDIR=/usr/bin
|
|
make AFL_NO_X86=1 LLVM_LTO=1 PREFIX=/usr all
|
|
}
|
|
|
|
check() {
|
|
make AFL_NO_X86=1 test
|
|
}
|
|
|
|
package() {
|
|
make AFL_NO_X86=1 PREFIX=/usr DESTDIR="$pkgdir" install
|
|
|
|
# Test cases contain x86 binaries that cause trouble with strip on non-x86
|
|
# architectures, so just drop the test cases here.
|
|
rm -rf "$pkgdir"/usr/share/afl/testcases/
|
|
}
|
|
|
|
sha512sums="
|
|
23a7a4260e581f7c212393e1e14704464bbbc3ff5465b3472db31c6c7f2cd25a9ecc5ad81fad8958c775fcd01b22269085e6c69419a07fbbdb9ec317a3e39beb afl++-4.00c.tar.gz
|
|
f12285163797823d820029b7bc4591fa040aac137724611e3643a77fcf49f04f59efb0e2e95863966636299dd92862bc5319d4434d4543289dfb8392dc39b97a 0001-fix-missing-max-path-define.patch
|
|
b4f7b81c1ecfdf9b400fc66b8279457feb7fc878e2e3da6653d8b1ae938979bd27f4f0e378df024f61fb12c1350f5faa5f8b1f991f53ae896d029862d8f33c09 0002-fix-bin-dir.patch
|
|
29063f71feff74bb7c74d7e11da654d120d76b178532321ee6c40bf766e3a8834cc09458fc0afdade96c2119fb2fbbb5fd8e01ae5df08ea615688872797380e1 0003-fix-wrong-format-specifier.patch
|
|
"
|