community/afl to 2.54b-1

This commit is contained in:
Kevin Mihelich 2019-09-13 16:05:17 +00:00
parent be5210327c
commit bdbe539f42

View file

@ -1,12 +1,13 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Santiago Torres-Arias <santiago[at]archlinux[dot]org>
# Contributor: spider-mario <spidermario@free.fr> # Contributor: spider-mario <spidermario@free.fr>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - make with AFL_NO_X86=1 # - make with AFL_NO_X86=1
# - strip -fno-plt from v5 CFLAGS (old LLVM) # - remove makedepend on lib32-glibc
pkgname=afl pkgname=afl
pkgver=2.53b pkgver=2.54b
pkgrel=1 pkgrel=1
pkgdesc='Security-oriented fuzzer using compile-time instrumentation and genetic algorithms' pkgdesc='Security-oriented fuzzer using compile-time instrumentation and genetic algorithms'
url='http://lcamtuf.coredump.cx/afl/' url='http://lcamtuf.coredump.cx/afl/'
@ -22,12 +23,11 @@ provides=('american-fuzzy-lop')
replaces=('american-fuzzy-lop') replaces=('american-fuzzy-lop')
options=('!emptydirs' '!strip') options=('!emptydirs' '!strip')
source=(https://github.com/google/AFL/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) source=(https://github.com/google/AFL/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('ea4917c0c982f45866d6fbf129a78eb9959736bd69bb269cab57f2695661e6e6') sha256sums=('01933db5ed60bf0d62215a87d68bc42e9aa1ad7ca00db34d44d7a73eaeefa38d')
sha512sums=('709fba16eda4b0175273ac24e2fcb0fa469d203b666c87a367a3bd76e3acea1f67642b8f492065b5b5b04c0224a47aa121e7b056a1b39de8cf8979f9367cd051') sha512sums=('3c4816994190f95f5ed48076decbeb6f2eca507dd86a940945f1b43bd6bbe1b04f94a143189a260ab78ed3acfe36496e82a3a6dec0a3469d72c430834fe5d769')
build() { build() {
cd AFL-${pkgver} cd AFL-${pkgver}
[[ $CARCH == "arm" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/-fno-plt//'` && CXXFLAGS="$CFLAGS"
make PREFIX=/usr AFL_NO_X86=1 make PREFIX=/usr AFL_NO_X86=1
make -C llvm_mode PREFIX=/usr make -C llvm_mode PREFIX=/usr
} }