Skip to contentSkip to conversation

Adding package janus-gateway and dependencies

PATCH New Gregory Dymarek 5 participants 6 messages Dec 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Adding package janus-gateway and dependencies

This is a set of packages that are needed to compile janus-gateway:
ding-libs
gengetopt
janus-gateway
libnice
libsrtp
libwebsock
sofia-sip

---
 package/Config.in                                  |  7 ++++++
 package/Config.in.host                             |  1 +
 package/ding-libs/Config.in                        |  9 ++++++++
 package/ding-libs/ding-libs.mk                     | 17 ++++++++++++++
 package/gengetopt/Config.in                        |  6 +++++
 package/gengetopt/Config.in.host                   |  6 +++++
 package/gengetopt/gengetopt.mk                     | 16 +++++++++++++
 package/janus-gateway/Config.in                    | 13 +++++++++++
 .../janus-gateway-0001-disable-ssp.patch           | 12 ++++++++++
 package/janus-gateway/janus-gateway.mk             | 27 ++++++++++++++++++++++
 package/libnice/Config.in                          |  6 +++++
 .../libnice/libnice-0001-build-IPV6_RECVERR.patch  | 20 ++++++++++++++++
 package/libnice/libnice.mk                         | 11 +++++++++
 package/libsrtp/Config.in                          |  5 ++++
 package/libsrtp/libsrtp.mk                         | 13 +++++++++++
 package/libwebsock/Config.in                       |  6 +++++
 package/libwebsock/libwebsock.mk                   | 22 ++++++++++++++++++
 package/sofia-sip/Config.in                        |  5 ++++
 package/sofia-sip/sofia-sip.mk                     | 17 ++++++++++++++
 19 files changed, 219 insertions(+)
 create mode 100644 package/ding-libs/Config.in
 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.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.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.mk
 create mode 100644 package/libsrtp/Config.in
 create mode 100644 package/libsrtp/libsrtp.mk
 create mode 100644 package/libwebsock/Config.in
 create mode 100644 package/libwebsock/libwebsock.mk
 create mode 100644 package/sofia-sip/Config.in
 create mode 100644 package/sofia-sip/sofia-sip.mk
package/Config.in +7 -0
index b8fc7d1..d9ad7f5 100644
@@ -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"
@@ -814,6 +815,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"
@@ -832,6 +834,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"
@@ -839,6 +842,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"
@@ -849,6 +853,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"
@@ -867,6 +872,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"
@@ -1040,6 +1046,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
index 185dcbc..c7fcfe5 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/mtd/Config.in.host"
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.mk new file +10 -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))

package/gengetopt/Config.in new file +5 -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 +5 -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.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))
+
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
(quoted diff) +0 -0

b/package/janus-gateway/janus-gateway-0001-disable-ssp.patch new file mode 100644
index 0000000..5de8b3b

package/janus-gateway/janus-gateway-0001-disable-ssp.patch new file +1 -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

(quoted diff) +0 -0

b/package/janus-gateway/janus-gateway.mk
new file mode 100644
index 0000000..f03a3cb

package/janus-gateway/janus-gateway.mk new file +12 -0
@@ -0,0 +1,27 @@
+#############################################################
+#
+# janus-gateway
+#
+#############################################################
+JANUS_GATEWAY_VERSION = master
+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))

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/
(quoted diff) +0 -0

b/package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file mode 100644
index 0000000..39ef617

package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file +1 -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 +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))
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.mk new file +13 -0
new file mode 100644
index 0000000..b1e56eb
@@ -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))
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.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))
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.mk new file +8 -0
new file mode 100644
index 0000000..0539453
@@ -0,0 +1,17 @@
+#############################################################
+#
+# 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
+
+
+$(eval $(autotools-package))
--
1.9.1

#1 lore raw

PATCH 1/1 Adding package janus-gateway and dependencies

Hello Gregory,

Quoted 8 lines · On Monday 01 December 2014 19:37:23 Gregory Dymarek wrote:

