Commit graph

1016 commits

Author SHA1 Message Date
Sebastian Kemper
ae71bd2782 kamailio-5.x: add missing files from mod-xhttp_pi
The initial commit for this plugin missed that it comes with a
configuration file and extra files that go into
/usr/share/kamailio/xhttp_pi.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-11 19:13:15 +01:00
Sebastian Kemper
d3ebba27fd kamailio-5.x: add snmpstats mibs files
This installs the snmp mibs files provided by mod_snmpstats. A patch is
added to make the kamailio build system install the files in a proper
location in PKG_INSTALL_DIR.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-11 19:09:00 +01:00
Jiri Slachta
5f90ebdff0
Merge pull request #266 from micmac1/kam-master
kamailio-5.x: update PKG_MAKE_ARGS
2018-02-10 16:06:40 +01:00
Sebastian Kemper
2dd8c008bd kamailio-5.x: add various new modules
The aim is to add the missing modules that Debian packages, minus the
ones for which depends are missing on OpenWrt.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-10 15:15:35 +01:00
Sebastian Kemper
606fe5f10e kamailio-5.x: update configuration file handling
- add install/conffile routine
- use it for main package
- setup BuildKamailio5Module to allow inclusion of configuration files
  on a per-module basis (mod-tls is currently the only user)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-10 15:12:51 +01:00
Sebastian Kemper
000b984212 kamailio-5.x: bump to version 5.1.1
- dictionary.kamailio & kamailio-basic.cfg are gone, remove from
  Makefilei accordingly
- Install the config files from PKG_INSTALL_DIR
- Use $(INSTALL_CONF) for config files
- Remove gratuitous directory creation
- Refresh 050-fix-kamailio-utils.patch
- Remove src/modules/cnxcc/Makefile change from 120-libevent-libs.patch
  as $(EXTRA_LIBS) has been removed from Makefile in previous commit

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-10 15:07:45 +01:00
Jiri Slachta
e597e4c2d1
Merge pull request #257 from hnyman/flite
freeswitch: disable flite module
2018-02-10 09:59:08 +01:00
Sebastian Kemper
a088b930c4 kamailio-5.x: update PKG_MAKE_ARGS
- Removes TLS_HOOKS as this is default anyway
- Removes -DUSE_PTHREAD_MUTEX as on supported arches FAST_LOCK is used
  by default, which according to doc/tutorials/locking.txt is fastest.
  -DUSE_PTHREAD_MUTEX will be set by the build system automatically in
  case FAST_LOCK is unsupported, e.g. on ARC.
- Add OpenWrt LDFLAGS via LD_EXTRA_OPTS.
- With OpenWrt LDFLAGS and CPPFLAGS in place there is no need to declare
  PCREDEFS, PCRELIBS nor EXTRA_LIBS. Remove them all.
- With this setup mod-dialplan now links to libpcre as well; add the
  depend accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-07 22:24:37 +01:00
micmac1
9a60912bae
Merge pull request #265 from micmac1/fs-redo-freetdm
freeswitch-stable: redo freetdm
2018-02-05 23:13:58 +01:00
Sebastian Kemper
bd66ecc3b7 freeswitch-stable: prevent libfreetdm from being installed twice
This patch takes care of that. This commit concludes the series with a
revision bump.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-05 23:08:20 +01:00
Sebastian Kemper
584c9841f3 freeswitch-stable: tidy up the Build defines
This commit changes Build/Compile, Build/Install and Build/InstallDev to
prevent building/installing items that are not selected. I.e. when
freeswitch-stable is not selected, only libfreetdm-stable gets built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-05 23:07:09 +01:00
Sebastian Kemper
abacde6dd6 freeswitch-stable: move the config define
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-05 22:57:40 +01:00
Sebastian Kemper
d82451ec02 freeswitch-stable: redo FreeTDM handling
This commit renames libfreetdm to libfreetdm-stable. Also the depends
are changed to what they actually are, i.e. there is no depend on
freeswitch-stable anymore (libfreetdm.so is a standalone libary).

The FreeTDM modules get the same treatment.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-05 22:54:38 +01:00
Jiri Slachta
7da1a413c2
Merge pull request #264 from micmac1/yate-change-error-to-warning
yate: turn miniwebrtc error into warning
2018-02-05 21:59:04 +01:00
Sebastian Kemper
21e64474a4 freeswitch-stable: remove --disable-silent-rules
Remove this switch as the logs grow quite big with this level of
verbosity.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-05 21:42:40 +01:00
Sebastian Kemper
489adca0db yate: turn miniwebrtc error into warning
ilbcwebrtc and isaccodec currently depend on @!arc because the code does
not compile there. The code does not compile on aarch64 either.

