summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2024-03-29 14:13:41 +0000
committerMarek Szuba <marecki@gentoo.org>2024-03-29 14:24:53 +0000
commit7648effb7e4ea8610c0d5bb9eede794db9eabf86 (patch)
tree6dcb182f81dbc46161798fa32fe27ca71d46071c /app-forensics
parentwww-servers/tomcat: bump to 8.5.100 (diff)
downloadgentoo-7648effb7e4ea8610c0d5bb9eede794db9eabf86.tar.gz
gentoo-7648effb7e4ea8610c0d5bb9eede794db9eabf86.tar.bz2
gentoo-7648effb7e4ea8610c0d5bb9eede794db9eabf86.zip
app-forensics/radamsa: add 0.7
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-forensics')
-rw-r--r--app-forensics/radamsa/Manifest2
-rw-r--r--app-forensics/radamsa/files/radamsa-0.7_prebuilt-c.patch11
-rw-r--r--app-forensics/radamsa/radamsa-0.7.ebuild46
3 files changed, 59 insertions, 0 deletions
diff --git a/app-forensics/radamsa/Manifest b/app-forensics/radamsa/Manifest
index 480d52b9c4e1..7cdb58000b92 100644
--- a/app-forensics/radamsa/Manifest
+++ b/app-forensics/radamsa/Manifest
@@ -1,2 +1,4 @@
DIST radamsa-0.6.c.gz 142359 BLAKE2B e9cfda273ca78e97d7e8a94f0399c2c8d7b543c578a7b6745a03c9a2a18aa965a13ead55e15aab27c5386bb4d4ab961cedfbdca72c72013dc1ace0931c237199 SHA512 b9f0b8801063821ebd435464057aa119c5eae2dec8c39b5ec295854832e25dd8b102d6beec2084a71c380dd0e1419fbce6ee2acc1064c8a4491ad32ff94673f9
DIST radamsa-0.6.tar.gz 51962 BLAKE2B c909b917e55ea2d69f4bec22981afb73dabc0d380d6942167f805ecfd96c3f3d724a5e6d80acf4b2abe2ddf9141dd596a9c0b2e22db98e6c441236c49a06502d SHA512 6808a7f9a42c1a38bfa18ca8613067f4550a5960500e7438011ff26a37a663707a92597f869678600a7bd20df9d2bda19d3c80b07cd12fc49bad3b123739bae7
+DIST radamsa-0.7.c.gz 139939 BLAKE2B ae3e2fca777bdc672431810ec6e9a245774e3f761fb4552ae973caf3b82348c73221e9cfac023e80f161c37fb3e63ff043aac2f98cb932056c1618a842245f52 SHA512 f0b0c21034cb33182be74d8927c879a2a49cb20c992e97556bb9d76c35c8a39f1caf2042a3d001f0063b09e80705fa5d285d1d95b9f8a2dd5c62deb9a18d9bde
+DIST radamsa-v0.7.tar.bz2 49194 BLAKE2B a3e24302c67ed887373109ce3bd1b3b796c742ad50c04d83980caf7b5e92793668c9262791749653e72e15d65d7a4971d498013d3c5a8fafda9033cddc5b3e03 SHA512 ca55e499b739e4a24038b36115106dc10b6f68e3e127d3c45b0ab79676a1e6e82021be02e378bd6fd09f6df537d266ea4cf8f3528a25ed9e788548d6edc62fb5
diff --git a/app-forensics/radamsa/files/radamsa-0.7_prebuilt-c.patch b/app-forensics/radamsa/files/radamsa-0.7_prebuilt-c.patch
new file mode 100644
index 000000000000..94fad4879f91
--- /dev/null
+++ b/app-forensics/radamsa/files/radamsa-0.7_prebuilt-c.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -15,7 +15,7 @@
+ mkdir -p bin
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/radamsa radamsa.c
+
+-bin/radamsa: radamsa.c
++bin/radamsa:
+ mkdir -p bin
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/radamsa radamsa.c
+
diff --git a/app-forensics/radamsa/radamsa-0.7.ebuild b/app-forensics/radamsa/radamsa-0.7.ebuild
new file mode 100644
index 000000000000..baf922c968eb
--- /dev/null
+++ b/app-forensics/radamsa/radamsa-0.7.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="A general-purpose fuzzer"
+HOMEPAGE="https://gitlab.com/akihe/radamsa"
+SRC_URI="
+ https://gitlab.com/akihe/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2
+ https://gitlab.com/akihe/${PN}/uploads/d774a42f7893012d0a56c490a75ae12b/${P}.c.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# needs an owl-lisp
+RESTRICT=test
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.7_prebuilt-c.patch
+)
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ default
+
+ cp "${WORKDIR}"/${P}.c "${S}"/${PN}.c || die
+}
+
+src_compile() {
+ emake bin/radamsa CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin bin/radamsa
+ # avoid man compression by build system
+ doman doc/radamsa.1
+
+ einstalldocs
+}