New package: ubridge-0.9.14

This commit is contained in:
Cameron Nemo 2018-10-18 08:42:23 -07:00 committed by maxice8
parent b9b0012294
commit c5f795ca34
5 changed files with 81 additions and 0 deletions

5
srcpkgs/ubridge/INSTALL Normal file
View file

@ -0,0 +1,5 @@
case "${ACTION}" in
post)
setcap cap_net_admin,cap_net_raw=ep usr/bin/ubridge
;;
esac

View file

@ -0,0 +1,28 @@
commit e5a77593ef6a32cdb0551e7588180bbc2b9dd392
Author: Garri Djavadyan <g.djavadyan@gmail.com>
Date: Wed Mar 21 16:19:17 2018 +0500
Respect CFLAGS/LDFLAGS
diff --git Makefile Makefile
index c55c29f..bd946a7 100644
--- Makefile
+++ Makefile
@@ -40,7 +40,7 @@ OBJ = $(SRC:.c=.o)
CC ?= gcc
-CFLAGS = -O3 -Wall
+CFLAGS += -Wall
BINDIR = /usr/local/bin
@@ -76,7 +76,7 @@ endif
##############################
$(NAME) : $(OBJ)
- $(CC) -o $(NAME) $(OBJ) $(LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(NAME) $(OBJ) $(LIBS)
.PHONY: clean

View file

@ -0,0 +1,21 @@
commit 39162868afe6d51c1fb72d1b99defb51c7713fb6
Author: Diego Dompe <ddompe@users.noreply.github.com>
Date: Thu Apr 12 20:02:40 2018 -0600
Correct runtime issue for ARM64
The getopt return is an int, and with the current code on ARM64 is being interpreted as a 255 given the opt is a char, causing to go into the default switch statement (and aborting the program silently).
diff --git src/ubridge.c src/ubridge.c
index fd2af71..daf46b0 100644
--- src/ubridge.c
+++ src/ubridge.c
@@ -334,7 +334,7 @@ int main(int argc, char **argv)
{
int hypervisor_tcp_port = 0;
char *hypervisor_ip_address = NULL;
- char opt;
+ int opt;
char *index;
size_t len;

View file

@ -0,0 +1,10 @@
--- src/netlink/nl.c.orig
+++ src/netlink/nl.c
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
+#include <sys/types.h>
#include "nl.h"
#define NLMSG_TAIL(nmsg) \

17
srcpkgs/ubridge/template Normal file
View file

@ -0,0 +1,17 @@
# Template file for 'ubridge'
pkgname=ubridge
version=0.9.14
revision=1
build_style=gnu-makefile
make_build_args="SYSTEM_INIPARSER=1"
makedepends="libpcap-devel iniparser-devel"
short_desc="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/GNS3/ubridge"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=d28538f15c02e7b889872a7478400855d5b9d9d26b0bdad621a0cc89395a3bc2
do_install() {
vbin ubridge
}