Commit graph

850 commits

Author SHA1 Message Date
Sebastian Kemper
6369299d9b asterisk13: clean up configure stage
- Remove some unneeded parentheses.
- Remove $(SITE_VARS) as it is not used.
- Remove --without-curl and --with-uuid=... from configure arguments as
  they've been removed from configure.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-19 16:27:03 +02:00
Sebastian Kemper
4cfd2a6f11 asterisk13: change some default file locations
- Set data dir to /usr/share/asterisk and use default locations for
  everything else.
- This is more in line with FHS and fixes issue #38. Database files are
  now written to tmpfs (/var is mounted there). This prevents the
  rootfs from filling up. It also prevents the flash to degrade during
  constant database rewriting.
- As the data dir changes, so does the location of the sound files. This
  commit also takes care of that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-19 16:23:22 +02:00
Sebastian Kemper
630d92a0cf pjpoject: cleanups and fix for COPTS warnings
- Remove some unnecessary trailing slashes plus fix a whitespace.
- Remove flags that do not seem to have a good reason to be there
  (anymore).
- Add sed script to remove $(TARGET_CFLAGS) from pkgconfig file. This
  gets rid of the warnings in asterisk13 about COPTS duplication.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-19 15:48:04 +02:00
Jiri Slachta
c6493b543a Merge pull request #180 from micmac1/master
chan-sccp-b: switch to git version, update patch
2017-08-15 17:28:05 +02:00
Sebastian Kemper
d1ab4dac16 chan-sccp-b: switch to git version, update patch
- As suggested by upstream in issue #167, move from svn to git source.
  The resulting module is less than half the size in comparison.

- Rework (and rename) previous "drop-Og-optimization" patch. The
  previous patch worked fine with -Os in CFLAGS (default). But if numeric
  values are used instead (e.g. -O2) this optimization would be completely
  removed. The new patch prevents that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-14 21:59:39 +02:00
Jiri Slachta
921a560832 Merge pull request #123 from robho/yate_banbrutes_using_iptables_recent
yate-scripts-perl: Add script to block phones which fail to authenticate
2017-08-13 21:26:56 +02:00
Jiri Slachta
2f190f1b2a kamailio-4.x: update to 4.4.6
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-08-13 20:44:16 +02:00
Jiri Slachta
cf7b805fbe kamailio-5.x: introduce new package
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-08-13 20:29:23 +02:00
Daniel Golle
73c3323960 Merge pull request #179 from micmac1/master
asterisk-13.x: fix config file issues and clean up modules
2017-08-13 15:48:18 +02:00
Sebastian Kemper
f29574c551 asterisk-13.x: remove modules from pjsip (cosmetic)
Remove two modules from pjsip. Upstream removed res_pjsip_log_forwarder
and moved res_pjsip_multihomed to res_pjsip.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-13 15:12:28 +02:00
Sebastian Kemper
b9914e6f3f asterisk-13.x: fix config file issues
- The configuration file protection for modules does not work when there
  is more than one configuration file. Currently conffiles is populated
  with a space separated list. But the items need to be separated by
  newlines. With spaces, only the first item gets added to conffiles. The
  remaining items are dropped and not protected. Fix this by replacing
  spaces with newlines. Revision bump because this could lead to
  overwriting files unintentionally.
- Remove a duplicate '/etc/asterisk/modules.conf' from
  Package/asterisk13/conffiles.
- Remove '/etc/asterisk/rtp.conf' from Package/asterisk13/conffiles
  because the file is installed and protected by res-rtp-asterisk.
- Add missing stasis.conf and pjsip_wizard.conf.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-13 15:00:42 +02:00
Jiri Slachta
20b8cbc58d Merge pull request #178 from micmac1/master
sipp: version bump, build fixes
2017-08-10 21:17:28 +02:00
Sebastian Kemper
85d15f25f9 sipp: version bump, build fixes
- bumped to 3.5.1
- removed musl patch because it was upstreamed
- add patch to fix ncurses detection
- fixes issue #125

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-10 20:47:38 +02:00
Jiri Slachta
a5f9875fa7 Merge pull request #177 from micmac1/master
New PR: asterisk + pjproject
2017-08-10 09:32:30 +02:00
Sebastian Kemper
08fd9340ff asterisk-13.x: fix missing symbols issue
- add some pjsip modules that were missing.
- sort pjsip modules alphabetically.
- add a patch from ASTERISK-26518 to fix the unresolved symbol issue.
  The patch is also included in Debian. The patch fixes issue #77 (the
  problem was also mentioned in #88).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 23:08:28 +02:00
