Commit graph

1705 commits

Author SHA1 Message Date
Sebastian Kemper
b67ac87e16 libks: bump to 1.6.0
Use regular releases from now on.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-12 19:30:26 +02:00
Sebastian Kemper
55a6e9f583 freeswitch-stable: bump to 1.10.3
Patches refreshed. Two patches can be dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-12 18:45:54 +02:00
micmac1
7408b6245f
Merge pull request #528 from micmac1/fs-init2
freeswitch-stable: improve init script
2020-05-12 18:40:38 +02:00
micmac1
1929fee28d
Merge pull request #526 from micmac1/rtpengine
rtpengine: new package
2020-05-06 19:09:24 +02:00
Sebastian Kemper
ff67aa6f79 rtpengine: new package
rtpengine is a proxy for RTP traffic. It has lots of capabilities,
including transcoding, in-kernel forwarding and SRTP transport, to name
a few.

Packaging:

  1. regular rtpengine
  2. rtpengine variant without transcoding support (smaller dependency
     tree)
  3. recording daemon
  4. kernel module
  5. iptables module

Simple init scripts (procd) are included, plus a hotplug script for
rtpengine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-04 20:01:01 +02:00
Sebastian Kemper
d3df6110c8 freeswitch-stable: improve init script
This is in response to a posting on oss-security ([1]).

This commit removes the ability to choose a user/group via
/etc/config/freeswitch. This makes the init script simpler. If anybody
wants to play around with the user/group, then it's up to them to fix
the permissions.

The complex awk script is deleted and replaced by two for-loops,
basically. The first loop creates "/var/lib/freeswitch" and
"/var/run/freeswitch" and chowns them to freeswitch, in case they don't
exist already.

The second loop checks if the other directories (either the default ones
or the ones specified by the user) exist. If any is missing it uses "su"
to create that directory as user "freeswitch".

The reasoning behind this is that a) this works for the defaults
(example: "/tmp/freeswitch/db") and b) the user can specify anything
he/she wants in "/etc/config/freeswitch", which could be all kinds of
strange directories. "mkdir" may now fail, as we're not calling it as
root anymore, but we err on the side of caution, as the saying goes.

Calls to "chmod" are eliminated. Instead the desired mode is provided to
"mkdir". The latter applies the mode only to the final directory.
Possible parent directories are created with the regular umask alone.

A dependency on the "su" utility is added to the Makefile.

"local" also gets removed because it is undefined in POSIX.

[1] https://www.openwall.com/lists/oss-security/2020/04/30/1

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-04 19:26:41 +02:00
Jiri Slachta
b2980d1464
Merge pull request #524 from micmac1/master-dahlin
dahdi-linux: add patch to fix 32bit targets
2020-04-29 08:59:57 +02:00
Jiri Slachta
e9a8c36407
Merge pull request #525 from micmac1/master-kam-funroll
kamailio-5.x: remove "-funroll-loops"
2020-04-27 18:43:30 +02:00
Sebastian Kemper
18ab4c3987 kamailio-5.x: remove "-funroll-loops"
Since recent commit 60ea8ff OpenWrt flags are added to CC_EXTRA_OPTS
instead of CFLAGS, allowing upstream flags to pass into our builds.
Upstream passes "-funroll-loops", which increases package sizes
significantly.

Example mips:

kamailio5_5.3.3-1_mips_24kc.ipk: 1019K
kamailio5_5.3.3-2_mips_24kc.ipk: 1,4M

This commit removes "-funroll-loops", reducing the size to previous
level.

kamailio5_5.3.3-2_mips_24kc.ipk: 1021K

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-24 21:09:25 +02:00
Sebastian Kemper
86dd09fcbe dahdi-linux: add patch to fix 32bit targets
On some 32 bit targets dahdi-linux currently fails to build.

Examples:

ERROR: "__divdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__udivdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__moddi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!
ERROR: "__divdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!

or

ERROR: "__aeabi_ldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_uldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_ldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!

Problem was reported to upstream already by third party ([1]). Patch
attached to bug report is not sufficient.

This commit adds a patch from PLD Linux ([2]) to address the build
failures.

[1] https://issues.asterisk.org/jira/browse/DAHLIN-371
[2] https://github.com/pld-linux/dahdi-linux/blob/master/math64.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-24 20:59:31 +02:00
Jiri Slachta
3e8a75a622
Merge pull request #519 from micmac1/master-kam-build-and-py
kamailio-5.x: update build setup and add Python 3 module
2020-04-23 08:28:23 +02:00
Sebastian Kemper
c09085b076 kamailio-5.x: add app_python3
Adds the Python 3 module. Patch is required because otherwise the
module's Makefile tries to get the includes from host python.

The patch also adds "--embed" to the python-config call that discovers
LDFLAGS as otherwise the python lib is not linked into the module.

Patch has been accepted upstream already.

