Adding janus-gateway and dependencies
PATCH 1/8 Adding janus-gateway and dependencies
From: Gregory Dymarek <[email protected]>
--- package/ding-libs/Config.in | 14 ++++++++++++++ package/ding-libs/ding-libs.mk | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 package/ding-libs/Config.in create mode 100644 package/ding-libs/ding-libs.mk
package/ding-libs/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_DING_LIBS + bool "ding-libs" + select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT + help + DING-LIBS (DING Is Not Glib) are a set of small, useful libraries that SSSD uses and makes available to other projects. They provide: + dhash - A dynamic hash table + ini_config - A library for parsing and managing INI files + path_utils - Manage UNIX paths and subsets of paths + collection - A generic, hierarchical grouping mechanism for complex data sets + ref_array - A dynamically-growing, reference-counted array + libbasicobjects - A set of fundamental object types for C + + https://git.fedorahosted.org/git/ding-libs.git
package/ding-libs/ding-libs.mk new file +16 -0
@@ -0,0 +1,16 @@ +############################################################# +# +# ding-libs +# +############################################################# +DING_LIBS_VERSION = 0_4_0 +DING_LIBS_SOURCE = ding_libs-$(DING_LIBS_VERSION).tar.xz +DING_LIBS_SITE = https://git.fedorahosted.org/cgit/ding-libs.git/snapshot +DING_LIBS_DEPENDENCIES = $(if !$(BR2_ENABLE_LOCALE),libiconv) $(if $(BR2_NEEDS_GETTEXT),gettext) +DING_LIBS_AUTORECONF = YES +DING_LIBS_INSTALL_STAGING = YES +DING_LIBS_LICENSE = GPLv3 +DING_LIBS_LICENSE_FILES = COPYING +DING_LIBS_MAKE=$(MAKE1) + +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 2/8 Adding gengetopt
From: Gregory Dymarek <[email protected]>
--- package/gengetopt/Config.in | 7 +++++++ package/gengetopt/Config.in.host | 7 +++++++ package/gengetopt/gengetopt.mk | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 package/gengetopt/Config.in create mode 100644 package/gengetopt/Config.in.host create mode 100644 package/gengetopt/gengetopt.mk
package/gengetopt/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_GENGETOPT + bool "gengetopt" + help + Adds GNU Gengetopt + Gengetopt is a tool to write command line option parsing code for C programs. + + http://www.gnu.org/software/gengetopt/gengetopt.html
package/gengetopt/Config.in.host new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_HOST_GENGETOPT + bool "host gengetopt" + help + Adds GNU Gengetopt + Gengetopt is a tool to write command line option parsing code for C programs. + + http://www.gnu.org/software/gengetopt/gengetopt.html
package/gengetopt/gengetopt.mk new file +16 -0
@@ -0,0 +1,16 @@ +############################################################# +# +# gengetopt +# +############################################################# +GENGETOPT_VERSION = 2.22.6 +GENGETOPT_SITE = ftp://ftp.gnu.org/gnu/gengetopt/ +GENGETOPT_AUTORECONF = YES +GENGETOPT_LICENSE = GPLv3 +GENGETOPT_LICENSE_FILES = COPYING + +GENGETOPT_MAKE=$(MAKE1) + +$(eval $(autotools-package)) +$(eval $(host-autotools-package)) +
Signature · 1 line
1.9.1
PATCH 3/8 Adding libnice
In reply to kiwiFrom: Gregory Dymarek <[email protected]>
--- package/libnice/Config.in | 8 ++++++++ .../libnice/libnice-0001-build-IPV6_RECVERR.patch | 20 ++++++++++++++++++++ package/libnice/libnice.mk | 13 +++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 package/libnice/Config.in create mode 100644 package/libnice/libnice-0001-build-IPV6_RECVERR.patch create mode 100644 package/libnice/libnice.mk
package/libnice/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBNICE + bool "libnice" + select BR2_PACKAGE_LIBGLIB2 + help + Adds libnice - The GLib ICE implementation + Libnice is an implementation of the IETF's Interactive Connectivity Establishment (ICE) standard (RFC 5245) and the Session Traversal Utilities for NAT (STUN) standard (RFC 5389). + + http://nice.freedesktop.org/wiki/
package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file +20 -0
@@ -0,0 +1,20 @@ +diff -rupN libnice-0.1.8.orig/stun/usages/bind.c libnice-0.1.8/stun/usages/bind.c +--- libnice-0.1.8.orig/stun/usages/bind.c 2014-09-22 18:01:28.000000000 +0100 ++++ libnice-0.1.8/stun/usages/bind.c 2014-12-01 13:28:32.144707407 +0000 +@@ -257,12 +257,16 @@ static int stun_socket (int family, int + int yes = 1; + switch (family) + { ++#ifdef IP_RECVERR + case AF_INET: + setsockopt (fd, SOL_IP, IP_RECVERR, &yes, sizeof (yes)); ++#endif + break; ++#ifdef IPV6_RECVERR + case AF_INET6: + setsockopt (fd, SOL_IPV6, IPV6_RECVERR, &yes, sizeof (yes)); + break; ++#endif + default: + /* Nothing to do. */ + break;
package/libnice/libnice.mk new file +13 -0
@@ -0,0 +1,13 @@ +############################################################# +# +# libnice +# +############################################################# +LIBNICE_VERSION = 0.1.8 +LIBNICE_SITE = http://nice.freedesktop.org/releases/ +LIBNICE_DEPENDENCIES = libglib2 +LIBNICE_INSTALL_STAGING = YES +LIBNICE_LICENSE = LGPLv2.1+ +LIBNICE_LICENSE_FILE = COPYING.MPL COPYING.LGPL + +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 4/8 Adding libsrtp
In reply to kiwiFrom: Gregory Dymarek <[email protected]>
--- package/libsrtp/Config.in | 6 ++++++ package/libsrtp/libsrtp.mk | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 package/libsrtp/Config.in create mode 100644 package/libsrtp/libsrtp.mk
package/libsrtp/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBSRTP + bool "libsrtp" + help + Adds libsrtp - Secure RTP (SRTP) Reference Implementation + + https://github.com/cisco/libsrtp
package/libsrtp/libsrtp.mk new file +12 -0
@@ -0,0 +1,12 @@ +############################################################# +# +# libsrtp +# +############################################################# +LIBSRTP_VERSION = v1.5.0 +LIBSRTP_SITE_METHOD = git +LIBSRTP_INSTALL_STAGING = YES +LIBSRTP_LICENSE = BSD-3c +LIBSRTP_LICENSE_FILE = LICENSE + +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 5/8 Adding libwebsock
In reply to kiwiFrom: Gregory Dymarek <[email protected]>
--- package/libwebsock/Config.in | 7 +++++++ package/libwebsock/libwebsock.mk | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 package/libwebsock/Config.in create mode 100644 package/libwebsock/libwebsock.mk
package/libwebsock/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBWEBSOCK + bool "libwebsock" + select BR2_PACKAGE_LIBEVENT + help + Adds libwebsock - C library for easy WebSockets servers + + https://github.com/payden/libwebsock
package/libwebsock/libwebsock.mk new file +22 -0
@@ -0,0 +1,22 @@ +############################################################# +# +# libwebsock +# +############################################################# +LIBWEBSOCK_VERSION = 3c1615eeadb0b582b63851073bfe3e5132f31ebc +LIBWEBSOCK_SITE_METHOD = git + +LIBWEBSOCK_SITE = https://github.com/payden/libwebsock.git +LIBWEBSOCK_DEPENDENCIES = libevent +# straight out of git - not ./configure +LIBWEBSOCK_AUTORECONF = YES +LIBWEBSOCK_INSTALL_STAGING = YES +LIBWEBSOCK_LICENSE = LGPLv3 +LIBWEBSOCK_LICENSE_FILES = COPYING + +LIBWEBSOCK_LIBS += -lpthread -levent + +LIBWEBSOCK_CONF_ENV += \ + LIBS="$(LIBWEBSOCK_LIBS)" + +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 6/8 Adding sofia-sip
In reply to kiwiFrom: Gregory Dymarek <[email protected]>
--- package/sofia-sip/Config.in | 6 ++++++ package/sofia-sip/sofia-sip.mk | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 package/sofia-sip/Config.in create mode 100644 package/sofia-sip/sofia-sip.mk
package/sofia-sip/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_SOFIA_SIP + bool "sofia-sip" + help + Adds Sofia-SIP - an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification + + http://sofia-sip.sourceforge.net
package/sofia-sip/sofia-sip.mk new file +18 -0
@@ -0,0 +1,18 @@ +############################################################# +# +# sofiasip +# +############################################################# +SOFIA_SIP_VERSION = 1.12.11 +SOFIA_SIP_SITE = http://downloads.sourceforge.net/project/sofia-sip/sofia-sip/$(SOFIA_SIP_VERSION) +SOFIA_SIP_INSTALL_STAGING = YES +SOFIA_SIP_LICENSE = LGPLv2.1+ +SOFIA_SIP_LICENSE_FILE = COPYING COPYRIGHTS + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_INET_IPV6),y) + SOFIA_SIP_CONF_OPTS = --enable-ip6 +else + SOFIA_SIP_CONF_OPTS = --disable-ip6 +endif + +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 6/8 Adding sofia-sip
Hello Gregory,
Am Tue, 9 Dec 2014 21:23:26 +0000
schrieb kiwi <[email protected]>:
Quoted 10 lines
From: Gregory Dymarek <[email protected]>
Signed-off-by Gregory Dymarek <[email protected]>--- package/sofia-sip/Config.in | 6 ++++++ package/sofia-sip/sofia-sip.mk | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 package/sofia-sip/Config.in create mode 100644 package/sofia-sip/sofia-sip.mk
there was already a patch to include sofia-sip quite some time ago:
http://lists.busybox.net/pipermail/buildroot/2012-January/049258.html
I don't now why it never got accepted, but I use sofia-sip quite some time based on this patch, but with an old buildroot version (2012.08).
This patch had additional configuration options to select SSL support and glib2 support. And there was a patch included which fixed a bug in an include file introduced with the sofia-sip 1.12.11 release.
Supposedly the above mentioned patch to buildroot will not work out of the box with a current version of buildroot. Maybe you want to use this patch as inspiration for your patch to make it better suitable for a more generic use.
Regards
Bj?rn
Quoted 36 lines
package/sofia-sip/Config.in new file +4
-0@@ -0,0 +1,6 @@ +config BR2_PACKAGE_SOFIA_SIP + bool "sofia-sip" + help + Adds Sofia-SIP - an open-source SIP User-Agent library,compliant with the IETF RFC3261 specification +
package/sofia-sip/Config.in new file +1
-0+ http://sofia-sip.sourceforge.net(quoted diff) +0
-0
b/package/sofia-sip/sofia-sip.mknew file mode 100644 index 0000000..5258844package/sofia-sip/sofia-sip.mk new file +7
-0@@ -0,0 +1,18 @@ +############################################################# +# +# sofiasip +# +############################################################# +SOFIA_SIP_VERSION = 1.12.11 +SOFIA_SIP_SITE =http://downloads.sourceforge.net/project/sofia-sip/sofia-sip/$(SOFIA_SIP_VERSION)
package/sofia-sip/sofia-sip.mk new file +10
-0+SOFIA_SIP_INSTALL_STAGING = YES +SOFIA_SIP_LICENSE = LGPLv2.1+ +SOFIA_SIP_LICENSE_FILE = COPYING COPYRIGHTS + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_INET_IPV6),y) + SOFIA_SIP_CONF_OPTS = --enable-ip6 +else + SOFIA_SIP_CONF_OPTS = --disable-ip6 +endif + +$(eval $(autotools-package))
PATCH 7/8 Adding janus-gateway
In reply to kiwiFrom: Gregory Dymarek <[email protected]>
--- package/janus-gateway/Config.in | 14 +++++++++++ .../janus-gateway-0001-disable-ssp.patch | 12 ++++++++++ package/janus-gateway/janus-gateway.mk | 27 ++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 package/janus-gateway/Config.in create mode 100644 package/janus-gateway/janus-gateway-0001-disable-ssp.patch create mode 100644 package/janus-gateway/janus-gateway.mk
package/janus-gateway/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_JANUS_GATEWAY + bool "janus-gateway" + select BR2_PACKAGE_LIBMICROHTTPD + select BR2_PACKAGE_JANSSON + select BR2_PACKAGE_LIBNICE + select BR2_PACKAGE_SOFIA_SIP + select BR2_PACKAGE_LIBSRTP + select BR2_PACKAGE_DING_LIBS + select BR2_PACKAGE_LIBWEBSOCK + select BR2_TOOLCHAIN_HAS_THREADS + help + Adds janus-gateway, an open source, general purpose, WebRTC gateway + + https://github.com/meetecho/janus-gateway
package/janus-gateway/janus-gateway-0001-disable-ssp.patch new file +12 -0
@@ -0,0 +1,12 @@ +diff -rupN janus-gateway-master.orig/Makefile.am janus-gateway-master/Makefile.am +--- janus-gateway-master.orig/Makefile.am 2014-11-27 14:36:31.000000000 +0000 ++++ janus-gateway-master/Makefile.am 2014-12-01 16:39:50.551935028 +0000 +@@ -14,7 +14,7 @@ AM_CFLAGS += -Wredundant-decls # sophia + # some fairly big refactoring though, which can wait. + # AM_CFLAGS += -Wshadow -Wstrict-aliasing=2 + +-AM_CFLAGS += -fstack-protector-all -g -ggdb -fPIC -rdynamic ++AM_CFLAGS += -g -ggdb -fPIC -rdynamic + + # FIXME: make docs work with distcheck + DISTCHECK_CONFIGURE_FLAGS = --disable-docs --enable-post-processing
package/janus-gateway/janus-gateway.mk new file +27 -0
@@ -0,0 +1,27 @@ +############################################################# +# +# janus-gateway +# +############################################################# +JANUS_GATEWAY_VERSION = c632c1e9da5ffd8c34df6086a1aa5a8511a2a02d +JANUS_GATEWAY_SITE_METHOD = git +JANUS_GATEWAY_SITE = https://github.com/meetecho/janus-gateway.git +JANUS_GATEWAY_LICENSE = GPLv3 +JANUS_GATEWAY_LICENSE_FILES = COPYING + +JANUS_GATEWAY_DEPENDENCIES = host-pkgconf libmicrohttpd jansson libnice sofia-sip libsrtp ding-libs libwebsock host-gengetopt + +# Straight out of the repository, no ./configure +JANUS_GATEWAY_AUTORECONF = YES + +define JANUS_GATEWAY_M4 + mkdir -p $(@D)/m4 +endef +JANUS_GATEWAY_POST_PATCH_HOOKS += JANUS_GATEWAY_M4 + +JANUS_GATEWAY_CONF_OPTS = --disable-data-channels \ + --disable-rabbitmq + +JANUS_GATEWAY_MAKE=$(MAKE1) + +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 8/8 Adding entries to Config.in and Config.in.host
In reply to kiwiFrom: Gregory Dymarek <[email protected]>
--- package/Config.in | 7 +++++++ package/Config.in.host | 1 + 2 files changed, 8 insertions(+)
package/Config.in +7 -0
@@ -115,6 +115,7 @@ endif if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/gawk/Config.in" endif + source "package/gengetopt/Config.in" source "package/gettext/Config.in" source "package/git/Config.in" source "package/gperf/Config.in"
@@ -821,6 +822,7 @@ menu "Networking" source "package/libmnl/Config.in" source "package/libmodbus/Config.in" source "package/libndp/Config.in" + source "package/libnice/Config.in" source "package/libnetfilter_acct/Config.in" source "package/libnetfilter_conntrack/Config.in" source "package/libnetfilter_cthelper/Config.in"
@@ -839,6 +841,7 @@ menu "Networking" source "package/libshairplay/Config.in" source "package/libshout/Config.in" source "package/libsoup/Config.in" + source "package/libsrtp/Config.in" source "package/libstrophe/Config.in" source "package/libtirpc/Config.in" source "package/libtorrent/Config.in"
@@ -846,6 +849,7 @@ menu "Networking" source "package/libupnpp/Config.in" source "package/liburiparser/Config.in" source "package/libvncserver/Config.in" + source "package/libwebsock/Config.in" source "package/libwebsockets/Config.in" source "package/neon/Config.in" source "package/nss-mdns/Config.in"
@@ -856,6 +860,7 @@ menu "Networking" source "package/rtmpdump/Config.in" source "package/slirp/Config.in" source "package/snmppp/Config.in" + source "package/sofia-sip/Config.in" source "package/thrift/Config.in" source "package/usbredir/Config.in" source "package/wvstreams/Config.in"
@@ -874,6 +879,7 @@ menu "Other" source "package/clapack/Config.in" source "package/classpath/Config.in" source "package/cppcms/Config.in" + source "package/ding-libs/Config.in" source "package/eigen/Config.in" source "package/elfutils/Config.in" source "package/fftw/Config.in"
@@ -1047,6 +1053,7 @@ endif source "package/iptraf-ng/Config.in" source "package/iputils/Config.in" source "package/iw/Config.in" + source "package/janus-gateway/Config.in" source "package/kismet/Config.in" source "package/knock/Config.in" source "package/leafnode2/Config.in"
package/Config.in.host +1 -0
@@ -8,6 +8,7 @@ menu "Host utilities" source "package/e2tools/Config.in.host" source "package/genext2fs/Config.in.host" source "package/genimage/Config.in.host" + source "package/gengetopt/Config.in.host" source "package/genpart/Config.in.host" source "package/lpc3250loader/Config.in.host" source "package/mke2img/Config.in.host"
Signature · 1 line
1.9.1
PATCH 8/8 Adding entries to Config.in and Config.in.host
Dear Gregory Dymarek,
shouldn't this be done per package at the same time you add a new one? If I only apply some of your patches in this series (in order and starting from the beginning, of course), I won't be able to select them in the menu because I haven't applied the last patch of your series.
Best regards,
Signature · 5 lines
Vicente Olivert Riera Graduate Software Engineer, MIPS Platforms Imagination Technologies Limited t: +44 (0)113 2429814 www.imgtec.com
PATCH 1/8 Adding janus-gateway and dependencies
In reply to kiwiDear Gregory Dymarek,
why not adding a hash file at the same time?
http://buildroot.org/downloads/manual/manual.html#adding-packages-hash
same for the rest of new packages you want to add.
Best regards,
Signature · 5 lines
Vicente Olivert Riera Graduate Software Engineer, MIPS Platforms Imagination Technologies Limited t: +44 (0)113 2429814 www.imgtec.com
PATCH 1/8 Adding janus-gateway and dependencies
Hi,
Do you need hashes for GIT/SVN checkouts?
Thanks,
Gregory
Quoted 19 lines · Vicente Olivert Riera
Dear Gregory Dymarek,
why not adding a hash file at the same time?
http://buildroot.org/downloads/manual/manual.html#adding-packages-hash
same for the rest of new packages you want to add.
Best regards,
--
Vicente Olivert Riera
Graduate Software Engineer, MIPS Platforms
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 1/8 Adding janus-gateway and dependencies
Dear Gregory Dymarek,
Quoted 1 line · Gregory Dymarek
Do you need hashes for GIT/SVN checkouts?
Well, you are downloading a tarball which should be always the same, no?
Cheers,
Signature · 5 lines
Vicente Olivert Riera Graduate Software Engineer, MIPS Platforms Imagination Technologies Limited t: +44 (0)113 2429814 www.imgtec.com
PATCH 1/8 Adding janus-gateway and dependencies
Dear Vicente Olivert Riera,
Quoted 4 lines · Vicente Olivert Riera
Quoted 1 line · Gregory Dymarek
Do you need hashes for GIT/SVN checkouts?
Well, you are downloading a tarball which should be always the same, no?
No, for git and svn you are not downloading a tarball. We are cloning the Git repository or checkouting the SVN repository, and then making a tarball out of it. I don't think we have any guarantee that the tarball created on the different machines will be the same, due to the file timestamps.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/8 Adding janus-gateway and dependencies
Thomas, All,
On 2014-12-10 21:38 +0100, Thomas Petazzoni spake thusly:
Quoted 4 lines
Dear Vicente Olivert Riera,
On Wed, 10 Dec 2014 17:25:28 +0000, Vicente Olivert Riera wrote:
Quoted 8 lines
Quoted 4 lines · Gregory Dymarek
Quoted 1 line
Do you need hashes for GIT/SVN checkouts?
Well, you are downloading a tarball which should be always the same, no?
No, for git and svn you are not downloading a tarball. We are cloning the Git repository or checkouting the SVN repository, and then making a tarball out of it.
But inthis case, we're not doing a git-clone, we;re using a snapshot. Which should by the way be using the github helper, rather than the manaul _SITE method.
Quoted 3 lines
I don't think we have any guarantee that the tarball created on the different machines will be the same, due to the file timestamps.
No we do not.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'