summaryrefslogtreecommitdiffstats
path: root/package/erlang-p1-sip
diff options
context:
space:
mode:
authorJohan Oudinet <johan.oudinet@gmail.com>2015-01-12 10:32:17 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-03 10:23:29 +0100
commitdc41cb3fdf046286b71774928d48354e72b642ba (patch)
tree55f8c9347fbb07a909ce6fd3984bbd519ad2f102 /package/erlang-p1-sip
parent6b41208c86cf764c040f961daddae1d77c913532 (diff)
downloadbuildroot-dc41cb3fdf046286b71774928d48354e72b642ba.tar.gz
buildroot-dc41cb3fdf046286b71774928d48354e72b642ba.zip
erlang-p1-sip: new package.
[Thomas: adjust license to be 'GPLv2 with OpenSSL exception' instead of just 'GPLv2'.] Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/erlang-p1-sip')
-rw-r--r--package/erlang-p1-sip/Config.in9
-rw-r--r--package/erlang-p1-sip/erlang-p1-sip-01-fix-includes.patch19
-rw-r--r--package/erlang-p1-sip/erlang-p1-sip.mk14
3 files changed, 42 insertions, 0 deletions
diff --git a/package/erlang-p1-sip/Config.in b/package/erlang-p1-sip/Config.in
new file mode 100644
index 0000000000..70cf819a37
--- /dev/null
+++ b/package/erlang-p1-sip/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_ERLANG_P1_SIP
+ bool "erlang-p1-sip"
+ select BR2_PACKAGE_ERLANG_P1_STUN
+ select BR2_PACKAGE_ERLANG_P1_TLS
+ select BR2_PACKAGE_ERLANG_P1_UTILS
+ help
+ SIP library for Erlang
+
+ https://github.com/processone/p1_sip
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 0000000000..80e2ab36c2
--- /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 0000000000..b895f59c1e
--- /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 with OpenSSL exception
+ERLANG_P1_SIP_LICENSE_FILES = COPYING
+ERLANG_P1_SIP_DEPENDENCIES = erlang-p1-stun erlang-p1-tls erlang-p1-utils
+ERLANG_P1_SIP_INSTALL_STAGING = YES
+
+$(eval $(rebar-package))
OpenPOWER on IntegriCloud