Skip to contentSkip to conversation

Adding janus-gateway and dependencies

PATCH Superseded Gregory Dymarek 3 participants 17 messages Dec 12, 2014 – Jan 1, 2015

lore
Share & tools
lore
#0 lore raw

v2 cover Adding janus-gateway and dependencies

Version 2 of janus-gateway and dependencies.

Changelog:
- added sha256
- restructured patches to include Config.in changes for each package separately
- incorporated ealier work on sofia-sip from http://lists.busybox.net/pipermail/buildroot/2012-January/049258.html

Gregory Dymarek (7):
Adding ding-libs
Adding gengetopt
Adding libnice
Adding libsrtp
Adding libwebsock
Adding sofia-sip
Adding janus-gateway

 package/Config.in                                  |  7 +++++
 package/Config.in.host                             |  1 +
 package/ding-libs/Config.in                        |  9 +++++++
 package/ding-libs/ding-libs.hash                   |  1 +
 package/ding-libs/ding-libs.mk                     | 17 ++++++++++++
 package/gengetopt/Config.in                        |  6 +++++
 package/gengetopt/Config.in.host                   |  6 +++++
 package/gengetopt/gengetopt.hash                   |  1 +
 package/gengetopt/gengetopt.mk                     | 16 +++++++++++
 package/janus-gateway/Config.in                    | 13 +++++++++
 .../janus-gateway-0001-disable-ssp.patch           | 12 +++++++++
 package/janus-gateway/janus-gateway.hash           |  1 +
 package/janus-gateway/janus-gateway.mk             | 27 +++++++++++++++++++
 package/libnice/Config.in                          |  6 +++++
 .../libnice/libnice-0001-build-IPV6_RECVERR.patch  | 20 ++++++++++++++
 package/libnice/libnice.hash                       |  1 +
 package/libnice/libnice.mk                         | 11 ++++++++
 package/libsrtp/Config.in                          |  5 ++++
 package/libsrtp/libsrtp.hash                       |  1 +
 package/libsrtp/libsrtp.mk                         | 13 +++++++++
 package/libwebsock/Config.in                       |  6 +++++
 package/libwebsock/libwebsock.hash                 |  1 +
 package/libwebsock/libwebsock.mk                   | 22 +++++++++++++++
 package/sofia-sip/Config.in                        |  5 ++++
 ...ag.h-reintroduce-soatag_local_sdp_str_ref.patch | 26 ++++++++++++++++++
 package/sofia-sip/sofia-sip.hash                   |  1 +
 package/sofia-sip/sofia-sip.mk                     | 31 ++++++++++++++++++++++
 27 files changed, 266 insertions(+)
 create mode 100644 package/ding-libs/Config.in
 create mode 100644 package/ding-libs/ding-libs.hash
 create mode 100644 package/ding-libs/ding-libs.mk
 create mode 100644 package/gengetopt/Config.in
 create mode 100644 package/gengetopt/Config.in.host
 create mode 100644 package/gengetopt/gengetopt.hash
 create mode 100644 package/gengetopt/gengetopt.mk
 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.hash
 create mode 100644 package/janus-gateway/janus-gateway.mk
 create mode 100644 package/libnice/Config.in
 create mode 100644 package/libnice/libnice-0001-build-IPV6_RECVERR.patch
 create mode 100644 package/libnice/libnice.hash
 create mode 100644 package/libnice/libnice.mk
 create mode 100644 package/libsrtp/Config.in
 create mode 100644 package/libsrtp/libsrtp.hash
 create mode 100644 package/libsrtp/libsrtp.mk
 create mode 100644 package/libwebsock/Config.in
 create mode 100644 package/libwebsock/libwebsock.hash
 create mode 100644 package/libwebsock/libwebsock.mk
 create mode 100644 package/sofia-sip/Config.in
 create mode 100644 package/sofia-sip/sofia-sip-1.12.11-0001-soa_tag.h-reintroduce-soatag_local_sdp_str_ref.patch
 create mode 100644 package/sofia-sip/sofia-sip.hash
 create mode 100644 package/sofia-sip/sofia-sip.mk
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/7 Adding ding-libs

