summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/trinity/ChangeLog7
-rw-r--r--dev-util/trinity/trinity-9999.ebuild48
2 files changed, 54 insertions, 1 deletions
diff --git a/dev-util/trinity/ChangeLog b/dev-util/trinity/ChangeLog
index 72ee2a9c4ee7..1731747fe808 100644
--- a/dev-util/trinity/ChangeLog
+++ b/dev-util/trinity/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/trinity
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/trinity/ChangeLog,v 1.2 2013/03/13 16:32:57 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/trinity/ChangeLog,v 1.3 2013/05/16 09:23:49 radhermit Exp $
+
+*trinity-9999 (16 May 2013)
+
+ 16 May 2013; Tim Harder <radhermit@gentoo.org> +trinity-9999.ebuild:
+ Add live ebuild.
13 Mar 2013; Tim Harder <radhermit@gentoo.org> trinity-1.1.ebuild:
Add build dep on kernel headers (bug #461614).
diff --git a/dev-util/trinity/trinity-9999.ebuild b/dev-util/trinity/trinity-9999.ebuild
new file mode 100644
index 000000000000..46d756fa2016
--- /dev/null
+++ b/dev-util/trinity/trinity-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/trinity/trinity-9999.ebuild,v 1.1 2013/05/16 09:23:49 radhermit Exp $
+
+EAPI=5
+
+inherit toolchain-funcs git-2
+
+EGIT_REPO_URI="git://git.codemonkey.org.uk/trinity"
+
+DESCRIPTION="A Linux system call fuzz tester"
+HOMEPAGE="http://codemonkey.org.uk/projects/trinity/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="examples"
+
+DEPEND="sys-kernel/linux-headers"
+
+src_prepare() {
+ sed -e 's/^CFLAGS = /CFLAGS +=/' \
+ -e 's/-g -O2//' \
+ -e 's/-D_FORTIFY_SOURCE=2//' \
+ -e '/-o trinity/s/$(CFLAGS)/\0 $(LDFLAGS)/' \
+ -e '/^CFLAGS += -Werror/d' \
+ -i Makefile || die
+
+ tc-export CC
+}
+
+src_configure() {
+ ./configure.sh || die
+}
+
+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
+}