summaryrefslogtreecommitdiff
path: root/dev-util/trinity
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/trinity
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/trinity')
-rw-r--r--dev-util/trinity/Manifest7
-rw-r--r--dev-util/trinity/files/trinity-1.7-cflags.patch14
-rw-r--r--dev-util/trinity/metadata.xml8
-rw-r--r--dev-util/trinity/trinity-1.7.ebuild42
-rw-r--r--dev-util/trinity/trinity-9999.ebuild42
5 files changed, 113 insertions, 0 deletions
diff --git a/dev-util/trinity/Manifest b/dev-util/trinity/Manifest
new file mode 100644
index 000000000000..b41d73fa03ec
--- /dev/null
+++ b/dev-util/trinity/Manifest
@@ -0,0 +1,7 @@
+AUX trinity-1.7-cflags.patch 538 SHA256 04a99d0697b17fed3a64a6c6d1c7f42f4b1f9c5969b7e868f9354a6a003752b9 SHA512 48abb97ad496ab2f74aa5acb8266d7643ce0c6cbe1bc33dfa1acbe107978e7b53aa1a4de33dce18f77eef94408bc661b62dfa0776e87de4cb959dcfa26d51129 WHIRLPOOL 77f4ffc0e6377652a27969dc9ca899e49bed4ce879b354ea95f8b441a783ca459d9e56a46ed627af28cee90eaa0381bacec622c576910aeb12381ba47146ee48
+DIST trinity-1.7.tar.xz 195488 SHA256 4cb2bd4049ce523fdf47490c4c18b8eb713c720d4b3b13d6ec2ae246aac908ad SHA512 bb702ec79494591e04c74279e39d6dd0c5779f7cb2696c306c94bee3a8aefb524e369674daadf02f70b58dbb19ad5699d2c331bc4c9089046d2214403a95ba87 WHIRLPOOL 2b14592a85e049eb0f41f611b645f38be61267a63f83e6ef08c2de35213398c61b30f85da4f4b37c4e9293f4c5064c317aad157df5bca5ca552bc378c2aa4837
+EBUILD trinity-1.7.ebuild 862 SHA256 a5d1e4dacda5bb703c96ccbb3e1c5bdc326442c50b88ec1bd27cd974e19a0086 SHA512 f91dfc4e754aefaa384ec40d7dc57a317de3b7db34badf85ef402b5cf0b4d19b734c8d6d984d45c5e2d2aedc3bfd4d3f191115047d0263d1c71205e1a59b86b3 WHIRLPOOL 1fb642ee1753619537fe12eb42e6f522466e90f349f121bfeb2d163c4721cbe42e079045e5c46b96c59e2c4851ad66a87d73c5554ed2bda66fdaf54c9e5baebf
+EBUILD trinity-9999.ebuild 804 SHA256 266c5af210e7a4c585fec90da11546295690a0ac3366abf0270916935121e9af SHA512 6183f9cba7341792b559fddc183027a7d80fdc7a5531ee26c94aa04ca82663492827b2ee1fb1986d136c69826e1a79183f6c2c6e9ee9b4c018d6af8fdb44c384 WHIRLPOOL 457d1c86560efc3b0b48796c8333521b12f494c5b6771e8df324b2bcdc010a698c20a63e752c3597b4ef8d916c1f02e22dbe27e4dd6a3f0601952f646cb51bd6
+MISC ChangeLog 4170 SHA256 96000b6f7470fce532a823df92c0d85b25299fd71d86ecbe0798f1dfb493ee47 SHA512 da40c17577c32a6e83af33492980b303e93d92908043f0b65695a67986b67f0cef26b86d16d5747b31b9c7b1b49559c2e586f4f0f9e893b9ff4932903dda7b87 WHIRLPOOL 0f2a99e29f100b55bf653830a20cda2d742350c95f3f2b45479066ef4802658c6f61b60fc1a115277bd4df08f5a59e13fe9803d92dd06e56c22481b52123f794
+MISC ChangeLog-2015 1632 SHA256 09c27a17d177702b5804409cea9037cb42a1a47ef894527e0ff90220f59f2d81 SHA512 21796f1922387cd03a0d356bb6a7374e76eaafb4f68568c3f9a7b5663272aaa9d7b1d3ec74352a14795ab87f5c34ce5d9864d3f9367f4700e179470877551601 WHIRLPOOL b3366f2609d69d01c8f3b1d621195d89754e21166fc78ed71efd1874e7a22f1d6ea71628e918e80df4c6a1f20ee18262c108b17360012927726ee321cdfb02ed
+MISC metadata.xml 253 SHA256 82daba2c810d859ad73b4a195ff5e0b08555ed39e6dabbc8d922298f21a405b4 SHA512 c6d2490fa32bc6e044a6b051ba21210f47d7545271a7437b9ed16f49924837e1c88dffc33efb94557b818a508e068e1405fae056c881078c37a001e30947aa25 WHIRLPOOL cc5153d2bdfe0bdfcc75d5fae1cb28a568cef347fa6ae718b721a5b97ffaa795cea02f80ebb96b7a736cfc9731c95052324115dc2b7d4a6919b006263d72a866
diff --git a/dev-util/trinity/files/trinity-1.7-cflags.patch b/dev-util/trinity/files/trinity-1.7-cflags.patch
new file mode 100644
index 000000000000..accdae374bfa
--- /dev/null
+++ b/dev-util/trinity/files/trinity-1.7-cflags.patch
@@ -0,0 +1,14 @@
+diff --git a/Makefile b/Makefile
+index c77d1f9..b970d08 100644
+--- a/Makefile
++++ b/Makefile
+@@ -10,7 +10,8 @@ endif
+ CC := $(CROSS_COMPILE)$(CC)
+ LD := $(CROSS_COMPILE)$(LD)
+
+-CFLAGS += -Wall -Wextra -g -O2 -I. -Iinclude/ -Wimplicit -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__linux__
++CFLAGS ?= -g -O2 -D_FORTIFY_SOURCE=2
++CFLAGS += -Wall -Wextra -I. -Iinclude/ -Wimplicit -D_GNU_SOURCE -D__linux__
+
+ CFLAGS += $(shell if $(CC) -std=gnu11 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-std=gnu11"; else echo "-std=gnu99"; fi)
+
diff --git a/dev-util/trinity/metadata.xml b/dev-util/trinity/metadata.xml
new file mode 100644
index 000000000000..1d8df37aeeb8
--- /dev/null
+++ b/dev-util/trinity/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">kernelslacker/trinity</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/trinity/trinity-1.7.ebuild b/dev-util/trinity/trinity-1.7.ebuild
new file mode 100644
index 000000000000..a25cbb887f2f
--- /dev/null
+++ b/dev-util/trinity/trinity-1.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A Linux system call fuzz tester"
+HOMEPAGE="http://codemonkey.org.uk/projects/trinity/"
+SRC_URI="http://codemonkey.org.uk/projects/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+# We need newer headers to avoid compilation failures in the BPF stuff.
+DEPEND="app-arch/xz-utils
+ >=sys-kernel/linux-headers-4.8"
+
+PATCHES=( "${FILESDIR}/${P}-cflags.patch" )
+
+src_configure() {
+ tc-export CC
+ default
+}
+
+src_compile() {
+ # Enable a verbose (i.e. not quiet) build.
+ emake V=1
+}
+
+src_install() {
+ dobin "${PN}"
+ dodoc Documentation/* README
+
+ if use examples ; then
+ exeinto "/usr/share/doc/${PF}/scripts"
+ doexe scripts/*
+ docompress -x "/usr/share/doc/${PF}/scripts"
+ fi
+}
diff --git a/dev-util/trinity/trinity-9999.ebuild b/dev-util/trinity/trinity-9999.ebuild
new file mode 100644
index 000000000000..2e263c788cee
--- /dev/null
+++ b/dev-util/trinity/trinity-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs git-r3
+
+EGIT_REPO_URI="https://github.com/kernelslacker/trinity.git"
+
+DESCRIPTION="A Linux system call fuzz tester"
+HOMEPAGE="http://codemonkey.org.uk/projects/trinity/ https://github.com/kernelslacker/trinity/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="examples"
+
+DEPEND="sys-kernel/linux-headers"
+
+src_prepare() {
+ sed -e 's/-g -O2//' \
+ -e 's/-D_FORTIFY_SOURCE=2//' \
+ -e '/-o $@/s/$(LDFLAGS) //' \
+ -i Makefile || die
+
+ tc-export CC
+ default
+}
+
+src_compile() {
+ emake V=1
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc Documentation/* README
+
+ if use examples ; then
+ exeinto /usr/share/doc/${PF}/scripts
+ doexe scripts/*
+ docompress -x /usr/share/doc/${PF}/scripts
+ fi
+}