This is a set of packages that are needed to compile janus-gateway:
ding-libs
gengetopt
janus-gateway
libnice
libsrtp
libwebsock
sofia-sip

Thank you for your contribution. Can you place each new package in a separate commit?

Signature · 3 lines
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr
#2 lore raw

PATCH 1/1 Adding package janus-gateway and dependencies

In reply to Gregory Dymarek

Gregory, All,

On 2014-12-01 19:37 +0000, Gregory Dymarek spake thusly:

Quoted 10 lines

This is a set of packages that are needed to compile janus-gateway:
ding-libs
gengetopt
janus-gateway
libnice
libsrtp
libwebsock
sofia-sip

I already started discussing this patch with Gregory on IRC:

- this patch is broken because the mailer warped long lines.

- it should have been split in different patches, one for each new package

- indentation is incorrect in the help texts (spaces vs. tabs)

Gregory is resending this patch as-is so I can apply it and further work on it.

More comments on this patch can be done in the followup respin. ;-)

Regards,
Yann E. MORIN.

Quoted 438 lines
---
 package/Config.in                                  |  7 ++++++
 package/Config.in.host                             |  1 +
 package/ding-libs/Config.in                        |  9 ++++++++
 package/ding-libs/ding-libs.mk                     | 17 ++++++++++++++
 package/gengetopt/Config.in                        |  6 +++++
 package/gengetopt/Config.in.host                   |  6 +++++
 package/gengetopt/gengetopt.mk                     | 16 +++++++++++++
 package/janus-gateway/Config.in                    | 13 +++++++++++
 .../janus-gateway-0001-disable-ssp.patch           | 12 ++++++++++
 package/janus-gateway/janus-gateway.mk             | 27 ++++++++++++++++++++++
 package/libnice/Config.in                          |  6 +++++
 .../libnice/libnice-0001-build-IPV6_RECVERR.patch  | 20 ++++++++++++++++
 package/libnice/libnice.mk                         | 11 +++++++++
 package/libsrtp/Config.in                          |  5 ++++
 package/libsrtp/libsrtp.mk                         | 13 +++++++++++
 package/libwebsock/Config.in                       |  6 +++++
 package/libwebsock/libwebsock.mk                   | 22 ++++++++++++++++++
 package/sofia-sip/Config.in                        |  5 ++++
 package/sofia-sip/sofia-sip.mk                     | 17 ++++++++++++++
 19 files changed, 219 insertions(+)
 create mode 100644 package/ding-libs/Config.in
 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.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.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.mk
 create mode 100644 package/libsrtp/Config.in
 create mode 100644 package/libsrtp/libsrtp.mk
 create mode 100644 package/libwebsock/Config.in
 create mode 100644 package/libwebsock/libwebsock.mk
 create mode 100644 package/sofia-sip/Config.in
 create mode 100644 package/sofia-sip/sofia-sip.mk
package/Config.in +7 -0
index b8fc7d1..d9ad7f5 100644
@@ -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"
@@ -814,6 +815,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"
@@ -832,6 +834,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"
@@ -839,6 +842,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"
@@ -849,6 +853,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"
@@ -867,6 +872,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"
@@ -1040,6 +1046,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
index 185dcbc..c7fcfe5 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/mtd/Config.in.host"
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.mk new file +10 -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)

package/ding-libs/ding-libs.mk new file +7 -0
+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))
package/gengetopt/Config.in new file +5 -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.

package/gengetopt/Config.in new file +1 -0
+       http://www.gnu.org/software/gengetopt/gengetopt.html
package/gengetopt/Config.in.host new file +5 -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.

package/gengetopt/Config.in.host new file +1 -0
+       http://www.gnu.org/software/gengetopt/gengetopt.html
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))
+
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 +1 -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

package/janus-gateway/janus-gateway-0001-disable-ssp.patch new file +6 -0
+
+-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 +12 -0
new file mode 100644
index 0000000..f03a3cb
@@ -0,0 +1,27 @@
+#############################################################
+#
+# janus-gateway
+#
+#############################################################
+JANUS_GATEWAY_VERSION = master
+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

