mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 10:21:10 +02:00
41 lines
956 B
Plaintext
41 lines
956 B
Plaintext
# Contributor: Danilo Godec <danilo.godec@agenda.si>
|
|
# Maintainer:
|
|
pkgname=nuttcp
|
|
pkgver=6.1.2
|
|
pkgrel=0
|
|
pkgdesc="A network performance measurement tool"
|
|
url="http://lcp.nrl.navy.mil/nuttcp/"
|
|
arch="all"
|
|
license="GPL2"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="http://lcp.nrl.navy.mil/$pkgname/$pkgname-$pkgver.tar.bz2"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
install -Dm755 nuttcp-6.1.2 "$pkgdir"/usr/sbin/nuttcp
|
|
install -Dm644 nuttcp.8 "$pkgdir"/usr/share/man/man8/nuttcp.8
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
|
|
}
|
|
md5sums="a16d4d6d5def02cea980e57feaf30500 nuttcp-6.1.2.tar.bz2"
|