From 616939dfbbf9f43ac98cb80c1b99e6ab8ca8037c Mon Sep 17 00:00:00 2001 From: Simon Frankenberger Date: Tue, 23 Apr 2024 18:25:48 +0200 Subject: community/sems: move from testing --- community/sems/APKBUILD | 234 +++++++++++++++++++++ ...llow-rewrite-of-custom-makefiles-by-CMake.patch | 26 +++ community/sems/sems-0004-musl-fixes.patch | 55 +++++ community/sems/sems-0005-stats-needs-version.patch | 12 ++ community/sems/sems-0014-further-musl-fixes.patch | 12 ++ community/sems/sems.initd | 48 +++++ community/sems/sems.pre-install | 6 + testing/sems/APKBUILD | 234 --------------------- ...llow-rewrite-of-custom-makefiles-by-CMake.patch | 26 --- testing/sems/sems-0004-musl-fixes.patch | 55 ----- testing/sems/sems-0005-stats-needs-version.patch | 12 -- testing/sems/sems-0014-further-musl-fixes.patch | 12 -- testing/sems/sems.initd | 48 ----- testing/sems/sems.pre-install | 6 - 14 files changed, 393 insertions(+), 393 deletions(-) create mode 100644 community/sems/APKBUILD create mode 100644 community/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch create mode 100644 community/sems/sems-0004-musl-fixes.patch create mode 100644 community/sems/sems-0005-stats-needs-version.patch create mode 100644 community/sems/sems-0014-further-musl-fixes.patch create mode 100755 community/sems/sems.initd create mode 100644 community/sems/sems.pre-install delete mode 100644 testing/sems/APKBUILD delete mode 100644 testing/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch delete mode 100644 testing/sems/sems-0004-musl-fixes.patch delete mode 100644 testing/sems/sems-0005-stats-needs-version.patch delete mode 100644 testing/sems/sems-0014-further-musl-fixes.patch delete mode 100755 testing/sems/sems.initd delete mode 100644 testing/sems/sems.pre-install diff --git a/community/sems/APKBUILD b/community/sems/APKBUILD new file mode 100644 index 00000000000..35380354f7d --- /dev/null +++ b/community/sems/APKBUILD @@ -0,0 +1,234 @@ +# Contributor: Francesco Colista +# Maintainer: Simon Frankenberger +pkgname=sems +pkgver=1.7.2_git20240113 +pkgrel=0 +_gitver=e67ff5a76ec9b1cb402d0d91c5c9e7a12e6c3252 +pkgdesc="SIP Express Media Server, an extensible SIP media server" +url="https://github.com/sems-server/sems/" +arch="all" +license="GPL-2.0-or-later" +# upstream does not provide test +options="!check" +pkgusers="sems" +pkggroups="sems" +install="$pkgname.pre-install" +depends="python3 bash" +makedepends="cmake openssl-dev>3 linux-headers + libsamplerate-dev spandsp-dev flite-dev gsm-dev speex-dev + libevent-dev libev-dev lame-dev opus-dev tiff-dev" +subpackages="$pkgname-doc $pkgname-conference + $pkgname-diameter_client $pkgname-dsm $pkgname-early_announce + $pkgname-g722 $pkgname-gsm $pkgname-ilbc $pkgname-mp3 + $pkgname-opus $pkgname-speex $pkgname-xmlrpc2di + $pkgname-webconference $pkgname-voicebox $pkgname-voicemail + $pkgname-annrecorder $pkgname-jsonrpc $pkgname-registrar $pkgname-openrc" + +source="$pkgname-$pkgver.tar.gz::https://github.com/sems-server/sems/archive/$_gitver.tar.gz + sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch + sems-0004-musl-fixes.patch + sems-0005-stats-needs-version.patch + sems-0014-further-musl-fixes.patch + + sems.initd + " + +replaces=" + $pkgname-ivr + $pkgname-mailbox + $pkgname-conf_auth + $pkgname-pin_collect + " # Removed in 1.6.0-r10 (due to depending on EOL python) + +builddir="$srcdir/sems-$_gitver" + +prepare() { + default_prepare + rm -rf core/plug-in/gsm/gsm-1.0-pl10/ +} + +build() { + # force cmake to use relative paths. It helps us avoid having the + # full file path in the logs + cmake \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_USE_RELATIVE_PATHS=yes \ + -DSEMS_USE_SPANDSP=yes \ + -DSEMS_USE_LIBSAMPLERATE=yes \ + -DSEMS_USE_ZRTP=NO \ + -DSEMS_USE_MP3=yes \ + -DSEMS_USE_OPUS=yes \ + -DSEMS_USE_TTS=yes \ + -DSEMS_USE_OPENSSL=yes \ + -DSEMS_USE_MONITORING=yes \ + -DSEMS_USE_IPV6=NO \ + -DSEMS_CFG_PREFIX= \ + -DSEMS_AUDIO_PREFIX=/usr/share \ + -DSEMS_EXEC_PREFIX=/usr \ + -DSEMS_LIBDIR=lib + make +} + +package() { + make install DESTDIR="$pkgdir" + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname + # is empty + rm -f "$pkgdir"/etc/sems/etc/conf_auth.conf + + install -o sems -g sems -d "$pkgdir"/var/spool/voicebox + install -d -o sems "$pkgdir"/var/run/sems +} + +_mv_sub() { + local i + for i in "$@"; do + mkdir -p "$subpkgdir"/${i%/*} + mv "$pkgdir"/$i "$subpkgdir"/$i + done +} + +conference() { + pkgdesc="Conferencing application for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/conference.conf \ + usr/lib/sems/plug-in/conference.so \ + usr/share/sems/audio/conference +} + +diameter_client() { + pkgdesc="A simple DIAMETER client implementation for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub usr/lib/sems/plug-in/diameter_client.so +} + +dsm() { + pkgdesc="The state machine interpreter for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/dsm* \ + usr/lib/sems/plug-in/dsm.so \ + usr/lib/sems/dsm +} + +early_announce() { + pkgdesc="Early announce application for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/early_announce.conf \ + usr/lib/sems/plug-in/early_announce.so +} + +g722() { + pkgdesc="G.722 support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/g722.so +} + +#gateway() { +# pkgdesc="ISDN gateway for SEMS" +# depends="sems" +#} + +gsm() { + pkgdesc="GSM support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/gsm.so +} + +ilbc() { + pkgdesc="iLBC support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/ilbc.so +} + +mp3() { + pkgdesc="MP3 support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/mp3.so +} + +opus() { + pkgdesc=" OPUS codec for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/opus.so +} + +webconference() { + pkgdesc="Conference bridge via DI (xmlrpc) for SEMS" + depends="sems sems-xmlrpc2di" + cd "$pkgdir" + _mv_sub etc/sems/etc/webconference.conf \ + usr/share/sems/audio/webconference \ + usr/lib/sems/plug-in/webconference.so +} + +annrecorder() { + pkgdesc="Allow user to record personal greeting for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/annrecorder.conf \ + usr/share/sems/audio/annrecorder \ + usr/lib/sems/plug-in/annrecorder.so +} + +voicebox() { + pkgdesc="Voicebox (call in for messsages) for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/voicebox.conf \ + usr/share/sems/audio/voicebox \ + usr/lib/sems/plug-in/voicebox.so \ + var/spool/voicebox +} + +voicemail() { + pkgdesc="Play greeting and record voicemail for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/voicemail.conf \ + usr/share/sems/audio/voicemail \ + usr/lib/sems/plug-in/voicemail.so +} + +speex() { + pkgdesc="Speex support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/speex.so +} + +xmlrpc2di() { + pkgdesc="XMLRPC interface for SEMS" + depends="sems" + _mv_sub \ + etc/sems/etc/xmlrpc2di.conf \ + usr/lib/sems/plug-in/xmlrpc2di.so +} + +jsonrpc() { + pkgdesc="Jsonrpc support for SEMS" + depends="sems" + _mv_sub \ + etc/sems/etc/jsonrpc.conf \ + usr/lib/sems/plug-in/jsonrpc.so +} + +registrar() { + pkgdesc="Support for SEMS to register to a SIP server" + depends="sems" + _mv_sub \ + etc/sems/etc/reg_agent.conf \ + usr/lib/sems/plug-in/reg_agent.so \ + usr/lib/sems/plug-in/registrar_client.so +} + +sha512sums=" +2369f25c41e5440ba6e2d5841d85f96b0e3e26a67660a343f89e57a1451a0818b577bb5e32e6413f589ae1d36777d6132074d02c9f076b29d38a557176c81dde sems-1.7.2_git20240113.tar.gz +25d93994e444312445fd277b85fb8e53f9314fb370f2f2377b599c99e41c1d9787db392752f4b1c30b76bd6c4411ca5a67570f534f40282778e30a269a1d3c90 sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch +d98cbabe9fe6154e4e7354a742c3871668d9ef798c32ec60a36d5f3b2bf4419a57609988bc979bcc53855e3ab1368616fa2ea647d5a00fe31ce65c93f32f9700 sems-0004-musl-fixes.patch +28f07142a0b8b6698948d41bfb198e59637d5a921960adc496111b5cad4685a0b1cade821ac9cd9dbbf3f25ed6195f29485a12d077abf81428b9b6f8bfced79e sems-0005-stats-needs-version.patch +044a344706c099b6e420a01ca3a2947fb7a44ed81a6ccf4942d2fcdcc73dc174c504f151faa010c6a370d7463c6b02e6c14f6aa237a5ca706171e7cfb9499818 sems-0014-further-musl-fixes.patch +5be93b6444a9592daa6c883c78e5906e9e662891e1daa850d872bdaa657eb756f1bc0879732033479b279b75c2fd42ef79aa530ebf3b1692e7fb222d484f804b sems.initd +" diff --git a/community/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch b/community/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch new file mode 100644 index 00000000000..4e702ad149a --- /dev/null +++ b/community/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch @@ -0,0 +1,26 @@ +diff -urp a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2021-10-21 10:06:12.000000000 +0200 ++++ b/CMakeLists.txt 2021-12-02 00:42:09.962054752 +0100 +@@ -34,14 +34,14 @@ ADD_DEFINITIONS(-DSEMS_APP_NAME=\\\"sems + + MESSAGE(STATUS "Configuring ${CMAKE_PROJECT_NAME} v. ${SEMS_VERSION}") + +-IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) +- message(FATAL_ERROR "In-source builds are not allowed. +-CMake would overwrite all makefiles distributed with SEMS. +-Please create a directory and run cmake from there, passing the path +-to this source directory as the last argument. +-This process created the file `CMakeCache.txt' and the directory `CMakeFiles'. +-Please delete them.") +-ENDIF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) ++#IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) ++# message(FATAL_ERROR "In-source builds are not allowed. ++#CMake would overwrite all makefiles distributed with SEMS. ++#Please create a directory and run cmake from there, passing the path ++#to this source directory as the last argument. ++#This process created the file `CMakeCache.txt' and the directory `CMakeFiles'. ++#Please delete them.") ++#ENDIF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) + + OPTION(SEMS_USE_OPUS "Build with Opus" OFF) + OPTION(SEMS_USE_SPANDSP "Build with spandsp" OFF) diff --git a/community/sems/sems-0004-musl-fixes.patch b/community/sems/sems-0004-musl-fixes.patch new file mode 100644 index 00000000000..e7fcb149f67 --- /dev/null +++ b/community/sems/sems-0004-musl-fixes.patch @@ -0,0 +1,55 @@ +diff --git a/core/AmBasicSipDialog.cpp b/core/AmBasicSipDialog.cpp +index 8a9fc04..d6d5ab7 100644 +--- a/core/AmBasicSipDialog.cpp ++++ b/core/AmBasicSipDialog.cpp +@@ -591,7 +591,7 @@ int AmBasicSipDialog::reply(const AmSipRequest& req, + "remote_tag=%s\n", + req.cseq,code,callid.c_str(), + local_tag.c_str(),remote_tag.c_str()); +- log_stacktrace(L_ERR); ++ // log_stacktrace(L_ERR); + return -1; + } + DBG("reply: transaction found!\n"); +diff --git a/core/log.cpp b/core/log.cpp +index 933657e..efc2ae2 100644 +--- a/core/log.cpp ++++ b/core/log.cpp +@@ -206,6 +206,7 @@ void register_log_hook(AmLoggingFacility* fac) + log_hooks.push_back(fac); + } + ++#ifdef MUSL_SUPPORTS_BACKTRACE + /** + * Print stack-trace through logging function + */ +@@ -300,3 +301,5 @@ void __lds(int ll, unsigned int max_frames) + free(funcname); + free(symbollist); + } ++ ++#endif +diff --git a/core/log.h b/core/log.h +index 253d824..5ffda75 100644 +--- a/core/log.h ++++ b/core/log.h +@@ -33,7 +33,7 @@ + #include + #include /* getpid() */ + #include /* pthread_self() */ +-#include /* backtrace_symbols() */ ++// #include /* backtrace_symbols() */ + + #ifdef __cplusplus + #include /* __cxa_demangle() */ +diff --git a/core/sems.cpp b/core/sems.cpp +index 6f03e5c..d7030eb 100644 +--- a/core/sems.cpp ++++ b/core/sems.cpp +@@ -69,6 +69,7 @@ + using std::string; + + #if defined(__linux__) ++#include + #include + #endif diff --git a/community/sems/sems-0005-stats-needs-version.patch b/community/sems/sems-0005-stats-needs-version.patch new file mode 100644 index 00000000000..01a7108e0c5 --- /dev/null +++ b/community/sems/sems-0005-stats-needs-version.patch @@ -0,0 +1,12 @@ +diff --git a/core/plug-in/stats/StatsUDPServer.cpp b/core/plug-in/stats/StatsUDPServer.cpp +index c78dc10..8d92720 100644 +--- a/core/plug-in/stats/StatsUDPServer.cpp ++++ b/core/plug-in/stats/StatsUDPServer.cpp +@@ -26,6 +26,7 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + ++#include "sems.h" + #include "StatsUDPServer.h" + #include "Statistics.h" + #include "AmConfigReader.h" diff --git a/community/sems/sems-0014-further-musl-fixes.patch b/community/sems/sems-0014-further-musl-fixes.patch new file mode 100644 index 00000000000..2d2f2ab09b3 --- /dev/null +++ b/community/sems/sems-0014-further-musl-fixes.patch @@ -0,0 +1,12 @@ +--- a/core/AmRtpAudio.cpp 2021-10-21 10:06:12.000000000 +0200 ++++ b/core/AmRtpAudio.cpp 2021-12-02 09:48:19.320236030 +0100 +@@ -76,7 +76,8 @@ void AmAudioRtpFormat::initCodec() + } else { + if (NULL != sdp_format_parameters_out) { + DBG("negotiated fmt parameters '%s'\n", sdp_format_parameters_out); +- log_demangled_stacktrace(L_DBG, 30); ++ // MUSL BACKTRACE NOT WORKING ++ //log_demangled_stacktrace(L_DBG, 30); + } + + if (NULL != fmt_i) { diff --git a/community/sems/sems.initd b/community/sems/sems.initd new file mode 100755 index 00000000000..fda1e8a8387 --- /dev/null +++ b/community/sems/sems.initd @@ -0,0 +1,48 @@ +#!/sbin/openrc-run +# SIP Express Media Server configuration file +# Follows Gentoo/AlpineLinux standards +# GPL 2 License - N. Angelacos 2011 + +SVC="${SVCNAME#*.}" +SEMS_CFG_FILE=${SEMS_CFG_FILE:-/etc/sems/${SVC}.conf} +SEMS_PIDDIR=/var/run/sems +SEMS_PIDFILE=${SEMS_PIDFILE:-${SEMS_PIDDIR}/${SVC}.pid} +SEMS_BINARY=${SEMS_BINARY:-/usr/sbin/sems} +SEMS_USER=${SEMS_USER:-sems} +SEMS_GROUP=${SEMS_GROUP:-sems} + +checkconfig() { + if [ ! -f "${SEMS_CFG_FILE}" ] ; then + eerror "You need a "${SEMS_CFG_FILE}" file to run sems" + return 1; + fi +} + + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + mkdir -p "${SEMS_PIDDIR}" + chown ${SEMS_USER}:${SEMS_GROUP} "${SEMS_PIDDIR}" + + start-stop-daemon --start --exec "${SEMS_BINARY}" \ + --pidfile "${SEMS_PIDFILE}" \ + --wait ${SEMS_WAIT:-500} \ + -- \ + -f "${SEMS_CFG_FILE}" \ + -P "${SEMS_PIDFILE}" \ + -u "${SEMS_USER}" \ + -g "${SEMS_GROUP}" + eend $? +} + +stop() { + if [ "${RC_CMD}" = "restart" ] ; then + checkconfig || return 1 + fi + + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec "${SEMS_BINARY}" \ + --pidfile "${SEMS_PIDFILE}" --quiet + eend $? +} diff --git a/community/sems/sems.pre-install b/community/sems/sems.pre-install new file mode 100644 index 00000000000..5fe904da652 --- /dev/null +++ b/community/sems/sems.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S sems 2>/dev/null +adduser -S -D -H -h /var/empty -s /sbin/nologin -G sems -g sems sems 2>/dev/null + +exit 0 diff --git a/testing/sems/APKBUILD b/testing/sems/APKBUILD deleted file mode 100644 index 35380354f7d..00000000000 --- a/testing/sems/APKBUILD +++ /dev/null @@ -1,234 +0,0 @@ -# Contributor: Francesco Colista -# Maintainer: Simon Frankenberger -pkgname=sems -pkgver=1.7.2_git20240113 -pkgrel=0 -_gitver=e67ff5a76ec9b1cb402d0d91c5c9e7a12e6c3252 -pkgdesc="SIP Express Media Server, an extensible SIP media server" -url="https://github.com/sems-server/sems/" -arch="all" -license="GPL-2.0-or-later" -# upstream does not provide test -options="!check" -pkgusers="sems" -pkggroups="sems" -install="$pkgname.pre-install" -depends="python3 bash" -makedepends="cmake openssl-dev>3 linux-headers - libsamplerate-dev spandsp-dev flite-dev gsm-dev speex-dev - libevent-dev libev-dev lame-dev opus-dev tiff-dev" -subpackages="$pkgname-doc $pkgname-conference - $pkgname-diameter_client $pkgname-dsm $pkgname-early_announce - $pkgname-g722 $pkgname-gsm $pkgname-ilbc $pkgname-mp3 - $pkgname-opus $pkgname-speex $pkgname-xmlrpc2di - $pkgname-webconference $pkgname-voicebox $pkgname-voicemail - $pkgname-annrecorder $pkgname-jsonrpc $pkgname-registrar $pkgname-openrc" - -source="$pkgname-$pkgver.tar.gz::https://github.com/sems-server/sems/archive/$_gitver.tar.gz - sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch - sems-0004-musl-fixes.patch - sems-0005-stats-needs-version.patch - sems-0014-further-musl-fixes.patch - - sems.initd - " - -replaces=" - $pkgname-ivr - $pkgname-mailbox - $pkgname-conf_auth - $pkgname-pin_collect - " # Removed in 1.6.0-r10 (due to depending on EOL python) - -builddir="$srcdir/sems-$_gitver" - -prepare() { - default_prepare - rm -rf core/plug-in/gsm/gsm-1.0-pl10/ -} - -build() { - # force cmake to use relative paths. It helps us avoid having the - # full file path in the logs - cmake \ - -DCMAKE_BUILD_TYPE=None \ - -DCMAKE_USE_RELATIVE_PATHS=yes \ - -DSEMS_USE_SPANDSP=yes \ - -DSEMS_USE_LIBSAMPLERATE=yes \ - -DSEMS_USE_ZRTP=NO \ - -DSEMS_USE_MP3=yes \ - -DSEMS_USE_OPUS=yes \ - -DSEMS_USE_TTS=yes \ - -DSEMS_USE_OPENSSL=yes \ - -DSEMS_USE_MONITORING=yes \ - -DSEMS_USE_IPV6=NO \ - -DSEMS_CFG_PREFIX= \ - -DSEMS_AUDIO_PREFIX=/usr/share \ - -DSEMS_EXEC_PREFIX=/usr \ - -DSEMS_LIBDIR=lib - make -} - -package() { - make install DESTDIR="$pkgdir" - install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname - # is empty - rm -f "$pkgdir"/etc/sems/etc/conf_auth.conf - - install -o sems -g sems -d "$pkgdir"/var/spool/voicebox - install -d -o sems "$pkgdir"/var/run/sems -} - -_mv_sub() { - local i - for i in "$@"; do - mkdir -p "$subpkgdir"/${i%/*} - mv "$pkgdir"/$i "$subpkgdir"/$i - done -} - -conference() { - pkgdesc="Conferencing application for SEMS" - depends="sems" - cd "$pkgdir" - _mv_sub etc/sems/etc/conference.conf \ - usr/lib/sems/plug-in/conference.so \ - usr/share/sems/audio/conference -} - -diameter_client() { - pkgdesc="A simple DIAMETER client implementation for SEMS" - depends="sems" - cd "$pkgdir" - _mv_sub usr/lib/sems/plug-in/diameter_client.so -} - -dsm() { - pkgdesc="The state machine interpreter for SEMS" - depends="sems" - cd "$pkgdir" - _mv_sub etc/sems/etc/dsm* \ - usr/lib/sems/plug-in/dsm.so \ - usr/lib/sems/dsm -} - -early_announce() { - pkgdesc="Early announce application for SEMS" - depends="sems" - cd "$pkgdir" - _mv_sub etc/sems/etc/early_announce.conf \ - usr/lib/sems/plug-in/early_announce.so -} - -g722() { - pkgdesc="G.722 support for SEMS" - depends="sems" - _mv_sub usr/lib/sems/plug-in/g722.so -} - -#gateway() { -# pkgdesc="ISDN gateway for SEMS" -# depends="sems" -#} - -gsm() { - pkgdesc="GSM support for SEMS" - depends="sems" - _mv_sub usr/lib/sems/plug-in/gsm.so -} - -ilbc() { - pkgdesc="iLBC support for SEMS" - depends="sems" - _mv_sub usr/lib/sems/plug-in/ilbc.so -} - -mp3() { - pkgdesc="MP3 support for SEMS" - depends="sems" - _mv_sub usr/lib/sems/plug-in/mp3.so -} - -opus() { - pkgdesc=" OPUS codec for SEMS" - depends="sems" - _mv_sub usr/lib/sems/plug-in/opus.so -} - -webconference() { - pkgdesc="Conference bridge via DI (xmlrpc) for SEMS" - depends="sems sems-xmlrpc2di" - cd "$pkgdir" - _mv_sub etc/sems/etc/webconference.conf \ - usr/share/sems/audio/webconference \ - usr/lib/sems/plug-in/webconference.so -} - -annrecorder() { - pkgdesc="Allow user to record personal greeting for SEMS" - depends="sems" - cd "$pkgdir" - _mv_sub etc/sems/etc/annrecorder.conf \ - usr/share/sems/audio/annrecorder \ - usr/lib/sems/plug-in/annrecorder.so -} - -voicebox() { - pkgdesc="Voicebox (call in for messsages) for SEMS" - depends="sems" - cd "$pkgdir" - _mv_sub etc/sems/etc/voicebox.conf \ - usr/share/sems/audio/voicebox \ - usr/lib/sems/plug-in/voicebox.so \ - var/spool/voicebox -} - -voicemail() { - pkgdesc="Play greeting and record voicemail for SEMS" - depends="sems" - cd "$pkgdir" - _mv_sub etc/sems/etc/voicemail.conf \ - usr/share/sems/audio/voicemail \ - usr/lib/sems/plug-in/voicemail.so -} - -speex() { - pkgdesc="Speex support for SEMS" - depends="sems" - _mv_sub usr/lib/sems/plug-in/speex.so -} - -xmlrpc2di() { - pkgdesc="XMLRPC interface for SEMS" - depends="sems" - _mv_sub \ - etc/sems/etc/xmlrpc2di.conf \ - usr/lib/sems/plug-in/xmlrpc2di.so -} - -jsonrpc() { - pkgdesc="Jsonrpc support for SEMS" - depends="sems" - _mv_sub \ - etc/sems/etc/jsonrpc.conf \ - usr/lib/sems/plug-in/jsonrpc.so -} - -registrar() { - pkgdesc="Support for SEMS to register to a SIP server" - depends="sems" - _mv_sub \ - etc/sems/etc/reg_agent.conf \ - usr/lib/sems/plug-in/reg_agent.so \ - usr/lib/sems/plug-in/registrar_client.so -} - -sha512sums=" -2369f25c41e5440ba6e2d5841d85f96b0e3e26a67660a343f89e57a1451a0818b577bb5e32e6413f589ae1d36777d6132074d02c9f076b29d38a557176c81dde sems-1.7.2_git20240113.tar.gz -25d93994e444312445fd277b85fb8e53f9314fb370f2f2377b599c99e41c1d9787db392752f4b1c30b76bd6c4411ca5a67570f534f40282778e30a269a1d3c90 sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch -d98cbabe9fe6154e4e7354a742c3871668d9ef798c32ec60a36d5f3b2bf4419a57609988bc979bcc53855e3ab1368616fa2ea647d5a00fe31ce65c93f32f9700 sems-0004-musl-fixes.patch -28f07142a0b8b6698948d41bfb198e59637d5a921960adc496111b5cad4685a0b1cade821ac9cd9dbbf3f25ed6195f29485a12d077abf81428b9b6f8bfced79e sems-0005-stats-needs-version.patch -044a344706c099b6e420a01ca3a2947fb7a44ed81a6ccf4942d2fcdcc73dc174c504f151faa010c6a370d7463c6b02e6c14f6aa237a5ca706171e7cfb9499818 sems-0014-further-musl-fixes.patch -5be93b6444a9592daa6c883c78e5906e9e662891e1daa850d872bdaa657eb756f1bc0879732033479b279b75c2fd42ef79aa530ebf3b1692e7fb222d484f804b sems.initd -" diff --git a/testing/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch b/testing/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch deleted file mode 100644 index 4e702ad149a..00000000000 --- a/testing/sems/sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -urp a/CMakeLists.txt b/CMakeLists.txt ---- a/CMakeLists.txt 2021-10-21 10:06:12.000000000 +0200 -+++ b/CMakeLists.txt 2021-12-02 00:42:09.962054752 +0100 -@@ -34,14 +34,14 @@ ADD_DEFINITIONS(-DSEMS_APP_NAME=\\\"sems - - MESSAGE(STATUS "Configuring ${CMAKE_PROJECT_NAME} v. ${SEMS_VERSION}") - --IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) -- message(FATAL_ERROR "In-source builds are not allowed. --CMake would overwrite all makefiles distributed with SEMS. --Please create a directory and run cmake from there, passing the path --to this source directory as the last argument. --This process created the file `CMakeCache.txt' and the directory `CMakeFiles'. --Please delete them.") --ENDIF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) -+#IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) -+# message(FATAL_ERROR "In-source builds are not allowed. -+#CMake would overwrite all makefiles distributed with SEMS. -+#Please create a directory and run cmake from there, passing the path -+#to this source directory as the last argument. -+#This process created the file `CMakeCache.txt' and the directory `CMakeFiles'. -+#Please delete them.") -+#ENDIF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) - - OPTION(SEMS_USE_OPUS "Build with Opus" OFF) - OPTION(SEMS_USE_SPANDSP "Build with spandsp" OFF) diff --git a/testing/sems/sems-0004-musl-fixes.patch b/testing/sems/sems-0004-musl-fixes.patch deleted file mode 100644 index e7fcb149f67..00000000000 --- a/testing/sems/sems-0004-musl-fixes.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff --git a/core/AmBasicSipDialog.cpp b/core/AmBasicSipDialog.cpp -index 8a9fc04..d6d5ab7 100644 ---- a/core/AmBasicSipDialog.cpp -+++ b/core/AmBasicSipDialog.cpp -@@ -591,7 +591,7 @@ int AmBasicSipDialog::reply(const AmSipRequest& req, - "remote_tag=%s\n", - req.cseq,code,callid.c_str(), - local_tag.c_str(),remote_tag.c_str()); -- log_stacktrace(L_ERR); -+ // log_stacktrace(L_ERR); - return -1; - } - DBG("reply: transaction found!\n"); -diff --git a/core/log.cpp b/core/log.cpp -index 933657e..efc2ae2 100644 ---- a/core/log.cpp -+++ b/core/log.cpp -@@ -206,6 +206,7 @@ void register_log_hook(AmLoggingFacility* fac) - log_hooks.push_back(fac); - } - -+#ifdef MUSL_SUPPORTS_BACKTRACE - /** - * Print stack-trace through logging function - */ -@@ -300,3 +301,5 @@ void __lds(int ll, unsigned int max_frames) - free(funcname); - free(symbollist); - } -+ -+#endif -diff --git a/core/log.h b/core/log.h -index 253d824..5ffda75 100644 ---- a/core/log.h -+++ b/core/log.h -@@ -33,7 +33,7 @@ - #include - #include /* getpid() */ - #include /* pthread_self() */ --#include /* backtrace_symbols() */ -+// #include /* backtrace_symbols() */ - - #ifdef __cplusplus - #include /* __cxa_demangle() */ -diff --git a/core/sems.cpp b/core/sems.cpp -index 6f03e5c..d7030eb 100644 ---- a/core/sems.cpp -+++ b/core/sems.cpp -@@ -69,6 +69,7 @@ - using std::string; - - #if defined(__linux__) -+#include - #include - #endif diff --git a/testing/sems/sems-0005-stats-needs-version.patch b/testing/sems/sems-0005-stats-needs-version.patch deleted file mode 100644 index 01a7108e0c5..00000000000 --- a/testing/sems/sems-0005-stats-needs-version.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/core/plug-in/stats/StatsUDPServer.cpp b/core/plug-in/stats/StatsUDPServer.cpp -index c78dc10..8d92720 100644 ---- a/core/plug-in/stats/StatsUDPServer.cpp -+++ b/core/plug-in/stats/StatsUDPServer.cpp -@@ -26,6 +26,7 @@ - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -+#include "sems.h" - #include "StatsUDPServer.h" - #include "Statistics.h" - #include "AmConfigReader.h" diff --git a/testing/sems/sems-0014-further-musl-fixes.patch b/testing/sems/sems-0014-further-musl-fixes.patch deleted file mode 100644 index 2d2f2ab09b3..00000000000 --- a/testing/sems/sems-0014-further-musl-fixes.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/core/AmRtpAudio.cpp 2021-10-21 10:06:12.000000000 +0200 -+++ b/core/AmRtpAudio.cpp 2021-12-02 09:48:19.320236030 +0100 -@@ -76,7 +76,8 @@ void AmAudioRtpFormat::initCodec() - } else { - if (NULL != sdp_format_parameters_out) { - DBG("negotiated fmt parameters '%s'\n", sdp_format_parameters_out); -- log_demangled_stacktrace(L_DBG, 30); -+ // MUSL BACKTRACE NOT WORKING -+ //log_demangled_stacktrace(L_DBG, 30); - } - - if (NULL != fmt_i) { diff --git a/testing/sems/sems.initd b/testing/sems/sems.initd deleted file mode 100755 index fda1e8a8387..00000000000 --- a/testing/sems/sems.initd +++ /dev/null @@ -1,48 +0,0 @@ -#!/sbin/openrc-run -# SIP Express Media Server configuration file -# Follows Gentoo/AlpineLinux standards -# GPL 2 License - N. Angelacos 2011 - -SVC="${SVCNAME#*.}" -SEMS_CFG_FILE=${SEMS_CFG_FILE:-/etc/sems/${SVC}.conf} -SEMS_PIDDIR=/var/run/sems -SEMS_PIDFILE=${SEMS_PIDFILE:-${SEMS_PIDDIR}/${SVC}.pid} -SEMS_BINARY=${SEMS_BINARY:-/usr/sbin/sems} -SEMS_USER=${SEMS_USER:-sems} -SEMS_GROUP=${SEMS_GROUP:-sems} - -checkconfig() { - if [ ! -f "${SEMS_CFG_FILE}" ] ; then - eerror "You need a "${SEMS_CFG_FILE}" file to run sems" - return 1; - fi -} - - -start() { - checkconfig || return 1 - ebegin "Starting ${SVCNAME}" - mkdir -p "${SEMS_PIDDIR}" - chown ${SEMS_USER}:${SEMS_GROUP} "${SEMS_PIDDIR}" - - start-stop-daemon --start --exec "${SEMS_BINARY}" \ - --pidfile "${SEMS_PIDFILE}" \ - --wait ${SEMS_WAIT:-500} \ - -- \ - -f "${SEMS_CFG_FILE}" \ - -P "${SEMS_PIDFILE}" \ - -u "${SEMS_USER}" \ - -g "${SEMS_GROUP}" - eend $? -} - -stop() { - if [ "${RC_CMD}" = "restart" ] ; then - checkconfig || return 1 - fi - - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec "${SEMS_BINARY}" \ - --pidfile "${SEMS_PIDFILE}" --quiet - eend $? -} diff --git a/testing/sems/sems.pre-install b/testing/sems/sems.pre-install deleted file mode 100644 index 5fe904da652..00000000000 --- a/testing/sems/sems.pre-install +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -addgroup -S sems 2>/dev/null -adduser -S -D -H -h /var/empty -s /sbin/nologin -G sems -g sems sems 2>/dev/null - -exit 0 -- cgit v1.2.3