diff options
author | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
commit | d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch) | |
tree | 684a17eebf446aa1adab1097616f1882c8d51568 /repo/vde2/vde2.xibuild | |
parent | d1fc3393cca72e8e432f827f7624e38734fad6dc (diff) |
added deps for qemu
Diffstat (limited to 'repo/vde2/vde2.xibuild')
-rw-r--r-- | repo/vde2/vde2.xibuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/repo/vde2/vde2.xibuild b/repo/vde2/vde2.xibuild new file mode 100644 index 0000000..6809cc4 --- /dev/null +++ b/repo/vde2/vde2.xibuild @@ -0,0 +1,41 @@ +#!/bin/sh + +NAME="vde2" +DESC="VDE: Virtual Distributed Ethernet. User mode networking for QEMU, UML, etc." + +MAKEDEPS="linux-headers openssl libpcap python" + +PKG_VER=2.3.2 +SOURCE="https://downloads.sourceforge.net/project/vde/vde2/$PKG_VER/vde2-$PKG_VER.tar.gz" + +ADDITIONAL=" +inline.patch +musl-build-fix.patch +vde2.post-down +vde2.pre-install +vde2.pre-up +vde_cryptcab-compile-against-openssl-1.1.0.patch +" + +prepare() { + apply_patches +} + +build() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + make -C src/common + make -j1 -C src/lib + make +} + +package() { + cd "$BUILD_ROOT" + make -j1 DESTDIR="$PKG_DEST" install + + install -Dm755 "$BUILD_ROOT"/vde2.pre-up \ + "$PKG_DEST"/etc/network/if-pre-up.d/vde2 + install -Dm755 "$BUILD_ROOT"/vde2.post-down \ + "$PKG_DEST"/etc/network/if-post-down.d/vde2 +} |