---
 package/Config.in                |  1 +
 package/ding-libs/Config.in      |  9 +++++++++
 package/ding-libs/ding-libs.hash |  1 +
 package/ding-libs/ding-libs.mk   | 17 +++++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/ding-libs/Config.in
 create mode 100644 package/ding-libs/ding-libs.hash
 create mode 100644 package/ding-libs/ding-libs.mk
package/Config.in +1 -0
index 48be2df..9e3f11b 100644
@@ -876,6 +876,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"
package/ding-libs/Config.in new file +9 -0
new file mode 100644
index 0000000..7c7a17f
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_DING_LIBS
+	bool "ding-libs"
+#	depends on BR2_TOOLCHAIN_BUILDROOT_LOCALE 
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
+	help
+	Adds ding-libs 
+	https://git.fedorahosted.org/git/ding-libs.git
+
package/ding-libs/ding-libs.hash new file +1 -0
new file mode 100644
index 0000000..cf21585
@@ -0,0 +1 @@
+sha256,639984a57d6f936a6551c842712619692febaebf4515033fc929620a241ffa6a
package/ding-libs/ding-libs.mk new file +17 -0
new file mode 100644
index 0000000..582b9be
@@ -0,0 +1,17 @@
+#############################################################
+#
+# 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 = BR2_TOOLCHAIN_BUILDROOT_LOCALE
+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
#2 lore raw

PATCH v2 1/7 Adding ding-libs

Dear Gregory Dymarek,

Quoted 10 lines · Gregory Dymarek
---
 package/Config.in                |  1 +
 package/ding-libs/Config.in      |  9 +++++++++
 package/ding-libs/ding-libs.hash |  1 +
 package/ding-libs/ding-libs.mk   | 17 +++++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/ding-libs/Config.in
 create mode 100644 package/ding-libs/ding-libs.hash
 create mode 100644 package/ding-libs/ding-libs.mk

Thanks, applied, after doing again a fairly significant amount of fixes:

[Thomas:
- Remove unneeded comment in Config.in
- Remove select if libiconv, not needed
- Add dependency on wchar, needed when we depend on gettext
- Improve Config.in help text
- Fix the format of the hash file to make it actually useful
- Fix the comment header in the .mk file
- Remove useless commented line in .mk file
- Fixup license information: it's not under GPLv3, but under LGPLv3+ (library) and GPLv3+ (test programs)
- Add host-pkgconf to the dependencies, remove libiconv from the dependencies.
- Add a comment to explain why autoreconf is needed.
- Remove usage of $(MAKE1) that does look necessary.]

See
http://git.buildroot.net/buildroot/commit/?id=3af1d306bdc4144e243e453221a7ab5a49b14e56
for the final commit.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v2 2/7 Adding gengetopt

In reply to Gregory Dymarek
---
 package/Config.in                |  1 +
 package/Config.in.host           |  1 +
 package/gengetopt/Config.in      |  6 ++++++
 package/gengetopt/Config.in.host |  6 ++++++
 package/gengetopt/gengetopt.hash |  1 +
 package/gengetopt/gengetopt.mk   | 16 ++++++++++++++++
 6 files changed, 31 insertions(+)
 create mode 100644 package/gengetopt/Config.in
 create mode 100644 package/gengetopt/Config.in.host
 create mode 100644 package/gengetopt/gengetopt.hash
 create mode 100644 package/gengetopt/gengetopt.mk
package/Config.in +1 -0
index 9e3f11b..49fb8b3 100644
@@ -44,6 +44,7 @@ menu "Compressors and decompressors"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/gzip/Config.in"
 endif
+	source "package/gengetopt/Config.in"
 	source "package/infozip/Config.in"
 	source "package/lz4/Config.in"
 	source "package/lzip/Config.in"
package/Config.in.host +1 -0
index 0b7bc36..dd89bd3 100644
@@ -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"
package/gengetopt/Config.in new file +6 -0
new file mode 100644
index 0000000..41d9f75
@@ -0,0 +1,6 @@
+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 +6 -0
new file mode 100644
index 0000000..5be8312
@@ -0,0 +1,6 @@
+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.hash new file +1 -0
new file mode 100644
index 0000000..5224cec
@@ -0,0 +1 @@
+sha256,30b05a88604d71ef2a42a2ef26cd26df242b41f5b011ad03083143a31d9b01f7
package/gengetopt/gengetopt.mk new file +16 -0
new file mode 100644
index 0000000..692dfe1
@@ -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
#4 lore raw

