aboutsummaryrefslogblamecommitdiffstats
path: root/main/iperf3/APKBUILD
blob: 3e39c8456b21e20e1e33691808bd498cab008715 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                               
                                                   
              
              
          
        
                                                         
                                    
          



              
                          




                                                                                          
                             
         
 
                                    





                      
         

                                      
                     

                                 
                               

                                         

                                         
 
 
           
                      
                                      

                                                     
                                              
                                                     
                                              

 
                                                                                                                                                               
                                                                                                                                             
                                                                                                                                             
                                                                                                                                                   
                                                                                                                                                        
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iperf3
_pkgname=iperf
pkgver=3.2
pkgrel=0
pkgdesc="A tool to measure IP bandwidth using UDP or TCP"
url="https://github.com/esnet/iperf"
arch="all"
license="BSD"
depends=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/esnet/$_pkgname/archive/$pkgver.tar.gz
	$_pkgname.initd
	$_pkgname.confd

	build-fixes.patch
	remove-pg-flags.patch
	"

builddir="$srcdir/$_pkgname-$pkgver"

check() {
	cd "$builddir"
	make check
}

build() {
	cd "$builddir"
	CFLAGS="$CFLAGS -D_GNU_SOURCE"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make -j1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	install -D -m0755 "$srcdir"/$_pkgname.initd \
		"$pkgdir"/etc/init.d/$_pkgname
	install -D -m0644 "$srcdir"/$_pkgname.confd \
		"$pkgdir"/etc/conf.d/$_pkgname
}

sha512sums="5c49bb832dd53956d15b0a9374b052a4e4e03c7c3b6e8c150001a7aba07b6ad5f8cd2b9ac2d9876981be0adf8b0396535ec9e021d58c8fe909a0f92743b4f855  iperf3-3.2.tar.gz
339fb04b41cce11e8ea8694d95c13af9c88e0d1143356d913ec810c9b11efa27212d585b5dcc49cc2eb860a6d8bc557092c8659d7d5cfe532c5afdb36f8eedf8  iperf.initd
fb5e155fff568a72488cc1511d30358835a48bcce309f8f46d040160932b4a4ccb85040c27c60dee477900a25bd34c50eac21d1d0bea984b40faa401be2ba7e8  iperf.confd
e544ae5545f6b8ff071a1344068f9ed2bec051eb82a3b53cfccda767ea915ecf2aff5f2bf91135cba62afdb1fd421298518fa0b08339c869a4d381b1e1d396dd  build-fixes.patch
81808862eecacdd7be658daa094385d7a57594281992b6b9b842cee676137d6990dce592b25e5db9fb80ea86628286ff7d234787d2939ef1f99820a361e1f3c6  remove-pg-flags.patch"