Commit dc41cb3f authored by Johan Oudinet's avatar Johan Oudinet Committed by Thomas Petazzoni
Browse files

erlang-p1-sip: new package.



[Thomas: adjust license to be 'GPLv2 with OpenSSL exception' instead
of just 'GPLv2'.]

Signed-off-by: default avatarJohan Oudinet <johan.oudinet@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 6b41208c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -401,6 +401,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"
+9 −0
Original line number Diff line number Diff line
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
+19 −0
Original line number Diff line number Diff line
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).
+14 −0
Original line number Diff line number Diff line
################################################################################
#
# 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))