diff options
author | Michał Polański <michal@polanski.me> | 2020-01-21 08:55:14 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-21 10:51:31 +0100 |
commit | 37c0011ee06058c4e945c684921ba5dcb033e853 (patch) | |
tree | 2b74a54dfac6a0516aee764b4b0d37c11489e08b /testing | |
parent | 062a09c7a0f6a00a111287462ad1d6dd93fe67ef (diff) | |
download | aports-37c0011ee06058c4e945c684921ba5dcb033e853.zip |
testing/slirp4netns: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/slirp4netns/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/slirp4netns/APKBUILD b/testing/slirp4netns/APKBUILD new file mode 100644 index 00000000000..c8785ef631a --- /dev/null +++ b/testing/slirp4netns/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Michał Polański <michal@polanski.me> +# Maintainer: Michał Polański <michal@polanski.me> +pkgname=slirp4netns +pkgdesc="User-mode networking for unprivileged network namespaces" +pkgver=0.4.3 +pkgrel=0 +arch="all" +url="https://github.com/rootless-containers/slirp4netns" +license="GPL-2.0-or-later" +makedepends="glib-dev libcap-dev libseccomp-dev autoconf automake" +checkdepends="bash gzip jq iproute2 nmap-ncat" +subpackages="$pkgname-doc" +options="!check" # flaky tests +source="$pkgname-$pkgver.tar.gz::https://github.com/rootless-containers/slirp4netns/archive/v$pkgver.tar.gz" + +check() { + # needs tun module loaded + make check-TESTS +} + +prepare() { + default_prepare + ./autogen.sh +} + +build() { + ./configure --prefix=/usr + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="a3415529486f11cf12c799cabc889dca30fbf64d08818359a285ac67c15fc7926d61105291cd8f2652174747e641e159b5b805a8954fd82f7eb9e35058b23265 slirp4netns-0.4.3.tar.gz" |