The telephony packages feed for difos
Find a file
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
.circleci circleci: fetch packages repo 2020-04-22 18:08:37 +02:00
.github copy .github/templates from package feed 2017-12-06 00:45:50 +01:00
libs dahdi-linux: add patch to fix 32bit targets 2020-04-24 20:59:31 +02:00
net freeswitch-stable: improve init script 2020-05-04 19:26:41 +02:00
MAINTAINERS Update MAINTAINERS 2017-12-30 18:07:32 +01:00
README.md Add README.md file. 2014-12-11 13:55:15 +01:00

Telephony packages feed

Description

This is an OpenWrt package feed containing community maintained telephony packages.

Usage

To use these packages, add the following line to the feeds.conf in the OpenWrt buildroot:

src-git telephony https://github.com/openwrt/telephony.git

This feed should be included and enabled by default in the OpenWrt buildroot. To install all its package definitions, run:

./scripts/feeds update telephony
./scripts/feeds install -a -p telephony

The telephony packages should now appear in menuconfig.