Adding PYTHON3 to MAKE_VARS tells the Makefile which python to use.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-22 18:29:43 +02:00
Sebastian Kemper
60ea8ff676 kamailio-5.x: update build setup
This switches the Makefile away from calling "make" manually to using
OpenWrt default build defines. This way PKG_BUILD_PARALLEL and
PKG_INSTALL can be used.

To achieve this the flags are added to MAKE_FLAGS. The flags are also
tidied up as per example from Alpine Linux. Like this the build is
cleaner, for instance this gets rid of the wrong share directory
("//share/kamailio" instead of "/usr/share/kamailio") and things like
multi-slashes in directory names (ex. "///usr/lib/kamailio/modules").

lib_target was removed after verifying that the correct RPATH
"/usr/lib/kamailio" is still in place without it.

CFLAGS is replaced by CC_EXTRA_OPTS (same is already done for LDFLAGS).
This way upstream source can add flags like "-Wall" to OpenWrt builds.

Extra flags LOCALBASE, SYSBASE and CROSS get removed as they aren't
needed anymore with the "Alpine Linux" flags.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-22 18:29:43 +02:00
Jiri Slachta
16a3e1c7a2
Merge pull request #523 from micmac1/master-ci2
circleci: fetch packages repo
2020-04-22 18:20:51 +02:00
Sebastian Kemper
342575e2a4 circleci: fetch packages repo
Currently CI doesn't work, because the dependencies from the packages
repo are not available.

<snip>
WARNING: No feed for package 'libopenldap' found
WARNING: No feed for package 'libidn2' found
WARNING: No feed for package 'libssh2' found
<snip>

This commit adds the packages repo.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-22 18:08:37 +02:00
Jiri Slachta
70da8a1a88
Merge pull request #522 from micmac1/master-ci
circleci: allow dots in subject line
2020-04-22 13:40:15 +02:00
Sebastian Kemper
dee56d5d27 circleci: allow dots in subject line
We like to use "kamailio-5.x:" and "asterisk-16.x:" in commit message
subject lines. So relax the regex for it to allow the dots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-22 13:06:24 +02:00
Jiri Slachta
bf49bc560b
Merge pull request #507 from BKPepe/circle_ci
build: Add CircleCI
2020-04-13 13:05:53 +02:00
Jiri Slachta
bbd6f65217
Merge pull request #518 from jslachta/kamailio-5.3.3
kamailio-5.x: update to 5.3.3
2020-04-09 18:06:47 +02:00
Jiri Slachta
3c7e4c382e kamailio-5.x: update to 5.3.3
This commit updates kamailio to version 5.3.3.

Within this commit the python support is removed, since
the python 2.x support is removed and app-python3 is not
ready yet.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2020-04-09 18:00:49 +02:00
micmac1
1e6c85677f
Merge pull request #514 from micmac1/fs-rem-python
freeswitch-stable: remove python support
2020-04-04 11:35:00 +02:00
Sebastian Kemper
0c9dbc341c freeswitch-stable: remove python support
Following the removal of python2 from packages this commit removes
python support from this package. FreeSWITCH at present does not support
python3.

120-fix-copts.patch is refreshed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-04 11:27:55 +02:00
micmac1
06ec029b2f
Merge pull request #511 from hnyman/frsw-opencv
Thanks!
2020-03-21 21:08:17 +01:00
Hannu Nyman
0dfeff844c freeswitch-stable: remove opencv module
Remove the opencv module from freeswitch-stable. The module
has been marked BROKEN already for some time, and currently
it causes a dependency error, as the opencv package itself
was removed from the packages feed.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-03-21 21:51:19 +02:00
micmac1
c5d27d5484
Merge pull request #510 from micmac1/fs-revert-pg-commit
freeswitch-stable: revert libpq pc file workaround
2020-03-21 10:16:25 +01:00
Sebastian Kemper
9e16abbcde freeswitch-stable: revert libpq pc file workaround
The libpq pkg-config file has been fixed in packages, so we can revert
the commit that introduced the workaround.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-03-21 09:44:51 +01:00
Daniel Golle
e684654b38
Merge pull request #509 from micmac1/dahdi-linux-5.4
dahdi-linux: bump to version 3.1.0
2020-03-19 18:25:25 +00:00
Sebastian Kemper
416d1f6c24 dahdi-linux: bump to version 3.1.0
This commit provides compatibility with kernel 5.4.

Except for the version bump this commit updates the HFC-S PCI driver to
not rely on the macro "dahdi_pci_module" anymore, because it has been
removed upstream in commit 4af6f69.

Also, a patch is added that makes the include of "<linux/pci-aspm.h>"
conditional on the kernel version, because starting with kernel 5.4 this
header has been removed and its contents merged into "pci.h".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-03-19 18:39:22 +01:00
Josef Schlehofer
019232528e
build: Add CircleCI
This adds CircleCI as Continous Integration. It will provide compile
test against ath79 target and together with it, it checks if the commit
starts with the package name and it checks if the Signed-off-by matches
the author of the commit.

