X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 5F57FDC00E1 for ; Sun, 8 May 2016 18:23:03 +0000 (UTC) Received: from zivm-wwu3.uni-muenster.de (zivm-wwu3-1.uni-muenster.de [128.176.192.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id DCF2ADC0086 for ; Sun, 8 May 2016 18:23:02 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BWBACOgy9X/43AsIBegzhVfaU0kUaCD?= =?us-ascii?q?wENgTZAIocNOBQBAQEBAQEBZSeGEIECiCsECp1xoByGIIlXhQ0FmCKFfYghgjW?= =?us-ascii?q?HBIVaAodsh08eAQFCgTYBCwGCKmwBiQUBAQE?= X-IPAS-Result: =?us-ascii?q?A2BWBACOgy9X/43AsIBegzhVfaU0kUaCDwENgTZAIocNOBQ?= =?us-ascii?q?BAQEBAQEBZSeGEIECiCsECp1xoByGIIlXhQ0FmCKFfYghgjWHBIVaAodsh08eA?= =?us-ascii?q?QFCgTYBCwGCKmwBiQUBAQE?= X-IronPort-AV: E=Sophos;i="5.24,597,1454972400"; d="scan'208";a="82626092" Received: from secmail.uni-muenster.de ([128.176.192.141]) by zivm-relay3.uni-muenster.de with ESMTP; 08 May 2016 20:23:00 +0200 Received: from alpinepi3.fritz.box (dslb-088-070-127-025.088.070.pools.vodafone-ip.de [88.70.127.25]) by SECMAIL.UNI-MUENSTER.DE (Postfix) with ESMTP id 6AF1ABF402 for ; Sun, 8 May 2016 20:23:00 +0200 (CEST) From: Marian Buschsieweke To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/afl: new aport Date: Sun, 8 May 2016 20:22:18 +0200 Message-Id: <1462731738-26350-1-git-send-email-m.buschsieweke@uni-muenster.de> X-Mailer: git-send-email 2.8.1 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: american fuzzy lop is a fuzzer relying on genetic algorithms instead brute force This package installs only the llvm_mode of afl, which is not only faster than the gcc mode, but also portable to non-x86 platforms. This way this package should work on all platforms. --- testing/afl/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testing/afl/APKBUILD diff --git a/testing/afl/APKBUILD b/testing/afl/APKBUILD new file mode 100644 index 0000000..f5e08c5 --- /dev/null +++ b/testing/afl/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Marian +# Maintainer: Marian +pkgname=afl +pkgver=2.12b +pkgrel=1 +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/afl-latest.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="3162bb1662a49c60e3bf814946eda590 afl-latest.tgz" +sha256sums="7fdc2d7f6ff7ff7ada27b84fec07f7e7910facb468c94db14861c295a9f830ba afl-latest.tgz" +sha512sums="76e5018cc7ece1e9d164e91ec3552925454b85bf9d981fc2eb6a718fdb06741796b323605ddba93d01df0d9512309ba89554735b7b08c5bf8ad69257b3665e64 afl-latest.tgz" -- 2.8.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---