summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-05-16 09:23:49 +0000
committerTim Harder <radhermit@gentoo.org>2013-05-16 09:23:49 +0000
commitb3c743c91619df868ca1103dfab1ad71caeb1a2a (patch)
tree86359cf781fec1ecabf73fe43b484faac7428348 /dev-util
parentRemove old. (diff)
downloadgentoo-2-b3c743c91619df868ca1103dfab1ad71caeb1a2a.tar.gz
gentoo-2-b3c743c91619df868ca1103dfab1ad71caeb1a2a.tar.bz2
gentoo-2-b3c743c91619df868ca1103dfab1ad71caeb1a2a.zip
Add live ebuild.
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-util')
-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
+}