For example, it can avoid mistakes with broken patches, mismatched changes.

This comes from packages feed and it is being used there and also in
LuCI repository.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-03-08 00:32:56 +01:00
micmac1
2d17fc0295
Merge pull request #504 from micmac1/pg-fs
freeswitch-stable: use pg_config for now
2020-03-07 10:01:53 +01:00
Sebastian Kemper
9cff8aecfd freeswitch-stable: use pg_config for now
libpq's pkg-config file is currently broken. Use pg_config instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-03-07 09:58:26 +01:00
Jiri Slachta
59ecaa5d05
Merge pull request #503 from micmac1/ast-aslr-pie
asterisk-16.x: fix compile with PKG_ASLR_PIE
2020-01-12 00:01:24 +01:00
Sebastian Kemper
357949967f asterisk-16.x: fix compile with PKG_ASLR_PIE
CFLAGS aren't used when compiling objects for check_expr2. This commits
adds the flags, which fixes the compilation when PKG_ASLR_PIE is
enabled. Note: The STANDALONE define is removed because it is already
defined in _ASTCFLAGS.

Fixes #502

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-11 23:44:40 +01:00
micmac1
8f1b6518db
Merge pull request #500 from micmac1/fs-1102
freeswitch-stable: bump to 1.10.2
2020-01-01 15:23:34 +01:00
Sebastian Kemper
e2bd729545 freeswitch-stable: bump to 1.10.2
Patches refreshed, two patches removed (included upstream), fixed one
typo (will send pull request to upstream if nobody did so yet).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-01 15:11:22 +01:00
micmac1
fd39e991bb
Merge pull request #497 from micmac1/fix-weak-md
freeswitch-stable: fix weak md in gentls_cert
2019-12-20 10:09:34 +01:00
Sebastian Kemper
b372ae6847 freeswitch-stable: fix weak md in gentls_cert
gentls_cert generates certificates that are deemed too weak by Debian's
OpenSSL (on Buster and up). This patch upgrades the message digest to
SHA256 to address this.

See patch for details. Sent upstream ([1]).

[1] https://github.com/signalwire/freeswitch/pull/126

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-20 09:38:06 +01:00
micmac1
e076a61dcc
Merge pull request #468 from micmac1/sigwa
freeswitch-stable: add mod_signalwire and dependencies
2019-12-17 18:56:19 +01:00
Sebastian Kemper
1e97ec344a freeswitch-stable: add mod_signalwire
This plugin allows to make a connection to the SignalWire CLOUD.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-17 18:50:11 +01:00
Sebastian Kemper
8087789e67 signalwire-client-c: new package
signalwire-client-c is a dependency of mod-signalwire.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-17 18:49:39 +01:00
Sebastian Kemper
03e2d08245 libks: new package
libks is a dependency of signalwire-client-c.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-17 18:49:39 +01:00
micmac1
b2cb60201b
Merge pull request #495 from micmac1/sngrep-ssl
sngrep: update to snapshot + options
2019-12-03 13:47:01 +01:00
Sebastian Kemper
c02a6fa325 sngrep: add configuration menu
Makes ipv6, pcre and eep optional. Defaults unchanged.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-03 13:42:28 +01:00
Sebastian Kemper
8aa5832961 sngrep: update to git snapshot
Also adds PKG_BUILD_PARALLEL:=1 and updates description.

Fixes #491

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-03 13:37:43 +01:00
Jiri Slachta
fc9aa2b3ea
Merge pull request #487 from micmac1/AST-2019-006_007
[master] asterisk-16.x: add fixes for AST-2019-006 and 007
2019-12-01 22:22:10 +01:00
micmac1
7245bca9df
Merge pull request #492 from micmac1/fs-vpx-cve
freeswitch-stable: patch CVEs in included libvpx
2019-11-29 21:15:03 +01:00
Sebastian Kemper
4204b2755b freeswitch-stable: patch CVEs in included libvpx
Patch taken from Debian Buster, fixes:

CVE-2019-9232
CVE-2019-9325
CVE-2019-9371
CVE-2019-9433

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-29 20:33:57 +01:00
Sebastian Kemper
7e41004b1e asterisk-16.x: add fixes for AST-2019-006 and 007
https://downloads.asterisk.org/pub/security/AST-2019-006.html
https://downloads.asterisk.org/pub/security/AST-2019-007.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-22 18:03:54 +01:00
micmac1
53d89aa902
Merge pull request #486 from micmac1/fs_misc
freeswitch-stable: small misc fixes
2019-11-05 23:34:21 +01:00
Sebastian Kemper
e1b0371bcc freeswitch-stable: update OpenSSL depend
FS supports OpenSSL 1.1 but still relies on some of its deprecated
symbols. This commit updates the package's depends to reflect that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-05 23:29:40 +01:00