summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2020-09-04 12:10:41 +0200
committerHanno Böck <hanno@gentoo.org>2020-09-04 12:10:41 +0200
commitf31fdcc716b0faf5cc640a5cf83d5138fc0ff892 (patch)
tree039ed225c42504c6b131365ad055d07b7108b430 /app-forensics
parentdev-libs/volume_key: Revbump adding python3_8 (diff)
downloadgentoo-f31fdcc716b0faf5cc640a5cf83d5138fc0ff892.tar.gz
gentoo-f31fdcc716b0faf5cc640a5cf83d5138fc0ff892.tar.bz2
gentoo-f31fdcc716b0faf5cc640a5cf83d5138fc0ff892.zip
app-forensics/afl: Version bump
Signed-off-by: Hanno Böck <hanno@gentoo.org> Package-Manager: Portage-3.0.5, Repoman-3.0.1
Diffstat (limited to 'app-forensics')
-rw-r--r--app-forensics/afl/Manifest1
-rw-r--r--app-forensics/afl/afl-2.57b.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/app-forensics/afl/Manifest b/app-forensics/afl/Manifest
index 77feee8701ba..f374d02bb8bd 100644
--- a/app-forensics/afl/Manifest
+++ b/app-forensics/afl/Manifest
@@ -1 +1,2 @@
DIST afl-2.56b.tar.gz 836989 BLAKE2B 974c1efa3999c714068529d24c81e6d0ffb45a487b97625fa4ff538aeb86d43825561d5b496cb47caebf687078699e2ee606d7525424b5890dced14a95417750 SHA512 4e76fc503fe615aac4d0bbd8e3632d5cfbb7a3ac107be03c399afc024a8ad364dba933875d50a9b65083159faf6ebef5e13c39b25db977b01bd29b6340cad162
+DIST afl-2.57b.tar.gz 839871 BLAKE2B 69029d59451e468528386154e8938a1a7303765e039f98aa05e36f07314398f60ff2578f765142e1f1ff653e5ab93ea53a2efb98abe275046ebacdd3ca8363b6 SHA512 5d12b96229e966aeb11deb47cd8eb36cde2fa32656eb187db02c7240909d6acda36be59b2baf7e42cddd228d25ec94c8bffc3fa27f7f4b5e1e462b62929ce75d
diff --git a/app-forensics/afl/afl-2.57b.ebuild b/app-forensics/afl/afl-2.57b.ebuild
new file mode 100644
index 000000000000..90fbf1bc53fd
--- /dev/null
+++ b/app-forensics/afl/afl-2.57b.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib toolchain-funcs flag-o-matic
+
+DESCRIPTION="american fuzzy lop - compile-time instrumentation fuzzer"
+HOMEPAGE="https://lcamtuf.coredump.cx/afl/"
+SRC_URI="https://github.com/google/AFL/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+DEPEND="sys-devel/gcc:*
+ sys-devel/clang:="
+RDEPEND="${DEPEND}"
+QA_PREBUILT="/usr/share/afl/testcases/others/elf/small_exec.elf"
+
+S="${WORKDIR}/AFL-${PV}"
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ PREFIX="${EPREFIX}/usr" \
+ HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \
+ DOC_PATH="${EPREFIX}/usr/share/doc/${PF}"
+ CC="clang" CXX="clang++" strip-unsupported-flags
+ cd llvm_mode || die
+ emake \
+ PREFIX="${EPREFIX}/usr" \
+ HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \
+ DOC_PATH="${EPREFIX}/usr/share/doc/${PF}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \
+ DOC_PATH="${EPREFIX}/usr/share/doc/${PF}" \
+ install
+}