package/janus-gateway/janus-gateway.mk new file +15 -0
+
+# 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))
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 +1 -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

package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file +16 -0
+     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 +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))
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.mk new file +13 -0
new file mode 100644
index 0000000..b1e56eb
@@ -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))
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.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))
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.mk new file +8 -0
new file mode 100644
index 0000000..0539453
@@ -0,0 +1,17 @@
+#############################################################
+#
+# 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)

package/sofia-sip/sofia-sip.mk new file +9 -1
+SOFIA_SIP_INSTALL_STAGING = YES
+
+ifeq ($(BR2_TOOLCHAIN_BUILDROOT_INET_IPV6),y)
+else
+       SOFIA_SIP_CONF_OPTS = --disable-ip6
+endif
+
+
+$(eval $(autotools-package))
--

1.9.1

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.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 Adding package janus-gateway and dependencies

Hello,

Quoted 21 lines · Yann E. MORIN

Gregory, All,

On 2014-12-01 19:37 +0000, Gregory Dymarek spake thusly:

Quoted 10 lines

This is a set of packages that are needed to compile janus-gateway:
ding-libs
gengetopt
janus-gateway
libnice
libsrtp
libwebsock
sofia-sip

I already started discussing this patch with Gregory on IRC:

- this patch is broken because the mailer warped long lines.

- it should have been split in different patches, one for each new package

Quoted 6 lines

- indentation is incorrect in the help texts (spaces vs. tabs)

Gregory is resending this patch as-is so I can apply it and further work on it.

More comments on this patch can be done in the followup respin. ;-)

While I certainly do appreciate a lot the fact that you're willing to take over the work of Gregory and do the final polishing, wouldn't it be better to teach people how to fish rather than fish for them? I.e make the comments, and let Gregory rework the patch series until it is OK for merging. Of course, this is only true if Gregory is willing/interested in pushing this set of patches up to the point where it becomes acceptable upstream.

Thanks!

Thomas

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

PATCH 1/1 Adding package janus-gateway and dependencies

Thomas, All,

On 2014-12-01 22:34 +0100, Thomas Petazzoni spake thusly:

Quoted 27 lines · Yann E. MORIN
Quoted 19 lines

On 2014-12-01 19:37 +0000, Gregory Dymarek spake thusly:

Quoted 10 lines

This is a set of packages that are needed to compile janus-gateway:
ding-libs
gengetopt
janus-gateway
libnice
libsrtp
libwebsock
sofia-sip

I already started discussing this patch with Gregory on IRC:

- this patch is broken because the mailer warped long lines.

- it should have been split in different patches, one for each new package

Quoted 6 lines

- indentation is incorrect in the help texts (spaces vs. tabs)

Gregory is resending this patch as-is so I can apply it and further work on it.

More comments on this patch can be done in the followup respin. ;-)

Quoted 7 lines

While I certainly do appreciate a lot the fact that you're willing to take over the work of Gregory and do the final polishing, wouldn't it be better to teach people how to fish rather than fish for them? I.e make the comments, and let Gregory rework the patch series until it is OK for merging. Of course, this is only true if Gregory is willing/interested in pushing this set of patches up to the point where it becomes acceptable upstream.

I agree with you.

However, Gregory has done the base work, and that's nice. He already incorporated comments I made earlier on IRC (in the past few days).

So, I was just gonna put the series in shape and fix the obvious that does not take too much time, and respin so Gregory can take back the work on its own.

Basically, a kind of reward for him to do the base work, and entice him to continue on the series. ;-)

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.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH 1/1 Adding package janus-gateway and dependencies

In reply to Gregory Dymarek

Hi Gregory,

Quoted 8 lines · Gregory Dymarek

This is a set of packages that are needed to compile janus-gateway:
ding-libs
gengetopt
janus-gateway
libnice
libsrtp
libwebsock
sofia-sip

Please, make one package per patch.

