Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kiwi <gregd72002@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/8] Adding libnice
Date: Tue,  9 Dec 2014 21:23:23 +0000	[thread overview]
Message-ID: <1418160208-1569-3-git-send-email-gregd72002@gmail.com> (raw)
In-Reply-To: <1418160208-1569-1-git-send-email-gregd72002@gmail.com>

From: Gregory Dymarek <gregd72002@gmail.com>

Signed-off-by: Gregory Dymarek <gregd72002@gmail.com>
---
 package/libnice/Config.in                            |  8 ++++++++
 .../libnice/libnice-0001-build-IPV6_RECVERR.patch    | 20 ++++++++++++++++++++
 package/libnice/libnice.mk                           | 13 +++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 package/libnice/Config.in
 create mode 100644 package/libnice/libnice-0001-build-IPV6_RECVERR.patch
 create mode 100644 package/libnice/libnice.mk

diff --git a/package/libnice/Config.in b/package/libnice/Config.in
new file mode 100644
index 0000000..240e3e7
--- /dev/null
+++ b/package/libnice/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBNICE
+	bool "libnice"
+	select BR2_PACKAGE_LIBGLIB2
+	help
+	  Adds libnice - The GLib ICE implementation
+	  Libnice is an implementation of the IETF's Interactive Connectivity Establishment (ICE) standard (RFC 5245) and the Session Traversal Utilities for NAT (STUN) standard (RFC 5389).
+	  
+	  http://nice.freedesktop.org/wiki/
diff --git a/package/libnice/libnice-0001-build-IPV6_RECVERR.patch b/package/libnice/libnice-0001-build-IPV6_RECVERR.patch
new file mode 100644
index 0000000..39ef617
--- /dev/null
+++ b/package/libnice/libnice-0001-build-IPV6_RECVERR.patch
@@ -0,0 +1,20 @@
+diff -rupN libnice-0.1.8.orig/stun/usages/bind.c libnice-0.1.8/stun/usages/bind.c
+--- libnice-0.1.8.orig/stun/usages/bind.c	2014-09-22 18:01:28.000000000 +0100
++++ libnice-0.1.8/stun/usages/bind.c	2014-12-01 13:28:32.144707407 +0000
+@@ -257,12 +257,16 @@ static int stun_socket (int family, int
+     int yes = 1;
+     switch (family)
+     {
++#ifdef IP_RECVERR
+       case AF_INET:
+         setsockopt (fd, SOL_IP, IP_RECVERR, &yes, sizeof (yes));
++#endif
+         break;
++#ifdef IPV6_RECVERR
+       case AF_INET6:
+         setsockopt (fd, SOL_IPV6, IPV6_RECVERR, &yes, sizeof (yes));
+         break;
++#endif
+       default:
+         /* Nothing to do. */
+         break;
diff --git a/package/libnice/libnice.mk b/package/libnice/libnice.mk
new file mode 100644
index 0000000..f3339bb
--- /dev/null
+++ b/package/libnice/libnice.mk
@@ -0,0 +1,13 @@
+#############################################################
+#
+# libnice 
+#
+#############################################################
+LIBNICE_VERSION = 0.1.8
+LIBNICE_SITE = http://nice.freedesktop.org/releases/
+LIBNICE_DEPENDENCIES = libglib2
+LIBNICE_INSTALL_STAGING = YES
+LIBNICE_LICENSE = LGPLv2.1+
+LIBNICE_LICENSE_FILE = COPYING.MPL COPYING.LGPL
+
+$(eval $(autotools-package))
-- 
1.9.1

  parent reply	other threads:[~2014-12-09 21:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-09 21:23 [Buildroot] [PATCH 1/8] Adding janus-gateway and dependencies kiwi
2014-12-09 21:23 ` [Buildroot] [PATCH 2/8] Adding gengetopt kiwi
2014-12-09 21:23 ` kiwi [this message]
2014-12-09 21:23 ` [Buildroot] [PATCH 4/8] Adding libsrtp kiwi
2014-12-09 21:23 ` [Buildroot] [PATCH 5/8] Adding libwebsock kiwi
2014-12-09 21:23 ` [Buildroot] [PATCH 6/8] Adding sofia-sip kiwi
2014-12-10 16:26   ` Björn Kirchner
2014-12-09 21:23 ` [Buildroot] [PATCH 7/8] Adding janus-gateway kiwi
2014-12-09 21:23 ` [Buildroot] [PATCH 8/8] Adding entries to Config.in and Config.in.host kiwi
2014-12-10 17:01   ` Vicente Olivert Riera
2014-12-10 17:04 ` [Buildroot] [PATCH 1/8] Adding janus-gateway and dependencies Vicente Olivert Riera
2014-12-10 17:23   ` Gregory Dymarek
2014-12-10 17:25     ` Vicente Olivert Riera
2014-12-10 20:38       ` Thomas Petazzoni
2014-12-10 22:19         ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418160208-1569-3-git-send-email-gregd72002@gmail.com \
    --to=gregd72002@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox