summaryrefslogtreecommitdiff
path: root/repo/vde2/vde2.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/vde2/vde2.xibuild')
-rw-r--r--repo/vde2/vde2.xibuild41
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
+}