Commit graph

62 commits

Author SHA1 Message Date
Eneas U de Queiroz
d1d08eae09
baresip: fix parallel build
Include an upstream patch to fix random parallel build failures, such
as:

  CC [M]  build-arm/modules/ctrl_dbus/ctrl_dbus.o
modules/ctrl_dbus/ctrl_dbus.c:69:10: fatal error: baresipbus.h: No such
file or directory
   69 | #include "baresipbus.h"
      |          ^~~~~~~~~~~~~~

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-02-10 18:21:13 -03:00
Sebastian Kemper
b69ae7b934 baresip: use return in init script
"start_service()" is a function, hence "return" should be used instead
of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 21:11:08 +01:00
Sebastian Kemper
4492cc2b83 baresip: only build gst with AUDIO_SUPPORT enabled
Most gstreamer packages aren't build when the target does not have
AUDIO_SUPPORT. This can be seen with realtek target (4kec).

This commit makes the gst plugins depend on AUDIO_SUPPORT, because
otherwise the build dies with this error:

Package baresip-mod-gst-video is missing dependencies for the following libraries:
libgstapp-1.0.so.0

Note: compiling baresip on a target without AUDIO_SUPPORT may be
questionable anyway.

Close #730

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-02-13 18:54:17 +01:00
Josef Schlehofer
edd47e20a8
baresip: fix compilation with NLS
Fixes issue:

/master/build/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/11.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: cannot find -lintl
  LD [M]  speex_pp.so
  LD [M]  stdio.so
collect2: error: ld returned 1 exit status
  LD [M]  syslog.so
make[3]: *** [mk/mod.mk:41: gst.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/master/build/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/baresip-1.1.0'

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-12-15 13:38:40 +01:00
Sebastian Kemper
8e687b90b7 baresip: drop 002-fix-rem-include.patch
Setting LIBREM_PATH allows dropping the patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-08 16:22:31 +01:00
Sebastian Kemper
3dc1f61329 baresip: bump to 1.1.0
- bump to version 1.1.0
- change to use AUTORELEASE
- drop rtcpsummary from baresip-mods as it is now part of the default
  modules
- update BARESIP_MOD_OPTIONS to allow for defining multiple variables
  per module (the new module ctrl-dbus requires both HAVE_GLIB and
  USE_DBUS)
- add new modules:
  - aac
  - amr (openamr still missing, but maybe amr passthrough becomes
    possible)
  - ausine
  - ctrl_dbus
  - ebuacip
  - gst
  - gst_video
  - httpreq
  - l16
  - mixausrc
  - mqtt
  - multicast
  - opus_multistream
  - serreg
  - snapshot
  - speex_pp
  - syslog
  - vidinfo
-updated 002-fix-rem-include.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-07 00:27:35 +01:00
Sebastian Kemper
db67f9b405 baresip: allow avcodec build by default
ffmpeg hasn't been failing for a while now it seems. And on the forum a
topic was raised regarding the unavailability of the video modules (see
[1]).

[1] https://forum.openwrt.org/t/cant-download-baresip-mod-avcodec-and-baresip-mod-avformat-no-video-with-v4l2-codec-in-baresip-to-baresip-video-call/101037

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-31 11:49:03 +02:00
Sebastian Kemper
4da7d848df baresip: use FILE_MODES instead of postinst
We can now set permissions directly thanks to OpenWrt having added
fakeroot support.. This also changes the permissions of /etc/baresip so
that baresip can write to this directory. For instance it wants to write
the file /etc/baresip/current_contact for which it needs the appropriate
permissions (baresip is started by user baresip).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-04 15:29:01 +02:00
Sebastian Kemper
667774af23 baresip: bump to 1.0.0
- remove 010-openssl-deprecated.patch as upstream seems to have fixed
  the issue
- upstream closed down the server http://www.creytiv.com/ so this
  changes URLs
- dtmfio module removed upstream
- always set DESTDIR so that PREFIX is /usr instead of /usr/local
- update 002-fix-rem-include.patch and remove LIBREM_PATH usage
  altogether as it only adds broken include paths which aren't useful in
  the end anyway

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 10:51:29 +02:00
Rosen Penev
6f252c0ba2
baresip: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-05 14:32:25 -07:00
Jiri Slachta
fc68138d42 baresip: add VP8 and VP9 module
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-10-24 07:06:15 +02:00
Sebastian Kemper
bd067eba35 baresip: bump to 0.6.4
- adds "PKG_BUILD_PARALLEL:=1" for parallel builds
- refreshes patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-13 19:03:07 +02:00
Sebastian Kemper
5ecd8b43a5 baresip: fix recursive dependency
Since OpenWrt commit e82a4d9cfb ("config: regenerate *_shipped sources")
a few recursive dependencies have been discovered that were not visible
before.

$ make menuconfig
tmp/.config-package.in:103098:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:103098: symbol PACKAGE_baresip-mod-pulse depends on PACKAGE_baresip-mod-pulse
tmp/.config-package.in:121863:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:121863: symbol PACKAGE_pulseaudio-profiles depends on PACKAGE_pulseaudio-profiles
tmp/.config-package.in:121878:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:121878: symbol PACKAGE_pulseaudio-tools depends on PACKAGE_pulseaudio-tools

The recursive dependencies were reported at [1] and [2].

This commit addresses the recursive dependency of baresip-mod-pulse. The
new dependency string may look a bit peculiar, but it works and when
specified like this pulseaudio (when selected) doesn't get compiled
automatically when the intention is only to build baresip with mod-pulse
disabled (which in general is why we have the "patsubst" in the module
builder - but this is only triggered when the dependency has a leading
"+").

[1] https://github.com/openwrt/packages/issues/9300
[2] https://forum.openwrt.org/t/make-menuconfig-errors-this-day/38673/5

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-26 22:16:10 +02:00
Sebastian Kemper
df294447b1 baresip: update to 0.6.2
- echo module is now built by default
- natbd, v4l, x264 don't exist anymore

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:28:30 +02:00
Sebastian Kemper
5c29fde85c baresip: update default config
This adds two (three, really) sed scripts to update the default
configuration. All example accounts are getting disabled/commented. And
the module_path is set to the actual path.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:24:11 +02:00
Sebastian Kemper
a878514513 baresip: amend file permissions
The files in /usr/share/baresip are all read-only anyway, so
INSTALL_DATA can be used.

Use it as well for the included (default) modules, otherwise they'll
have different permissions than the extra modules.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:21:39 +02:00
Sebastian Kemper
c6509afd2b baresip: rely on procd for shutdown
No need to stop baresip manually. Just let procd handle it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:18:56 +02:00
Sebastian Kemper
0eb7795080 baresip: do not disable on upgrade
It is not a nice user experience when a package changes configuration
files during an upgrade. Remove this from the postinstall routine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:17:38 +02:00
Sebastian Kemper
f45be8a154 baresip: disable ffmpeg support on i386
The ffmpeg full variant does not compile on i386_pentium currently.
Disable ffmpeg support on i386 to prevent breakage on the buildbots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:15:21 +02:00
Sebastian Kemper
bfff639417 baresip: update to 0.6.0
Drops speex modules (removed upstream). Adds new modules b2bua, echo and
rtcpsummary.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:17:58 +01:00
Sebastian Kemper
3eeb450740 baresip: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:17:02 +01:00
Sebastian Kemper
a442df04df baresip: remove depend on libx264
Following up the discussion in pull request #388 this commit removes the
depend on libx264 and prevents baresip from linking to libx264.

baresip can still use a H.264 encoder through ffmpeg, which is the
preferred way anyway.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-11 11:18:48 +01:00
Sebastian Kemper
ff40589317 baresip: bump to 0.5.9
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 14:03:16 +02:00
Sebastian Kemper
37f897c8c0 baresip: remove underscores from package names
Underscores should not be used in package base names as they're used as
semantic separators by opkg.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-09 23:30:51 +02:00
Sebastian Kemper
66d0d185df baresip: fix mod-avformat DEPENDS
mod-avformat is only built when mod-avcodec is selected. baresip sets it
up like that in mk/modules.mk:

  ifneq ($(USE_AVCODEC),)
  MODULES   += avcodec
  ifneq ($(USE_AVFORMAT),)
  MODULES   += avformat
  endif
  endif

This commit updates the mod-avformat DEPENDS accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-24 12:53:49 +01:00
Sebastian Kemper
40e1a78030 baresip: update baresip-mod-pulse depend
There are two pulseaudio packages, pulseaudio-daemon and
pulseaudio-daemon-avahi. Both provide pulseaudio. Depend on pulseaudio
so the user may choose which one to install.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-18 10:23:16 +01:00
Sebastian Kemper
bd08dc6577 net/baresip: bump to 0.5.8
One new module added: ctrl_tcp (TCP control interface using JSON
payload)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-16 21:58:15 +01:00
Sebastian Kemper
8860618e41 baresip: add procd init script
- add procd init script
  - script starts the daemon as user "baresip" instead of root
  - add /etc/default/baresip
  - add example configuration into /etc/baresip
  - add conffiles definition
  - prevent autostart after upgrade by using ENABLE_BARESIP variable in
    /etc/default/baresip

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-12-26 15:21:27 +01:00
Sebastian Kemper
4219368092 baresip suite: improve MAKE_FLAGS
- add CROSS_COMPILE and OS to MAKE_FLAGS; this should help when
  compiling on other OSes, e.g. Darwin.
- move RELEASE up (alphabetical sort)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-12-26 14:34:47 +01:00
Sebastian Kemper
1c11a59250 baresip + restund: delete faulty patch
The patch is wrong. It may cause errors of the "illegal instruction" variety.
The libre package fix in commit e40f0ea06f makes
this patch unnecessary anyway. Drop it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-12-26 14:27:01 +01:00
Sebastian Kemper
23b3363a5e baresip: add symbol to prevent FFmpeg dependency by default
Currently baresip often fails to build because the FFmpeg compile was
not successful:

  CC [M]  build-mipsel/modules/avcodec/avcodec.o
modules/avcodec/avcodec.c:9:32: fatal error: libavcodec/avcodec.h: No such file or directory
compilation terminated.

Address this by adding a configuration symbol that prevents the
FFmpeg-depending modules from being selected by default, except on i386
and x86_64.

It is better having baresip packages without these video modules than
not having baresip packages at all.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-12-13 19:37:13 +01:00
Sebastian Kemper
d3a784ca78 baresip: fix build failure on 32bit x86 targets
re and baresip builds for 32bit x86 targets are currently failing:

build-i386/sip/auth.o: In function `sip_auth_encode':
/build/lede-snapshots/i386_pentium/build/sdk/build_dir/target-i386_pentium_musl/re-0.5.6/src/sip/auth.c:279: undefined reference to `__stack_chk_fail_local'

The undefined references occur because there is no linking done to ssp.
Fix this by setting LD to TARGET_CC, so ld is not called directly. This
also means one patch is not needed anymore.

Do the same for rem and restund as they basically all share the same
build system.

Compile-tested for x86, x86_64 and mips.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-12-07 21:32:56 +01:00
Sebastian Kemper
3bf3f51c65 baresip: add missing dependency
The avcodec module needs a depend on libx264.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-28 22:43:13 +01:00
Sebastian Kemper
e2f01e4e76 baresip: build fix
The package currently fails to build because librem headers cannot be
found. For reasons unknown baresip searches in SYSROOT instead of
SYSROOT_ALT for them. Fix this by patching the Makefile.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-26 23:05:20 +01:00
Sebastian Kemper
09aef36d27 baresip: add patch to fix ld call
ld expects '-shared' when called with '--export-dynamic'. Patch the
Makefile accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-26 23:03:17 +01:00
Sebastian Kemper
e753429208 baresip: add modules
Add some more modules to the Makefile.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-26 23:01:26 +01:00
Sebastian Kemper
c0cbf4afc0 baresip: improve module routine and descriptions
- improve routine regarding dependencies
- improve module descriptions

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-26 22:56:40 +01:00
Sebastian Kemper
9974ce1389 baresip: Clean up Makefile
Remove unneeded variables, whitespaces and trailing slashes, use
specific INSTALL directive instead of "$(CP)".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-26 22:45:26 +01:00
Sebastian Kemper
9c4607f493 baresip: Use default Build/Compile routine
Change from custom make call to using the default Build/Compile routine.
This applies the standard memory corruption mitigation methods, e.g.
FORTIFY_SOURCE and RELRO, to the package if they are enabled (default).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-26 22:42:07 +01:00
Jiri Slachta
b0192cf0e3 baresip: update to 0.5.6
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-11-07 20:48:49 +01:00
Jiri Slachta
16eb3e79bc baresip: update to 0.5.5
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-09-12 14:10:43 +02:00
Daniel Engberg
fa00828f67 net/baresip: Update to 0.5.0
Update to 0.5.0
Remove Speex as it's being obsoleted by upstream.
Add Opus to replace Speex

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2017-01-07 06:45:38 -06:00
Jiri Slachta
7a4de7c71d multiple packages: change PKG_MAINTAINER email address
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2016-05-31 20:12:51 +02:00
Alfred E. Heggestad
6e95a9219d upgrade baresip to version 0.4.19 2016-05-20 19:22:00 +02:00
Jiri Slachta
676188043d baresip: add DTMF input/output module
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2016-04-05 10:06:43 +02:00
Jiri Slachta
0d4578a65a baresip: update to 0.4.18
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2016-04-05 09:05:46 +02:00
Jiri Slachta
9f549b1393 [PATCH] baresip: upgrade to 0.4.14
- upgrade baresip to 0.4.14
- uuid module is now part of the core-baresip
- add building of dtmfio module

Signed-off-By: Alfred E. Heggestad <aeh@db.org>
Acked-by: Jiri Slachta <slachta@cesnet.cz>
Tested-by: Jiri Slachta <slachta@cesnet.cz>
2015-08-12 13:56:44 +02:00
Jiri Slachta
bd845fa44b baresip: closing #56, added modules speex-aec, speex-pp, httpd.
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2015-07-22 15:16:46 +02:00
Daniel Golle
04527e08b8 baresip: fix build with musl
alsa-lib needs _GNU_SOURCE to be set for integer types to be defined.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-28 20:46:45 +02:00
Jiri Slachta
0f0a21f63b baresip: Fix avcodec and avformat CFLAGS. This commit fixes #6.
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2015-01-04 14:11:30 +01:00