[gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/

2021-11-11 Thread Sam James
commit: 8d80c86857d4c3af405ce22bd54d8569401bde43
Author: Jaco Kroon  uls  co  za>
AuthorDate: Wed Nov 10 08:04:36 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov 12 01:32:56 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d80c868

net-misc/asterisk: 13.38.3-r2

Revision bump with the specific purpose of addressing:

Closes: https://bugs.gentoo.org/822084
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Jaco Kroon  uls.co.za>
Closes: https://github.com/gentoo/gentoo/pull/22879
Signed-off-by: Sam James  gentoo.org>

 .../{asterisk-13.38.3-r1.ebuild => asterisk-13.38.3-r2.ebuild}| 5 +++--
 net-misc/asterisk/files/asterisk.tmpfiles-13.38.3-r2.conf | 1 +
 net-misc/asterisk/files/asterisk.tmpfiles2.conf   | 1 -
 net-misc/asterisk/files/{initd-13.32.0-r1 => initd-13.38.3-r2}| 8 
 4 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/net-misc/asterisk/asterisk-13.38.3-r1.ebuild 
b/net-misc/asterisk/asterisk-13.38.3-r2.ebuild
similarity index 98%
rename from net-misc/asterisk/asterisk-13.38.3-r1.ebuild
rename to net-misc/asterisk/asterisk-13.38.3-r2.ebuild
index 9c92d3c2042..12bf7e259cb 100644
--- a/net-misc/asterisk/asterisk-13.38.3-r1.ebuild
+++ b/net-misc/asterisk/asterisk-13.38.3-r2.ebuild
@@ -109,6 +109,7 @@ QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
 _make_args=(
"NOISY_BUILD=yes"
"ASTDBDIR=\$(ASTDATADIR)/astdb"
+   "ASTVARRUNDIR=/run/asterisk"
"OPTIMIZE="
"DEBUG="
"DESTDIR=${D}"
@@ -292,11 +293,11 @@ src_install() {
diropts -m 0750 -o asterisk -g asterisk
keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
 
-   newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
+   newinitd "${FILESDIR}"/initd-13.38.3-r2 asterisk
newconfd "${FILESDIR}"/confd-13.32.0 asterisk
 
systemd_dounit "${FILESDIR}"/asterisk.service
-   newtmpfiles "${FILESDIR}"/asterisk.tmpfiles2.conf asterisk.conf
+   newtmpfiles "${FILESDIR}"/asterisk.tmpfiles-13.38.3-r2.conf 
asterisk.conf
systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
 
# Reset diropts else dodoc uses it for doc installations.

diff --git a/net-misc/asterisk/files/asterisk.tmpfiles-13.38.3-r2.conf 
b/net-misc/asterisk/files/asterisk.tmpfiles-13.38.3-r2.conf
new file mode 100644
index 000..dc999ee65fc
--- /dev/null
+++ b/net-misc/asterisk/files/asterisk.tmpfiles-13.38.3-r2.conf
@@ -0,0 +1 @@
+d /run/asterisk 0750 asterisk asterisk

diff --git a/net-misc/asterisk/files/asterisk.tmpfiles2.conf 
b/net-misc/asterisk/files/asterisk.tmpfiles2.conf
deleted file mode 100644
index ce85c7f5461..000
--- a/net-misc/asterisk/files/asterisk.tmpfiles2.conf
+++ /dev/null
@@ -1 +0,0 @@
-d /var/run/asterisk 0750 asterisk asterisk

diff --git a/net-misc/asterisk/files/initd-13.32.0-r1 
b/net-misc/asterisk/files/initd-13.38.3-r2
similarity index 98%
rename from net-misc/asterisk/files/initd-13.32.0-r1
rename to net-misc/asterisk/files/initd-13.38.3-r2
index 2a7387dc2eb..8a4555be7ec 100644
--- a/net-misc/asterisk/files/initd-13.32.0-r1
+++ b/net-misc/asterisk/files/initd-13.38.3-r2
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 extra_started_commands="forcestop reload"
@@ -30,7 +30,7 @@ setup_svc_variables()
local t
 
ast_instancename=asterisk
-   ast_rundir=/var/run/${RC_SVCNAME}
+   ast_rundir=/run/${RC_SVCNAME}
ast_logdir=/var/log/${RC_SVCNAME}
ast_spooldir=/var/spool/${RC_SVCNAME}
ast_confdir=/etc/${RC_SVCNAME/.//}
@@ -291,7 +291,7 @@ wrapperstop() {
# Accomodate system upgrades (so a previous version of the wrapper 
script that still uses a pid file may be running).
if [ -r "${ast_rundir}/wrapper_loop.pid" ]; then
ebegin "Killing ${ast_instancename} wrapper script"
-   kill "$(cat /var/run/asterisk/wrapper_loop.pid)"
+   kill "$(cat /run/asterisk/wrapper_loop.pid)"
eend $?
fi
 
@@ -313,7 +313,7 @@ forcestop() {
wrapperstop
 
ebegin "Stopping ${ast_instancename} PBX"
-   start-stop-daemon --stop --pidfile /var/run/asterisk/asterisk.pid
+   start-stop-daemon --stop --pidfile /run/asterisk/asterisk.pid
eend $?
 }
 



[gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/

2021-05-22 Thread Sam James
commit: 64969b9652f34bea460cddebde40c14569427052
Author: Jaco Kroon  uls  co  za>
AuthorDate: Sat May 22 14:58:46 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 22 15:26:40 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64969b96

net-misc/asterisk: 16.18.0 version bump shutdown deadlock.

Introduce combined patch of:

https://gerrit.asterisk.org/c/asterisk/+/15942 (CLI: locks show)
https://gerrit.asterisk.org/c/asterisk/+/15943 (unload memory corruption)
https://gerrit.asterisk.org/c/asterisk/+/15944 (error path ref counting)
https://gerrit.asterisk.org/c/asterisk/+/15945 (ast_module_ref usage)

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Jaco Kroon  uls.co.za>
Signed-off-by: Sam James  gentoo.org>

 ...k-16.18.0.ebuild => asterisk-16.18.0-r1.ebuild} |   3 +-
 .../asterisk-16.18.0-r1-func_lock-fix-races.patch  | 177 +
 2 files changed, 179 insertions(+), 1 deletion(-)

diff --git a/net-misc/asterisk/asterisk-16.18.0.ebuild 
b/net-misc/asterisk/asterisk-16.18.0-r1.ebuild
similarity index 98%
rename from net-misc/asterisk/asterisk-16.18.0.ebuild
rename to net-misc/asterisk/asterisk-16.18.0-r1.ebuild
index fd51937b846..520bcc0b156 100644
--- a/net-misc/asterisk/asterisk-16.18.0.ebuild
+++ b/net-misc/asterisk/asterisk-16.18.0-r1.ebuild
@@ -28,7 +28,8 @@ REQUIRED_USE="gtalk? ( xmpp )
 "
 
 PATCHES=(
-   "${FILESDIR}/asterisk-16.16.2-no-var-run-install.patch"
+   "${FILESDIR}/${PN}-16.16.2-no-var-run-install.patch"
+   "${FILESDIR}/${PN}-16.18.0-r1-func_lock-fix-races.patch"
 )
 
 DEPEND="acct-user/asterisk

diff --git 
a/net-misc/asterisk/files/asterisk-16.18.0-r1-func_lock-fix-races.patch 
b/net-misc/asterisk/files/asterisk-16.18.0-r1-func_lock-fix-races.patch
new file mode 100644
index 000..a18ef34d499
--- /dev/null
+++ b/net-misc/asterisk/files/asterisk-16.18.0-r1-func_lock-fix-races.patch
@@ -0,0 +1,177 @@
+Combined patch from upstream (All authored by myself):
+
+https://gerrit.asterisk.org/c/asterisk/+/15942 (CLI: locks show)
+https://gerrit.asterisk.org/c/asterisk/+/15943 (unload memory corruption)
+https://gerrit.asterisk.org/c/asterisk/+/15944 (error path ref counting)
+https://gerrit.asterisk.org/c/asterisk/+/15945 (ast_module_ref usage)
+
+The cause of my nightmares was the unload memory corruption, however,
+the other two whilst much less likely to occur are just as serious.
+
+Fixes on all has been well tested.  The individual patches are quite small.
+
+Signed-off-by: Jaco Kroon 
+---
+diff --git a/funcs/func_lock.c b/funcs/func_lock.c
+index 072640751e..31a7fcda29 100644
+--- a/funcs/func_lock.c
 b/funcs/func_lock.c
+@@ -42,6 +42,7 @@
+ #include "asterisk/linkedlists.h"
+ #include "asterisk/astobj2.h"
+ #include "asterisk/utils.h"
++#include "asterisk/cli.h"
+ 
+ /*** DOCUMENTATION
+   
+@@ -157,6 +158,8 @@ static void lock_free(void *data)
+   AST_LIST_UNLOCK(oldlist);
+   AST_LIST_HEAD_DESTROY(oldlist);
+   ast_free(oldlist);
++
++  ast_module_unref(ast_module_info->self);
+ }
+ 
+ static void lock_fixup(void *data, struct ast_channel *oldchan, struct 
ast_channel *newchan)
+@@ -191,7 +194,12 @@ static int get_lock(struct ast_channel *chan, char 
*lockname, int trylock)
+   struct timeval now;
+ 
+   if (!lock_store) {
+-  ast_debug(1, "Channel %s has no lock datastore, so we're 
allocating one.\n", ast_channel_name(chan));
++  if (unloading) {
++  ast_log(LOG_ERROR, "%sLOCK has no datastore and 
func_lock is unloading, failing.\n",
++  trylock ? "TRY" : "");
++  return -1;
++  }
++
+   lock_store = ast_datastore_alloc(_info, NULL);
+   if (!lock_store) {
+   ast_log(LOG_ERROR, "Unable to allocate new datastore.  
No locks will be obtained.\n");
+@@ -210,6 +218,9 @@ static int get_lock(struct ast_channel *chan, char 
*lockname, int trylock)
+   lock_store->data = list;
+   AST_LIST_HEAD_INIT(list);
+   ast_channel_datastore_add(chan, lock_store);
++
++  /* We cannot unload until this channel has released the 
lock_store */
++  ast_module_ref(ast_module_info->self);
+   } else
+   list = lock_store->data;
+ 
+@@ -223,6 +234,9 @@ static int get_lock(struct ast_channel *chan, char 
*lockname, int trylock)
+ 
+   if (!current) {
+   if (unloading) {
++  ast_log(LOG_ERROR,
++  "Lock doesn't exist whilst unloading.  %sLOCK 
will fail.\n",
++  trylock ? "TRY" : "");
+   /* Don't bother */
+   AST_LIST_UNLOCK();
+   return -1;
+@@ -249,7 +263,6 @@ static int get_lock(struct ast_channel *chan, char 
*lockname, int trylock)
+   AST_LIST_UNLOCK();
+

[gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/

2021-03-19 Thread Joonas Niilola
commit: c21e28747944f84b98359b37cfe4d2f2e0b7bb0b
Author: Jaco Kroon  uls  co  za>
AuthorDate: Sat Mar 13 19:59:24 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Mar 19 08:51:49 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c21e2874

net-misc/asterisk: rev bump for 16.

Same changes as for 13, except that format_ogg_speex isn't being dropped
since it it was introduced in 16.

Closes: https://bugs.gentoo.org/772821
Introduce USE=deprecated to enable deprecated apps/funcs/features.  For
now, this is only app_macro.

Closes: https://bugs.gentoo.org/775005
net-misc/asterisk: injects some CFLAGS.  Thanks Sam.

Closes: https://bugs.gentoo.org/767262
systemd automagic dependency.

Closes: https://bugs.gentoo.org/775353
Make asterisk depend on the pjproject SUBSLOT.  Ie, rebuild if pjproject
gets updated.

Closes: https://bugs.gentoo.org/761442
Repair "security" issue in that /var/lib/asterisk can now be root:root.
The problem with having it asterisk: is that any arbitrary code vuln
becomes a data modification one.  So with this as root:root we can at
least prevent modifications to /var/lib/asterisk whilst still allowing
/var/lib/asterisk/astdb to be modified as required.

Repair default voicemail selection.  Thank you pkgcheck scan.

Drop ASTCFLAGS= and ASTLDFLAGS since ./configure already imports these.
I believe Tony added this as a hammer to deal with 775005 above since
these got re-added again after the asterisk injected ones.   By setting
DEBUG= and OPTIMIZE= this problem should now be something of the past.

Introduce GENTOO_ASTERISK_CUSTOM_MENUSELECT= environment variable that
can be set from make.conf and takes a string similar to USE flags,
except that these gets passed to menuselect one by one, if -option as
--disable option, else --enable option.  Prefixes + and - is supported,
and will be stripped before passing to menuselect.

menuselect has been patched to exit non-zero in case of invalid option
passed to --enable or --disable, resulting in above being reliable (if
you have something invalid in there, it will die).

Accordingly drop format_ogg_speex which doesn't exist in asterisk 13.

Drop no longer required ncurses dependencies (system libedit).

Explicitly pass ASTCACHEDIR=/var/cache/asterisk, and update install
patch to not install this path, handle in tmpfiles and initd since we're
not supposed to install into /var/cache either ...

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Jaco Kroon  uls.co.za>
Signed-off-by: Joonas Niilola  gentoo.org>

 net-misc/asterisk/asterisk-16.16.2-r1.ebuild   | 365 +
 .../asterisk-16.16.2-no-var-run-install.patch  |   2 +-
 net-misc/asterisk/files/asterisk.tmpfiles3.conf|   2 +
 net-misc/asterisk/files/confd-16.16.2-r1   | 171 ++
 net-misc/asterisk/files/initd-16.16.2-r1   | 363 
 net-misc/asterisk/metadata.xml |   3 +-
 6 files changed, 904 insertions(+), 2 deletions(-)

diff --git a/net-misc/asterisk/asterisk-16.16.2-r1.ebuild 
b/net-misc/asterisk/asterisk-16.16.2-r1.ebuild
new file mode 100644
index 000..4dc58a42a48
--- /dev/null
+++ b/net-misc/asterisk/asterisk-16.16.2-r1.ebuild
@@ -0,0 +1,365 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} )
+
+inherit autotools linux-info lua-single systemd toolchain-funcs tmpfiles
+
+DESCRIPTION="Asterisk: A Modular Open Source PBX System"
+HOMEPAGE="https://www.asterisk.org/;
+SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz;
+LICENSE="GPL-2"
+SLOT="0/${PV%%.*}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+
+IUSE_VOICEMAIL_STORAGE=(
+   +voicemail_storage_file
+   voicemail_storage_odbc
+   voicemail_storage_imap
+)
+IUSE="${IUSE_VOICEMAIL_STORAGE[*]} alsa blocks bluetooth calendar +caps 
cluster codec2 curl dahdi debug -deprecated doc freetds gtalk http iconv ilbc 
ldap libressl lua mysql newt odbc oss pjproject portaudio postgres radius 
selinux snmp span speex srtp +ssl static statsd syslog systemd unbound vorbis 
xmpp"
+IUSE_EXPAND="VOICEMAIL_STORAGE"
+REQUIRED_USE="gtalk? ( xmpp )
+   lua? ( ${LUA_REQUIRED_USE} )
+   ^^ ( ${IUSE_VOICEMAIL_STORAGE[*]//+/} )
+   voicemail_storage_odbc? ( odbc )
+"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-16.16.2-no-var-run-install.patch"
+   "${FILESDIR}/${PN}-16.15.1-r2-autoconf-2.70.patch"
+   "${FILESDIR}/${PN}-13.38.2-r1-menuselect-exitcodes.patch"
+)
+
+DEPEND="acct-user/asterisk
+   acct-group/asterisk
+   dev-db/sqlite:3
+   dev-libs/popt
+   >=dev-libs/jansson-2.11
+   dev-libs/libedit
+   dev-libs/libxml2:2
+   dev-libs/libxslt
+   sys-apps/util-linux
+   sys-libs/zlib
+   alsa? ( media-libs/alsa-lib )
+   bluetooth? ( net-wireless/bluez:= )
+   calendar? (
+   net-libs/neon:=

[gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/

2021-02-10 Thread Sam James
commit: 8960c56e222bf3166a8e10f1474d7d6330e9df11
Author: Jaco Kroon  uls  co  za>
AuthorDate: Wed Feb 10 18:14:34 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb 10 19:05:10 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8960c56e

net-misc/asterisk: cleanup "old" versions.

Signed-off-by: Jaco Kroon  uls.co.za>
Signed-off-by: Sam James  gentoo.org>

 net-misc/asterisk/asterisk-13.38.1-r1.ebuild   | 308 
 net-misc/asterisk/asterisk-13.38.1.ebuild  | 299 ---
 net-misc/asterisk/asterisk-16.15.1-r1.ebuild   | 313 -
 net-misc/asterisk/asterisk-16.15.1.ebuild  | 304 
 net-misc/asterisk/files/asterisk.tmpfiles.conf |   2 -
 5 files changed, 1226 deletions(-)

diff --git a/net-misc/asterisk/asterisk-13.38.1-r1.ebuild 
b/net-misc/asterisk/asterisk-13.38.1-r1.ebuild
deleted file mode 100644
index 7fd03e6fd84..000
--- a/net-misc/asterisk/asterisk-13.38.1-r1.ebuild
+++ /dev/null
@@ -1,308 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..4} )
-
-inherit autotools linux-info lua-single systemd
-
-DESCRIPTION="Asterisk: A Modular Open Source PBX System"
-HOMEPAGE="https://www.asterisk.org/;
-SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
-   
https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2;
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
-
-IUSE_VOICEMAIL_STORAGE="
-   +voicemail_storage_file
-   voicemail_storage_odbc
-   voicemail_storage_imap
-"
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl 
dahdi debug doc freetds gtalk http iconv ilbc ldap libressl lua mysql newt odbc 
oss pjproject portaudio postgres radius selinux snmp span speex srtp +ssl 
static statsd syslog vorbis xmpp"
-IUSE_EXPAND="VOICEMAIL_STORAGE"
-REQUIRED_USE="gtalk? ( xmpp )
-   lua? ( ${LUA_REQUIRED_USE} )
-   ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
-   voicemail_storage_odbc? ( odbc )
-"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
-   "${FILESDIR}/${PN}-13.38.1-r1-autoconf-lua-version.patch"
-   "${FILESDIR}/${PN}-13.38.1-r1-func_lock-fix-races.patch"
-)
-
-DEPEND="acct-user/asterisk
-   acct-group/asterisk
-   dev-db/sqlite:3
-   dev-libs/popt
-   dev-libs/jansson
-   dev-libs/libedit
-   dev-libs/libxml2:2
-   dev-libs/libxslt
-   sys-libs/ncurses:0=
-   sys-libs/zlib
-   alsa? ( media-libs/alsa-lib )
-   bluetooth? ( net-wireless/bluez:= )
-   calendar? (
-   net-libs/neon:=
-   dev-libs/libical:=
-   dev-libs/iksemel
-   )
-   caps? ( sys-libs/libcap )
-   cluster? ( sys-cluster/corosync )
-   curl? ( net-misc/curl )
-   dahdi? (
-   net-libs/libpri
-   net-misc/dahdi-tools
-   )
-   freetds? ( dev-db/freetds )
-   gtalk? ( dev-libs/iksemel )
-   http? ( dev-libs/gmime:2.6 )
-   iconv? ( virtual/libiconv )
-   ilbc? ( media-libs/libilbc )
-   ldap? ( net-nds/openldap )
-   lua? ( ${LUA_DEPS} )
-   mysql? ( dev-db/mysql-connector-c:= )
-   newt? ( dev-libs/newt )
-   odbc? ( dev-db/unixODBC )
-   pjproject? ( net-libs/pjproject )
-   portaudio? ( media-libs/portaudio )
-   postgres? ( dev-db/postgresql:* )
-   radius? ( net-dialup/freeradius-client )
-   snmp? ( net-analyzer/net-snmp:= )
-   span? ( media-libs/spandsp )
-   speex? (
-   media-libs/libogg
-   media-libs/speex
-   media-libs/speexdsp
-   )
-   srtp? ( net-libs/libsrtp:0 )
-   ssl? (
-   !libressl? ( dev-libs/openssl:0= )
-   libressl? ( dev-libs/libressl:0= )
-   )
-   vorbis? (
-   media-libs/libogg
-   media-libs/libvorbis
-   )
-   voicemail_storage_imap? ( virtual/imap-c-client )
-   xmpp? ( dev-libs/iksemel )
-"
-
-RDEPEND="${DEPEND}
-   net-misc/asterisk-core-sounds
-   net-misc/asterisk-extra-sounds
-   net-misc/asterisk-moh-opsound
-   selinux? ( sec-policy/selinux-asterisk )
-   syslog? ( virtual/logger )"
-
-BDEPEND="virtual/pkgconfig"
-
-QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
-
-pkg_setup() {
-   CONFIG_CHECK="~!NF_CONNTRACK_SIP"
-   local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is 
enabled. Some users
-   have reported that this module dropped critical SIP packets in their 
deployments. You
-   may want to disable it if you see such problems."
-   check_extra_config
-
-   use lua && lua-single_pkg_setup
-}
-
-src_prepare() {
-   default
-   AT_M4DIR="autoconf third-party third-party/pjproject 
third-party/jansson" eautoreconf
-}
-

[gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/

2021-01-07 Thread Andreas Sturmlechner
commit: c3b2bb5a7088770e87052841dce6078fc31dc338
Author: Jaco Kroon  uls  co  za>
AuthorDate: Mon Nov  2 07:18:52 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Jan  7 19:41:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b2bb5a

net-misc/asterisk: Cleanup old versions.

Signed-off-by: Jaco Kroon  uls.co.za>
Closes: https://github.com/gentoo/gentoo/pull/18110
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 net-misc/asterisk/Manifest |   7 -
 net-misc/asterisk/asterisk-13.34.0.ebuild  | 295 
 net-misc/asterisk/asterisk-13.35.0.ebuild  | 299 
 net-misc/asterisk/asterisk-13.36.0.ebuild  | 299 
 net-misc/asterisk/asterisk-13.37.0.ebuild  | 299 
 net-misc/asterisk/asterisk-16.12.0-r1.ebuild   | 304 -
 net-misc/asterisk/asterisk-16.13.0.ebuild  | 304 -
 net-misc/asterisk/asterisk-16.14.0.ebuild  | 304 -
 .../asterisk/files/asterisk-13.33.0-nossl.patch|  94 ---
 9 files changed, 2205 deletions(-)

diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index 59e0c86d51a..4f9d9cb309d 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -1,10 +1,3 @@
-DIST asterisk-13.34.0.tar.gz 33686020 BLAKE2B 
48de77f2e29028ab3503ea30038e629b6ede43154bec8efe1384a7077fb971f91b85d9b4eb55f7a4ea6577a31ad5fe496453fe59cd607a0c613e46edef9a11d9
 SHA512 
2132db831bb063330c47cea8cea67af706839d25e64eee558475643cb79a4e548fc6ffe7ce61a053f41cf6f367320eedaa87973a5de4ef38ae858a6e5a183ee7
-DIST asterisk-13.35.0.tar.gz 33685340 BLAKE2B 
728281257541977ac150b1b7d6148fd326c584f7827af46882ff3e3af111d876c3e53f92f1034c55875d730e5b92c379b8906198393b7a4227a5bb74818ab27c
 SHA512 
7596f387d45ef9f0327d78bc0446979e233aba517bbedfb539409cc507e2dac15e3b32d5c8a5e69783d106d4244661cb20b0580ed00904699bc5bf5db7b4713a
-DIST asterisk-13.36.0.tar.gz 33692378 BLAKE2B 
7252e7a103d94bbdd4073563f88ec2952ef88856cb5a98f7a07818a993c1064ca4ffb12202f2c297125d7bc3fd3814c9921a87c179db03dede05162844bebbd1
 SHA512 
276175e6df1c8a2e642c4607aa32515e7c4fffe50f7db89bbfee8850b286579350a074bb8bbe743b3e95d6ce2d92f8d5444053fe52527071cc884356b57a1efc
-DIST asterisk-13.37.0.tar.gz 33696267 BLAKE2B 
806e48fd2ed497becef87e5a349854e377aaaeb5f749e4c8ce957b585256edcc3c1812f199f793eecc829155baf12336f4971d2664e836ad38248139f5fc719f
 SHA512 
f01ebc3a0b4d598f35f26e60aa6fdc03ab5d4ee28547ec048c2af9ab67f2657a5767484bf7d07d8fbcb1e84ce6865f4fe70772f30a5dc45568669ffeb7387b8e
 DIST asterisk-13.38.1.tar.gz 33705256 BLAKE2B 
c783ee40880455cee5a60b111f69d95fdc42bd42a598834236ed0f2f401548229560e937fa8d842c5d24715d3891e7860f098d35d5630522e7a659123242
 SHA512 
270b7c8374104b3c2e503fa5cab5b465e37ddfa6759c1019fb99b6bb5877fe4505501ac3306a708ce911aeda36d04796f51156312c04fec013dbaa56a57f
-DIST asterisk-16.12.0.tar.gz 27727347 BLAKE2B 
3e2e986136e5ff19a876f01fdc6db1b6c22f83bf38f8524a418e474e2400375d8091dd215fb54f5b01f998cecf46d6965a0c35a44dc6f3be7f7a811e2ce70b8c
 SHA512 
1fc41b92d070efd4a7ea5db1a36c83bdb6dbbe7d9b5087b0a887ba3d6875e81ba1b71a79b216138b242f0349a176baf6745480ff6fb7ed47c62dda4b09b6a891
-DIST asterisk-16.13.0.tar.gz 27735450 BLAKE2B 
64cc75c7aa715734ebaf06fe7b3df54cfa309fc6126b45abfc21cc22c2c4e795946be473ce2887dc074124f9da6c8937d1bb4207fecf402eed7803ed063faa80
 SHA512 
872c5a5cb8faf9b1632895dafb6ee86c87e1766c9f33099b32216e6703f063800f87cac6db3537d1744349c42abd3ea83d70afe35138e45fb756872688822dfa
-DIST asterisk-16.14.0.tar.gz 27740877 BLAKE2B 
f8a09d39c36c1cdcc17878f1af69da7691503290177583ec1a92ac0471c029e527a3b62bd731a7340c43fb7abeca32b604303f0739e614c5a1edb0131f07e0fd
 SHA512 
699b0c701a00df0ffcb7094f5cc732b645775deb85486e044685685b81aad09e6b2e9558436e80c505de93add630b76cf49d7261ba8eaae46f93272844346234
 DIST asterisk-16.15.1.tar.gz 27796648 BLAKE2B 
4daa0b121a789d0384d81c3b56951bfd7c919cae3de1d7eaa0ba50f01f428c1d56555838f9ce2b3fe24309b131310c59622ed114cd4f76ac7b06896ceb3da6fc
 SHA512 
5ce6e1301825b142859087ba237b2c1b3e0687cac3fac28f35b043727cac26583697534b2726a65510e50ef27cf373b0c4cef60042f789aa6b875448a5f08914
 DIST gentoo-asterisk-patchset-4.08.tar.bz2 2176 BLAKE2B 
7f8c9b5fda855091e66b2534d2be23fb1616f565480459f71f766826e5dcb24899e2ee9eefe74323e892624d32ab954ec7e9be6a002431ff029fc13493ed
 SHA512 
365c1b8628882c48c279e1fd77d982e6d0820ba7d7122e97bb4988f875d7010caa956798c833c3b01d389004fa08a63a9de2c1b452c9e5701c6106e29fd8e9e1

diff --git a/net-misc/asterisk/asterisk-13.34.0.ebuild 
b/net-misc/asterisk/asterisk-13.34.0.ebuild
deleted file mode 100644
index f24978bc763..000
--- a/net-misc/asterisk/asterisk-13.34.0.ebuild
+++ /dev/null
@@ -1,295 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools linux-info systemd
-
-DESCRIPTION="Asterisk: A Modular Open Source PBX 

[gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/

2020-03-20 Thread Joonas Niilola
commit: bef6c9937500cd1ff103da2117d7e20f268cfa47
Author: Jaco Kroon  uls  co  za>
AuthorDate: Sun Mar 15 18:45:40 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Mar 20 09:09:29 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bef6c993

net-misc/asterisk: version bump 13.32.0

Normal release.

Issues reported to Gentoo fixed from upstream was mysql's my_bool that
went away.

Include patches for binutils 2.34 (also submitted upstream so expect
removal in next release).

Also includes various init script improvements I've been running with
for a while now.

Closes: https://bugs.gentoo.org/594964
Closes: https://bugs.gentoo.org/624038
Closes: https://bugs.gentoo.org/710484
Closes: https://bugs.gentoo.org/711582
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Jaco Kroon  uls.co.za>
Closes: https://github.com/gentoo/gentoo/pull/14986
Signed-off-by: Joonas Niilola  gentoo.org>

 net-misc/asterisk/Manifest |   1 +
 net-misc/asterisk/asterisk-13.32.0.ebuild  | 332 ++
 .../files/asterisk-13.32.0-binutils-2.34.patch |  17 +
 .../asterisk-historic-dahdiras-without-root.patch  |  23 ++
 .../asterisk-historic-dundi-null-dereference.patch |  40 +++
 ...terisk-historic-invert-gmine-search-order.patch |  12 +
 .../asterisk-historic-no-var-run-install.patch |  14 +
 .../asterisk/files/asterisk-historic-uclibc.patch  |  23 ++
 net-misc/asterisk/files/confd-13.32.0  | 160 +
 net-misc/asterisk/files/initd-13.32.0  | 380 +
 10 files changed, 1002 insertions(+)

diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index beb287c4c6b..b80f8b9e177 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -2,6 +2,7 @@ DIST asterisk-11.25.3.tar.gz 35134682 BLAKE2B 
9da24d5d6a674ab660edb103e5fc56ddfb
 DIST asterisk-13.23.1.tar.gz 33064056 BLAKE2B 
7f531766df5f2db29b562e7c7d4e265d5cf610f192188691279c0294195b835bb62beef19d7e9554862e6b44764064b21d50a3e307bbf85dd12b67a2df8be459
 SHA512 
227bfc80b2e6382019d608296c4e1c8e992ba867636fa2c8ee578d0aa406b8828bf7962b24035d9b581c433afd18be7cbe98eb954112661b9759b6296ee686dd
 DIST asterisk-13.29.1.tar.gz 33061969 BLAKE2B 
b581a3b706438fd0f685cab9c6148f9803d09f878d2ec824cd7b3edb299d5514e7c473622f135caa8a7905ab70dff915b83ff9dcbcf80cb04955ba8dea03c968
 SHA512 
3c32324f67413abdf73a3146b8e280fd23d65854df23b87b01e7f20c635c304606f6216c49c6dcd44c3a09b945d15124a5d70182c4b69e5ed8e542a13589d2df
 DIST asterisk-13.31.0.tar.gz 33110710 BLAKE2B 
b4fd186697784d7755992f0ae0cd881c58878420a2a43e0d50e93b91ac1fb9e41d95d7419509a403112975a2b5968c9691ad04ebe04c28c9e80809ad06710ec5
 SHA512 
b95a982d132420b971cf6750b2124e8df9f7d1bdab788c972897dc1a5b9ac6dccc6414b9b4684fb2196782d12a8dddab4059c2bd3c19fd3de6ef4ff6a3656344
+DIST asterisk-13.32.0.tar.gz 33652378 BLAKE2B 
c6b0ca0895b25526c135332966f33761b74a88dec4a7b0ff0fe40263640ee2fb928eca29e716fba3cc8e96c6e395e7c70c36f41def6a0d055baac2a5c7b8637a
 SHA512 
daafcd5d3544725e7a96bd467d998c4d74fd3c5d7e9d8fb4ce16e340ce09c502b1603e468e89c5a62b59282848b4ff0a43bdbcd75902cd11f6951d828511e841
 DIST gentoo-asterisk-patchset-3.17.tar.bz2 5074 BLAKE2B 
3c945e77b54b2449253acb9fcea8d289a7a3184729190622c14aff5557d36c93556efa83320fe4e7ae84021960c09f35ae9f997e8015706eef933aae2948309e
 SHA512 
37f86f3c699b2643afd8080391e817a282571694bb56e00efd0734918dbc33d6c12a2463dbc24667597420863b4f506870140fbb8ef3f1700124ef790ae7252d
 DIST gentoo-asterisk-patchset-4.07.tar.bz2 2471 BLAKE2B 
d9026e7e8c12431496c24f204d117ed715741623195af10c838ec3ac5ce6a26fbb2d76d4c45c538881b532084e2ce74d2de83a27a0abaa5f65791be91416ef6d
 SHA512 
73a9f92e6a737687c311941100c45bbc573f54fa79d0284318996c0d70274a4d2218693406d71b371496d27123d4d99bbc159974388e6547a682c06084d3b4c5
 DIST gentoo-asterisk-patchset-4.08.tar.bz2 2176 BLAKE2B 
7f8c9b5fda855091e66b2534d2be23fb1616f565480459f71f766826e5dcb24899e2ee9eefe74323e892624d32ab954ec7e9be6a002431ff029fc13493ed
 SHA512 
365c1b8628882c48c279e1fd77d982e6d0820ba7d7122e97bb4988f875d7010caa956798c833c3b01d389004fa08a63a9de2c1b452c9e5701c6106e29fd8e9e1

diff --git a/net-misc/asterisk/asterisk-13.32.0.ebuild 
b/net-misc/asterisk/asterisk-13.32.0.ebuild
new file mode 100644
index 000..b6fe5c5964f
--- /dev/null
+++ b/net-misc/asterisk/asterisk-13.32.0.ebuild
@@ -0,0 +1,332 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools linux-info systemd
+
+MY_P="${PN}-${PV/_/-}"
+
+DESCRIPTION="Asterisk: A Modular Open Source PBX System"
+HOMEPAGE="https://www.asterisk.org/;
+SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz
+   
https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2;
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE_VOICEMAIL_STORAGE="
+   +voicemail_storage_file
+   voicemail_storage_odbc
+