blob: ff243e7c0f990a8ff0426d30f64a3133871f7cf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Contributor: Marian <mari.hahn@wwu.de>
# Maintainer: Marian <mari.hahn@wwu.de>
pkgname=afl
pkgver=2.28b
pkgrel=0
pkgdesc="american fuzzy lop is a fuzzer relying on genetic algorithms instead brute force"
url="http://lcamtuf.coredump.cx/afl/"
arch="all"
license="apache_2_0"
depends="clang clang-libs llvm llvm-libs"
depends_dev=""
makedepends="llvm-dev clang-dev"
install=""
subpackages="$pkgname-doc"
source="http://lcamtuf.coredump.cx/afl/releases/$pkgname-$pkgver.tgz"
_builddir="${srcdir}/${pkgname}-${pkgver}"
build() {
# using the llvm mode, which is faster and portable
cd "$_builddir"
make CC=clang BINDIR=/usr/bin AFL_NO_X86=1
make CC=clang BINDIR=/usr/bin AFL_NO_X86=1 -C llvm_mode
}
package() {
cd "$_builddir"
make AFL_NO_X86=1 BINDIR=/usr/bin PREFIX=/usr DESTDIR="$pkgdir" install
# Removing non llvm_mode compiler wrappers, which are slower and only
# working on x86
rm "${pkgdir}/usr/bin/afl-clang" "${pkgdir}/usr/bin/afl-clang++" \
"${pkgdir}/usr/bin/afl-gcc" "${pkgdir}/usr/bin/afl-g++"
}
md5sums="067310f39f9e7bbe559a6843b5e3c482 afl-2.28b.tgz"
sha256sums="65572013a737ff1eeb7f9259623536044aadef64d370d06f0c301092d8db964f afl-2.28b.tgz"
sha512sums="77b05f2b40d83ecef26dba60bf8a482a2331ef46dcab92cd183eaa784461550d1c004c55a023f1f18b0ab51310d3a84692ba76687ffff8bd322ea9080612cb9a afl-2.28b.tgz"
|