summaryrefslogtreecommitdiff
blob: 586f8e2f259786b82641affb153e9eab0b76f15e (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
42
43
44
45
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit qmake-utils

DESCRIPTION="Packet generator and analyzer"
HOMEPAGE="https://ostinato.org/"
SRC_URI="https://github.com/pstavirs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""

#https://github.com/pstavirs/ostinato/issues/173
# libpcap dep is versioned to pull in the fix for #602098
RDEPEND="
	dev-libs/protobuf:=
	dev-qt/qtcore:5
	dev-qt/qtgui:5
	dev-qt/qtnetwork:5
	dev-qt/qtscript:5
	dev-qt/qtwidgets:5
	dev-libs/libnl:3
	>=net-libs/libpcap-1.8.1-r2
"
DEPEND="${RDEPEND}
	dev-qt/qtsvg:5
	dev-qt/qtxml:5"

PATCHES=(
	"${FILESDIR}/${PN}-0.9_p20180522-no-modeltest.patch"
)

src_configure() {
	sed -i 's#"/drone"#"/ostinato-drone"#' client/mainwindow.cpp || die
	eqmake5 PREFIX="/usr" ost.pro
}

src_install() {
	emake INSTALL_ROOT="${ED}" install
	mv "${ED}"/usr/bin/{drone,ostinato-drone}
}