Quoted 119 lines
---
 package/Config.in                                  |  7 ++++++
 package/Config.in.host                             |  1 +
 package/ding-libs/Config.in                        |  9 ++++++++
 package/ding-libs/ding-libs.mk                     | 17 ++++++++++++++
 package/gengetopt/Config.in                        |  6 +++++
 package/gengetopt/Config.in.host                   |  6 +++++
 package/gengetopt/gengetopt.mk                     | 16 +++++++++++++
 package/janus-gateway/Config.in                    | 13 +++++++++++
 .../janus-gateway-0001-disable-ssp.patch           | 12 ++++++++++
 package/janus-gateway/janus-gateway.mk             | 27 ++++++++++++++++++++++
 package/libnice/Config.in                          |  6 +++++
 .../libnice/libnice-0001-build-IPV6_RECVERR.patch  | 20 ++++++++++++++++
 package/libnice/libnice.mk                         | 11 +++++++++
 package/libsrtp/Config.in                          |  5 ++++
 package/libsrtp/libsrtp.mk                         | 13 +++++++++++
 package/libwebsock/Config.in                       |  6 +++++
 package/libwebsock/libwebsock.mk                   | 22 ++++++++++++++++++
 package/sofia-sip/Config.in                        |  5 ++++
 package/sofia-sip/sofia-sip.mk                     | 17 ++++++++++++++
 19 files changed, 219 insertions(+)
 create mode 100644 package/ding-libs/Config.in
 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.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.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.mk
 create mode 100644 package/libsrtp/Config.in
 create mode 100644 package/libsrtp/libsrtp.mk
 create mode 100644 package/libwebsock/Config.in
 create mode 100644 package/libwebsock/libwebsock.mk
 create mode 100644 package/sofia-sip/Config.in
 create mode 100644 package/sofia-sip/sofia-sip.mk
package/Config.in +7 -0
index b8fc7d1..d9ad7f5 100644
@@ -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"
@@ -814,6 +815,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"
@@ -832,6 +834,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"
@@ -839,6 +842,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"
@@ -849,6 +853,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"
@@ -867,6 +872,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"
@@ -1040,6 +1046,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
index 185dcbc..c7fcfe5 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/mtd/Config.in.host"
package/ding-libs/Config.in new file +0 -0
new file mode 100644
index 0000000..7c7a17f

package/ding-libs/Config.in line 3

Quoted 3 lines
package/ding-libs/Config.in new file +3 -0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_DING_LIBS
+       bool "ding-libs"
+#      depends on BR2_TOOLCHAIN_BUILDROOT_LOCALE

Why is this commented?

package/ding-libs/Config.in line 8

Quoted 5 lines
package/ding-libs/Config.in new file +5 -0
+       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

Help message should:
- breifly describe what the package is;
- be indented with 1 tab+2 spaces;
- be separated with a blank line from the package/project url

package/ding-libs/Config.in line 9

Quoted 1 line
package/ding-libs/Config.in new file +1 -0
+

Remove the trailing blank line

Quoted 6 lines
package/ding-libs/ding-libs.mk new file +0 -0
new file mode 100644
index 0000000..582b9be

package/ding-libs/ding-libs.mk line 9

Quoted 9 lines
package/ding-libs/ding-libs.mk new file +9 -0
@@ -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

Why is this commented? if not needed, just remove it.

Quoted 3 lines
package/ding-libs/ding-libs.mk new file +1 -0
+DING_LIBS_DEPENDENCIES = $(if !$(BR2_ENABLE_LOCALE),libiconv) $(if

$(BR2_NEEDS_GETTEXT),gettext)
+DING_LIBS_AUTORECONF = YES

Please add a comment why autoreconf is needed, if this is really needed.

Quoted 17 lines
package/ding-libs/ding-libs.mk new file +6 -0
+DING_LIBS_INSTALL_STAGING = YES
+DING_LIBS_LICENSE = GPLv3
+DING_LIBS_LICENSE_FILES = COPYING
+DING_LIBS_MAKE=$(MAKE1)
+
+$(eval $(autotools-package))
package/gengetopt/Config.in new file +5 -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
Quoted 2 lines