Sebastian Kemper
45e0c6a721 pjproject: add config_site.h
Copied from Asterisk, sets some sane values. For instance it enables
IPv6 support.

Also it disables DEBUG. With debug enabled 'pjproject enables "assert"
functions which can cause Asterisk to crash unexpectedly' (quote from
Asterisk wiki). This probably fixes issue #140.

With this config_site.h in place the libsrtp dep can be dropped from
select sub packages.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:52:24 +02:00
Sebastian Kemper
29cb5debb3 pjproject: enable ssl support
Enable SSL support as Asterisk relies on it. Some Asterisk modules
cannot load without it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:48:10 +02:00
Sebastian Kemper
ae177a2f5f pjproject: align with Asterisk requirements, misc improvements
- Make "--disable-floating-point" depend on SOFT_FLOAT
- Remove "--disable-ilbc-coder" as configure no longer recognizes it.
- Align args with the ones used by Asterisk (for their bundled pjproject);
  this includes adding "--disable-resample".
- With libresample removed remove the dep from asterisk13 accordingly.
- Note: the disabled items are _not_ used by Asterisk anyway.
- Drop speex dep as pjproject does not link against it the way it is
  configured.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:45:34 +02:00
Sebastian Kemper
d8469c8750 pjproject: sort configure args, remove duplicates
This commit is only meant to make the following commits easier to follow.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:17:17 +02:00
Sebastian Kemper
a4513b7bd9 asterisk-g72x: fix variant build
Set PKG_BUILD_DIR for each variant. Without it only one variant gets
built and put into both packages. This fixes issue #150.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:11:27 +02:00
Sebastian Kemper
473e3d1246 chan-sccp-b: fix variant build, misc fixes
- Set PKG_BUILD_DIR for each variant. Without it only one variant gets
  built and put into both packages.
- Add libiconv to build deps. Some iconv m4 files are required. Possibly
  fixes issue #121.
- Replace recently added configure args with the ones suggested by upstream
  @dkgroot in issue #167. This again shaves some bytes off the package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-09 22:09:29 +02:00
Jiri Slachta
cc38c50aa4 asterisk-11.x: add missing description to several modules
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-08-08 21:00:31 +02:00
Jiri Slachta
bd466be0d8 asterisk-13.x: add pjproject.conf to res_pjproject module
Add missing config file for res_pjproject module.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-08-08 10:55:06 +02:00
Jiri Slachta
af0bf6040f Merge pull request #175 from micmac1/master
New PR: freeswitch-stable
2017-08-05 20:33:50 +02:00
Sebastian Kemper
7b265d7f00 freeswitch-stable: fix escaping
Fix escaping of dollar sign, otherwise a postinst-pkg script will not be
correct.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-05 14:49:13 +02:00
Sebastian Kemper
4326f5cf1a freeswitch-stable-sounds: remove package
This package is just wasting space on the mirrors. Only very few people
will actually want the sound files on their device. And those few who do
will have no problem downloading the files manually.

Get rid of it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-05 14:24:19 +02:00
Jiri Slachta
9a9c9c43bd asterisk-11.x: bump PKG_RELEASE
Bump PKG_RELEASE due to changes in commit ec6991c01c

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-08-04 08:07:12 +02:00
Jiri Slachta
65d2797e91 asterisk-13.x: bump PKG_RELEASE
Bump PKG_RELEASE due to changes in commit ec6991c01c

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-08-04 08:06:34 +02:00
Jiri Slachta
7937bd315a Merge pull request #174 from micmac1/master
New PR: asterisk segfault and freeswitch
2017-08-04 07:59:20 +02:00
Sebastian Kemper
23e60f5cdf freeswitch-stable: cleanups
- Replace $FS_STABLE_PREFIX_DIR with $FS_STABLE_DATA_DIR. The variable
  is set to /usr/share/freeswitch, so it's not the prefix. Data dir is
  the correct description.

