diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-09 12:18:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-09 12:18:21 +0000 |
commit | 83c424cc446967ca87809e13c2ef264eebce79f8 (patch) | |
tree | bce1c3a7e1f36095b5a4956a97e7ec63d3414d41 /app-forensics/aflplusplus | |
parent | 92ed25ce2ff461f502de1dd96ab0accd683b69d2 (diff) |
gentoo auto-resync : 09:01:2023 - 12:18:20
Diffstat (limited to 'app-forensics/aflplusplus')
-rw-r--r-- | app-forensics/aflplusplus/Manifest | 3 | ||||
-rw-r--r-- | app-forensics/aflplusplus/aflplusplus-4.05c.ebuild | 87 |
2 files changed, 90 insertions, 0 deletions
diff --git a/app-forensics/aflplusplus/Manifest b/app-forensics/aflplusplus/Manifest index 7fe71fa8b941..91ebd7412e5d 100644 --- a/app-forensics/aflplusplus/Manifest +++ b/app-forensics/aflplusplus/Manifest @@ -6,7 +6,10 @@ DIST aflplusplus-4.03c-patches.tar.xz 4444 BLAKE2B 4eed2ee97e4f7aef987e5c931469b DIST aflplusplus-4.03c.tar.gz 2830718 BLAKE2B 1b55daf3c3a0a0b11c1ef0a7dd1005cfa1ec61fb54691b96519f57788233b1385b52948468f2d5beada3c58129bc0524f07aebfb25ee8cef1e5d5afd06b1233d SHA512 4bab00d964eb9d0664d97062f5da8090dfef599480f25b04d08b84e7f47676a9790fb23573f7e885b5da6ab813694f9ab26a0b5c9d341834892530558e3b83ef DIST aflplusplus-4.04c-patches.tar.xz 4236 BLAKE2B 86bb5d1e0da271833fc548633e08897bd681f1b575b3131d72222eeb7135f3cbdbd5580d0afc56a23639eb4621f878fd4ffdc4e0ba11b34388a99768f2529c76 SHA512 5c607b255e2d74033d5258218a907a8edcd44eab006377edee9618d3755815fbda9f5d565444e090ab0b27220675736a1eed285f92cb74122d0b9b3bcbcc0a2c DIST aflplusplus-4.04c.tar.gz 2832011 BLAKE2B 80a5652b0d64b4824c3b4f91bf993a8499a0c86cf878ca83c7b7afe217cc1603700d4cf7408ae40f1435251153f88e0663cabe470a06387e6664249b3a015172 SHA512 1c2e2e6677e87de2f069e1acdc2319580e488670c3d4975a0f0807da33965c4a14087a7c734195d0a47260acc91f7211b10bd905aac99bdab81145b282edb44e +DIST aflplusplus-4.05c-patches.tar.xz 4860 BLAKE2B dcc0bf2799393bb7e27c6592cf46efc19277733ae1e17b3ab5b7a60aed244ec24405ceaecb5f310ac344390a92b4348275e8a19936b8760c0f2fe74f086771b9 SHA512 7a475f433796d9b9c13c5755a11aa632174662d18e69add6531fe1cbe42d75ad514bc779e42630b0a48c9df9edcc89fe992f654812fa2281b6ffa64a1019c82c +DIST aflplusplus-4.05c.tar.gz 2839704 BLAKE2B 31594e5c41cb057a1598a112e158360a172a512756a2cba2ec9bd78643045945c9a0f378e322c9250e75a6348b76f5cc84d8de6560e0a6a92a19f4d4b9a149eb SHA512 cb07279e4b1b2fa48a455acd551e26d9a53cf585258880aba4f26aa147b748b947b0608e5bbec4212362da3efc20183ba90b2dfa6584df93861dcca269d5ea7c EBUILD aflplusplus-4.01c-r1.ebuild 2167 BLAKE2B cdf3a3e1bd5222426d0841693c262ea8406f21fcbd16f1518b5c15d04b72c31957e57b519b47be1002c1966b8ad64ab41a6cfde91f7dc1c168a5563b041fa5a7 SHA512 8f9d43230632d9d6df1ea420f79fed527da24f6660e189324b2ac99250c5f6a64488c23601f24721225515977e943117025bb0fa91b1e907d267e56b1f7b357f EBUILD aflplusplus-4.03c.ebuild 2058 BLAKE2B 627a29e84353cd26b266e7f5a0f413a1b0ad8ce9c884c94f289dcec78e1e2e8a8829b746ea271fb0fa6c0369bea9aa7d9b5cde63b158956bcc772783ee6e2e8a SHA512 329f60a78dcc297009b0b2f68ad664822b37b4bac4b8f7ec42dbd84744c33a7556ed04a4e4a04366f3890e671faf18eb9c9ff1db2c853cf0f9e0b00a55354911 EBUILD aflplusplus-4.04c-r1.ebuild 2081 BLAKE2B db6987f54b96263faf6fc8089e656e3bde8c9d1c21b67e182e106e52bccb8878238916a3c5bcd98882757ac12d1183898ac303ed503265f21bfffe313c326977 SHA512 ffffa6cced5350167689f06e817dc9f331445bde1bfa159473f481bfb4502d1718503552ad8cab72fd55a06366a2f4776f4530548879f726ad60dc0b83548d87 +EBUILD aflplusplus-4.05c.ebuild 2081 BLAKE2B 19a74e09cb60ee706db54fa00967c58ab8a471090867d85361438f93296f5eede7ecd2bcf22e81bf4c1b4fe5b6ee841ae898b84c5a5e90fa8578e3c657118449 SHA512 a52c21b74ea2fec280420ee0b4a1054cc1400a830ddf0a1d4c6ed0262af7078a93a6a553c52feb5ad7362f2ce0ff4c533fa09770f0459c3397ef592e92f1071c MISC metadata.xml 328 BLAKE2B c9ad582740e9c2ad03a30fe0eaafb8ee19f0d9bc2e98cc7bcd14385a3407f84301479d324b92d3aecafdc1e5cfef1d2cfc8a15c2ecb5d8f2fa348d82de920128 SHA512 e56ce158f6764926c2ed4dc486f017ce75fa272ac8e6ad16e4a816f8c734d7313e3dc9cb007bab07efe73e59cab185312a02d6178296bfe25002719ce4975d14 diff --git a/app-forensics/aflplusplus/aflplusplus-4.05c.ebuild b/app-forensics/aflplusplus/aflplusplus-4.05c.ebuild new file mode 100644 index 000000000000..eac16abd0282 --- /dev/null +++ b/app-forensics/aflplusplus/aflplusplus-4.05c.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +LLVM_MAX_SLOT=15 +inherit toolchain-funcs llvm optfeature python-single-r1 + +AFL_PATCHSET="${PN}-4.05c-patches" +DESCRIPTION="A fork of AFL, the popular compile-time instrumentation fuzzer" +HOMEPAGE="https://github.com/AFLplusplus/AFLplusplus" +SRC_URI="https://github.com/AFLplusplus/AFLplusplus/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${AFL_PATCHSET}.tar.xz" +S="${WORKDIR}"/AFLplusplus-${PV} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="test" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Tests involve heavy use of LD_PRELOAD in some cases +# This isn't compatible with sandbox +RESTRICT="test" + +# It turns out we need Clang too +RDEPEND="${PYTHON_DEPS} + >=sys-devel/llvm-13:= + || ( + sys-devel/clang:13 + sys-devel/clang:14 + sys-devel/clang:${LLVM_MAX_SLOT} + ) + !app-forensics/afl" +DEPEND="${RDEPEND} + test? ( dev-util/cmocka )" + +QA_FLAGS_IGNORED="afl-gcc-cmplog-pass.so afl-gcc-cmptrs-pass.so" +QA_PREBUILT="usr/share/afl/testcases/others/elf/small_exec.elf" + +PATCHES=( + "${WORKDIR}"/${AFL_PATCHSET} +) + +llvm_check_deps() { + has_version -b "sys-devel/clang:${LLVM_SLOT}" && \ + has_version -b "sys-devel/llvm:${LLVM_SLOT}" +} + +pkg_setup() { + llvm_pkg_setup + python-single-r1_pkg_setup +} + +mymake() { + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + CFLAGS_FLTO="" \ + LLVM_CONFIG="$(get_llvm_prefix ${LLVM_MAX_SLOT})"/bin/llvm-config \ + PREFIX="${EPREFIX}/usr" \ + HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \ + DOC_PATH="${EPREFIX}/usr/share/doc/${PF}" \ + MAN_PATH="${EPREFIX}/usr/share/man/man8" \ + "$@" +} + +src_compile() { + mymake +} + +src_test() { + mymake test +} + +src_install() { + mymake DESTDIR="${D}" install + dostrip -x /usr/share/afl/testcases/ +} + +pkg_postinst() { + # TODO: Any others? + optfeature "fuzzing with AFL_USE_ASAN" sys-libs/compiler-rt-sanitizers[asan] + optfeature "fuzzing with AFL_USE_MSAN" sys-libs/compiler-rt-sanitizers[msan] +} |