PATCH v2 2/7 Adding gengetopt

Dear Gregory Dymarek,

Quoted 13 lines · Gregory Dymarek
---
 package/Config.in                |  1 +
 package/Config.in.host           |  1 +
 package/gengetopt/Config.in      |  6 ++++++
 package/gengetopt/Config.in.host |  6 ++++++
 package/gengetopt/gengetopt.hash |  1 +
 package/gengetopt/gengetopt.mk   | 16 ++++++++++++++++
 6 files changed, 31 insertions(+)
 create mode 100644 package/gengetopt/Config.in
 create mode 100644 package/gengetopt/Config.in.host
 create mode 100644 package/gengetopt/gengetopt.hash
 create mode 100644 package/gengetopt/gengetopt.mk

Thanks, applied, after doing a number of changes:

[Thomas:
- Improve commit log.
- Remove target variant of the package, not needed as we don't do development on the target.
- Remove Config.in.host option for the package, there is not really a need to select it from menuconfig, it's merely a build dependency for another package.
- Fix format of hash file.
- Fix format of comment header in .mk file.
- Use BR2_GNU_MIRROR.
- License is GPLv3+, not GPLv3.
- Add 'LICENSE' to the license files, as it indicates that the license is GPLv3+.
- Add an explanation about $(MAKE1) being used.]

See the final commit at
http://git.buildroot.net/buildroot/commit/?id=dadd8dd0b913f41faf4412dab8100965bb3fc621.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw

PATCH v2 3/7 Adding libnice

In reply to Gregory Dymarek
---
 package/Config.in                                    |  1 +
 package/libnice/Config.in                            |  6 ++++++
 .../libnice/libnice-0001-build-IPV6_RECVERR.patch    | 20 ++++++++++++++++++++
 package/libnice/libnice.hash                         |  1 +
 package/libnice/libnice.mk                           | 11 +++++++++++
 5 files changed, 39 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.hash
 create mode 100644 package/libnice/libnice.mk
package/Config.in +1 -0
index 49fb8b3..e8c973e 100644
@@ -824,6 +824,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"
package/libnice/Config.in new file +6 -0
new file mode 100644
index 0000000..1ff8560
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBNICE
+	bool "libnice"
+	select BR2_PACKAGE_LIBGLIB2
+	help
+	Adds libnice - The GLib ICE implementation
+	http://nice.freedesktop.org/wiki/
package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file +20 -0
new file mode 100644
index 0000000..39ef617
@@ -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.hash new file +1 -0
new file mode 100644
index 0000000..39f15d9
@@ -0,0 +1 @@
+sha256,9da7f09909902d535389d929c3e4d69129528fb18438a6c8565ec812d9904ddf
package/libnice/libnice.mk new file +11 -0
new file mode 100644
index 0000000..dd7f7a4
@@ -0,0 +1,11 @@
+#############################################################
+#
+# libnice 
+#
+#############################################################
+LIBNICE_VERSION = 0.1.8
+LIBNICE_SITE = http://nice.freedesktop.org/releases/
+LIBNICE_DEPENDENCIES = libglib2
+LIBNICE_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
Signature · 1 line
1.9.1
#6 lore raw

PATCH v2 3/7 Adding libnice

Dear Gregory Dymarek,

Quoted 1 line · Gregory Dymarek

Thanks, I've applied your patch, but after doing a fairly significant set of changes. As detailed in the commit log:

[Thomas:
- Rename patch to the proper naming convention
- Reduce patch to only take care of the IPv6 case
- Add description in the patch
- Propagate libglib2 dependencies in Config.in + added the corresponding comment.
- Added a real help text, and fixed the help text indentation.
- Fixed the comment header in the .mk file to have the right number of # signs.
- Added the license informations
- Added a dependency on host-pkgconf, used by the configure script
- Added --without-gstreamer and --without-gstreamer-0.10 to be explicit about the fact that we don't support GStreamer in libnice for now.
- Fixed the hash file to have the proper format.]

See http://git.buildroot.net/buildroot/commit/?id=89502b9d56ad4f06954fae55684ef21525ad2515.