for C programs.
+ http://www.gnu.org/software/gengetopt/gengetopt.html

ditto (help text)

Quoted 11 lines
package/gengetopt/Config.in.host new file +5 -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
Quoted 2 lines

for C programs.
+ http://www.gnu.org/software/gengetopt/gengetopt.html

Usually, we don't add host tools, except if this is a program for used for generating the images.

Quoted 6 lines
package/gengetopt/gengetopt.mk new file +0 -0
new file mode 100644
index 0000000..692dfe1

package/gengetopt/gengetopt.mk line 8

Quoted 8 lines
package/gengetopt/gengetopt.mk new file +8 -0
@@ -0,0 +1,16 @@
+#############################################################
+#
+# gengetopt
+#
+#############################################################
+GENGETOPT_VERSION = 2.22.6
+GENGETOPT_SITE = ftp://ftp.gnu.org/gnu/gengetopt/
+GENGETOPT_AUTORECONF = YES

Why is it needed? add a comment.

package/gengetopt/gengetopt.mk line 16

Quoted 8 lines
package/gengetopt/gengetopt.mk new file +8 -0
+GENGETOPT_LICENSE = GPLv3
+GENGETOPT_LICENSE_FILES = COPYING
+
+GENGETOPT_MAKE=$(MAKE1)
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))
+

Remove the trailing blank line.

package/janus-gateway/Config.in line 3

Quoted 9 lines
package/janus-gateway/Config.in new file +3 -0
new file mode 100644
index 0000000..3a201ba
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_JANUS_GATEWAY
+       bool "janus-gateway"
+       select BR2_PACKAGE_LIBMICROHTTPD

libmicrohttpd depends on BR2_TOOLCHAIN_HAS_THREADS, you should repeat this dependency here.

package/janus-gateway/Config.in line 10

Quoted 7 lines
package/janus-gateway/Config.in new file +7 -0
+       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

This 'select' on host-gengetopt package is not needed here, just add it to the dependency list in the *.mk file.

package/janus-gateway/Config.in line 13

Quoted 3 lines
package/janus-gateway/Config.in new file +3 -0
+       help
+       Adds janusgateway:
+       https://github.com/meetecho/janus-gateway

ditto (help text)

Quoted 10 lines
package/janus-gateway/janus-gateway-0001-disable-ssp.patch new file +1 -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

Quoted 8 lines

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

The -g -ggdb should be sensitive to BR2_DEBUG, or just removed.

Hmm... -fPIC ?? Does this mean that janus-gateway is not available on static build? If so, add 'depends on !BR2_PREFER_STATIC_LIBS' in the Config.in.

Quoted 3 lines

+
+ # FIXME: make docs work with distcheck
+ DISTCHECK_CONFIGURE_FLAGS = --disable-docs --enable-post-processing

Package patch should have a description and your sob line, and the fetched-from url if found on the www.

package/janus-gateway/janus-gateway.mk line 6

Quoted 13 lines
package/janus-gateway/janus-gateway.mk new file +6 -0
new file mode 100644
index 0000000..f03a3cb
@@ -0,0 +1,27 @@
+#############################################################
+#
+# janus-gateway
+#
+#############################################################
+JANUS_GATEWAY_VERSION = master

Use a unique version (tag or commit sha1), not a branch name whichh badly breaks build reproducibility.

package/janus-gateway/janus-gateway.mk line 8

Quoted 2 lines
package/janus-gateway/janus-gateway.mk new file +2 -0
+JANUS_GATEWAY_SITE_METHOD = git
+JANUS_GATEWAY_SITE = https://github.com/meetecho/janus-gateway.git

Cannot the github helper be used here?

Quoted 26 lines
package/janus-gateway/janus-gateway.mk new file +4 -0
+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

