aboutsummaryrefslogblamecommitdiffstats
path: root/testing/slirp4netns/APKBUILD
blob: 6219052f7d8b50a523a5f2092514e10467480719 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                     
            
        
                                                                  

                                                        
          
                                                                               


                                              


                                                                                                      

















                                      
                                                                                                    

 
                                                                                                                                                                      
                                                                                                                                                    
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=slirp4netns
pkgver=1.1.8
pkgrel=0
pkgdesc="User-mode networking for unprivileged network namespaces"
url="https://github.com/rootless-containers/slirp4netns"
license="GPL-2.0-or-later"
arch="all"
makedepends="glib-dev libcap-dev libseccomp-dev libslirp-dev autoconf automake"
checkdepends="bash gzip jq iproute2 nmap-ncat"
subpackages="$pkgname-doc"
options="!check" # flaky tests
source="https://github.com/rootless-containers/slirp4netns/archive/v$pkgver/slirp4netns-$pkgver.tar.gz
	modules-load.conf
	"

check() {
	# needs tun module loaded
	make check-TESTS
}

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 "$srcdir"/modules-load.conf "$pkgdir"/usr/lib/modules-load.d/slirp4netns.conf
}

sha512sums="28b2dd73cfd0a0fc71338c55a7f4ae448456620a0d27eb1e7c79f2d58da2a90f2f9af363c9abf5148d4d6435f69ea26809e5f20721fec5daf4c9897bb29c3547  slirp4netns-1.1.8.tar.gz
871b650ff982be061532b4c5fe4812f41e6e2c58fc69b24f8a745f9a43389da44e742a69b0467b3c3d9e2b031af0728e20f10fa4584695c4f5ac87768a1fd34e  modules-load.conf"