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

2022-12-06 Thread Sam James
commit: 9666ed882a52f3280c9078bf6107fffa1a9da134
Author: Kerin Millar  plushkava  net>
AuthorDate: Sun Dec  4 04:38:26 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec  6 09:11:26 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9666ed88

net-misc/asterisk: Apply patsub_replacement defences

Per bug #881383, string replacing forms of parameter expansion must take care
to quote - or appropriately escape - any nested parameter expansions, assuming
that their values are intended to be taken literally (as is almost invariably
the case). This has long been the case, but the introduction of the new
patsub_replacement option in bash >=5.2 has brought the issue to the fore.

Note that, in this instance, it's actually a command substitution injected into
the replacement 'string' that merits quoting.

Signed-off-by: Kerin Millar  plushkava.net>
Bug: https://bugs.gentoo.org/881383
Signed-off-by: Sam James  gentoo.org>

 net-misc/asterisk/files/asterisk_wrapper-16.26.1-18.12.1 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-misc/asterisk/files/asterisk_wrapper-16.26.1-18.12.1 
b/net-misc/asterisk/files/asterisk_wrapper-16.26.1-18.12.1
index 477812171a86..8624bfa3383e 100644
--- a/net-misc/asterisk/files/asterisk_wrapper-16.26.1-18.12.1
+++ b/net-misc/asterisk/files/asterisk_wrapper-16.26.1-18.12.1
@@ -166,9 +166,9 @@ while [[ -r "${rundir}/${progname}.pid" ]]; do
if [[ -r core ]]; then
if [[ -n "${corerename+yes}" ]]; then
core_target="${core_pattern}"
-   core_target="${core_target//%h/$(hostname)}"
-   core_target="${core_target//%D/$(date +%Y%m%d)}"
-   core_target="${core_target//%T/$(date +%H%M%S)}"
+   core_target="${core_target//%h/"$(hostname)"}"
+   core_target="${core_target//%D/"$(date 
+%Y%m%d)"}"
+   core_target="${core_target//%T/"$(date 
+%H%M%S)"}"
mv core "${core_target}"
core_target=$(readlink -f "${core_target}")
else



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

2022-08-24 Thread John Helmert III
commit: 3936bafb10bd149224096c2600b6253424851486
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Wed Aug 24 17:38:55 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Wed Aug 24 21:11:14 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3936bafb

net-misc/asterisk: remove unused files

Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Portage 3.0.34 / pkgdev 0.2.1 / pkgcheck 0.10.14
Closes: https://github.com/gentoo/gentoo/pull/27004
Signed-off-by: John Helmert III  gentoo.org>

 net-misc/asterisk/files/confd-16.16.2-r1 | 171 -
 net-misc/asterisk/files/initd-16.22.0-18.8.0 | 363 ---
 2 files changed, 534 deletions(-)