- Remove lots of lines from CONFIGURE_ARGS. All of them duplicates,
  because they're already set by the build system, so we can remove the
  clutter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-03 21:31:17 +02:00
Sebastian Kemper
ecaccf6657 freeswitch-stable-sounds: add "Allison" sound packs
These were recently added by upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-03 21:26:26 +02:00
Sebastian Kemper
ec6991c01c asterisk-11.x and asterisk-13.x: Disable LOW_MEMORY by default
In issue #173 a segmentation fault occuring during a simple SIP call was
reported. Compiling with LOW_MEMORY disabled the reproducible segfault
disappeared.

This commits adds a switch for LOW_MEMORY. Default is off. If anybody
wants to debug the segfault s/he can enable it.

The segfault was reported for Asterisk 11. Disable LOW_MEMORY on
Asterisk 13 anyway, better safe than sorry.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-03 21:16:03 +02:00
Jiri Slachta
6341be04f4 asterisk-13.x: fix module dependencies and add new modules
- add XMPP and motif modules
- remove missing pjproject dependencies and fix them

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-07-29 22:26:38 +02:00
Jiri Slachta
b9e1101518 pjproject: fix Makefile variables
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-07-29 22:24:58 +02:00
Jiri Slachta
42e5f41074 Merge pull request #172 from micmac1/master
New PR: asterisk
2017-07-29 18:14:22 +02:00
Sebastian Kemper
7fc4844b71 libs/pjproject: security revision bump
Add patches provided by Asterisk project for pjproject. This fixes the
following vulnerabilities:

- AST-2017-002: Buffer Overrun in PJSIP transaction layer (CVE-2017-9372)
- AST-2017-003: Crash in PJSIP multi-part body parser

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-29 14:04:00 +02:00
Sebastian Kemper
e1ce116eea net/chan-sccp-b: version bump and fixes
- Bump to revision 6728.
- Remove '-fi' from PKG_FIXUP. Trust in the build system to do the right
  thing.
- Set PKG_INSTALL:=1 so "make install" doesn't need to be called
  manually anymore. This also drops LOW_MEMORY from CFLAGS, which is not
  needed as chan-sccp-b looks into asterisk's headers to find out if
  LOW_MEMORY is enabled or not.
  The build output actually looks much more pleasant afterward.
- Disable chan-sccp-b's optimization which it enables by default. It
  sets -O3 and all that jazz. To make it simply use the OpenWrt/LEDE
  flags optimization needs to be disabled.
- With optimization disabled chan-sccp-b still adds -Og to the end of
  the CFLAGS. Add a small patch to prevent that.
- Disable debug which is enabled by default. This brings down the size
  of the installed binary from 14 MByte (!) to a little over 2 MByte
  (checked on ARM).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-28 22:01:51 +02:00
Sebastian Kemper
0a193b2af4 net/asterisk-13.x: prevent libsrtp2 detection
Asterisk 13 looks for libsrtp2. Unfortunately it also looks for a header
which libsrtp2 does not make public:

res_srtp.c:44:33: fatal error: srtp2/crypto_types.h: No such file or directory
compilation terminated.

This causes the asterisk build to fail. Fix this by disabling libsrtp2
detection in Asterisk 13.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-28 21:51:21 +02:00
Sebastian Kemper
c6e069a488 net/asterisk-11.x and net/asterisk-13.x: disable chan-dahdi for aarch64
dahdi-linux fails to build on aarch64. Disable chan-dahdi for this arch
accordingly, so asterisk can still be built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-28 21:48:44 +02:00
Sebastian Kemper
eead619fb1 net/asterisk-11.x and net/asterisk-13.x: fix LOW_MEMORY, drop patch
LOW_MEMORY can't be enabled by defining it in ASTCFLAGS. This can be
verified in the headers Asterisk installs: LOW_MEMORY actually is not
defined (it would be if LOW_MEMORY was enabled).

LOW_MEMORY can be enabled successfully with menuselect. This commit
makes menuselect usable and calls it to enable LOW_MEMORY.

This commit also disables BUILD_NATIVE with menuselect. So even if
configure detects that -march=native is available, it won't be used.
This means the configure.ac patch that was added previously can be
dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-28 21:45:55 +02:00
Sebastian Kemper
f616ed7c6e net/asterisk-11.x and net/asterisk-13.x: fix menuselect
menuselect often fails on the buildbots:

menuselect/menuselect: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

This doesn't happen on all builds. The assumption is that on the
particular buildbot where there is no error the buildbots own libxml2.so
is usable (it exists and the version is suitable).

To fix this make the linker add an rpath to the menuselect utility,
pointing to the hostpkg lib dir.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-28 21:34:05 +02:00
Sebastian Kemper
5cb478e3af net/asterisk-11.x and net/asterisk-13.x: remove $(SDK) from ifneqs
The variable prevents the ifneqs from working on the buildbots. $(SDK)
is set there, so the ifneqs that test for empty will always be true.

libpq for instance doesn't build on aarch64. So the asterisk pgsql
package has a dependency on @!aarch64. An ifneq is used to disable libpq
detection by the configure script, to prevent the build to fail. But
because of $(SDK) being set the ifneq is always true, so libpq detection
is enabled, causing the build to always fail.

There are only two other packages in the tree that actually use the
$(SDK) variable, so it's fair to assume it's not needed for the asterisk
packages and can just be dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-28 21:30:08 +02:00
Jiri Slachta
c21d41bb00 Merge pull request #171 from micmac1/master
New PR for asterisk
2017-07-25 08:16:30 +02:00
Sebastian Kemper
21f156b49f net/asterisk-11.x and net/asterisk-13.x: remove libpq dep on ARC
For ARC libpq doesn't build, so don't depend on it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-24 23:40:07 +02:00
Sebastian Kemper
db6a13f8a0 net/asterisk-11.x and net/asterisk-13.x: fix menuselect build
- Include host-build.mk, otherwise $HOST_CONFIGURE_ARGS will be empty.
- Remove --with-ncurses=PATH as the PATH is wrong. The ncurses host
  package does not install anything but 'tic'.
- Use $HOSTCC to compile menuselect. This has the added bonus of using
  ccache (if selected).
- Run configure with an unset $CONFIG_SITE so that it doesn't pick a
  cross-compile site-script, e.g. for mips.
- Drop '-lxml2' from $LDFLAGS as the menuselect Makefile will add it
  anyway.
- Move the variables in front of 'make' as they're not arguments.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-24 23:36:46 +02:00
Jiri Slachta
8dce744b5d Merge pull request #164 from guidosarducci/lede-17.01-siproxd-update
siproxd: fixes and version update to 0.8.2
2017-07-24 09:48:54 +02:00
Jiri Slachta
3dc2071592 Merge pull request #170 from micmac1/master
New PR: mostly Asterisk (bumps, fixes, new package too)
2017-07-24 09:47:58 +02:00
Sebastian Kemper
4509429350 net/asterisk-11.x and net/asterisk-13.x: fix ASTCFLAGS/ASTLDFLAGS
The missing backslashes prevented 'make' from picking up
ASTCFLAGS/ASTLDFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-23 19:10:39 +02:00
Sebastian Kemper
3b259d8398 freeswitch-stable: add mod_bcg729
This adds a new Makefile as this module is out-of-tree. The module
dynamically links against bcg729.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-22 16:49:47 +02:00
Sebastian Kemper
7e9c485725 net/asterisk-13.x: bump to 13.17.0
- Version bump to 13.17.0
- Remove makeopts.embed_rules as the target got removed.
- Refresh patches.
- $(STAGING_DIR)/host doesn't work anymore resulting in libxml2 host
  headers not being found. Replace with $(STAGING_DIR_HOSTPGK).
- Prevent Asterisk from adding -march=native when cross-compiling (patch
  for configure.ac).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-22 16:47:26 +02:00