summaryrefslogtreecommitdiff
blob: 97d1f5c8c50308749ca1e87fc1960146ece8b9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="Measure the capacity of a network by sending a bulk TCP stream over it"
HOMEPAGE="http://www.internet2.edu/~shalunov/thrulay/"
SRC_URI="
	http://www.internet2.edu/~shalunov/thrulay/${P}.tar.gz
	mirror://sourceforge/${PN}/${P}.tar.gz"

# init.d is GPL-2
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"

src_prepare() {
	default

	echo 'thrulay thrulayd: libthrulay.la' >> src/Makefile.am || die
	eautoreconf
}

src_configure() {
	econf --disable-static
}

src_install() {
	default

	dodoc doc/thrulay-protocol.txt
	doman doc/thrulay*.[1-8]

	newinitd "${FILESDIR}"/thrulayd-init.d thrulayd
	newconfd "${FILESDIR}"/thrulayd-conf.d thrulayd

	# no static archives
	find "${D}" -name '*.la' -delete || die
}