diff --git a/net-misc/asterisk/files/confd-16.16.2-r1 
b/net-misc/asterisk/files/confd-16.16.2-r1
deleted file mode 100644
index a2da978af924..
--- a/net-misc/asterisk/files/confd-16.16.2-r1
+++ /dev/null
@@ -1,171 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-#
-# Additional options for asterisk
-#
-# see "asterisk -h" for a list of options
-#
-# No default.
-#
-#ASTERISK_OPTS=""
-
-#
-# User and group to run asterisk as
-#
-# Value: double-colon separated list of user and group, or empty to run as 
root:
-#
-#
-# "asterisk:asterisk" to run as user "asterisk" and group "asterisk"
-# "asterisk" to run as user "asterisk" and all groups that user "asterisk" is 
a member of
-# ":asterisk" to run as user "root" and group "asterisk"
-#
-# Default: asterisk
-#
-#ASTERISK_USER="asterisk"
-
-#
-# Nicelevel
-#
-# Set the priority of the asterisk process
-#
-# Value: (highest) -20..19 (lowest)
-#
-# No default (leave scheduling to be system default).
-#
-#ASTERISK_NICE="19"
-
-# Send crash notifications emails to this address
-# (needs a working mail service and /usr/sbin/sendmail to do so (e.g. ssmtp))
-#
-# Value: Email address or empty to disable
-#
-# No default.
-#
-#ASTERISK_NOTIFY_EMAIL="root"
-
-#
-# Send asterisk's output to this terminal
-#
-# Value: Full path to device node or a number
-#
-# No default.
-#
-#ASTERISK_TTY="/dev/tty9"
-
-#
-# Start an asterisk console on the terminal specified by ASTERISK_TTY
-#
-# Warning! Use only for debugging, this is a potential security issue!
-#
-# Value: yes/no
-#
-# Default: no
-#
-#ASTERISK_CONSOLE="no"
-
-#
-# Maximum size of core files.
-#
-# Value: Size in bytes, unlimited for no limit or empty to disable.
-#
-# Default:  do not generate core dumps
-#
-#ASTERISK_CORE_SIZE="unlimited"
-
-#
-# ASTERISK_CORE_DIR
-#
-# Value: Directory (will be created if non-existant).
-#
-# Default: /tmp
-#
-#ASTERISK_CORE_DIR="/var/lib/asterisk/core"
-
-#
-# Max number of filedescriptors.  asterisk can trivially run out of
-# descriptors.  In most (SIP) cases it uses at least four descriptors per call,
-# and this is a conservative value.
-#
-# Value: Number of descriptors
-#
-# Default: leave system default in place.
-#
-ASTERISK_MAX_FD="4096"
-
-#
-# Delay time before restarting asterisk after a crash.
-#
-# Value: Number of seconds to sleep after a crash before restarting.
-#
-# Default: 5
-#
-#ASTERISK_RESTART_DELAY=5
-
-#
-# The stop mechanism to use.  Asterisk can do gracefully, when convenient or 
now.
-# By default we expect you to want to stop as soon as possible, so we default
-#
-# Default: gracefully
-#
-#ASTERISK_STOP_METHOD="when convenient"
-
-#
-# By default the init script waits two minutes for asterisk to stop.  This 
allows
-# you to change that, or even completely disable and go into wait for ever 
mode (-1).
-# The value here is in seconds.
-#
-# Default: 120
-#
-#ASTERISK_STOP_TIMEOUT=-1
-
-#
-# Kill these tasks after asterisk crashed
-#
-# Warning! This will kill _ALL_ tasks with the specified names!
-#
-# Value: Space separated list of names in double quotes (e.g. "mpg123 mad")
-#
-# Default is to not do stupid things like killing random processes.
-#
-#ASTERISK_CLEANUP_ON_CRASH="mpg123 asterisk-mpg123 mad"
-
-#
-# ASTERISK_CONFDIR
-#
-# If you'd like an alternative folder to /etc/${RC_SVCNAME} to be used
-# (typically /etc/asterisk) to be used for configuration.
-#
-# Default: /etc/${RC_SVCNAME}
-#
-#ASTERISK_CONFDIR="/etc/foo/bar"
-
-# ASTERISK_CACHEDIR
-#
-# Value: Directory to which astcachedir in asterisk.conf is set.
-#
-# Default: /var/cache/asterisk
-#
-#ASTERISK_CACHEDIR="/var/cache/asterisk"
-
-
-#
-# Normally the init script will not wait for asterisk to fully boot.  With this
-# setting set to yes/true/1 it will issue a "core waitfullybooted" directly
-# after starting asterisk, and wait for asterisk to start up completely.  This
-# is useful in certain conditions where other software requires asterisk to be
-# properly started before they themselves can be started.
-#
-# Default:  no
-#
-#ASTERISK_WAITBOOTED=yes
-
-#
-# When core-dumping, the default was to generate core-$(date +%Y%m%d-%H%M%S).
-# In certain highly unusual configurations it's 

