diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2020-07-17 08:21:24 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2020-07-17 08:21:24 +0000 |
commit | dc0a2a9488025b6094f7da304dec43a2a5e5ffb8 (patch) | |
tree | 8be6bb4eeb520d52410e0bfe40989ecc1feaebad | |
parent | Update calibre to 4.21.0 (diff) |
- Update asterisk13 to 13.35.0
- Asterisk project now embeds pjsip 2.10, get it's distribution
from github and adapt port
- Remove patch merged upstream
- Refresh patches and rename to current naming scheme
- Reorder some variables to silnce portlint warning
-rw-r--r-- | net/asterisk13/Makefile | 20 | ||||
-rw-r--r-- | net/asterisk13/distinfo | 10 | ||||
-rw-r--r-- | net/asterisk13/files/patch-Makefile | 16 | ||||
-rw-r--r-- | net/asterisk13/files/patch-agi_Makefile (renamed from net/asterisk13/files/patch-agi__Makefile) | 2 | ||||
-rw-r--r-- | net/asterisk13/files/patch-channels_chan__dahdi.c (renamed from net/asterisk13/files/patch-channels-chan_dahdi.c) | 15 | ||||
-rw-r--r-- | net/asterisk13/files/patch-channels_sip_include_sip.h (renamed from net/asterisk13/files/patch-channels__sip__include__sip.h) | 2 | ||||
-rw-r--r-- | net/asterisk13/files/patch-configure | 14 | ||||
-rw-r--r-- | net/asterisk13/files/patch-contrib_Makefile | 2 | ||||
-rw-r--r-- | net/asterisk13/files/patch-main_Makefile (renamed from net/asterisk13/files/patch-main__Makefile) | 2 | ||||
-rw-r--r-- | net/asterisk13/files/patch-main_asterisk.exports.in (renamed from net/asterisk13/files/patch-main__asterisk.exports.in) | 4 | ||||
-rw-r--r-- | net/asterisk13/files/patch-main_http.c (renamed from net/asterisk13/files/patch-main__http.c) | 4 | ||||
-rw-r--r-- | net/asterisk13/files/patch-main_lock.c (renamed from net/asterisk13/files/patch-main__lock.c) | 4 | ||||
-rw-r--r-- | net/asterisk13/files/patch-third-party_pjproject_Makefile | 2 | ||||
-rw-r--r-- | net/asterisk13/files/patch-third-party_pjproject_Makefile.rules | 11 |
14 files changed, 51 insertions, 57 deletions
diff --git a/net/asterisk13/Makefile b/net/asterisk13/Makefile index 4327e472fb8d..1930a2a6a0b4 100644 --- a/net/asterisk13/Makefile +++ b/net/asterisk13/Makefile @@ -1,17 +1,14 @@ # $FreeBSD$ PORTNAME= asterisk -PORTVERSION= 13.34.0 -PORTREVISION= 1 +PORTVERSION= 13.35.0 CATEGORIES= net -MASTER_SITES= https://downloads.asterisk.org/pub/telephony/%SUBDIR%/:DEFAULT,g729 \ - http://www.pjsip.org/release/${PJSIP_VERSION}/:PJSIP +MASTER_SITES= https://downloads.asterisk.org/pub/telephony/%SUBDIR%/:DEFAULT,g729 MASTER_SITE_SUBDIR= asterisk/ \ asterisk/old-releases/ \ sounds/releases/:g729 PKGNAMESUFFIX= 13 -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - pjproject-${PJSIP_VERSION}.tar.bz2:PJSIP +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} DIST_SUBDIR= ${PORTNAME} MAINTAINER= madpilot@FreeBSD.org @@ -20,12 +17,10 @@ COMMENT= Open Source PBX and telephony toolkit LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid \ - libjansson.so:devel/jansson - ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 sparc64 -EXTRACT_ONLY:= ${DISTNAME}${EXTRACT_SUFX} +LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid \ + libjansson.so:devel/jansson USES= bison compiler:c11 cpe gmake gnome iconv libedit localbase \ shebangfix sqlite ssl ncurses @@ -34,7 +29,9 @@ USE_LDCONFIG= yes USE_RC_SUBR= asterisk USE_GITHUB= nodefault -PJSIP_VERSION= 2.9 +EXTRACT_ONLY:= ${DISTNAME}${EXTRACT_SUFX} + +PJSIP_VERSION= 2.10 GNU_CONFIGURE= yes CONFIGURE_ARGS= --datarootdir=${DATADIR} \ --with-ilbc=internal \ @@ -169,6 +166,7 @@ PJSIP_CONFIGURE_WITH= pjproject pjproject-bundled PJSIP_LIB_DEPENDS= libsrtp2.so:net/libsrtp2 \ libspeex.so:audio/speex \ libspeexdsp.so:audio/speexdsp +PJSIP_GH_TUPLE= pjsip:pjproject:${PJSIP_VERSION}:pjsip PORTAUDIO_CONFIGURE_WITH= portaudio PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio diff --git a/net/asterisk13/distinfo b/net/asterisk13/distinfo index d128a017a58e..48303682fc59 100644 --- a/net/asterisk13/distinfo +++ b/net/asterisk13/distinfo @@ -1,11 +1,11 @@ -TIMESTAMP = 1591868255 -SHA256 (asterisk/asterisk-13.34.0.tar.gz) = 6f5e47372f7b02c77e435b20e1ef980e95ba9a9a56077c45bb473724bfc48de0 -SIZE (asterisk/asterisk-13.34.0.tar.gz) = 33686020 -SHA256 (asterisk/pjproject-2.9.tar.bz2) = d185ef7855c8ec07191dde92f54b65a7a4b7a6f7bf8c46f7af35ceeb1da2a636 -SIZE (asterisk/pjproject-2.9.tar.bz2) = 5009546 +TIMESTAMP = 1594922486 +SHA256 (asterisk/asterisk-13.35.0.tar.gz) = ac9b54f2fa42000e9cb3445f59784de317c25f99818169d97cce4f9983005ae3 +SIZE (asterisk/asterisk-13.35.0.tar.gz) = 33685340 SHA256 (asterisk/asterisk-core-sounds-en-g729-1.5.tar.gz) = 8b28a59cfa53b59c76e0a191704f0708e3d83acffab8c5e6f25dfc599f0123f9 SIZE (asterisk/asterisk-core-sounds-en-g729-1.5.tar.gz) = 1551123 SHA256 (asterisk/asterisk-moh-opsound-g729-2.03.tar.gz) = 0147ca9a97f0c550227aacb7793499057c4d2c64e021c95f93722f27d5549585 SIZE (asterisk/asterisk-moh-opsound-g729-2.03.tar.gz) = 1103000 SHA256 (asterisk/traud-asterisk-opus-83e1b458c77e0e287adeca494eeb79edb077b0ff_GH0.tar.gz) = 572a3c956371ed62b44a4bcd973db10eb4c84f3040cf7156e3acfad3b6bf3ded SIZE (asterisk/traud-asterisk-opus-83e1b458c77e0e287adeca494eeb79edb077b0ff_GH0.tar.gz) = 24044 +SHA256 (asterisk/pjsip-pjproject-2.10_GH0.tar.gz) = 936a4c5b98601b52325463a397ddf11ab4106c6a7b04f8dc7cdd377efbb597de +SIZE (asterisk/pjsip-pjproject-2.10_GH0.tar.gz) = 8768705 diff --git a/net/asterisk13/files/patch-Makefile b/net/asterisk13/files/patch-Makefile index 4d6fd01a7633..63fb3a33e4e0 100644 --- a/net/asterisk13/files/patch-Makefile +++ b/net/asterisk13/files/patch-Makefile @@ -1,4 +1,4 @@ ---- Makefile.orig 2018-08-28 19:07:13 UTC +--- Makefile.orig 2020-07-09 15:33:47 UTC +++ Makefile @@ -141,7 +141,7 @@ ASTTOPDIR:=$(subst $(space),\$(space),$(CURDIR)) OVERWRITE=y @@ -27,7 +27,7 @@ _ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi) endif -@@ -466,8 +466,12 @@ endif +@@ -470,8 +470,12 @@ endif $(INSTALL) -m 644 $$n "$(DESTDIR)$(ASTDATADIR)/static-http/docs" ; \ done \ fi @@ -41,7 +41,7 @@ done $(MAKE) -C sounds install find rest-api -name "*.json" | while read x; do \ -@@ -566,7 +570,7 @@ INSTALLDIRS="$(ASTLIBDIR)" "$(ASTMODDIR)" "$(ASTSBINDI +@@ -569,7 +573,7 @@ INSTALLDIRS="$(ASTLIBDIR)" "$(ASTMODDIR)" "$(ASTSBINDI "$(ASTDATADIR)/firmware/iax" "$(ASTDATADIR)/images" "$(ASTDATADIR)/keys" \ "$(ASTDATADIR)/phoneprov" "$(ASTDATADIR)/rest-api" "$(ASTDATADIR)/static-http" \ "$(ASTDATADIR)/sounds" "$(ASTDATADIR)/moh" "$(ASTMANDIR)/man8" "$(AGI_DIR)" "$(ASTDBDIR)" \ @@ -50,7 +50,7 @@ installdirs: @for i in $(INSTALLDIRS); do \ -@@ -605,10 +609,10 @@ endif +@@ -602,10 +606,10 @@ endif if [ -f contrib/firmware/iax/iaxy.bin ] ; then \ $(INSTALL) -m 644 contrib/firmware/iax/iaxy.bin "$(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin"; \ fi @@ -65,7 +65,7 @@ $(SUBDIRS_INSTALL): +@DESTDIR="$(DESTDIR)" ASTSBINDIR="$(ASTSBINDIR)" ASTDATADIR="$(ASTDATADIR)" $(SUBMAKE) -C $(@:-install=) install -@@ -723,7 +727,7 @@ ifneq ($(filter ~%,$(DESTDIR)),) +@@ -720,7 +724,7 @@ ifneq ($(filter ~%,$(DESTDIR)),) @exit 1 endif @@ -74,7 +74,7 @@ @if [ -x /usr/sbin/asterisk-post-install ]; then \ /usr/sbin/asterisk-post-install "$(DESTDIR)" . ; \ fi -@@ -768,23 +772,10 @@ upgrade: bininstall +@@ -765,23 +769,10 @@ upgrade: bininstall # (2) the extension to strip off define INSTALL_CONFIGS @for x in $(1)/*$(2); do \ @@ -100,7 +100,7 @@ echo "Updating asterisk.conf" ; \ sed -e 's|^astetcdir.*$$|astetcdir => $(ASTETCDIR)|' \ -e 's|^astmoddir.*$$|astmoddir => $(ASTMODDIR)|' \ -@@ -797,8 +788,8 @@ define INSTALL_CONFIGS +@@ -794,8 +785,8 @@ define INSTALL_CONFIGS -e 's|^astrundir.*$$|astrundir => $(ASTVARRUNDIR)|' \ -e 's|^astlogdir.*$$|astlogdir => $(ASTLOGDIR)|' \ -e 's|^astsbindir.*$$|astsbindir => $(ASTSBINDIR)|' \ @@ -111,7 +111,7 @@ rm -f "$(DESTDIR)$(ASTCONFPATH).tmp" ; \ fi endef -@@ -822,7 +813,7 @@ adsi: +@@ -829,7 +820,7 @@ adsi: else \ echo "Installing $$x" ; \ fi ; \ diff --git a/net/asterisk13/files/patch-agi__Makefile b/net/asterisk13/files/patch-agi_Makefile index 59d928b697b3..29735b138c09 100644 --- a/net/asterisk13/files/patch-agi__Makefile +++ b/net/asterisk13/files/patch-agi_Makefile @@ -1,4 +1,4 @@ ---- agi/Makefile.orig 2012-10-14 21:56:13 UTC +--- agi/Makefile.orig 2020-07-09 15:33:47 UTC +++ agi/Makefile @@ -16,7 +16,9 @@ ASTTOPDIR?=.. diff --git a/net/asterisk13/files/patch-channels-chan_dahdi.c b/net/asterisk13/files/patch-channels_chan__dahdi.c index e403ea87a28c..a9844096f6ca 100644 --- a/net/asterisk13/files/patch-channels-chan_dahdi.c +++ b/net/asterisk13/files/patch-channels_chan__dahdi.c @@ -1,4 +1,4 @@ ---- channels/chan_dahdi.c.orig 2020-06-11 08:42:48 UTC +--- channels/chan_dahdi.c.orig 2020-07-09 15:33:47 UTC +++ channels/chan_dahdi.c @@ -4716,6 +4716,8 @@ void dahdi_ec_enable(struct dahdi_pvt *p) return; @@ -30,16 +30,3 @@ if (res) ast_log(LOG_WARNING, "Unable to disable echo cancellation on channel %d: %s\n", p->channel, strerror(errno)); -@@ -18271,8 +18275,10 @@ static int process_dahdi(struct dahdi_chan_conf *confp - if ((varval = strchr(varname, '='))) { - *varval++ = '\0'; - if ((tmpvar = ast_variable_new(varname, varval, ""))) { -- tmpvar->next = confp->chan.vars; -- confp->chan.vars = tmpvar; -+ if (ast_variable_list_replace(&confp->chan.vars, tmpvar)) { -+ tmpvar->next = confp->chan.vars; -+ confp->chan.vars = tmpvar; -+ } - } - } - } diff --git a/net/asterisk13/files/patch-channels__sip__include__sip.h b/net/asterisk13/files/patch-channels_sip_include_sip.h index a5ed190fc7c5..0a12caf80277 100644 --- a/net/asterisk13/files/patch-channels__sip__include__sip.h +++ b/net/asterisk13/files/patch-channels_sip_include_sip.h @@ -1,4 +1,4 @@ ---- channels/sip/include/sip.h.orig 2014-07-24 17:47:29 UTC +--- channels/sip/include/sip.h.orig 2020-07-09 15:33:47 UTC +++ channels/sip/include/sip.h @@ -192,7 +192,7 @@ #define DEFAULT_MOHINTERPRET "default" /*!< The default music class */ diff --git a/net/asterisk13/files/patch-configure b/net/asterisk13/files/patch-configure index e40c7918f44c..592edfbeea76 100644 --- a/net/asterisk13/files/patch-configure +++ b/net/asterisk13/files/patch-configure @@ -1,4 +1,4 @@ ---- configure.orig 2020-04-30 14:04:41 UTC +--- configure.orig 2020-07-09 15:33:47 UTC +++ configure @@ -4667,8 +4667,6 @@ case "${host_os}" in ;; @@ -9,7 +9,7 @@ ;; openbsd*) ac_default_prefix=/usr/local -@@ -20566,6 +20564,8 @@ $as_echo_n "checking for getifaddrs() support... " >&6 +@@ -20570,6 +20568,8 @@ $as_echo_n "checking for getifaddrs() support... " >&6 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18,7 +18,7 @@ #include <ifaddrs.h> int main () -@@ -29281,6 +29281,8 @@ fi +@@ -29285,6 +29285,8 @@ fi for ver in 5.3 5.2 5.1; do @@ -27,7 +27,7 @@ if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then pbxlibdir="" # if --with-LUA=DIR has been specified, use it. -@@ -29296,12 +29298,12 @@ if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; +@@ -29300,12 +29302,12 @@ if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; CFLAGS="${CFLAGS} " as_ac_Lib=`$as_echo "ac_cv_lib_lua${ver}''_luaL_newstate" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua${ver}" >&5 @@ -42,7 +42,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -@@ -29343,7 +29345,7 @@ fi +@@ -29347,7 +29349,7 @@ fi # now check for the header. if test "${AST_LUA_FOUND}" = "yes"; then @@ -51,7 +51,7 @@ # if --with-LUA=DIR has been specified, use it. if test "x${LUA_DIR}" != "x"; then LUA_INCLUDE="-I${LUA_DIR}/include" -@@ -29354,7 +29356,7 @@ fi +@@ -29358,7 +29360,7 @@ fi ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}" as_ac_Header=`$as_echo "ac_cv_header_lua${ver}/lua.h" | $as_tr_sh` @@ -60,7 +60,7 @@ if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : LUA_HEADER_FOUND=1 else -@@ -29381,9 +29383,9 @@ fi +@@ -29385,9 +29387,9 @@ fi if test "x${PBX_LUA}" = "x1" ; then if test x"${LUA_DIR}" = x; then diff --git a/net/asterisk13/files/patch-contrib_Makefile b/net/asterisk13/files/patch-contrib_Makefile index 1b2e67909406..d079d318d26a 100644 --- a/net/asterisk13/files/patch-contrib_Makefile +++ b/net/asterisk13/files/patch-contrib_Makefile @@ -1,4 +1,4 @@ ---- contrib/Makefile.orig 2017-04-12 21:47:53 UTC +--- contrib/Makefile.orig 2020-07-09 15:33:47 UTC +++ contrib/Makefile @@ -24,10 +24,10 @@ install: $(INSTALL) -m 755 scripts/ast_logescalator "$(DESTDIR)$(ASTDATADIR)/scripts/ast_logescalator" diff --git a/net/asterisk13/files/patch-main__Makefile b/net/asterisk13/files/patch-main_Makefile index e0930a9a7dc2..e2ea9aa25018 100644 --- a/net/asterisk13/files/patch-main__Makefile +++ b/net/asterisk13/files/patch-main_Makefile @@ -1,4 +1,4 @@ ---- main/Makefile.orig 2017-10-13 17:46:56 UTC +--- main/Makefile.orig 2020-07-09 15:33:47 UTC +++ main/Makefile @@ -75,9 +75,12 @@ endif diff --git a/net/asterisk13/files/patch-main__asterisk.exports.in b/net/asterisk13/files/patch-main_asterisk.exports.in index e5b732a4776d..46639880e2fa 100644 --- a/net/asterisk13/files/patch-main__asterisk.exports.in +++ b/net/asterisk13/files/patch-main_asterisk.exports.in @@ -1,6 +1,6 @@ ---- main/asterisk.exports.in.orig 2017-10-13 17:46:56 UTC +--- main/asterisk.exports.in.orig 2020-07-09 15:33:47 UTC +++ main/asterisk.exports.in -@@ -70,6 +70,8 @@ +@@ -67,6 +67,8 @@ */ LINKER_SYMBOL_PREFIX_IO_stdin_used; diff --git a/net/asterisk13/files/patch-main__http.c b/net/asterisk13/files/patch-main_http.c index 68af6495c301..19c3b1b8e5b8 100644 --- a/net/asterisk13/files/patch-main__http.c +++ b/net/asterisk13/files/patch-main_http.c @@ -1,6 +1,6 @@ ---- main/http.c.orig 2017-10-13 17:46:56 UTC +--- main/http.c.orig 2020-07-09 15:33:47 UTC +++ main/http.c -@@ -2098,7 +2098,7 @@ static int __ast_http_load(int reload) +@@ -2110,7 +2110,7 @@ static int __ast_http_load(int reload) struct http_uri_redirect *redirect; struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; uint32_t bindport = DEFAULT_PORT; diff --git a/net/asterisk13/files/patch-main__lock.c b/net/asterisk13/files/patch-main_lock.c index b0eb44435d34..ceb3177cb193 100644 --- a/net/asterisk13/files/patch-main__lock.c +++ b/net/asterisk13/files/patch-main_lock.c @@ -1,6 +1,6 @@ ---- main/lock.c.orig 2017-10-13 17:46:56 UTC +--- main/lock.c.orig 2020-07-09 15:33:47 UTC +++ main/lock.c -@@ -703,9 +703,6 @@ int __ast_rwlock_init(int tracking, const char *filena +@@ -700,9 +700,6 @@ int __ast_rwlock_init(int tracking, const char *filena #endif /* DEBUG_THREADS */ pthread_rwlockattr_init(&attr); diff --git a/net/asterisk13/files/patch-third-party_pjproject_Makefile b/net/asterisk13/files/patch-third-party_pjproject_Makefile index c6c2da016933..3ff96606b3ec 100644 --- a/net/asterisk13/files/patch-third-party_pjproject_Makefile +++ b/net/asterisk13/files/patch-third-party_pjproject_Makefile @@ -1,4 +1,4 @@ ---- third-party/pjproject/Makefile.orig 2020-04-30 14:04:41 UTC +--- third-party/pjproject/Makefile.orig 2020-07-09 15:33:47 UTC +++ third-party/pjproject/Makefile @@ -90,14 +90,10 @@ _all: $(TARGETS) diff --git a/net/asterisk13/files/patch-third-party_pjproject_Makefile.rules b/net/asterisk13/files/patch-third-party_pjproject_Makefile.rules index a37205807e4e..3b9a877325cc 100644 --- a/net/asterisk13/files/patch-third-party_pjproject_Makefile.rules +++ b/net/asterisk13/files/patch-third-party_pjproject_Makefile.rules @@ -1,5 +1,14 @@ ---- third-party/pjproject/Makefile.rules.orig 2020-03-12 14:37:03 UTC +--- third-party/pjproject/Makefile.rules.orig 2020-07-09 15:33:47 UTC +++ third-party/pjproject/Makefile.rules +@@ -7,7 +7,7 @@ + # PACKAGE_URL ?= http://www.pjsip.org/release/$(PJPROJECT_VERSION) + + PACKAGE_URL ?= https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/$(PJPROJECT_VERSION) +-TARBALL_FILE = pjproject-$(PJPROJECT_VERSION).tar.bz2 ++TARBALL_FILE = pjsip-pjproject-$(PJPROJECT_VERSION)_GH0.tar.gz + + # PJPROJECT_CONFIGURE_OPTS could come from the command line or could be + # set/modified by configure.m4 if the build or host tuples aren't the same @@ -37,7 +37,7 @@ PJPROJECT_CONFIG_OPTS = $(PJPROJECT_CONFIGURE_OPTS) -- --disable-ipp \ --disable-libwebrtc \ |