Index: net/sems/Makefile =================================================================== --- net/sems/Makefile (revision 534097) +++ net/sems/Makefile (working copy) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= sems -DISTVERSION= ${SEMS_VERSION}.g20190822 +DISTVERSION= ${SEMS_VERSION}.g20200510 CATEGORIES= net MAINTAINER= nwhitehorn@FreeBSD.org @@ -11,9 +11,6 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/doc/COPYING -DEPRECATED= Uses deprecated version of python -EXPIRATION_DATE= 2020-09-15 - LIB_DEPENDS= libopus.so:audio/opus \ libcodec2.so:audio/codec2 \ libevent.so:devel/libevent \ @@ -24,17 +21,21 @@ libspeex.so:audio/speex \ libspandsp.so:comms/spandsp -USES= cmake compiler:c++11-lang python:2.7,run shebangfix +USES= cmake compiler:c++11-lang python:3.4+,run shebangfix ssl SHEBANG_GLOB= sems-* +PY2TO3_CMD= ${LOCALBASE}/bin/2to3-${PYTHON_VER} +PY2TO3_ARGS= --fix=all --no-diffs --nobackups --verbose --write + USE_GITHUB= yes GH_ACCOUNT= sems-server -GH_TAGNAME= 7400051 +GH_TAGNAME= f89581a CFLAGS+= -Wno-reorder CMAKE_ARGS= -DSEMS_CFG_PREFIX=${PREFIX} -DSEMS_AUDIO_PREFIX=${PREFIX}/lib \ -DSEMS_EXEC_PREFIX=${PREFIX} -DSEMS_DOC_PREFIX=${PREFIX}/share/doc -CMAKE_ON= SEMS_USE_SPANDSP SEMS_USE_LIBSAMPLERATE SEMS_USE_OPUS +CMAKE_ON= SEMS_USE_SPANDSP SEMS_USE_LIBSAMPLERATE SEMS_USE_OPUS \ + SEMS_USE_OPENSSL USE_RC_SUBR= sems @@ -44,7 +45,20 @@ SEMS_VERSION= 1.7.0 PLIST_SUB= SEMS_VERSION=${SEMS_VERSION} +FIXUP_2TO3= sbin/sems-get-callproperties sbin/sems-list-active-calls \ + sbin/sems-list-calls sbin/sems-list-finished-calls \ + sbin/sems-sbc-get-activeprofile \ + sbin/sems-sbc-get-regex-map-names sbin/sems-sbc-list-profiles \ + sbin/sems-sbc-load-callcontrol-modules \ + sbin/sems-sbc-load-profile sbin/sems-sbc-reload-profile \ + sbin/sems-sbc-reload-profiles sbin/sems-sbc-set-activeprofile \ + sbin/sems-sbc-set-regex-map sbin/sems-sbc-teardown-call + post-install: +. for p in ${FIXUP_2TO3} + ${PY2TO3_CMD} ${PY2TO3_ARGS} ${STAGEDIR}${PREFIX}/${p} +. endfor + cd ${STAGEDIR}${ETCDIR} && ${FIND} . \ -type f -exec ${MV} {} {}.sample \; Index: net/sems/distinfo =================================================================== --- net/sems/distinfo (revision 534097) +++ net/sems/distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1566533104 -SHA256 (sems-server-sems-1.7.0.g20190822-7400051_GH0.tar.gz) = 0648e863c79363985e59174728f29a7b6c431fc76343fb004ed7c548aef7fcf0 -SIZE (sems-server-sems-1.7.0.g20190822-7400051_GH0.tar.gz) = 5200119 +TIMESTAMP = 1589124511 +SHA256 (sems-server-sems-1.7.0.g20200510-f89581a_GH0.tar.gz) = 31ac2c287c2abf40e028f1afe9493f52f3e872e62e4428585bb6b6387e10cd16 +SIZE (sems-server-sems-1.7.0.g20200510-f89581a_GH0.tar.gz) = 5135383 Index: net/sems/files/patch-apps-xmlrpc2di-xmlrpc++-src-base64.h =================================================================== --- net/sems/files/patch-apps-xmlrpc2di-xmlrpc++-src-base64.h (nonexistent) +++ net/sems/files/patch-apps-xmlrpc2di-xmlrpc++-src-base64.h (working copy) @@ -0,0 +1,14 @@ +--- apps/xmlrpc2di/xmlrpc++/src/base64.h.orig 2019-12-06 20:43:40.279650000 -0800 ++++ apps/xmlrpc2di/xmlrpc++/src/base64.h 2019-12-06 20:44:03.636359000 -0800 +@@ -9,9 +9,9 @@ + #if !defined(__BASE64_H_INCLUDED__) + #define __BASE64_H_INCLUDED__ 1 + +-#if defined __APPLE__ && defined __clang__ ++#if !defined(__glibc__) && defined __clang__ + #include +-#endif // __APPLE__ && __clang__ ++#endif // !__glibc__ && __clang__ + + #ifndef MAKEDEPEND + # include Property changes on: net/sems/files/patch-apps-xmlrpc2di-xmlrpc++-src-base64.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: net/sems/files/patch-core-CMakeLists.txt =================================================================== --- net/sems/files/patch-core-CMakeLists.txt (revision 534097) +++ net/sems/files/patch-core-CMakeLists.txt (working copy) @@ -1,6 +1,6 @@ ---- core/CMakeLists.txt.orig 2019-08-22 14:04:22.265669000 -0700 -+++ core/CMakeLists.txt 2019-08-22 14:05:02.760870000 -0700 -@@ -12,15 +12,12 @@ +--- core/CMakeLists.txt.orig 2020-05-10 08:28:35.425963000 -0700 ++++ core/CMakeLists.txt 2020-05-10 08:32:38.193983000 -0700 +@@ -13,22 +13,12 @@ INCLUDE_DIRECTORIES (ampi) INCLUDE_DIRECTORIES (amci) @@ -14,7 +14,14 @@ - FOREACH (EXE_TARGET sems sems_tests) -- TARGET_LINK_LIBRARIES(${EXE_TARGET} ${CMAKE_DL_LIBS} sems_core sems_sip event event_pthreads -rdynamic) +- # This allows symbols defined in the SIP stack but not used +- # by the core itself to be included in the executable and +- # thus be available for modules +- IF(APPLE) +- TARGET_LINK_LIBRARIES(${EXE_TARGET} ${CMAKE_DL_LIBS} -Wl,-force_load sems_core -Wl,-force_load sems_sip event event_pthreads -rdynamic) +- ELSE() +- TARGET_LINK_LIBRARIES(${EXE_TARGET} ${CMAKE_DL_LIBS} -Wl,--whole-archive sems_core sems_sip -Wl,--no-whole-archive event event_pthreads -rdynamic) +- ENDIF() + TARGET_LINK_LIBRARIES(${EXE_TARGET} ${CMAKE_DL_LIBS} event event_pthreads -rdynamic) IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") Index: net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h =================================================================== --- net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h (revision 534097) +++ net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h (nonexistent) @@ -1,23 +0,0 @@ ---- core/plug-in/isac/libisac/typedefs.h.orig 2019-09-18 08:25:08 UTC -+++ core/plug-in/isac/libisac/typedefs.h -@@ -77,7 +77,19 @@ - #define WEBRTC_ARCH_32_BITS - #define WEBRTC_ARCH_LITTLE_ENDIAN - #else --#error Please add support for your architecture in typedefs.h -+/* instead of failing, use typical unix defines... */ -+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+#define WEBRTC_ARCH_LITTLE_ENDIAN -+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -+#define WEBRTC_ARCH_BIG_ENDIAN -+#else -+#error __BYTE_ORDER__ is not defined -+#endif -+#if defined(__LP64__) -+#define WEBRTC_ARCH_64_BITS -+#else -+#define WEBRTC_ARCH_32_BITS -+#endif - #endif - - #if defined(__SSE2__) || defined(_MSC_VER) Property changes on: net/sems/files/patch-core_plug-in_isac_libisac_typedefs.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: net/sems/pkg-plist =================================================================== --- net/sems/pkg-plist (revision 534097) +++ net/sems/pkg-plist (working copy) @@ -36,6 +36,7 @@ @sample %%ETCDIR%%/etc/transparent.sbcprofile.conf.sample @sample %%ETCDIR%%/etc/voicebox.conf.sample @sample %%ETCDIR%%/etc/voicemail.conf.sample +@sample %%ETCDIR%%/etc/xmlrpc2di.conf.sample @sample %%ETCDIR%%/etc/webconference.conf.sample @sample %%ETCDIR%%/sems.conf.sample lib/sems/audio/annrecorder/beep.wav @@ -150,8 +151,8 @@ lib/sems/plug-in/cc_registrar.so lib/sems/plug-in/cc_syslog_cdr.so lib/sems/plug-in/click2dial.so -lib/sems/plug-in/codec2.so lib/sems/plug-in/conference.so +lib/sems/plug-in/diameter_client.so lib/sems/plug-in/dsm.so lib/sems/plug-in/early_announce.so lib/sems/plug-in/echo.so @@ -175,6 +176,7 @@ lib/sems/plug-in/uac_auth.so lib/sems/plug-in/voicebox.so lib/sems/plug-in/voicemail.so +lib/sems/plug-in/xmlrpc2di.so lib/sems/plug-in/wav.so lib/sems/plug-in/webconference.so sbin/sems