From 599b7b65890d50d14bab2838f09bf6bdb766e21a Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Fri, 19 Aug 2016 12:31:44 +0000 Subject: community/ubridge: moved from testing --- community/ubridge/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ community/ubridge/musl-fixes.patch | 24 ++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 community/ubridge/APKBUILD create mode 100644 community/ubridge/musl-fixes.patch (limited to 'community/ubridge') diff --git a/community/ubridge/APKBUILD b/community/ubridge/APKBUILD new file mode 100644 index 0000000000..4b9fa58a05 --- /dev/null +++ b/community/ubridge/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=ubridge +pkgver=0.9.4 +pkgrel=0 +pkgdesc="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces." +url="https://github.com/GNS3/ubridge" +arch="all" +license="GPL3" +depends="" +depends_dev="" +makedepends="$depends_dev libpcap-dev linux-headers" +install="" +subpackages="$pkgname-doc" +source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz + musl-fixes.patch" + +builddir="$srcdir"/$pkgname-$pkgver +build() { + cd "$builddir" + make || return 1 +} + +package() { + cd "$builddir" + install -Dm755 ${srcdir}/${pkgname}-${pkgver}/${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -dm755 ${pkgdir}/usr/share/doc/${pkgname} + install -m644 ${srcdir}/${pkgname}-${pkgver}/README.rst -t ${pkgdir}/usr/share/doc/${pkgname} + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + +md5sums="217bf4b59624b57d9d3ca79410fa980a ubridge-0.9.4.tar.gz +91dc8e9c293ae71b1b4e662f2cd83dcb musl-fixes.patch" +sha256sums="b694d624761bda3723d8460659c37868c04daa1ec1140cf74d73f65b205d1603 ubridge-0.9.4.tar.gz +cd4c6e8aae9a9f822627bc747a935191cb2ef7373af4a81ea538d600b6778d0d musl-fixes.patch" +sha512sums="2f5deb2f5dadd7e2e79d6a1ff2fdfbb7d255da686734ee6169d675f01e9d5b0513b8f40ffb94531a784fa36bf9193df17c2e4d8e7bb98db038175aad22ad1f86 ubridge-0.9.4.tar.gz +748a33f8c9e6841febcecc6d1fbad7eb5a07dbd05c61bc338dedced04adf8085d4386ae4461bcc406d0975b78ac5a656c260c2443a7369d6876f963ae8e7f128 musl-fixes.patch" diff --git a/community/ubridge/musl-fixes.patch b/community/ubridge/musl-fixes.patch new file mode 100644 index 0000000000..4264080510 --- /dev/null +++ b/community/ubridge/musl-fixes.patch @@ -0,0 +1,24 @@ +diff --git a/netlink/nl.c b/netlink/nl.c +index 7a11506..5e7df80 100644 +--- a/netlink/nl.c ++++ b/netlink/nl.c +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + #include + #include "nl.h" + +diff --git a/netlink/nl.h b/netlink/nl.h +index 34aeb36..d25a65d 100644 +--- a/netlink/nl.h ++++ b/netlink/nl.h +@@ -26,6 +26,7 @@ + /* + * Use this as a good size to allocate generic netlink messages + */ ++#include + #ifndef PAGE_SIZE + #define PAGE_SIZE 4096 + #endif -- cgit v1.2.3