From patchwork Tue Dec 9 14:34:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Oudinet X-Patchwork-Id: 419096 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 E6B5B1400D5 for ; Wed, 10 Dec 2014 01:35:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 96D1B95E9E; Tue, 9 Dec 2014 14:35:40 +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 OgFwSs+XdRyD; Tue, 9 Dec 2014 14:35:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 90A0A95F28; Tue, 9 Dec 2014 14:35:39 +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 069051C2826 for ; Tue, 9 Dec 2014 14:35:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F1ECC911B8 for ; Tue, 9 Dec 2014 14:35:27 +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 lHP3sa-ylHMS for ; Tue, 9 Dec 2014 14:35:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2117B909A4 for ; Tue, 9 Dec 2014 14:35:27 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id bs8so8071689wib.10 for ; Tue, 09 Dec 2014 06:35:25 -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=f0zkrdY2O3RTKD+eaYTRxTJqZDkMRbePJW63P1wQIWw=; b=D2p2W7ZGcZtnauBJp4S6CzTFvwLMO1ymyCqjwtZCQj44S1WayjVqnARIk9yS3IVF1q sIwRNFgDzlkcj1+o1K3BBbrhUC5ZopoSoeeqn0AEPOTLcdqURw7JsyRxW9XtBIvHVHDr nAZXqPsvBEaTHh9lgz6psa4BN+4Zf/6ebgAR6yv7xtk6zcS/U135NLwVqrTrCghc8F7k 9Q2Vjv8NQvmJX34vTEepZ7xOvtNT1qGB4bjwmtlT8rkNcXqkieB8Wr7iG6VzGLjAdXlz uzGzAh5+9+GRt33ty8hpM/asAAfE17p4Psnz+9gZ63mlGLL4VJahJB26Zdk8y70BCi7k altg== X-Received: by 10.194.71.45 with SMTP id r13mr5358654wju.128.1418135725832; Tue, 09 Dec 2014 06:35:25 -0800 (PST) Received: from localhost.localdomain ([193.51.194.209]) by mx.google.com with ESMTPSA id d16sm2480265wib.4.2014.12.09.06.35.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Dec 2014 06:35:24 -0800 (PST) From: Johan Oudinet To: buildroot@buildroot.org Date: Tue, 9 Dec 2014 15:34:19 +0100 Message-Id: <1418135662-773-15-git-send-email-johan.oudinet@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1418135662-773-1-git-send-email-johan.oudinet@gmail.com> References: <1418135662-773-1-git-send-email-johan.oudinet@gmail.com> Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH v4 14/17] erlang-p1-sip: new package. 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" Signed-off-by: Johan Oudinet Signed-off-by: Yann E. MORIN Signed-off-by: Johan Oudinet --- package/Config.in | 1 + package/erlang-p1-sip/Config.in | 8 ++++++++ .../erlang-p1-sip/erlang-p1-sip-01-fix-includes.patch | 19 +++++++++++++++++++ package/erlang-p1-sip/erlang-p1-sip.mk | 14 ++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 package/erlang-p1-sip/Config.in create mode 100644 package/erlang-p1-sip/erlang-p1-sip-01-fix-includes.patch create mode 100644 package/erlang-p1-sip/erlang-p1-sip.mk diff --git a/package/Config.in b/package/Config.in index ac885c4..132c2a8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -396,6 +396,7 @@ if BR2_PACKAGE_ERLANG menu "Erlang libraries/modules" source "package/erlang-goldrush/Config.in" source "package/erlang-lager/Config.in" + source "package/erlang-p1-sip/Config.in" source "package/erlang-p1-stringprep/Config.in" source "package/erlang-p1-stun/Config.in" source "package/erlang-p1-tls/Config.in" diff --git a/package/erlang-p1-sip/Config.in b/package/erlang-p1-sip/Config.in new file mode 100644 index 0000000..64a12b1 --- /dev/null +++ b/package/erlang-p1-sip/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_ERLANG_P1_SIP + bool "erlang-p1-sip" + depends on BR2_PACKAGE_ERLANG + select BR2_PACKAGE_ERLANG_P1_STUN + select BR2_PACKAGE_ERLANG_P1_TLS + select BR2_PACKAGE_ERLANG_P1_UTILS + help + SIP library for Erlang diff --git a/package/erlang-p1-sip/erlang-p1-sip-01-fix-includes.patch b/package/erlang-p1-sip/erlang-p1-sip-01-fix-includes.patch new file mode 100644 index 0000000..80e2ab3 --- /dev/null +++ b/package/erlang-p1-sip/erlang-p1-sip-01-fix-includes.patch @@ -0,0 +1,19 @@ +Description: correct include + This part of the code was moved into it's own project and was packaged + separately by me. To make the build process work, this small fix is + necessary. +Author: Philipp Huebner + +Index: erlang-p1-sip/src/esip_socket.erl +=================================================================== +--- erlang-p1-sip.orig/src/esip_socket.erl ++++ erlang-p1-sip/src/esip_socket.erl +@@ -22,7 +22,7 @@ + + -include("esip.hrl"). + -include("esip_lib.hrl"). +--include("stun.hrl"). ++-include_lib("p1_stun/include/stun.hrl"). + + -define(TCP_SEND_TIMEOUT, 15000). + -define(CONNECT_TIMEOUT, 20000). diff --git a/package/erlang-p1-sip/erlang-p1-sip.mk b/package/erlang-p1-sip/erlang-p1-sip.mk new file mode 100644 index 0000000..d38ff2b --- /dev/null +++ b/package/erlang-p1-sip/erlang-p1-sip.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# erlang-p1-sip +# +################################################################################ + +ERLANG_P1_SIP_VERSION = bba4459 +ERLANG_P1_SIP_SITE = $(call github,processone,p1_sip,$(ERLANG_P1_SIP_VERSION)) +ERLANG_P1_SIP_LICENSE = GPLv2 +ERLANG_P1_SIP_LICENSE_FILES = COPYING +ERLANG_P1_SIP_DEPENDENCIES = erlang erlang-p1-stun erlang-p1-tls erlang-p1-utils +ERLANG_P1_SIP_INSTALL_STAGING = YES + +$(eval $(rebar-package))