summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2010-06-01 22:16:21 +0200
committerSebastian Pipping <sping@gentoo.org>2010-06-01 22:18:39 +0200
commit1ae374033fe65a8cb72707850f8aa5b9c20e6a5c (patch)
tree5e9f0755a9925bc4fb233a5ec02772c5a668f37b /net-misc/harpoon
parentSet repo_name (diff)
downloadbetagarden-1ae374033fe65a8cb72707850f8aa5b9c20e6a5c.tar.gz
betagarden-1ae374033fe65a8cb72707850f8aa5b9c20e6a5c.tar.bz2
betagarden-1ae374033fe65a8cb72707850f8aa5b9c20e6a5c.zip
Migrate some ebuilds from sping overlay
Diffstat (limited to 'net-misc/harpoon')
-rw-r--r--net-misc/harpoon/Manifest3
-rw-r--r--net-misc/harpoon/files/harpoon-1.02-122005-add-destdir-support.patch33
-rw-r--r--net-misc/harpoon/harpoon-1.02.122005.ebuild51
3 files changed, 87 insertions, 0 deletions
diff --git a/net-misc/harpoon/Manifest b/net-misc/harpoon/Manifest
new file mode 100644
index 0000000..135920c
--- /dev/null
+++ b/net-misc/harpoon/Manifest
@@ -0,0 +1,3 @@
+AUX harpoon-1.02-122005-add-destdir-support.patch 1033 RMD160 913cfa4b306d28ca6add308206bd3b15780e9b00 SHA1 428927860a1888b8ed6d95cdebf1c5937ab1bdde SHA256 a273359fe90d206f028ce3121457fe09f29456135049bdcd765f443362244619
+DIST harpoon-1.02-122005.tar.gz 3020405 RMD160 90f89287e1392db496476c0417b09043457196da SHA1 9d99ff977b6b8445750ee93b3888faa058161bde SHA256 ef1a1fce6aef67177c4466a962d0b0ec915b0e59adb03509c29369e1e31253d3
+EBUILD harpoon-1.02.122005.ebuild 1201 RMD160 485abf3ce205eab7ecf30e1062e854abd50fd126 SHA1 b996f93709f287a6c83f037e8a0296d2c99211dc SHA256 4b7c9886923a857574f13de6f055cc8e86f70ebb0d35e829a21c898819133132
diff --git a/net-misc/harpoon/files/harpoon-1.02-122005-add-destdir-support.patch b/net-misc/harpoon/files/harpoon-1.02-122005-add-destdir-support.patch
new file mode 100644
index 0000000..dca9df0
--- /dev/null
+++ b/net-misc/harpoon/files/harpoon-1.02-122005-add-destdir-support.patch
@@ -0,0 +1,33 @@
+From 5e1e4971227538074a28dc16987f27a76f9125cf Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Mon, 2 Nov 2009 02:23:04 +0100
+Subject: [PATCH] Add destdir support
+
+---
+ Makefile.in | 10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 99d1509..87d06b3 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -43,11 +43,11 @@ selfconf:
+ $(MAKE) -C selfconf
+
+ install: src
+- @INSTALL@ -dv -m 0755 @prefix@
+- @INSTALL@ -dv -m 0755 @prefix@/plugins
+- @INSTALL@ -bcv -m 0755 src/harpoon @prefix@
+- @INSTALL@ -bcv -m 0755 src/run_harpoon.sh @prefix@
+- @INSTALL@ -bcv -m 0755 src/plugins/*.@SHLIB_EXT@ @prefix@/plugins
++ @INSTALL@ -dv -m 0755 $(DESTDIR)@prefix@
++ @INSTALL@ -dv -m 0755 $(DESTDIR)@prefix@/plugins
++ @INSTALL@ -bcv -m 0755 src/harpoon $(DESTDIR)@prefix@
++ @INSTALL@ -bcv -m 0755 src/run_harpoon.sh $(DESTDIR)@prefix@
++ @INSTALL@ -bcv -m 0755 src/plugins/*.@SHLIB_EXT@ $(DESTDIR)@prefix@/plugins
+
+ clean:
+ $(MAKE) -C src clean
+--
+1.6.5.2
+
diff --git a/net-misc/harpoon/harpoon-1.02.122005.ebuild b/net-misc/harpoon/harpoon-1.02.122005.ebuild
new file mode 100644
index 0000000..78378bb
--- /dev/null
+++ b/net-misc/harpoon/harpoon-1.02.122005.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit versionator eutils
+
+MY_PV=$(replace_version_separator 2 '-')
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Flow-level Traffic Generator"
+HOMEPAGE="http://pages.cs.wisc.edu/~jsommers/harpoon/"
+SRC_URI="http://wail.cs.wisc.edu/software/${MY_P}.tar.gz"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc"
+
+#TODO HAVE_FLOWTOOLS,0
+DEPEND="dev-libs/expat"
+RDEPEND="${DEPEND}
+ dev-lang/python"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.02-122005-add-destdir-support.patch
+}
+
+src_configure() {
+ econf --enable-static-plugins
+}
+
+src_compile() {
+ emake src selfconf -j1 || die "emake src selfconf failed"
+ use doc && {
+ emake doc || die "emake doc failed"
+ }
+}
+
+src_install() {
+ use doc && dodoc doc/harpoon_manual.pdf
+
+ dobin src/harpoon || die "dobin failed"
+ newbin src/config_validator harpoon_config_validator || die "newbin failed"
+ dobin selfconf/harpoon_flowproc || die "dobin failed"
+ newbin selfconf/harpoon_reconf.py harpoon_reconf || die "newbin failed"
+ newbin selfconf/synthetic.py harpoon_sythetic || die "newbin failed"
+}