Commit 39c0e9da authored by Corentin Henry's avatar Corentin Henry Committed by Jakub Jirutka
Browse files

testing/ostinato: new aport

http://ostinato.org/
Packet/Traffic Generator and Analyzer
parent 6edae4e6
# Maintainer: Corentin Henry <corentinhenry@gmail.com>
# Contributor: Corentin Henry <corentinhenry@gmail.com>
pkgname=ostinato
pkgver=0.7.1
pkgrel=0
pkgdesc="Packet/Traffic Generator and Analyzer"
url="https://www.ostinato.org/"
arch="all"
license="GPLv3"
depends=""
makedepends="qt-dev protobuf-dev libpcap-dev paxmark"
subpackages="$pkgname-drone $pkgname-gui"
source="http://dl.bintray.com/pstavirs/ostinato/$pkgname-src-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
qmake PREFIX=/usr || return 1
make
}
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install || return 1
paxmark -m "$pkgdir"/usr/bin/drone || return 1
paxmark -m "$pkgdir"/usr/bin/ostinato
}
drone() {
pkgdesc="ostinato controller"
install -d "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/drone "$subpkgdir"/usr/bin/drone
}
gui() {
pkgdesc="graphical controller for ostinato"
install -d "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/ostinato "$subpkgdir"/usr/bin/ostinato
}
md5sums="84c1ad90d3132d42b40025c6167fd8f0 ostinato-src-0.7.1.tar.gz"
sha256sums="7b46eb5257b5b50ee5317dcf9158c6e78ba36a04858c3c9228fa02e8a98364c2 ostinato-src-0.7.1.tar.gz"
sha512sums="4494584930445567bd191e265a6f877fdbbe7aa38c23184d7aa7baf7a75de33c351fc7edac4efe1ce112be02a295d6851fa7df2505eb306f90d564c8e1d296ed ostinato-src-0.7.1.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment