- patches refreshed
- menuselect is bootstrapped from main bootstrap script now, extra call
removed
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Despite all previous efforts chan-lantiq is not built by the build bots.
Checking the logs of a target build reveals that the chan-lantiq builds are
not even attempted.
During the target builds CONFIG_ALL is not set, meaning no regular package
gets selected. CONFIG_ALL_NONSHARED on the other hand is set. But
chan-lantiq still will not be selected, because it depends on "asterisk",
meaning asterisk needs to be selected first for chan-lantiq to become
available.
This commit changes the asterisk depend to "+asterisk", meaning asterisk
will be selected if chan-lantiq is selected.
This was tested with the SDK. A seed config file was added with the
following:
CONFIG_ALL_NONSHARED=y
Running menuselect showed that now chan-lantiq is selected
automatically. This should fix the problem.
The problem with "+asterisk" is that this breaks the asterisk menus for all
asterisk plugins/utilities that follow chan-lantiq alphabetically. To
address this put the chan-lantiq modules into their own sub menu "Telephony
Lantiq". This is not nice, but the alternative would be to rename the
packages to something like asterisk13-z-chan-lantiq. This would make it
harder to find the packages. Maybe somebody has a better idea in the
future.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
chan-lantiq currently is still not built by the build bots. Split the
package in two, one for Asterisk 13, the other for 15, to avoid a VARIANT
build. Maybe the build bots do not support nonshared VARIANT builds.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Tidy up the flags passed on to FS build system for Perl and Python
modules. Some flags seem a bit too random to include - this commit
removes them.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Use explicit ident string ("siproxd") instead of NULL, as the latter is
not guaranteed to prepend the program name (e.g. unspecified in POSIX),
and may result in syslog messages identified only by PID.
Use consistent facility (LOG_DAEMON) across openlog() and syslog() calls.
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Explain default configuration options and potential firewall settings.
Provide examples of using documented siproxd configuration directives.
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Switch to using callback functions for UCI config processing, and remove
the unnecessary scan_interfaces() call together with related code.
Instead of explicitly handling every possible siproxd config option, use
callbacks to deal with those defined in the UCI config file, and directly
handle only selected options with desired default values. This shrinks
the init code by ~3.5 KB and simplifies updating to future siproxd
versions with new options.
(Note: this change exposed some long-standing, broken aspects of UCI
callback handling, fixed in https://github.com/openwrt/openwrt/pull/805.)
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
- The main package does not actually depend on libpopt. Only the utility
smsq does. This commit reflects that in the dependencies.
- libxslt is only used if generating the XML documentation, which this
package does not use. So remove the bogus dependency.
- app-sms does not depend on libpopt either. It has another dependency
on libstdcpp, which is already covered by the main package. This removes
both dependencies.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- The main package does not actually depend on libpopt. Only the utility
smsq does. This commit reflects that in the dependencies.
- libxslt is only used if generating the XML documentation, which this
package does not use. So remove the bogus dependency.
- app-sms does not depend on libpopt either. It has another dependency
on libstdcpp, which is already covered by the main package. This removes
both dependencies.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently libstdc++ is hardcoded. Change that and use whatever standard
C++ lib has preference.
Note: Two modules, event_zmq and v8, do not compile against libuClibc++.
For them to be available libstdcpp needs to have preference.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The module is never attempted to build in the regular buildbot package
cycle. Stick back the nonshared flag to get at least some log during
the target build cycle.
This also updates the dependency on kmod-ltq-vmmc to be selective (+).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The module list is necessary, unfortunately. But having working
PKG_CONFIG_DEPENDS is nice and the list rarely needs updating.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The module and util lists are necessary, unfortunately. But having
working PKG_CONFIG_DEPENDS is nice and the lists rarely need updating.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove the hack. Instead just call make with .lastclean and afterward
make menuselect again. If .lastclean was not removed by menuselect this
will not do anything, which is nice.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The module and util lists are necessary, unfortunately. But having
working PKG_CONFIG_DEPENDS is nice and the lists rarely need updating.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove the hack. Instead just call make with .lastclean and afterward
make menuselect again. If .lastclean was not removed by menuselect this
will not do anything, which is nice.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Previous revert only works when libstdcpp is the default C++ lib. To
make the compile work in all scenarios LIBS needs to be defined and
MAKE_FLAGS are required instead of MAKE_VARS, otherwise the included
variables are overridden.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This reverts commit b8b9818a13.
In hindsight I have to admit I did not correctly understand the
implications of the uclibc++.mk include.
The include allows a package to follow the user's choice regarding which
C++ library should be the standard. Linking against uClibc++ instead of
libstd++ is not a problem when running musl (which is what I had
incorrectly assumed), as both C++ libs are separate packages. And
uClibc++ is a lot smaller than libstd++, which is probably why it is
even the default C++ lib on OpenWrt currently.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This reverts commit 6857bc21eb.
In hindsight I have to admit I did not correctly understand the
implications of the uclibc++.mk include.
The include allows a package to follow the user's choice regarding which
C++ library should be the standard. Linking against uClibc++ instead of
libstd++ is not a problem when running musl (which is what I had
incorrectly assumed), as both C++ libs are separate packages. And
uClibc++ is a lot smaller than libstd++, which is probably why it is
even the default C++ lib on OpenWrt currently.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently there are two simple patches for libvpx. This commit puts the
second patch into the first.
Also added:
- CPPFLAGS
- a flag to address CVE-2017-0641
- comments
A tiff patch got refreshed due to the above.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently the routine that sets up the modules.conf file resides in
Build/Prepare.
When PKG_CONFIG_DEPENDS causes a reconfiguration, Build/Prepare is not
triggered. So if another module gets selected in menuconfig, this module
would not be added to modules.conf, meaning the rebuild would fail.
Add the routine to Build/Compile to address this.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Some source files need to be copied into PKG_BUILD_DIR. This is
currently done in Build/Prepare.
When PKG_CONFIG_DEPENDS causes a reconfiguration, Build/Prepare is not
triggered again, meaning needed source files would not be copied.
Move these lines to Build/Compile to address this.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Fixes:
AST-2018-004
AST-2018-005
AST-2018-006
- Remove res_pjsip_transport_management.so as it got moved into
res_pjsip's core as per AST-2018-003.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Fixes:
AST-2018-004
AST-2018-005
- Remove res_pjsip_transport_management.so as it got moved into
res_pjsip's core as per AST-2018-003.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Use $(INSTALL_BIN) as the modules are installed by siproxd as
executables. Remove the wildcards from this line as they're not needed.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove LIBLTDL from the Makefile as well as a patch related to LTDL.
Both have in common that they accomplish absolutely nothing.
Also explicitly disable the use of the internal libltdl.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Use the default Build/Compile. Use MAKE_VARS to set up the variables
that are used by pcapsipdump's Makefile.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The include injects a lib depend on libuClibc++.so.0 into the package,
even on musl. Remove it and replace the depend with libstcpp instead.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Yate is the only package in OpenWrt which manually enables RTTI
(run-time type information). There's no explanation in the Makefile as
to why that would be needed or advisable. Remove it.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With this include libuClibc++.so.0 gets added as a lib depend, even on
musl. readelf shows:
Dynamic section at offset 0x10ea60 contains 23 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libuClibc++.so.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x000000000000000e (SONAME) Library soname: [libyate.so.6.0.0]
Remove the include from the Makefile and add a depend on libstdcpp
instead.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This reverts commit 4cc2afdcdc which
disabled FORTIFY_SOURCE by removing OpenWrt's CPPFLAGS from the built.
Instead PKG_FORTIFY_SOURCE:=0 is defined, which is the proper way to do
it.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
rtpproxy doesn't use OpenWrt's CPPFLAGS (i.e. used for including
fortify-source headers). Add them to CFLAGS.
Run autoreconf. It's usually a good idea.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Version bump
- Refresh debug-disable patch
- Add patch to add missing includes to fix:
rtpp_record.c: In function 'rtpp_record_open':
rtpp_record.c:228:62: error: 'DEFFILEMODE' undeclared (first use in this function)
rrc->fd = open(rrc->spath, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
^
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- The libraries and the Berkeley DB recovery utility are currently in
Libraries/Telephony and Utilities/Telephony. That makes little sense
as the are not general purpose libraries/utilities, hence it is better
to move them to where Kamailio 5 sits in menuconfig.
- Rename them by adding prefixes "lib" and "util" to their name.
- Update their titles a bit.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The recently added mod-db-berkeley comes with a companion utility.
Package kambdb_recover so it becomes available.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit moves libkamailio-ims & libtrie into their own packages to
keep the main package small.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
kamailio comes with internal libraries. Some are not built when only the
standard group of modules is compiled (i.e. no modules selected in
menuconfig).
The problem is that there is no way to rely on specific internal
libraries being available in the main kamailio package.
To fix this this add some modules (if they are not already selected)
that will kick of the build of the internal libraries in any case.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The INSTALL file from kamailio suggests to make the target "cfg" first.
All settinggs will then be reused when make is called again.
This has the side effect that "$(FPIC)" can be dropped from CFLAGS as
the build system adds the flags automatically now.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
When not specifying "run_target" the kamailio build system assumes
$(DESTDIR)/var/run/kamailio to be the run directory on the target
device. Add the variable to address this.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The kamailio build system provides an RPATH "///usr/lib/kamailio/" when
linking. OpenWrt's rstrip.sh inspects this RPATH and drops it. Now the
modules cannot find the needed libraries. Fix this by specifying a path
that rstrip.sh accepts.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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>
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>
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>
- 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>
- 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>
- 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>
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>
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>
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>
Currently three copies of every library are installed. Save space by
installing symbolic links instead.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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>
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>
- 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>
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>
- 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>
- 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>
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>
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>
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>
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>
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>
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>
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>
- use upstream release tarball instead of git checkout
- update to recently released version 1.4.5
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The source does not change, but reflect the real version (2.2.1) in
PKG_VERSION. Also move from gz to xz to shave off a few Bytes.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This was suggested in PR #241 by @commodo. Python maintainers moved the
.mk files and also want to get rid of the include_mk construct.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Remove 003-disable-ast-xml-docs.patch, it doesn't apply anymore.
Instead change --enable-xmldoc into --disable-xmldoc in the Makefile.
- Refresh patches.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Remove 003-disable-ast-xml-docs.patch, it doesn't apply anymore.
Instead change --enable-xmldoc into --disable-xmldoc in the Makefile.
- Remove 055-ASTERISK-24517.patch again due to multiple hunk failures.
- Refresh patches.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit adds mod_freetdm (glue between FreeSWITCH and FreeTDM) and
the following FreeTDM modules:
- ftmod_analog
- ftmod_analog_em
- ftmod_libpri
- ftmod_pritap
- ftmod_skel
- ftmod_zt
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The OpenWrt telephony feed already has DAHDI support. This commit
enables FreeTDM so FreeSWITCH can make use of DAHDI via libpri.
This does not change the existing FreeSWITCH packages as FreeTDM is a
separate library in the FreeSWITCH distribution, hence no revision bump.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
uclibc doesn't include iconv. This commit adds a dependency to
libiconv-full when building against uclibc. iconv can be used by the
included apr and is a hard dependency of mod_gsmopen.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- 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>
- add procd init script
- script starts the daemon as user "restund" instead of root
- add /etc/default/restund
- declare /etc/init.d/restund a configuration file
- prevent autostart after upgrade by using ENABLE_RESTUND variable in
/etc/default/restund
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- 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>
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>
The current approach (creating a blocker file) is clumsy. Use a variable
in /etc/default/freeswitch instead.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Add some dependencies to select modules. Dependencies confirmed by
menuselect.
Also fix description of res_monitor.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Add some dependencies to select modules. Dependencies confirmed by
menuselect.
Also fix description of res_monitor.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove the possibility to prevent the dependency on libedit. freeswitch
behaves very quirky without it.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Use "-nc -nf" always. When started by procd freeswitch detects the
console to be orphaned and disables it. So disable the interactive
console but force freeswitch to not fork into background.
- Improve readability of command parameters.
- Minor changes.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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>
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>
On the buildbots (and locally, too) the x86 builds currently fail. It's
visible that the Asterisk build system attempts to build menuselect a
second time, which fails because it follows the standard recipes in its
Makefiles. The first build of menuselect on the other hand only works
because the OpenWrt package sets up the build properly.
The second build attempt happens because the menuselect CFLAGS category
is setup to delete a stamp file when anything in it changes. On x86
-march=native is available, so the OpenWrt package disables that via
menuselect, hence this item in the category is changed and the stamp
file automatically removed. The missing stamp file triggers a rebuild of
menuselect (which is not required for OpenWrt's intents and purposes).
Another item in the CFLAGS category with which the package can have the
same issue is LOW_MEMORY, but that is not enabled (changed) by default.
Work around this problem by recreating the stamp file after the
menuselect calls.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
On the buildbots (and locally, too) the x86 builds currently fail. It's
visible that the Asterisk build system attempts to build menuselect a
second time, which fails because it follows the standard recipes in its
Makefiles. The first build of menuselect on the other hand only works
because the OpenWrt package sets up the build properly.
The second build attempt happens because the menuselect CFLAGS category
is setup to delete a stamp file when anything in it changes. On x86
-march=native is available, so the OpenWrt package disables that via
menuselect, hence this item in the category is changed and the stamp
file automatically removed. The missing stamp file triggers a rebuild of
menuselect (which is not required for OpenWrt's intents and purposes).
Another item in the CFLAGS category with which the package can have the
same issue is LOW_MEMORY, but that is not enabled (changed) by default.
Work around this problem by recreating the stamp file after the
menuselect calls.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently the menuselect calls, for each category or item, step into a
directory and call menuselect once. So if all packages are build
menuselect will be called hundreds of times and as many directory
changes will be done.
Instead step into the directory only once, then generate the argument
string by iteratively adding to it and then call menuselect once. The
speedup is big.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently the menuselect calls, for each category or item, step into a
directory and call menuselect once. So if all packages are build
menuselect will be called hundreds of times and as many directory
changes will be done.
Instead step into the directory only once, then generate the argument
string by iteratively adding to it and then call menuselect once. The
speedup is big.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The way CONFIGURE_ARGS are done for srtp and pjproect does not take into
account that more than one package depends on them. This can result in
build failures. So add ifeqs to test properly if --with or --without is
required.
This commit also adds CONFIGURE_ARGS checks for:
alsa (asound)
portaudio
speex
speexdsp
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The way CONFIGURE_ARGS are done for srtp and pjproect does not take into
account that more than one package depends on them. This can result in
build failures. So add ifeqs to test properly if --with or --without is
required.
This commit also adds CONFIGURE_ARGS checks for:
alsa (asound)
portaudio
speex
speexdsp
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With libcap support Asterisk is able to set the TOS bits even when
dropping its privileges to a non-root user.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With libcap support Asterisk is able to set the TOS bits even when
dropping its privileges to a non-root user.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
@kochstefan got the module to work on Asterisk 15. Update the Makefile
and include the new variant.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The hack does not work on the buildbots. In the SDK the other packages'
Makefiles and patch directories aren't available, hence the hack fails.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This adds a mechanism that disables all modules by default and then
enables only the modules needed for the packages selected, resulting in
less build time.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This adds a mechanism that disables all modules by default and then
enables only the modules needed for the packages selected, resulting in
less build time.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
@kochstefan pointed out that asterisk 15 doesn't load any modules. It
turned out that this happens because of patch that was dropped. Add the
patch again.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- remove some whitespaces
- install only the configuration example from the source instead of the
locally kept files (which are probably outdated anyway)
- add a comment explaining the iostream hack
- use proper install routine instead of "$(CP)"
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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>
Remove unneeded variables, whitespaces and trailing slashes, use
specific INSTALL directive instead of "$(CP)".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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>
Remove unneeded variables, dependencies, whitespaces and trailing
slashes, use specific INSTALL directive instead of "$(CP)".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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>
- bump to 1.4.2 (includes Asterisk 15 support)
- clean up the Makefile (whitespaces, remove some leftover defines that
are no longer needed etc.)
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Update to latest commit to get support for Asterisk 15
- Upstream renamed the project from chan-sccp-b to chan-sccp. This
commit updates the OpenWrt Makefile accordingly.
- Move the directory from chan-sccp-b to asterisk-chan-sccp (follow the
naming of the other channel drivers' directories).
- OpenWrt Asterisk13 is mistaken for Asterisk15 because it has the
iostream patch applied, fix this with workaround in autoconf script.
- Update upstream URL to the github page.
- Update description of the package.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit unpacks the sources of lib_ifxos, drv_tapi and drv_vmmc,
patches them and sets up their header files for the compiler to use when
building chan-lantiq.
The dependency on kmod-ltq-vmmc is dropped so that the package can be
built by the buildbots. Instead, a dependency on mips is added so that
the buildbots will only build the package for the ARCH that Lantiq
actually runs on.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Instead of using local copies pull the source from github. The source
version is selected via CHAN_LANTIQ_VERSION, so there can be a different
version for each VARIANT.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This adds support for the following calendars:
- CalDAV
- MS Exchange Web Service
- MS Exchange
- iCalendar
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This adds support for the following calendars:
- CalDAV
- MS Exchange Web Service
- MS Exchange
- iCalendar
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With the recently updated libsrtp2 asterisk 15 compiles fine, so it
doesn't need to be forcefully prevented anymore from linking against it.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With the recently updated libsrtp2 asterisk 13 compiles fine, so it
doesn't need to be forcefully prevented anymore from linking against it.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The previously conceived hack - to make the buildbots actually build
this package during the target phase - does not work. This patch removes
the hack. This includes removing the lines from the asterisk Makefiles
that tar up the asterisk headers.
The upside of removing the hack is that the package name can be reverted
to what it was before, so it can be found in the same place like all the
other asterisk modules, i.e. below its asterisk version.
Another upside is that the Makefile does not pretend to solve the
problem anymore. Issue #193 is still open for the same. Maybe some day
somebody can figure out how to resolve the problem properly.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Several method signatures have changed in bcg729 1.0.1
and higher. This issue was already resolved in upstream.
In the current development branch, there is no compilable
version. Due to those changes, I have disabled linking
against bcg729 since we have bcg729 at version 1.0.2.
By disabling bcg729 the internal g729 rtpproxy API
will be used.
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
I introduce asterisk 15.x as a replacement for asterisk 11.x. Currently
without support for chan-lantiq and sccp-b. Those features are going to
be added soon after this introduction.
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
Asterisk-11.x has been marked as obsolete by upstream, thus we
cannot provide support for this version in telephony repository.
Asterisk at version 11.x is no longer with us, however its successor
is going to be in the repository for a quite a long time. Please use
13.x or newer version.
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
When building using the SDK the $(SOURCE) variable is set differently,
resulting in files not being found. Not using the variable and using
"./" instead works fine.
This fixes issue #190. Thanks to @Bongo79 for reporting and providing
the fix.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Plain git:// doesn't add security. Use https:// instead. See
https://gist.github.com/grawity/4392747.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Cosmetic: change version from 1.0 to git checkout date.
- Remove dependency on asterisk, as otherwise the package won't be
built by the build bots.
- Without asterisk in the staging directory the asterisk headers are
now taken from an archive in $(DL_DIR), which is stored there by the
asterisk package.
- The naming of the package needs to be changed, as without the
dependency on asterisk it would otherwise mess with asterisk's
menuconfig layout.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Store asterisk headers in $(DL_DIR) so chan-lantiq can access them
during the target specific build phase. The headers are tarred up for
"mips_24kc" only because that is currently the only used arch for all
chan-lantiq targets.
Store one archive for each combination of asterisk version (e.g. 13) and
branch (using $(VERSION_NUMBER)). The latter makes sure that a release
build doesn't overwrite the header archive of a master snapshot build
and vice vera.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently chan-lantiq doesn't build on the build bots and users end up
having to build it themselves. The reason for this was explained by
Mathias Kresin here:
http://lists.infradead.org/pipermail/lede-dev/2017-September/008886.html.
To fix this put chan-lantiq into its own package and set
PKG_FLAGS:=nonshared. The new package uses variants already, so it is
easily extendable in the future.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Sync module to master.
- Drop big endian patch as it was included upstream.
- This fixes endian issue reported at
https://github.com/wdoekes/asterisk-chan-dongle/issues/44.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This adds ASTERISK-24517.patch from alpine linux. Without the patch
there are problems with the tcp/tls wrapper when running on a musl
toolchain. This is visible when toying with AMI:
LEDE*CLI> !nc localhost 5038
[Sep 10 12:13:25] WARNING[10315]: tcptls.c:684 handle_tcptls_connection: FILE * open failed!
This fixes issue #185 for asterisk 13 in trunk. The patch cannot be
applied to asterisk 11.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Asterisk 11 cannot deal with a unicode-enabled libedit. Input is not
possible anymore. Use the internal copy. Asterisk 13 works fine with the
external libedit.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
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.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Don't add extra TARGET_LDFLAGS for asterisk13-pbx-lua. It is not
needed anymore.
- Stop setting -Wl,-rpath-link in LDFLAGS. There seems to be no point to
do that (anymore).
- Stop calling specific make targets like version.h; make handles the
build properly without it.
- Add AST_FORTIFY_SOURCE to MAKE_FLAGS (seen in Debian rules file,
prevents asterisk's build system to mess with OpenWrt/LEDE flags).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Remove some unneeded parentheses.
- Use CONFIGURE_VARS instead of SITE_VARS.
- Clean up user.mak input, add NDEBUG=1 to avoid debug asserts.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- 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>
uclibc doesn't include iconv, so we need to use libiconv-full. This
fixes the ARC builds as they still default to uclibc.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
uclibc doesn't include iconv, so we need to use libiconv-full. This
fixes the ARC builds as they still default to uclibc.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Add new module. Iconv is available in the toolchain, so it doesn't cost
anything. Don't add it when uclibc is used, because there an external
libiconv would be needed.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libedit now includes a pkgconfig file, meaning asterisk can detect it.
So use the system libedit instead having asterisk include an internal
copy.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Make the Makefile use BUILD_VARIANT so the package can be built for
different Asterisk versions. This is also the reason why the folder is
renamed from asterisk-11.x-chan-dongle to asterisk-chan-dongle.
- Change source URI from upstream to the fork of wdoekes. Upstream
doesn't update the repo anymore, wdoekes does.
- Remove dep on libiconv-full, make the package use toolchain's iconv
(compile-tested with musl).
- Drop patches that are already upstream.
- Update flags.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Add missing modules to curl and odbc packages. This fixes issue #181.
- Add back pbx-lua, which apparently was dropped earlier.
- Revision bump.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Don't add extra TARGET_LDFLAGS for asterisk13-pbx-lua. It is not
needed anymore (apart from that the module isn't available currently,
see next commit).
- Stop setting -Wl,-rpath-link in LDFLAGS. There seems to be no point to
do that (anymore).
- Stop calling specific make targets like version.h; make handles the
build properly without it.
- Use the default compile routine instead of the custom one.
- Add AST_FORTIFY_SOURCE to MAKE_FLAGS (seen in Debian rules file,
prevents asterisk's build system to mess with OpenWrt/LEDE flags).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- 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>