From patchwork Tue Oct 28 13:33:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Oudinet X-Patchwork-Id: 404261 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 29E5914007F for ; Wed, 29 Oct 2014 00:35:53 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 69AF333061; Tue, 28 Oct 2014 13:35:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B7S4atKYj+MQ; Tue, 28 Oct 2014 13:35:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3152B32E8A; Tue, 28 Oct 2014 13:35:49 +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 772111C1E77 for ; Tue, 28 Oct 2014 13:35:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6BAEE91CFB for ; Tue, 28 Oct 2014 13:35:28 +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 0OPSg-tpx+PN for ; Tue, 28 Oct 2014 13:35:23 +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 B022791736 for ; Tue, 28 Oct 2014 13:35:18 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id x12so877301wgg.16 for ; Tue, 28 Oct 2014 06:35:17 -0700 (PDT) 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=7uRi+f4ed5LAReUQPZdZJ7Yqr9nz1KVDkP2eTqjI1FM=; b=CFpfMu+CeowvTTFgIPYGvMmnGssQfFc+ycH/EWAD3hC5ptWjiTY0qs9ly9ivGabF/l cumGxU2NHj9PJCfGxWC6x9ZOccrVuhZMajyGfJkSHbAApvG6ncUx5JoPjBb9HP9d3aL0 N8y2ZMclK0bYIk+PiDOdzDP88xwIZJyPvgcB208/7xjtJD8Kj3DysxX6BiJ1G4cAsSgU 3PCZkZfIa6FeAxYPJRZ2AqdCBN6T4U7PP3CwBKC+Ld6q4ryZs26q+G4RWk2UOT3DpffL h1GBRKnWw5zt8UrnXqreKefgCx8mBXOJjQg7TVIK4jNYQi9msa9NLezdX3RSfGIYBglI NMLQ== X-Received: by 10.194.93.68 with SMTP id cs4mr368533wjb.97.1414503317207; Tue, 28 Oct 2014 06:35:17 -0700 (PDT) Received: from localhost.localdomain ([193.51.194.208]) by mx.google.com with ESMTPSA id k10sm1867945wjb.28.2014.10.28.06.35.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Oct 2014 06:35:16 -0700 (PDT) From: Johan Oudinet To: buildroot@buildroot.org Date: Tue, 28 Oct 2014 14:33:49 +0100 Message-Id: <1414503232-28314-13-git-send-email-johan.oudinet@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1414503232-28314-1-git-send-email-johan.oudinet@gmail.com> References: <1414503232-28314-1-git-send-email-johan.oudinet@gmail.com> Subject: [Buildroot] [PATCH 12/15] 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 --- 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 1e337d1..6db319d 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))