From: Johan Oudinet <johan.oudinet@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 12/15] erlang-p1-sip: new package.
Date: Tue, 28 Oct 2014 14:33:49 +0100 [thread overview]
Message-ID: <1414503232-28314-13-git-send-email-johan.oudinet@gmail.com> (raw)
In-Reply-To: <1414503232-28314-1-git-send-email-johan.oudinet@gmail.com>
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
---
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 <debalance@debian.org>
+
+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))
--
2.1.0
next prev parent reply other threads:[~2014-10-28 13:33 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 13:33 [Buildroot] [PATCH 00/15] ejabberd: XMPP server Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 01/15] package/pkg-autotools.mk: Factorize hooks Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 02/15] rebar package infrastructure: new infrastructure Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 03/15] erlang-goldrush: new package Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 04/15] erlang-lager: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 05/15] erlang-p1-zlib: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 06/15] erlang-p1-yaml: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 07/15] erlang-p1-xml: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 08/15] erlang-p1-utils: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 09/15] erlang-p1-tls: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 10/15] erlang-p1-stun: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 11/15] erlang-p1-stringprep: " Johan Oudinet
2014-10-28 13:33 ` Johan Oudinet [this message]
2014-10-28 13:33 ` [Buildroot] [PATCH 13/15] erlang-p1-iconv: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 14/15] erlang-p1-cache-tab: " Johan Oudinet
2014-10-28 13:33 ` [Buildroot] [PATCH 15/15] ejabberd: " Johan Oudinet
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=1414503232-28314-13-git-send-email-johan.oudinet@gmail.com \
--to=johan.oudinet@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