Instead of adding @!aarch64 this commit adds a patch copied from Debian
that turns the error "Please add support for your architecture in
typedefs.h" into a warning, allowing the code to build.

Consequently this commit removes @!arc from the depends as well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-05 21:24:49 +01:00
Jiri Slachta
6b6e7a9d5d
Merge pull request #263 from micmac1/yate-fix-typo
yate: fix a typo
2018-02-05 06:36:08 +01:00
Sebastian Kemper
f7a1941430 yate: fix a typo
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-04 19:24:33 +01:00
Jiri Slachta
7a606b0632
Merge pull request #262 from micmac1/master
PR: yate follow-up and a bit of kamailio
2018-02-04 14:00:39 +01:00
Sebastian Kemper
c8a788a164 kamailio-5.x: copy symbolic links instead of hard links
Currently three copies of every library are installed. Save space by
installing symbolic links instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 21:50:52 +01:00
Sebastian Kemper
4cc2afdcdc yate: Prevent build failures due to inclusion of fortify-source headers
yate cannot be compiled against fortify-source headers at this moment:

  In file included from /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/unistd.h:23:0,
                   from ../yateclass.h:32,
                   from ../yatengine.h:29,
                   from ../yatephone.h:29,
                   from server/ysnmpagent.cpp:22:
  /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/fortify-headers.h:20:42: error: type of 'TelEngine::strcat' is unknown

To work around this remove CPPFLAGS from CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 21:46:21 +01:00
micmac1
3c2171a80d
Merge pull request #261 from micmac1/master
New PR: freeswitch-stable
2018-02-03 20:24:40 +01:00
Sebastian Kemper
957ff81982 freeswitch-stable: workaround for build failures when gcc 7 is used
When gcc 7 is used, -Werror=format-truncation finds snprintf() calls in
mod_cdr_mongodb.c and suspects that they may result in truncation. As a
result the build fails.

Work around this by adding -Wno-error=format-truncation to CFLAGS when
gcc support this.

JIRA-10939 has been raised upstream to follow up on this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 20:19:20 +01:00
Sebastian Kemper
5111568c38 freeswitch-stable: cleanup after move to system libtiff
- refresh a patch
- drop depend on liblzma from mod-gsmopen
- add tiff to PKG_BUILD_DEPENDS

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 19:29:23 +01:00
Jiri Slachta
0f435d4ae7
Merge pull request #256 from micmac1/dahdi-linux
dahdi-linux: update source to snapshot
2018-02-03 18:18:52 +01:00
Jiri Slachta
8e22eba241
Merge pull request #260 from micmac1/yate-master
New PR: Yate for master
2018-02-03 18:05:16 +01:00
Jiri Slachta
a28fa5904d
Merge pull request #258 from micmac1/libosip2-master
libosip2: fix build with ARC toolchain
2018-02-03 18:04:54 +01:00
Jiri Slachta
84fd64d72c
Merge pull request #259 from micmac1/kamailio-master
New PR: Kamailio for master
2018-02-03 18:04:33 +01:00
Sebastian Kemper
74d4c05222 yate: fix compile failures on ARC
- perl and postgresql do not compile on ARC; disable the modules
  accordingly
- ilbcwebrtc and isac also cause build failures on ARC; disable them as
  well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:55:42 +01:00
Sebastian Kemper
262d9e7b8b yate: fix module conffiles
Currently conffiles is always filled with <module>.conf. This leads to
"no such file and directory" errors when the file actually does not
exist.

This commit adds a 6th column to BuildPlugin() which indicates if there
is a config file or not.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:50:11 +01:00
Sebastian Kemper
f6ad95d6aa yate: clean up CONFIGURE_ARGS
- remove ARGS that are default anyway
- enable sse2 when target is x86_64
- remove --enable-inline as that causes too many warnings:

    ilbccodec.cpp:50:7: warning: inlining failed in call to 'virtual {anonymous}::iLBCFactory::~iLBCFactory()': call is unlikely and code size would grow [-Winline]
     class iLBCFactory : public TranslatorFactory
           ^~~~~~~~~~~
    ilbccodec.cpp:50:7: note: called from here
     class iLBCFactory : public TranslatorFactory
           ^~~~~~~~~~~

- --enable-internalregex removed as yate can use external regex
- make some choices depending on whether a package is selected; otherwise the
  build might fail, i.e. when spandsp is not installed but the Makefiles tells
  the build system to use spandsp anyway

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:38:32 +01:00
Sebastian Kemper
a49531f22e yate: clean up FLAGS
- remove flags to don't have a reason for being there anymore (there is
  no comment on why they're needed).
- add CPPFLAGS to CFLAGS so the compiler can use the FORTIFY_SOURCE
  headers.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:27:41 +01:00
