From patchwork Tue Dec 9 21:23:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Dymarek X-Patchwork-Id: 419273 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 0B50E1400DD for ; Wed, 10 Dec 2014 08:23:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 081B8954F9; Tue, 9 Dec 2014 21:23:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4iFBTTJnnd-f; Tue, 9 Dec 2014 21:23:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6795B95507; Tue, 9 Dec 2014 21:23:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 750E11C242E for ; Tue, 9 Dec 2014 21:23:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 713388AD7F for ; Tue, 9 Dec 2014 21:23:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gwN6JxOQ-GIp for ; Tue, 9 Dec 2014 21:23:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9309D8A59A for ; Tue, 9 Dec 2014 21:23:40 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id b13so2003650wgh.4 for ; Tue, 09 Dec 2014 13:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KAvIx2nS0kS1QQcMQMeM41CavP/c675LOO8FV7x1XT8=; b=N921tl5j5ZxL0CKv5EQb6MlZO479+ICX6UoI3uU9gUzCBkG6fEHHWf6IkNyz+3rxFj ucUDo1muQ1AITIYjayLQPXxZ2zuD3B/QXGGb97djGEkYOC23EaSueBX1jDCGoU9iOonR YNYdFxfFHV+a/sP4NEE5MJzerCgKDWZlzoZunca089fV/Fn+TDA5IrXH3+4th9AFtlPE 9jzxbh430YQwNxiXoPuQVdWJ9wALRgBJob5vRc/tRCimunMjI0aZHQvlKZW3JgufAsh1 75Rkl4/VuQchYnNewfXTPSDvg+z76H85kcFHzlMUItP/OBqElBtV5Kmo886+bcOLUX3M B/sA== X-Received: by 10.194.71.169 with SMTP id w9mr655037wju.19.1418160219269; Tue, 09 Dec 2014 13:23:39 -0800 (PST) Received: from lubuntu-mac.localdomain (cpc20-sgyl29-2-0-cust6.18-2.cable.virginm.net. [80.192.47.7]) by mx.google.com with ESMTPSA id rx8sm3305273wjb.30.2014.12.09.13.23.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Dec 2014 13:23:38 -0800 (PST) From: kiwi To: buildroot@buildroot.org Date: Tue, 9 Dec 2014 21:23:23 +0000 Message-Id: <1418160208-1569-3-git-send-email-gregd72002@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418160208-1569-1-git-send-email-gregd72002@gmail.com> References: <1418160208-1569-1-git-send-email-gregd72002@gmail.com> Subject: [Buildroot] [PATCH 3/8] Adding libnice X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Gregory Dymarek Signed-off-by: Gregory Dymarek --- 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))