From patchwork Fri Nov 7 13:28:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Oudinet X-Patchwork-Id: 408135 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 EA7F11400D2 for ; Sat, 8 Nov 2014 00:35:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0FEEE33DDD; Fri, 7 Nov 2014 13:35:23 +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 28k74tpkw1Dn; Fri, 7 Nov 2014 13:35:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C09FD33288; Fri, 7 Nov 2014 13:35:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id AC56A1C226E for ; Fri, 7 Nov 2014 13:35:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A9F9A95EF5 for ; Fri, 7 Nov 2014 13:35:18 +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 jowpw8lKUrwU for ; Fri, 7 Nov 2014 13:35:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by hemlock.osuosl.org (Postfix) with ESMTPS id B21B995E6C for ; Fri, 7 Nov 2014 13:35:17 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id ex7so4543188wid.2 for ; Fri, 07 Nov 2014 05:35:15 -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=Np8HLmN3KvMOThubNY7wgiiXVa1nPexgRjnJwJo/tWU=; b=qWySD7aNbfvPGbvPsWTMUfBxmmVaCWIz5gFbtCr1l4yZhICk3MFNq5V5QAQCqJw6Ap 8438Rizp3vP+Vy/eG0R/0sUOt4spI9eVMaILjbj8H59uFTOjT5pL/usuuih3oiRvWLxP ujQfNliAWuj+FEmqdaUqF6EvlvhTbwca6P2tTqfA3R7N5UDb6bfgWJV2iQM6tz/tspx6 J1eT6jCuXfKsD1gg7gOp1yVkelvItDzm7qSu6/6McOFGGyjy2B2hUHK4UQRe06KAaeBP EMbavo6tJ/PheUIlr/uiBiwqhBuF02/sRlquvOrLpDdl3jQjUgxpKoDIpoKSnA8SDxU1 ZI+Q== X-Received: by 10.194.9.1 with SMTP id v1mr15049295wja.124.1415367011391; Fri, 07 Nov 2014 05:30:11 -0800 (PST) Received: from localhost.localdomain ([193.51.194.208]) by mx.google.com with ESMTPSA id wm6sm11836677wjb.5.2014.11.07.05.30.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Nov 2014 05:30:10 -0800 (PST) From: Johan Oudinet To: buildroot@buildroot.org Date: Fri, 7 Nov 2014 14:28:48 +0100 Message-Id: <1415366931-6870-13-git-send-email-johan.oudinet@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1415366931-6870-1-git-send-email-johan.oudinet@gmail.com> References: <1415366931-6870-1-git-send-email-johan.oudinet@gmail.com> Subject: [Buildroot] [PATCH v2 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 5656a1a..8abd6a6 100644 --- a/package/Config.in +++ b/package/Config.in @@ -395,6 +395,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))