May I suggest you to compare the final commit and your original patch, so that you can see what the issues were, for your upcoming contributions?

Thanks a lot!

Thomas Petazzoni

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw

PATCH v2 4/7 Adding libsrtp

In reply to Gregory Dymarek
---
 package/Config.in            |  1 +
 package/libsrtp/Config.in    |  5 +++++
 package/libsrtp/libsrtp.hash |  1 +
 package/libsrtp/libsrtp.mk   | 13 +++++++++++++
 4 files changed, 20 insertions(+)
 create mode 100644 package/libsrtp/Config.in
 create mode 100644 package/libsrtp/libsrtp.hash
 create mode 100644 package/libsrtp/libsrtp.mk
package/Config.in +1 -0
index e8c973e..501f505 100644
@@ -843,6 +843,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"
package/libsrtp/Config.in new file +5 -0
new file mode 100644
index 0000000..b81e9cf
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_LIBSRTP
+	bool "libsrtp"
+	help
+	Adds libsrtp
+	https://github.com/cisco/libsrtp
package/libsrtp/libsrtp.hash new file +1 -0
new file mode 100644
index 0000000..18f3eea
@@ -0,0 +1 @@
+sha256,aefb6c068b201a051585976526e9795bb74d8540446657559622d31d0d755cbb
package/libsrtp/libsrtp.mk new file +13 -0
new file mode 100644
index 0000000..7c76785
@@ -0,0 +1,13 @@
+#############################################################
+#
+# libsrtp
+#
+#############################################################
+LIBSRTP_VERSION = v1.5.0
+LIBSRTP_SITE_METHOD = git
+#LIBSRTP_SITE = https://github.com/cisco/libsrtp/
+#LIBSRTP_AUTORECONF = YES
+LIBSRTP_INSTALL_STAGING = YES
+LIBSRTP_LICENSE = BSD-3c 
+
+$(eval $(autotools-package))
Signature · 1 line
1.9.1
#8 lore raw

PATCH v2 4/7 Adding libsrtp

Dear Gregory Dymarek,

Quoted 10 lines · Gregory Dymarek
---
 package/Config.in            |  1 +
 package/libsrtp/Config.in    |  5 +++++
 package/libsrtp/libsrtp.hash |  1 +
 package/libsrtp/libsrtp.mk   | 13 +++++++++++++
 4 files changed, 20 insertions(+)
 create mode 100644 package/libsrtp/Config.in
 create mode 100644 package/libsrtp/libsrtp.hash
 create mode 100644 package/libsrtp/libsrtp.mk

Thanks, applied, after doing numerous changes:

[Thomas:
- Add better Config.in help text and fix its indentation
- Fix comment header in .mk file
- Uncomment useful commented lines in .mk file (SITE and AUTORECONF)
- Add LICENSE_FILES variable.
- Add handling of static/shared libraries build/installation.
- Add dependency on host-pkgconf, so that libsrtp installs its own .pc file.
- Add optional dependency on OpenSSL.
- Use github helper.
- Remove hash file, since we're downloading from Git.]

See
http://git.buildroot.net/buildroot/commit/?id=10f42fa8ae8d05bf36fd5e65f0ab2a1315cab18d
for the final commit.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#9 lore raw

PATCH v2 5/7 Adding libwebsock

In reply to Gregory Dymarek
---
 package/Config.in                  |  1 +
 package/libwebsock/Config.in       |  6 ++++++
 package/libwebsock/libwebsock.hash |  1 +
 package/libwebsock/libwebsock.mk   | 22 ++++++++++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/libwebsock/Config.in
 create mode 100644 package/libwebsock/libwebsock.hash
 create mode 100644 package/libwebsock/libwebsock.mk
package/Config.in +1 -0
index 501f505..77430b9 100644
@@ -851,6 +851,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"
package/libwebsock/Config.in new file +6 -0
new file mode 100644
index 0000000..427b3fd
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBWEBSOCK
+	bool "libwebsock"
+	select BR2_PACKAGE_LIBEVENT
+	help
+	Adds libwebsock
+	https://github.com/payden/libwebsock
package/libwebsock/libwebsock.hash new file +1 -0
new file mode 100644
index 0000000..2250c09
@@ -0,0 +1 @@
+sha256,ac459d1de0205f8aedf2fd10a48cb02a06acb127c3403001670a839502e02afd
package/libwebsock/libwebsock.mk new file +22 -0
new file mode 100644
index 0000000..f82b553
@@ -0,0 +1,22 @@
+#############################################################
+#
+# libwebsock
+#
+#############################################################
+LIBWEBSOCK_VERSION = 3c1615eeadb0b582b63851073bfe3e5132f31ebc 
+LIBWEBSOCK_SITE_METHOD = git
+LIBWEBSOCK_SITE = https://github.com/payden/libwebsock.git
+LIBWEBSOCK_DEPENDENCIES = libevent
+LIBWEBSOCK_AUTORECONF = YES
+LIBWEBSOCK_INSTALL_STAGING = YES
+LIBWEBSOCK_LICENSE = LGPLv3
+LIBWEBSOCK_LICENSE_FILES = COPYING
+
+LIBWEBSOCK_CFLAGS = $(TARGET_CFLAGS)
+LIBWEBSOCK_LIBS += -lpthread -levent
+
+LIBWEBSOCK_CONF_ENV += \
+        CFLAGS="$(LIBWEBSOCK_CFLAGS)" \
+        LIBS="$(LIBWEBSOCK_LIBS)"
+
+$(eval $(autotools-package))
Signature · 1 line
1.9.1
#10 lore raw

PATCH v2 5/7 Adding libwebsock

Dear Gregory Dymarek,

Quoted 10 lines · Gregory Dymarek
---
 package/Config.in                  |  1 +
 package/libwebsock/Config.in       |  6 ++++++
 package/libwebsock/libwebsock.hash |  1 +
 package/libwebsock/libwebsock.mk   | 22 ++++++++++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/libwebsock/Config.in
 create mode 100644 package/libwebsock/libwebsock.hash
 create mode 100644 package/libwebsock/libwebsock.mk

Thanks, committed, after doing a number of changes:

[Thomas:
- Add dependency on BR2_TOOLCHAIN_HAS_THREADS
- Improve Config.in help text
- Fixup comment header in .mk file.
- Use github helper.
- Remove hash file (we're downloading from Git)
- Fixup LICENSE_FILES
- Remove LIBWEBSOCK_CFLAGS, they were the default.
- Remove LIBWEBSOCK_LIBS, and instead use a patch to switch libwebsock configure script to use pkg-config.]

See
http://git.buildroot.net/buildroot/commit/?id=a569dfc9db32dee4b07c56b70b8e4278f6451e6e
for the final commit.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#11 lore raw

PATCH v2 6/7 Adding sofia-sip

In reply to Gregory Dymarek
---
 package/Config.in                                  |  1 +
 package/sofia-sip/Config.in                        |  5 ++++
 ...ag.h-reintroduce-soatag_local_sdp_str_ref.patch | 26 ++++++++++++++++++
 package/sofia-sip/sofia-sip.hash                   |  1 +
 package/sofia-sip/sofia-sip.mk                     | 31 ++++++++++++++++++++++
 5 files changed, 64 insertions(+)
 create mode 100644 package/sofia-sip/Config.in
 create mode 100644 package/sofia-sip/sofia-sip-1.12.11-0001-soa_tag.h-reintroduce-soatag_local_sdp_str_ref.patch
 create mode 100644 package/sofia-sip/sofia-sip.hash
 create mode 100644 package/sofia-sip/sofia-sip.mk
package/Config.in +1 -0
index 77430b9..316d899 100644
@@ -862,6 +862,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"
package/sofia-sip/Config.in new file +5 -0
new file mode 100644
index 0000000..d9045b5
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_SOFIA_SIP
+	bool "sofia-sip"
+	help
+	Adds Sofia-SIP Library
+	http://sofia-sip.sourceforge.net
package/sofia-sip/sofia-sip-1.12.11-0001-soa_tag.h-reintroduce-soatag_local_sdp_str_ref.patch new file +26 -0
new file mode 100644
index 0000000..2d52348
@@ -0,0 +1,26 @@
+From bcd0f17fd83f2dfe570a3ab17249a5c7290b27f2 Mon Sep 17 00:00:00 2001
+From: Pekka Pessi <[email protected]>
+Date: Thu, 24 Mar 2011 14:45:21 +0200
+Subject: [PATCH] soa_tag.h: reintroduce soatag_local_sdp_str_ref
+
+Thanks to Erik Habicht <[email protected]> for spotting it
+---
+ libsofia-sip-ua/soa/sofia-sip/soa_tag.h |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/libsofia-sip-ua/soa/sofia-sip/soa_tag.h b/libsofia-sip-ua/soa/sofia-sip/soa_tag.h
+index 723ca02..d9448d6 100644
+--- a/libsofia-sip-ua/soa/sofia-sip/soa_tag.h
++++ b/libsofia-sip-ua/soa/sofia-sip/soa_tag.h
+@@ -118,7 +118,7 @@ SOFIAPUBVAR tag_typedef_t soatag_local_sdp_ref;
+ SOFIAPUBVAR tag_typedef_t soatag_local_sdp_str;
+ #define SOATAG_LOCAL_SDP_STR_REF(x) \
+   soatag_local_sdp_str_ref, tag_str_vr(&(x))
+-SOFIAPUBVAR tag_typedef_t soatag_session_sdp_str_ref;
++SOFIAPUBVAR tag_typedef_t soatag_local_sdp_str_ref;
+ 
+ #define SOATAG_AF(x)             soatag_af, tag_int_v((x))
+ SOFIAPUBVAR tag_typedef_t soatag_af;
+-- 
+1.7.7
+
package/sofia-sip/sofia-sip.hash new file +1 -0
new file mode 100644
index 0000000..4f352c3
@@ -0,0 +1 @@
+sha256,2b01bc2e1826e00d1f7f57d29a2854b15fd5fe24695e47a14a735d195dd37c81
package/sofia-sip/sofia-sip.mk new file +31 -0
new file mode 100644
index 0000000..6be04f5
@@ -0,0 +1,31 @@
+#############################################################
+#
+# sofiasip
+#
+#############################################################
+SOFIA_SIP_VERSION = 1.12.11
+SOFIA_SIP_SOURCE = sofia-sip-$(SOFIA_SIP_VERSION).tar.gz 
+SOFIA_SIP_SITE = http://downloads.sourceforge.net/project/sofia-sip/sofia-sip/$(SOFIA_SIP_VERSION) 
+SOFIA_SIP_INSTALL_STAGING = YES
+
+ifeq ($(BR2_TOOLCHAIN_BUILDROOT_INET_IPV6),y)
+else
+	SOFIA_SIP_CONF_OPTS = --disable-ip6
+endif
+
+ifneq ($(BR2_HAVE_DOCUMENTATION),y)
+# If doxygen is not installed on the host, documentation won't be generated.
+	SOFIA_SIP_CONF_OPTS += --with-doxygen=no
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
+        SOFIA_SIP_CONF_OPTS += --with-glib
+        SOFIA_SIP_DEPENDENCIES += libglib2
+else
+        SOFIA_SIP_CONF_OPTS += --without-glib
+endif
+
+ifneq ($(BR2_ENABLE_DEBUG),y)
+        SOFIA_SIP_CONF_OPTS += --enable-ndebug
+endif
+$(eval $(autotools-package))
Signature · 1 line
1.9.1
#12 lore raw

PATCH v2 6/7 Adding sofia-sip

Dear Gregory Dymarek,

Quoted 12 lines · Gregory Dymarek
---
 package/Config.in                                  |  1 +
 package/sofia-sip/Config.in                        |  5 ++++
 ...ag.h-reintroduce-soatag_local_sdp_str_ref.patch | 26 ++++++++++++++++++
 package/sofia-sip/sofia-sip.hash                   |  1 +
 package/sofia-sip/sofia-sip.mk                     | 31 ++++++++++++++++++++++
 5 files changed, 64 insertions(+)
 create mode 100644 package/sofia-sip/Config.in
 create mode 100644 package/sofia-sip/sofia-sip-1.12.11-0001-soa_tag.h-reintroduce-soatag_local_sdp_str_ref.patch
 create mode 100644 package/sofia-sip/sofia-sip.hash
 create mode 100644 package/sofia-sip/sofia-sip.mk

Thanks, applied, after doing a number of changes:

[Thomas:
- Add better Config.in help text.
- Fix the hash file format.
- Fix comment header in .mk file.
- Remove SOURCE variable, as it had the default value.
- Add dependency on host-pkgconf, used by the configure script.
- Add LICENSE and LICENSE_FILES variables.
- Do not use BR2_HAVE_DOCUMENTATION, this option has been removed. Instead, always disable doxygen.
- Simplify the IPv6 test.
- Add optional dependency on OpenSSL.
- Fixup the handling of the --enable-ndebug.]

See the final commit at
http://git.buildroot.net/buildroot/commit/?id=fbfa66535072bf6bffdddfbe30f8adda801d13b2.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#13 lore raw

PATCH v2 7/7 Adding janus-gateway

In reply to Gregory Dymarek
---
 package/Config.in                                  |  1 +
 package/janus-gateway/Config.in                    | 13 +++++++++++
 .../janus-gateway-0001-disable-ssp.patch           | 12 ++++++++++
 package/janus-gateway/janus-gateway.hash           |  1 +
 package/janus-gateway/janus-gateway.mk             | 27 ++++++++++++++++++++++
 5 files changed, 54 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.hash
 create mode 100644 package/janus-gateway/janus-gateway.mk
package/Config.in +1 -0
index 316d899..f02d695 100644
@@ -1055,6 +1055,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/janus-gateway/Config.in new file +13 -0
new file mode 100644
index 0000000..3a201ba
@@ -0,0 +1,13 @@
+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_PACKAGE_HOST_GENGETOPT
+	help
+	Adds janusgateway: 
+	https://github.com/meetecho/janus-gateway
package/janus-gateway/janus-gateway-0001-disable-ssp.patch new file +12 -0
new file mode 100644
index 0000000..5de8b3b
@@ -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.hash new file +1 -0
new file mode 100644
index 0000000..8be5bb2
@@ -0,0 +1 @@
+sha256,3e90f67810f78255042d3ab857629b510009052b6a334af4b80701cf2a824874
package/janus-gateway/janus-gateway.mk new file +27 -0
new file mode 100644
index 0000000..277a38c
@@ -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
#14 lore raw

PATCH v2 7/7 Adding janus-gateway

Dear Gregory Dymarek,

Quoted 12 lines · Gregory Dymarek
---
 package/Config.in                                  |  1 +
 package/janus-gateway/Config.in                    | 13 +++++++++++
 .../janus-gateway-0001-disable-ssp.patch           | 12 ++++++++++
 package/janus-gateway/janus-gateway.hash           |  1 +
 package/janus-gateway/janus-gateway.mk             | 27 ++++++++++++++++++++++
 5 files changed, 54 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.hash
 create mode 100644 package/janus-gateway/janus-gateway.mk

Thanks, applied, with a number of changes:

[Thomas:
- Rename patch to the proper naming convention, and add a description to it.
- Add mandatory dependency to OpenSSL.
- Make the dependency on libwebsock optional.
- Remove select of host-gengetopt, since this package no longer has a menuconfig option.
- Add missing toolchain option dependencies inherited from selected packages.
- Add proper Config.in help text.
- Fix the .mk comment header to the proper format.
- Use the github function and remove the unneeded SITE_METHOD variable.
- Add support for optional Opus and Libogg support.
- Remove hash file, since the package is fetched from github.]

See the final commit at
http://git.buildroot.net/buildroot/commit/?id=f95c7e6fb9c0cf30eb769a8f0e272e76f36c5eae.

Also, could you:

* Submit the SSP patch to the upstream project, and ask them to create the m4/ directory?

* Create a followup patch for Buildroot that adds a working example of janus.cfg configuration file and an init script to start the janus daemon? This way users of the package at least have a working starting point.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#15 lore raw

v2 cover Adding janus-gateway and dependencies

In reply to Gregory Dymarek

Dear Gregory Dymarek,

could you please login in your patchwork account and change the state of your previous patch series to 'superseded'?
Thanks,

Signature · 5 lines
Vicente Olivert Riera
Graduate Software Engineer, MIPS Platforms
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com
#16 lore raw

v2 cover Adding janus-gateway and dependencies

Done.

Thanks,

Quoted 15 lines · Vicente Olivert Riera

Dear Gregory Dymarek,

could you please login in your patchwork account and change the state of your previous patch series to 'superseded'?
Thanks,
--
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