[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/

2021-06-17 Thread Joonas Niilola
commit: d7701464b4571edb08bfa357a40487448154b842
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Thu May 27 19:02:33 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Jun 17 06:49:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7701464

net-misc/asterisk: remove unused patch

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/21014
Signed-off-by: Joonas Niilola  gentoo.org>

 .../asterisk/files/asterisk-16.15.1-r2-autoconf-2.70.patch | 14 --
 1 file changed, 14 deletions(-)

diff --git a/net-misc/asterisk/files/asterisk-16.15.1-r2-autoconf-2.70.patch 
b/net-misc/asterisk/files/asterisk-16.15.1-r2-autoconf-2.70.patch
deleted file mode 100644
index 99c59754019..000
--- a/net-misc/asterisk/files/asterisk-16.15.1-r2-autoconf-2.70.patch
+++ /dev/null
@@ -1,14 +0,0 @@
 asterisk-16.15.1/configure.ac.o2021-01-08 18:41:50.979913016 +0200
-+++ asterisk-16.15.1/configure.ac  2021-01-08 18:42:23.739899786 +0200
-@@ -612,11 +612,6 @@
-   AC_MSG_ERROR([*** Could not find dirent header that defines 'DIR'.])
- fi
- 
--AC_HEADER_STDC
--if test "$ac_cv_header_stdc" != "yes"; then
--  AC_MSG_ERROR([*** ANSI C header files not found.])
--fi
--
- AC_HEADER_SYS_WAIT
- if test "$ac_cv_header_sys_wait_h" != "yes"; then
-   AC_MSG_ERROR([*** POSIX.1 compatible sys/wait.h is required.])



[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/, profiles/, net-misc/asterisk/

2020-12-20 Thread Marek Szuba
commit: 7e01288cd94aa05281f71226c679da470175f3af
Author: Marek Szuba  gentoo  org>
AuthorDate: Sun Dec 20 15:44:51 2020 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Sun Dec 20 15:47:20 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e01288c

net-misc/asterisk: migrate to lua-single.eclass

Upstream build scripts don't use pkgconfig to find Lua so it wasn't merely
a matter of pointing them to the wrapper, that said it was still simple
enough to make it use the ebuild-specified version. LUA_COMPAT set as per
the aforementioned scripts.

Closes: https://bugs.gentoo.org/752822
Signed-off-by: Marek Szuba  gentoo.org>

 net-misc/asterisk/asterisk-16.14.0-r100.ebuild | 311 +
 .../asterisk-16.14.0-autoconf-lua-version.patch|  31 ++
 profiles/package.mask  |   1 +
 3 files changed, 343 insertions(+)

diff --git a/net-misc/asterisk/asterisk-16.14.0-r100.ebuild 
b/net-misc/asterisk/asterisk-16.14.0-r100.ebuild
new file mode 100644
index 000..43d3c3dcdb5
--- /dev/null
+++ b/net-misc/asterisk/asterisk-16.14.0-r100.ebuild
@@ -0,0 +1,311 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} )
+
+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 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}-historic-no-var-run-install.patch"
+   "${FILESDIR}/${PN}-16.14.0-autoconf-lua-version.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/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-2.9 )
+   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= )
+   )
+   unbound? ( net-dns/unbound )
+   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() {
+ 

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

2020-07-20 Thread Sam James
commit: 50de65613bdbf4b6ed4072b5219c6f6436cf73b2
Author: Jaco Kroon  uls  co  za>
AuthorDate: Fri Jul 17 07:13:09 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 20 20:39:56 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50de6561

net-misc/asterisk: cleanup.

Remove a number of files which is no longer in use.

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

 net-misc/asterisk/files/1.6.2/asterisk.logrotate3  |  25 --
 net-misc/asterisk/files/1.6.2/call_data.txt|  32 --
 net-misc/asterisk/files/1.6.2/find_call_ids.sh |  17 -
 .../asterisk/files/1.6.2/find_call_sip_trace.sh|  21 --
 net-misc/asterisk/files/1.6.2/sip_calc_auth|  25 --
 net-misc/asterisk/files/1.8.0/asterisk.confd   |  94 --
 net-misc/asterisk/files/1.8.0/asterisk.initd7  | 346 
 net-misc/asterisk/files/1.8.0/asterisk.initd8  | 361 -
 net-misc/asterisk/files/1.8.0/find_call_ids.sh |  68 
 .../asterisk/files/1.8.0/find_call_sip_trace.sh|  76 -
 10 files changed, 1065 deletions(-)

diff --git a/net-misc/asterisk/files/1.6.2/asterisk.logrotate3 
b/net-misc/asterisk/files/1.6.2/asterisk.logrotate3
deleted file mode 100644
index 69296c99e66..000
--- a/net-misc/asterisk/files/1.6.2/asterisk.logrotate3
+++ /dev/null
@@ -1,25 +0,0 @@
-/var/log/asterisk/messages /var/log/asterisk/queue_log {
-   missingok
-   notifempty
-
-   postrotate
-   /usr/sbin/asterisk -rnx "logger reload" || /bin/true
-   endscript
-}
-
-/var/log/asterisk/debug /var/log/asterisk/full {
-   missingok
-   notifempty
-   daily
-
-   postrotate
-   /usr/sbin/asterisk -rnx "logger reload" || /bin/true
-   endscript
-}
-
-/var/log/asterisk/cdr-csv/*.csv /var/log/asterisk/cdr-custom/*.csv {
-   missingok
-   notifempty
-   weekly
-   rotate 52
-}

diff --git a/net-misc/asterisk/files/1.6.2/call_data.txt 
b/net-misc/asterisk/files/1.6.2/call_data.txt
deleted file mode 100644
index ba9cbbba98b..000
--- a/net-misc/asterisk/files/1.6.2/call_data.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-It's sometimes useful to look at SIP conversations in retrospect.  If you have
-a troublesome system, enable sip debug (in the CLI: sip set debug on), set up
-logger.conf to log it to some file and then you can use the two scripts here to
-extract the SIP converssations as seen by asterisk.
-
-find_call_ids.sh:
-
-This script will locate Call-ID values given an A and B number. Just invoke it 
with:
-
-find_call_ids.sh /path/to/log A-num B-num
-
-eg:
-
-find_call_ids.sh /var/log/asterisk/debug 102 105
-
-To find the Call-IDs for calls going from ext 102 to ext 105 (depends on your
-exact setup and the actual values being passed in the SIP INVITE packets)
-
-find_call_sip_trace.sh
-
-This script will extract a SIP conversation from the log for one or more
-Call-ID values.  Invoke with:
-
-find_call_sip_trace.sh /path/to/log Call-ID [...]
-
-Eg:
-
-find_call_sip_trace.sh /var/log/asterisk/debug 12341665haf434qgrq3@192.168.0.5 
123123@192.168.0.3
-
-This will find the SIP packets for those two conversations from the log
-(interleaving the packets in the order asterisk output them - useful for
-analysing the two SIP legs of the same call).

diff --git a/net-misc/asterisk/files/1.6.2/find_call_ids.sh 
b/net-misc/asterisk/files/1.6.2/find_call_ids.sh
deleted file mode 100644
index c4689bd1579..000
--- a/net-misc/asterisk/files/1.6.2/find_call_ids.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#! /bin/bash
-
-logfile=$1
-anum=$2
-bnum=$3
-
-function usage()
-{
-   echo "USAGE: $1 logfile anum bnum"
-   exit -1
-}
-
-[ -r "${logfile}" ] || usage $0
-[ -n "${anum}" ] || usage $0
-[ -n "${bnum}" ] || usage $0
-
-grep -B2 -P '^INVITE 
sip:'"${bnum}"'@.*\n(([^F].*|F[^r].*|Fr[^o].*|Fro[^m].*|From[^:]|From:.*.*)\r\n)+\r\n'
 "${logfile}" | awk '$4 ~ "^VERBOSE" { dt=$1" "$2" "$3 } $1=="Call-ID:" { if 
(cid != $2) { cid=$2; print dt" "cid; }}'

diff --git a/net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh 
b/net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh
deleted file mode 100644
index 5b2e69e517b..000
--- a/net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /bin/bash
-
-logfile=$1
-callid=$2
-
-function usage()
-{
-   echo "USAGE: $1 logfile Call-ID [Call-ID ...]"
-   exit -1
-}
-
-[ -r "${logfile}" ] || usage $0
-[ -n "${callid}" ] || usage $0
-
-shift; shift;
-while [ $# -gt 0 ]; do
-   callid="${callid}|$1"
-   shift
-done
-
-dos2unix < "${logfile}" | grep -P '^.*\n<--- (SIP read|(Reliably 
)?(Ret|T)ransmitting) .*\n([^<\n].*\n)*Call-ID: 
('"${callid//./\\.}"')\n((|[^<\n].*)\n)*<-+>$|^.* chan_sip.c: (Reliably 
)?(Ret|T)ransmitting .*\n([^-\n].*\n)*Call-ID: 
('"${callid//./\\.}"')\n((|[^-\n].*)\n)*---$'

diff --git a/net-misc/asterisk/files/1.6.2/sip_calc_auth 

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

2020-04-01 Thread Joonas Niilola
commit: 442d02e2a7756ab45d5b6916d92c9387ab45771e
Author: Jaco Kroon  uls  co  za>
AuthorDate: Wed Apr  1 07:10:16 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Wed Apr  1 14:37:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=442d02e2

net-misc/asterisk: further fix for binutils-2.34 on 13.32.0

Closes: https://bugs.gentoo.org/713840
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/15192
Signed-off-by: Joonas Niilola  gentoo.org>

 net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch | 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch 
b/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch
index 5be532bf804..6ce797ca4f2 100644
--- a/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch
+++ b/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch
@@ -1,8 +1,6 @@
-diff --git a/main/backtrace.c b/main/backtrace.c
-index 2623d7f..1bc9bea 100644
 a/main/backtrace.c
-+++ b/main/backtrace.c
-@@ -59,6 +59,12 @@
+--- a/main/backtrace.c 2020-03-12 07:37:03.0 -0700
 b/main/backtrace.c 2020-03-31 23:22:18.272691980 -0700
+@@ -64,6 +64,15 @@
  #if defined(HAVE_DLADDR) && defined(HAVE_BFD) && defined(BETTER_BACKTRACES)
  #include 
  #include 
@@ -11,6 +9,9 @@ index 2623d7f..1bc9bea 100644
 +#endif
 +#ifndef bfd_get_section_vma
 +#define bfd_get_section_vma(x, y) bfd_section_vma(y)
++#endif
++#ifndef bfd_get_section_flags
++#define bfd_get_section_flags(bfd, ptr) ((void) bfd, (ptr)->flags)
 +#endif
  #endif
  



[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
+   

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

2016-09-18 Thread Mike Gilbert
commit: 3d6a8bd065528aa255a7e409c05474b5910c574f
Author: Mike Gilbert  gentoo  org>
AuthorDate: Sun Sep 18 21:47:34 2016 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Sun Sep 18 21:48:05 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d6a8bd0

net-misc/asterisk: make logrotate file work with systemd

Patch by Karsten Kretschmer.

Bug: https://bugs.gentoo.org/593276

Package-Manager: portage-2.3.0_p36

 .../{asterisk-11.21.1.ebuild => asterisk-11.21.1-r1.ebuild} | 0
 .../{asterisk-13.11.2.ebuild => asterisk-13.11.2-r1.ebuild} | 0
 net-misc/asterisk/files/1.6.2/asterisk.logrotate4   | 6 --
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-misc/asterisk/asterisk-11.21.1.ebuild 
b/net-misc/asterisk/asterisk-11.21.1-r1.ebuild
similarity index 100%
rename from net-misc/asterisk/asterisk-11.21.1.ebuild
rename to net-misc/asterisk/asterisk-11.21.1-r1.ebuild

diff --git a/net-misc/asterisk/asterisk-13.11.2.ebuild 
b/net-misc/asterisk/asterisk-13.11.2-r1.ebuild
similarity index 100%
rename from net-misc/asterisk/asterisk-13.11.2.ebuild
rename to net-misc/asterisk/asterisk-13.11.2-r1.ebuild

diff --git a/net-misc/asterisk/files/1.6.2/asterisk.logrotate4 
b/net-misc/asterisk/files/1.6.2/asterisk.logrotate4
index 857a970..29e78eb 100644
--- a/net-misc/asterisk/files/1.6.2/asterisk.logrotate4
+++ b/net-misc/asterisk/files/1.6.2/asterisk.logrotate4
@@ -3,7 +3,8 @@
notifempty
 
postrotate
-   /etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx 
"logger reload" || /bin/true
+   test -e /run/openrc/softlevel && /etc/init.d/asterisk --quiet 
status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
+   test -e /run/systemd/system && systemctl is-active --quiet 
asterisk.service && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
endscript
 }
 
@@ -13,7 +14,8 @@
daily
 
postrotate
-   /etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx 
"logger reload" || /bin/true
+   test -e /run/openrc/softlevel && /etc/init.d/asterisk --quiet 
status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
+   test -e /run/systemd/system && systemctl is-active --quiet 
asterisk.service && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
endscript
 }
 



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

2016-07-26 Thread Tony Vroon
commit: 73b66d1458db822b2b98eef8abcf3aa56067b75d
Author: Tony Vroon  gentoo  org>
AuthorDate: Tue Jul 26 08:08:59 2016 +
Commit: Tony Vroon  gentoo  org>
CommitDate: Tue Jul 26 08:10:26 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73b66d14

net-misc/asterisk: Bugfix releases on both branches (11 & 13)

This adds 11.23.0 & 13.10.0 to the tree. Init script updates by
Jaco Kroon allow faster start-up with a large spool directory,
closes bug #582512

 net-misc/asterisk/Manifest|   2 +
 net-misc/asterisk/asterisk-11.23.0.ebuild | 325 +++
 net-misc/asterisk/asterisk-13.10.0.ebuild | 328 +++
 net-misc/asterisk/files/1.8.0/asterisk.initd8 | 362 ++
 4 files changed, 1017 insertions(+)

diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index 18d714c..f11429f 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -1,6 +1,8 @@
 DIST asterisk-11.21.1.tar.gz 34867941 SHA256 
d02afbdda172a6bb98883350d64f83ce865fcea01642a05067ca2c916c3a1ee5 SHA512 
d52a14ebae872d62cbfa676bfd86b28790d8e9cfad97585e9255cf9e8ca1957dae509d41ac46cd5280478d38707bc9628bafb31551ab8345e7064aabdbd5dea3
 WHIRLPOOL 
396eda8b1bc8b8a1465c90456c76f83c4946fd696ec647596bfdd2e74b32a1c6a15e9f4423d54da7ecda949f5ab472df3f08c30a99ebb099204d82cd8440d515
 DIST asterisk-11.21.2.tar.gz 34867025 SHA256 
9f4408ecda81efccbc0ce6728a7c53fa1528c527ea65d81a165e830c9f91bcac SHA512 
9147a35bee22550a06cb05c553d9b9c8dc48e8a1f41f48473b098128ff1d2a09d1c05ad71d30a60f542813fa02ddc91b7f56980879670460e3e427bc0a14d4d1
 WHIRLPOOL 
9e57a68338e25879e30b625baab2581bf9c9fe944d87be7ea44d78288dca313cbe4ac22be4e2650815a0c009866dbfb831ba7b70b9fd847d58356fecf50f074a
 DIST asterisk-11.22.0.tar.gz 35101090 SHA256 
590c361f8926e08eeaf320a35985cd39a2ea651ec3e94fb62484a7179c32f527 SHA512 
98085053fc8d2aaf1c3305ef1900287bc1ee9d1e421a073cb0e1b56d379fd7803fdbfaab16143be24bdd41a7b28305dce7b91763564e750697ac2b2d9e8ad719
 WHIRLPOOL 
f531ae8be5db9071c1809149523883cf0b7e65d2e8cecbc70d585d1881cd36a206de8cbc0edd2c4805d326427bb67a87cf2e079bed464fcc0cce376cb1098d59
+DIST asterisk-11.23.0.tar.gz 35110947 SHA256 
052a70aaf70c6f746bf283a68c71db85b8e60e09c361f1b783b6f01ecfc52cc7 SHA512 
1510eadf67531408df9b25e0fe546a78dcb6cbfecda37390037598bba2627de4810b5288314d425518e23b2007ff785c5e4c952f784a6cd6ba2ff04389894112
 WHIRLPOOL 
6605ddcb3fba70355cae48c176480bb10e0c647766a8987368d2d6f9134da3d24c22d04a3c25c979705126e7368e6b3322f7dbe69c34050858f9e99df7339ee4
+DIST asterisk-13.10.0.tar.gz 32628566 SHA256 
aba45d01067fa6cb1aea0c1a2a1ad6483f1e137258aea2a6a73a03bc469513b3 SHA512 
14758144010ee7a4a2bad03a3ac14ac74b66a48953902d68d768efd8cf0e34d47f6d9c1ee38df13d44f20f457f30539c1765dfd8edeabea05a9d017fa1711090
 WHIRLPOOL 
0682eeec035270cdd450728b7c230823fc9765dd11c7f82e0c185db4f590d6b53a56fdb66877ebc49073336991615df9c04b98345a9104b93e90b4009c50a21c
 DIST asterisk-13.9.1.tar.gz 32537561 SHA256 
00e51aeaf077b54e610ebb5ebe64097f3d64da2cc2aecab25306dd74de96a236 SHA512 
a30635930a8b98b5ff5a132897de16b80cfff182e7dcae5d9507ced95a388fff97c624f75b787ebe6775cf6085a043c152d8854e8f0562528a0e01d2ac295d81
 WHIRLPOOL 
ee35a5e3da483c5db36c08dde13bd50f03e875b96e0fcd8ac5ca83db11d303f861e20fbbaba7d5bbe08b05907cad01d453773ea7064e2d6fddfe602f46d41cd9
 DIST gentoo-asterisk-patchset-3.16.tar.bz2 5018 SHA256 
9c393aba3272b19ae7c7d79302c288ddb6d6b0368c72fbbeda11569ab751be6d SHA512 
83d0be42f935068afd130ecf6768355d6f9702238c829e1482135d320f99e6a2ad9dd39814ea139e8a8e9009ecb99a6b3d5ed5f2cc778353d03a09183d7a06a0
 WHIRLPOOL 
cc6a032aaa781a4eb29f913578bd10245775d9915f5a934f7c2982f44cf063cf3030b764e628b6e17f4f023558fb50e73116a19c77738ae5e8de85c0c672dfd9
 DIST gentoo-asterisk-patchset-3.17.tar.bz2 5074 SHA256 
2af864f0b40b42c55f3c3ac737856942c9393a47ebf6d982d9214b85a2ad SHA512 
37f86f3c699b2643afd8080391e817a282571694bb56e00efd0734918dbc33d6c12a2463dbc24667597420863b4f506870140fbb8ef3f1700124ef790ae7252d
 WHIRLPOOL 
79017eeb3737953515286db6386bfd848f7501b6f2abbc1ba6b6865a75495ce999d555e3112336abae23371a21a2d64a10f1d173e285314bb5bab22bfe2d4c1a

diff --git a/net-misc/asterisk/asterisk-11.23.0.ebuild 
b/net-misc/asterisk/asterisk-11.23.0.ebuild
new file mode 100644
index 000..97b607c
--- /dev/null
+++ b/net-misc/asterisk/asterisk-11.23.0.ebuild
@@ -0,0 +1,325 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils linux-info multilib user systemd
+
+MY_P="${PN}-${PV/_/-}"
+
+DESCRIPTION="Asterisk: A Modular Open Source PBX System"
+HOMEPAGE="http://www.asterisk.org/;
+SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz
+mirror://gentoo/gentoo-asterisk-patchset-3.17.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE_VOICEMAIL_STORAGE="
+   +voicemail_storage_file
+   voicemail_storage_odbc
+