Commit e0231420 authored by Michał Polański's avatar Michał Polański Committed by Leo

testing/slirp4netns: load tun kernel module on boot

parent 7d1d3989
......@@ -5,13 +5,15 @@ pkgver=1.1.7
pkgrel=0
pkgdesc="User-mode networking for unprivileged network namespaces"
url="https://github.com/rootless-containers/slirp4netns"
arch="all"
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="$pkgname-$pkgver.tar.gz::https://github.com/rootless-containers/slirp4netns/archive/v$pkgver.tar.gz"
source="https://github.com/rootless-containers/slirp4netns/archive/v$pkgver/slirp4netns-$pkgver.tar.gz
modules-load.conf
"
check() {
# needs tun module loaded
......@@ -30,6 +32,8 @@ build() {
package() {
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/modules-load.conf "$pkgdir"/usr/lib/modules-load.d/slirp4netns.conf
}
sha512sums="01963675b9f37e4f893a1333ea117b451e9480713a783b90955fb8fcbaba4f462d00642240b1aeb9234f8eae0576b5572fddde3cf5cb8ca445e048b853fe4788 slirp4netns-1.1.7.tar.gz"
sha512sums="01963675b9f37e4f893a1333ea117b451e9480713a783b90955fb8fcbaba4f462d00642240b1aeb9234f8eae0576b5572fddde3cf5cb8ca445e048b853fe4788 slirp4netns-1.1.7.tar.gz
871b650ff982be061532b4c5fe4812f41e6e2c58fc69b24f8a745f9a43389da44e742a69b0467b3c3d9e2b031af0728e20f10fa4584695c4f5ac87768a1fd34e modules-load.conf"
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