package/janus-gateway/janus-gateway.mk new file +15 -0
+
+# 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))
package/libnice/Config.in new file +0 -0
new file mode 100644
index 0000000..1ff8560

package/libnice/Config.in line 3

Quoted 3 lines
package/libnice/Config.in new file +3 -0
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBNICE
+       bool "libnice"
+       select BR2_PACKAGE_LIBGLIB2

MIssing 'depends on' from libglib2 (iirc: wchar, mmu and threads).

package/libnice/Config.in line 5

Quoted 2 lines
package/libnice/Config.in new file +2 -0
+       help
+       Adds libnice - The GLib ICE implementation

What does ICE stand for?
Hint: you can copy/paste a 1 sentence description from the project page. ;-)

Quoted 20 lines
package/libnice/Config.in new file +1 -0
+       http://nice.freedesktop.org/wiki/
package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file +1 -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

package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file +6 -0
+     int yes = 1;
+     switch (family)
+     {
++#ifdef IP_RECVERR
+       case AF_INET:
+         setsockopt (fd, SOL_IP, IP_RECVERR, &yes, sizeof (yes));

package/libnice/libnice-0001-build-IPV6_RECVERR.patch

Quoted 10 lines
package/libnice/libnice-0001-build-IPV6_RECVERR.patch new file +10 -0
++#endif
+         break;
++#ifdef IPV6_RECVERR
+       case AF_INET6:
+         setsockopt (fd, SOL_IPV6, IPV6_RECVERR, &yes, sizeof (yes));
+         break;
++#endif
+       default:
+         /* Nothing to do. */
+         break;

ditto (patch desc.)

Quoted 6 lines
package/libnice/libnice.mk new file +0 -0
new file mode 100644
index 0000000..dd7f7a4

package/libnice/libnice.mk line 9

Quoted 9 lines
package/libnice/libnice.mk new file +9 -0
@@ -0,0 +1,11 @@
+#############################################################
+#
+# libnice
+#
+#############################################################
+LIBNICE_VERSION = 0.1.8
+LIBNICE_SITE = http://nice.freedesktop.org/releases/
+LIBNICE_DEPENDENCIES = libglib2
+LIBNICE_INSTALL_STAGING = YES

Missing _LICENSE and _LICENSE_FILES vars.

package/libsrtp/Config.in line 5

Quoted 13 lines
package/libnice/libnice.mk new file +2 -0
+
+$(eval $(autotools-package))
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

ditto (help text)

Quoted 6 lines
package/libsrtp/libsrtp.mk new file +0 -0
new file mode 100644
index 0000000..b1e56eb

package/libsrtp/libsrtp.mk line 8

Quoted 8 lines
package/libsrtp/libsrtp.mk new file +8 -0
@@ -0,0 +1,13 @@
+#############################################################
+#
+# libsrtp
+#
+#############################################################
+LIBSRTP_VERSION = v1.5.0
+LIBSRTP_SITE_METHOD = git
+LIBSRTP_SITE = https://github.com/cisco/libsrtp/

Cannot the github helper (so a tarball) be used here?

package/libsrtp/libsrtp.mk line 9

Quoted 1 line
package/libsrtp/libsrtp.mk new file +1 -0
+LIBSRTP_AUTORECONF = YES

autoreconf comment

package/libsrtp/libsrtp.mk line 11

Quoted 2 lines
package/libsrtp/libsrtp.mk new file +2 -0
+LIBSRTP_INSTALL_STAGING = YES
+LIBSRTP_LICENSE = BSD-3c

No _LICENSE_FILES?

Quoted 8 lines
package/libsrtp/libsrtp.mk new file +2 -0
+
+$(eval $(autotools-package))
package/libwebsock/Config.in new file +0 -0
new file mode 100644
index 0000000..427b3fd

package/libwebsock/Config.in line 6

Quoted 6 lines
package/libwebsock/Config.in new file +6 -0
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBWEBSOCK
+       bool "libwebsock"
+       select BR2_PACKAGE_LIBEVENT
+       help
+       Adds libwebsock
+       https://github.com/payden/libwebsock

ditto (help text)

Quoted 6 lines
package/libwebsock/libwebsock.mk new file +0 -0
new file mode 100644
index 0000000..f82b553

package/libwebsock/libwebsock.mk line 8

Quoted 8 lines
package/libwebsock/libwebsock.mk new file +8 -0
@@ -0,0 +1,22 @@
+#############################################################
+#
+# libwebsock
+#
+#############################################################
+LIBWEBSOCK_VERSION = 3c1615eeadb0b582b63851073bfe3e5132f31ebc
+LIBWEBSOCK_SITE_METHOD = git
+LIBWEBSOCK_SITE = https://github.com/payden/libwebsock.git

github helper (and tarball) cannot be used here?

package/libwebsock/libwebsock.mk line 15

Quoted 7 lines
package/libwebsock/libwebsock.mk new file +7 -0
+LIBWEBSOCK_DEPENDENCIES = libevent
+LIBWEBSOCK_AUTORECONF = YES
+LIBWEBSOCK_INSTALL_STAGING = YES
+LIBWEBSOCK_LICENSE = LGPLv3
+LIBWEBSOCK_LICENSE_FILES = COPYING
+
+LIBWEBSOCK_CFLAGS = $(TARGET_CFLAGS)

Not needed since you don't add any cflag.

package/libwebsock/libwebsock.mk line 19

Quoted 4 lines
package/libwebsock/libwebsock.mk new file +4 -0
+LIBWEBSOCK_LIBS += -lpthread -levent
+
+LIBWEBSOCK_CONF_ENV += \
+        CFLAGS="$(LIBWEBSOCK_CFLAGS)" \

Already handled by the autotools infra.

Quoted 9 lines
package/libwebsock/libwebsock.mk new file +3 -0
+        LIBS="$(LIBWEBSOCK_LIBS)"
+
+$(eval $(autotools-package))
package/sofia-sip/Config.in new file +0 -0
new file mode 100644
index 0000000..d9045b5

package/sofia-sip/Config.in line 5

Quoted 5 lines
package/sofia-sip/Config.in new file +5 -0
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_SOFIA_SIP
+       bool "sofia-sip"
+       help
+       Adds Sofia-SIP Library
+       http://sofia-sip.sourceforge.net

ditto (help text)

package/sofia-sip/sofia-sip.mk line 7

Quoted 13 lines
package/sofia-sip/sofia-sip.mk new file +7 -0
new file mode 100644
index 0000000..0539453
@@ -0,0 +1,17 @@
+#############################################################
+#
+# sofiasip
+#
+#############################################################
+SOFIA_SIP_VERSION = 1.12.11
+SOFIA_SIP_SOURCE = sofia-sip-$(SOFIA_SIP_VERSION).tar.gz

Not needed, this is the default tarball filename.

Quoted 2 lines
package/sofia-sip/sofia-sip.mk new file +1 -0
+SOFIA_SIP_SITE =

http://downloads.sourceforge.net/project/sofia-sip/sofia-sip/$(SOFIA_SIP_VERSION)

Broken patch! wrapped line :-/

Missing _LICENSE and _LICENSE_FILES.

package/sofia-sip/sofia-sip.mk

Quoted 3 lines
package/sofia-sip/sofia-sip.mk new file +3 -0
+SOFIA_SIP_INSTALL_STAGING = YES
+
+ifeq ($(BR2_TOOLCHAIN_BUILDROOT_INET_IPV6),y)

keep things as symetrical as possible, so explicitly add:
SOFIA_SIP_CONF_OPTS = --enable-ip6

package/sofia-sip/sofia-sip.mk

Quoted 5 lines
package/sofia-sip/sofia-sip.mk new file +5 -0
+else
+       SOFIA_SIP_CONF_OPTS = --disable-ip6
+endif
+
+

Remove extra blank line.

Quoted 7 lines

+$(eval $(autotools-package))
--
1.9.1
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Regards,

Signature · 1 line
Samuel