Sebastian Kemper
f52d5ff3f8 yate: prevent ilbc to overwrite OpenWrt CFLAGS
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:27:24 +01:00
Sebastian Kemper
4ba28200be yate: improve depends of sub packages
Currently the Makfile pulls in every dependency mentioned. Fix this by
prefixing the depends with the respective PACKAGE_* items.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:18:52 +01:00
Sebastian Kemper
d50b56ba15 kamailio-5.x: disable mod-db-postgres on ARC
postgresql does not build on ARC. This commit makes sure that it is not
pulled in.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:07:23 +01:00
Sebastian Kemper
8763b0703f kamailio-5.x: add CPPFLAGS to CFLAGS
Pass CPPFLAGS in the CFLAGS as otherwise the build system will ignore
them.

This way FORTIFY_SOURCE headers are passed to the compiler.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 14:02:39 +01:00
Sebastian Kemper
706ea18d8c kamailio-5.x: improve module selection
Currently INCL_MODULES is filled with all modules. This commit changes
this so that only the modules that are selected are added to it.

To further limit the number of modules built group_include="standard" is
added. This way only the modules of the standard group plus the modules
selected in menuconfig are built. The "standard" group only includes
modules without any depends.

This fixes build failures on targets where not all depends are
available, i.e. postgresql on ARC. Now these modules can be properly
prevented from being built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 13:57:38 +01:00
Sebastian Kemper
07bcdd9fa7 kamailio-5.x: improve module depends
Currently the Makefile pulls in depends even for packages which are not
selected. Fix this by prefixing the depends with the respective
PACKAGE_* item.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 13:49:01 +01:00
Sebastian Kemper
24b13d2bd7 kamailio-5.x: remove KAM_MODULES use
Adding KAM_MODULES variable is not needed. Remove it and call
BuildPackage from BuildKamailio5Module instead. For this to work
PKG_MAKE_ARGS and Build/Compile need to be moved up, before the module
evals.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 13:46:24 +01:00
Sebastian Kemper
8006aa8ad3 libosip2: fix build with ARC toolchain
ARC toolchain exports __arc__, which clashes with a symbol of the same
name in libosip2. This commit undefines the toolchain symbol when
building the library.

The fix was found in buildroot repo. Thanks to whoever spotted this!

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-03 13:33:27 +01:00
Hannu Nyman
fd727f5ed5 freeswitch: disable flite module
Disable also flite module that depends on non-existing package.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-02-03 10:42:36 +02:00
Mazi Lo
c46719867f Added patches to build for glibc.
For now, these patches are basically the same for musl library build.

Signed-off-by: Mazi Lo <openwrt.forum.mazilo@recursor.net>
2018-02-01 21:37:39 -05:00
Mazi Lo
be557c9bc0 Fixed depencencies and also bumped to git 77d0cfbf9e9a546b4eee23d9668cf44022f5d454
Signed-off-by: Mazi Lo <openwrt.forum.mazilo@recursor.net>
2018-02-01 21:32:18 -05:00
Sebastian Kemper
dffb87f93b dahdi-linux: update source to snapshot
Currently dahdi-linux fails to compile on targets that use kernel 4.14.
Changes were introduced in kernels 4.11 and 4.13 that cause these build
failures.

Update to an upstream git snapshot to fix the breakage.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-01 00:47:20 +01:00
micmac1
7eca3bfa40
Merge pull request #255 from micmac1/fs-system-tiff
freeswitch-stable: use system libtiff
2018-01-28 14:26:55 +01:00
Sebastian Kemper
53335746c4 freeswitch-stable: use system libtiff
The included libtiff is dated and has multiple unfixed CVEs. This commit
applies patches from upstream's master branch to use the system libtiff
instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-28 14:19:30 +01:00
Sebastian Kemper
b1d2302fcc freeswitch-stable: activate verbose build mode
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-28 14:16:17 +01:00
micmac1
ed14ceb7be
Merge pull request #254 from micmac1/fs-1.6.20
freeswitch-stable: bump to 1.6.20
2018-01-27 14:33:31 +01:00
Sebastian Kemper
6749058140 freeswitch-stable: bump to 1.6.20
Upstream seems to have updated their libtool. Instead of running
rebootstrap.sh, set PKG_FIXUP:=autoreconf. Otherwise the build would
fail due to libtool version conflicts.

This is actually nice, because now the build is a bit quicker due to
less autoconf and configure runs.

rebootstrap.sh was primarily used because it worked around some other
issues (e.g. not being able to detect how to convert files to the cross
compiler format, i.e. "func_convert_file_noop"), but that doesn't appear
to be needed anymore, which is nice.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-27 14:24:36 +01:00
Mazi Lo
fec346da37 Fixed to use local python3-package.mk
Signed-off-by: Mazi Lo <openwrt.forum.mazilo@recursor.net>
2018-01-23 08:22:52 -05:00