summaryrefslogtreecommitdiff
path: root/net-misc/asterisk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-misc/asterisk
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'net-misc/asterisk')
-rw-r--r--net-misc/asterisk/Manifest26
-rw-r--r--net-misc/asterisk/asterisk-11.25.3-r1.ebuild (renamed from net-misc/asterisk/asterisk-11.25.3.ebuild)39
-rw-r--r--net-misc/asterisk/asterisk-13.33.0.ebuild6
-rw-r--r--net-misc/asterisk/asterisk-13.34.0.ebuild6
-rw-r--r--net-misc/asterisk/asterisk-13.35.0.ebuild294
-rw-r--r--net-misc/asterisk/asterisk-16.11.1.ebuild6
-rw-r--r--net-misc/asterisk/asterisk-16.12.0.ebuild (renamed from net-misc/asterisk/asterisk-16.10.0.ebuild)119
-rw-r--r--net-misc/asterisk/files/1.6.2/asterisk.logrotate325
-rw-r--r--net-misc/asterisk/files/1.6.2/call_data.txt32
-rw-r--r--net-misc/asterisk/files/1.6.2/find_call_ids.sh17
-rw-r--r--net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh21
-rw-r--r--net-misc/asterisk/files/1.6.2/sip_calc_auth25
-rw-r--r--net-misc/asterisk/files/1.8.0/asterisk.confd94
-rw-r--r--net-misc/asterisk/files/1.8.0/asterisk.initd7346
-rw-r--r--net-misc/asterisk/files/1.8.0/asterisk.initd8361
-rw-r--r--net-misc/asterisk/files/1.8.0/find_call_ids.sh68
-rw-r--r--net-misc/asterisk/files/1.8.0/find_call_sip_trace.sh76
-rw-r--r--net-misc/asterisk/metadata.xml1
18 files changed, 382 insertions, 1180 deletions
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index 2eebb3899e8d..cd1e10dc3a18 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -1,14 +1,4 @@
-AUX 1.6.2/asterisk.logrotate3 436 BLAKE2B aa8d40c209c2a0458d831964d3300a1afbb7c3b806547b0925df48a3d40d8a22ba759840ea2b7f12a76cd2a3d54611d573c32d89f91274f83205ef5fa2a2b251 SHA512 de9893ce0b460e711cc107779afd40150398ef53f901923a7378757df2936c1bde43c39ba50924f913db81ce66550a9d2e1bb66c5712021b5f8c652d3b3740c4
AUX 1.6.2/asterisk.logrotate4 848 BLAKE2B b169368ad6893e2fc2680b788569cf8b74657531b9484664aae2869f6dfef3ff71cf64a3fa91e90c4fdbb275a8038751fff4087129e67f63b11b81a436e459b7 SHA512 8d661424838fd9500512290785a56af4364717df87d3423ab8dc3039affd1a26fa7aae6afe2ca4fe1ce668a0172b07a96f4cc9a73eced95f25d5848f3a3f2624
-AUX 1.6.2/call_data.txt 1120 BLAKE2B 3f7808d09ec6415b196153f7504795174d6749dce11bd2e70c58d7272807c6552430d23ef469a65fc715e9b3b08a9964a3ce93812978788dbac6eed77f88532c SHA512 0bc4ab49d3a7493d1871c63234fb4c4ec6725491d350e28836f1220d1c17097974d47afcf19265348215d3076e12266688df513614f595cbae8f996cbb6fc7cb
-AUX 1.6.2/find_call_ids.sh 446 BLAKE2B 1ccbbe3fe1450986d74637c5c74124b12625e4f2be4473354b05f76388ff3b074aa9e9dae44c8d146baf1f6491f3bf830a1e84d6ed5fd43388cd39a7022d1ab0 SHA512 b3998652fa93b0cb9cf2b1a495e9d02ea4a1a0c82f6fd812df8e47d58c9da89fd8537632936b43ac72165ba38c9844ba721198a823f954feb0c7ea8a7221893b
-AUX 1.6.2/find_call_sip_trace.sh 530 BLAKE2B 30e80a0aa21cdd34f33777f55da192ff8b7e422893f61628541c8e088d46293190e325f9e25c98acd73e1a498b58ac15be576adc0ee7470cf0bc24f3c6052c03 SHA512 bfff2511fd2cb9fae443c58dd627c96d831e6d5412f19fc172de1621ce031bbac2851250a2886565019f3aa5484ba41358ffdb003a6be05ed40022d30d7a3c55
-AUX 1.6.2/sip_calc_auth 493 BLAKE2B 54ea1524ea489d23b5c008057478fb6ff7608477d7631cf24c3ff19863d3eaee1cdf2e8d1e14ec662ba26b8ef5b2701b7e2e333e16995e6558956fd199af3f5d SHA512 07f11ac176206c81d491be8014436058196fcb21e5cefff1aa039c23df0c002d252d381c4bf1a55f6c7ceb5a58baa50282493c8c62e4ed8f77716da2ac7a0186
-AUX 1.8.0/asterisk.confd 2082 BLAKE2B dd21c075748453bc70fffd6c7590f883d832fad2c3134adcb0071dc6b84fb2d7e66850a09e4d3423db169dfa99f568eaf7c34cdac378043f817962fb2e8f1f3e SHA512 13e849af5a7be708f81ed9c021ba788175eff06fae49a3b2795fc6e03d9d1d1a51a7ee30835acf81738c79fe461636c6bb85c8661113673fd68b3b4da1e89ce3
-AUX 1.8.0/asterisk.initd7 9261 BLAKE2B a0b3740b9d4352bff9489b74aef60847eacb1f2b390fc8873ff0b80048be32947aa516399084901dd6298d1467f7161af07f66a10f7dba1ea248d40f887c66ae SHA512 6c89c4a5260116d5e137e0bb40aeadd755d9884acb508119d0f0c9598b5325a0e987b33cefe2d83115ed5fbfad82db2352ac0378b1be51be257b38932b47c735
-AUX 1.8.0/asterisk.initd8 9784 BLAKE2B 84558128572f9c3ca3331eda48728613e23ec7d5ebe5a1ef930a1ab125f1e1f2457a13231308506612e98b6c530c7a0d007bb8b673560ee77d078de5fc341d61 SHA512 eb0f316a2fbfbc228a605118b03e213653b94ab1400e50248bd2de5ce436eab9318d486d1c46d7ee8e83c71161d6106605b38bc01d5d4b461f91962749e41ee3
-AUX 1.8.0/find_call_ids.sh 1078 BLAKE2B b480ec9f61453081735e0a1e5176a6de3e6ecc58ec8035b439bd95d64f9e1a5d02fe9810db4ba2e8d20632f186dd91d17c6cdd17a307ddd7802e8aea4638abbc SHA512 1690eb3ea9eb51711df9fd7c121dbc520a2a15870fa06523f096968386ca68a132a46e361b9d19367c7089cd9ad18132ed02ef0aedd990d5939550182a3366c9
-AUX 1.8.0/find_call_sip_trace.sh 1115 BLAKE2B d9f5cc559f3dd3fbbb9c50a2b6e6ad30c94521774d3774023d0fd4f51d74b8109b4c9d3eea92c7872532012cabbe892d49aa5261aa4a64b324dff5b679820851 SHA512 e679f3953b2e397d7c80bb2f0ca3db848f07ba97ca139c87224de4467f8172034eb4372e5ddd68116774a7b9d5fd48aa30d809e2af2c6e6e0747762c69090b6a
AUX asterisk-13.33.0-nossl.patch 3176 BLAKE2B 1c225d3a4256e6bb69bac025adf3f21aec806cc864e55fcd1381244b68ef8a8d82d462d548a32dc9e1cec3b94f508bad09fbc3bd8602230fa79a916e6dededa5 SHA512 895e6bd770701fe25c389447f5a4454e9d5ead183c44fcc76c623f0140af1fac72ba12ad8331f7ef43ff926dbf3470646c99af93cf5f83cc70f9432ab1604e29
AUX asterisk-historic-no-var-run-install.patch 790 BLAKE2B 6fb753a3dc1b557b4cca8df1dc93eba3de70114f0bb206692461a3faf4068ffbf641740fa51e5010cabf0cbb64d8856dd9a830eba802b1988208b8a185a1fc57 SHA512 9c941d49a1ea10f702b7ce2c9c4a120c0e8ea297f13ecaa9d2a9b059cf4452a981aa0e0eabd5c4711c222311e3f9a52ee1135c59433ba878a9bd3a979be852fd
AUX asterisk.service 456 BLAKE2B 4a5da9f0e45aa3b1eff29d59317d09e061e0a0e3c0e38cd39732e7880e96b7f34a68b44001d2608a7636b1259803f567b94bdb85ef15428727427fa1081ee385 SHA512 d443c3821d50e78a76b7cad8906f560ab0f4b58007f6c9322256626bc4a502bdbd844f1ee48cdaf86d499bf78f50cebb0cfc88a0cab0c4876f4e853bc2e76aa8
@@ -19,13 +9,15 @@ AUX initd-13.32.0-r1 9945 BLAKE2B 26fd8ff02e63a77fbe0712b745b9270fa58ae44d1dec44
DIST asterisk-11.25.3.tar.gz 35134682 BLAKE2B 9da24d5d6a674ab660edb103e5fc56ddfbcc58cd86166cc08cceb0598a63b51eae36133565e09a30ad11ff6623ba8945437dfb561d2916f68341d398540dabce SHA512 9c0521d55e5b69663ea40066d52e397ba6c165a4b20cd0a1e5e375b9c0e5a6e4f37908e50b0b580e288dec9be252af9a8bce7bceb03ba029f902fb757e6311ed
DIST asterisk-13.33.0.tar.gz 33683712 BLAKE2B ecfc122628c08e93fc389f111e1ee8ddcf3d27895437df9da5b83a6440c2135f9223a5605e0ef436e8585f8b023abba5b74680cac97f1700e1bc153872c1ed87 SHA512 b866a63cce7c289d32333b4b3b0a605c413b48fc7518976aa0768dd5c68894348d0de1c9bc7c56b73eb86b69e0fd9847d7226fa0f9e449f8ebb8a7118329db56
DIST asterisk-13.34.0.tar.gz 33686020 BLAKE2B 48de77f2e29028ab3503ea30038e629b6ede43154bec8efe1384a7077fb971f91b85d9b4eb55f7a4ea6577a31ad5fe496453fe59cd607a0c613e46edef9a11d9 SHA512 2132db831bb063330c47cea8cea67af706839d25e64eee558475643cb79a4e548fc6ffe7ce61a053f41cf6f367320eedaa87973a5de4ef38ae858a6e5a183ee7
-DIST asterisk-16.10.0.tar.gz 27706766 BLAKE2B b8d7866fe3e8420ef5ce6ea5e016316f63e4f2e8904a79de69c4ddfb7aedcd00f09cfb414da43938af0771cdde387dcebfe716eb34e5ed1de3a30ff534459c7f SHA512 254c582593cf6ec691649d995a8d73260d2e340ad6ae65f0af62f6b8c3ef59c4da6ad9172bc04cc29a907d1e8d2ef105ae2ae20190b30115d5d402423c8c08cb
+DIST asterisk-13.35.0.tar.gz 33685340 BLAKE2B 728281257541977ac150b1b7d6148fd326c584f7827af46882ff3e3af111d876c3e53f92f1034c55875d730e5b92c379b8906198393b7a4227a5bb74818ab27c SHA512 7596f387d45ef9f0327d78bc0446979e233aba517bbedfb539409cc507e2dac15e3b32d5c8a5e69783d106d4244661cb20b0580ed00904699bc5bf5db7b4713a
DIST asterisk-16.11.1.tar.gz 27703143 BLAKE2B ad2c70f76e5d59e183713034c9bbe0988c5848512099230b58b8b2f32edd59c0e843e4d7bc72642e84e842e11639f02213057cc893532808e9fe075b061e35cc SHA512 ff4d971c32a568d4e49d0bc49f15a4a89278e4a1c70ed7d1107e3f4cca13455326465ecc97d23e83501ad45f579b572efbf9217758edfb4531c87d59879b31f9
+DIST asterisk-16.12.0.tar.gz 27727347 BLAKE2B 3e2e986136e5ff19a876f01fdc6db1b6c22f83bf38f8524a418e474e2400375d8091dd215fb54f5b01f998cecf46d6965a0c35a44dc6f3be7f7a811e2ce70b8c SHA512 1fc41b92d070efd4a7ea5db1a36c83bdb6dbbe7d9b5087b0a887ba3d6875e81ba1b71a79b216138b242f0349a176baf6745480ff6fb7ed47c62dda4b09b6a891
DIST gentoo-asterisk-patchset-3.17.tar.bz2 5074 BLAKE2B 3c945e77b54b2449253acb9fcea8d289a7a3184729190622c14aff5557d36c93556efa83320fe4e7ae84021960c09f35ae9f997e8015706eef933aae2948309e SHA512 37f86f3c699b2643afd8080391e817a282571694bb56e00efd0734918dbc33d6c12a2463dbc24667597420863b4f506870140fbb8ef3f1700124ef790ae7252d
DIST gentoo-asterisk-patchset-4.08.tar.bz2 2176 BLAKE2B 7f8c9b5fda855091e66b2534d2be23fb1616f565480459f71f766826e5deeeecb24899e2ee9eefe74323e892624d32ab954ec7e9be6a002431ff029fc13493ed SHA512 365c1b8628882c48c279e1fd77d982e6d0820ba7d7122e97bb4988f875d7010caa956798c833c3b01d389004fa08a63a9de2c1b452c9e5701c6106e29fd8e9e1
-EBUILD asterisk-11.25.3.ebuild 9607 BLAKE2B dedc0fe6dc53dd63a674648fc309957416f6b0e1f6036803802831ec33754b0fada3af67264744274004c2d29b0b43c1d4ab430aec6c3d368aab024a02c92297 SHA512 90c7b637065abc7953bce1016eee9c3b9f94f3a30df593de81cd72e61afd217db62a505d059623f99f72be643ade955460dbd4138e5a98e979b924de5bbe2cc8
-EBUILD asterisk-13.33.0.ebuild 9211 BLAKE2B 0a41b74f03a243fd9dd6c53a5951ab0beecf77d81dd0fab6ff0aa4e9b3327b51c7f560b6f1eeba41773e4a82d5a239907f4ec4585bd9ff4044a87d39284eff0b SHA512 c8f6edef42e708dfe7b48a2f5d954a646f9c406909a14afaf31eaaec9deb9d4533dba625cbe5bfef63bf38c97a0a776bcfd21d2fe7a1d6fad07eff98efc1f401
-EBUILD asterisk-13.34.0.ebuild 9189 BLAKE2B f1372442376f1900d71f676b6182dee9fa68fa3256903b330871df58e108e7e20e2645ea9be95b2d4ded0eeb8b19f5d51b9a673067cb347b7b034bb262d4b810 SHA512 8d3de22d07decb6b2805af27314651334d9319761f6c88ee88ceebc129a81b9cc1b4f39d977b3b7c07e9c9703a7c6db7ce7babe3931d144f5d1549fd59eedbea
-EBUILD asterisk-16.10.0.ebuild 9351 BLAKE2B 7d990e43401afd8449dad175238d13d4a70fc11e791ae233f3db8030cd3be4778d4f3b52aa6a1ced43c7f203bfeb249b3f0ac019a038af0a45f2713fcc150897 SHA512 782c463069a5764b101dc909117f8016f9d524871911f4b7efc1875185eb996dfe93aa39645b38d2f3baabf7213df67287dc34c7045fa97602f355ca0441cf5d
-EBUILD asterisk-16.11.1.ebuild 9351 BLAKE2B 7d990e43401afd8449dad175238d13d4a70fc11e791ae233f3db8030cd3be4778d4f3b52aa6a1ced43c7f203bfeb249b3f0ac019a038af0a45f2713fcc150897 SHA512 782c463069a5764b101dc909117f8016f9d524871911f4b7efc1875185eb996dfe93aa39645b38d2f3baabf7213df67287dc34c7045fa97602f355ca0441cf5d
-MISC metadata.xml 1391 BLAKE2B dfa59edbb0e1e073171b7b335bec7c8188af06e97a88674c4a4f516fc42e4754044c8430af549865ff6bb18eb1dc969dbfa3b3868cc7b8964150581d200d946c SHA512 1dce9bbe1879a7a93ec9ca99a618722753251625626f15fcf9efbf9aa781f93084ea0f68857eeeb41664d82bdb2922ce75649c8627dbd9b46e42a7e825e3b3b2
+EBUILD asterisk-11.25.3-r1.ebuild 9217 BLAKE2B eb0e7a050246a399a16460392602bc1e24b1c24ccdfa498eff96e4b385783d091422aa68260460ef11643084191b47f377841d8bb878558f7ac2fa31b4545dcf SHA512 5f53ad786fee2e7e14d144dce3f59ba11e39645469fe056b505b784f6f8eea1be274fd5eb9a63bbd66ae9c1c3e014b5cc2f7c38cc939884b9346e2aba5212432
+EBUILD asterisk-13.33.0.ebuild 9138 BLAKE2B 97ef7fed6dc2e1c302215b1e4e48c96816c244b80711c290080c741ff67851e2566fe3c26d106d2cb07d53f67d1d3f39a3f58711850445bfa19bf9a88cbe3fc3 SHA512 1f522c0116f43ff52867047c11df7d76f7b614781cc333bec1165d2e8fb077dfa13d7e72c366cbe95abc3f2e2d5b72671854ff3baa7efc58d4b102393fc9db55
+EBUILD asterisk-13.34.0.ebuild 9114 BLAKE2B dff3812c7fdfce38e14426d4fcb04ac1829303be1ef1caac40ac98c1ecbe6fe5f3cef33847047f16a5af163e26c9a669a2960f2d145f80f1bfa13800e93b600c SHA512 b144e6b3820628dd2ae44c69e18056967cd96e8a7ed9cf397cbe31cf8587233cb82c9b3f4ffbaa2086cdfa1a1e5cb987f36f940be759ae424e5ac0455147ec5e
+EBUILD asterisk-13.35.0.ebuild 9099 BLAKE2B ab7c025a242ee6e260de71083df4460264697788879b9c600488d5e22946aaaf4c680073b6814a7320249a4f66930291010b8b0873a769a7ec97d54fde43c7bc SHA512 09f0c631a3703594664959660e78f8ffe74d72d495c3e78e605feba17889f9b1ca0b01e5c7ad40e0495a6ae5bb92090fe53f5852f0c016787c074a05422bcc78
+EBUILD asterisk-16.11.1.ebuild 9278 BLAKE2B d1e9340f0ca063e9046029c8cb983d7086f4c9e3a6985bab46fd2f6921005733829fbd3e17c22206557c0d33f29c9d358a30569e69d2e421265b2846765666c6 SHA512 1d871f6d84d65b324d9285973052aa81860e9a2492bae5f1bba2fa36f4c258c1455eaafef355f96934a39ce9bdc2d62717691e8f6a886c0940f649e9642fcf31
+EBUILD asterisk-16.12.0.ebuild 9276 BLAKE2B 4e255b30bf55f0104a3a92262b319459e0633f206558f5f195b78bb5dc1b8edbc78b7d292362cab7ac623d677eb33ae2e7cce8b5fe8c154a94603acad3f05285 SHA512 8aa84ddd97cee7aa9f164c1e158820754d008734660af68164130fc5a4d3309a80bfb0bb0d9b186e546b3d60480d0d4149276cbba80002b748ba8ec51cbd2a2f
+MISC metadata.xml 1301 BLAKE2B 0989c94d86393562384681c19a2809dc6ebedfcdd592543b606206a8bd7829a4ca6768cb74082f74e75635c72804dda9154df3a4d61dcdbcc43eda93aa881322 SHA512 009e4dba6f55b8ff08940aab4722df6b76a055add43c7634a49dbc0fb68fe11e6c102a7a27ac84a253a2853b0d719f3a73bb40c86c2d2faa186b707e773987e3
diff --git a/net-misc/asterisk/asterisk-11.25.3.ebuild b/net-misc/asterisk/asterisk-11.25.3-r1.ebuild
index dccee3d36f7d..fa44fb9d427c 100644
--- a/net-misc/asterisk/asterisk-11.25.3.ebuild
+++ b/net-misc/asterisk/asterisk-11.25.3-r1.ebuild
@@ -1,15 +1,15 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit autotools eutils linux-info multilib user systemd
+inherit autotools linux-info 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"
+ mirror://gentoo/gentoo-asterisk-patchset-3.17.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
@@ -19,7 +19,7 @@ IUSE_VOICEMAIL_STORAGE="
voicemail_storage_odbc
voicemail_storage_imap
"
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss portaudio postgres radius selinux snmp span speex srtp static syslog vorbis"
+IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc oss portaudio postgres radius selinux snmp span speex srtp static syslog vorbis"
IUSE_EXPAND="VOICEMAIL_STORAGE"
REQUIRED_USE="gtalk? ( xmpp )
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
@@ -29,18 +29,22 @@ REQUIRED_USE="gtalk? ( xmpp )
EPATCH_SUFFIX="patch"
PATCHES=( "${WORKDIR}/asterisk-patchset" )
-CDEPEND="dev-db/sqlite:3
+CDEPEND="acct-user/asterisk
+ acct-group/asterisk
+ dev-db/sqlite:3
dev-libs/popt
dev-libs/libxml2
- !libressl? ( dev-libs/openssl:0= )
+ !libressl? ( =dev-libs/openssl-1.0*:0= )
libressl? ( dev-libs/libressl:0= )
sys-libs/ncurses:*
sys-libs/zlib
alsa? ( media-libs/alsa-lib )
bluetooth? ( net-wireless/bluez )
- calendar? ( net-libs/neon
- dev-libs/libical
- dev-libs/iksemel )
+ calendar? (
+ dev-libs/iksemel
+ dev-libs/libical
+ net-libs/neon
+ )
caps? ( sys-libs/libcap )
cluster? ( sys-cluster/corosync )
curl? ( net-misc/curl )
@@ -58,7 +62,6 @@ CDEPEND="dev-db/sqlite:3
mysql? ( virtual/mysql )
newt? ( dev-libs/newt )
odbc? ( dev-db/unixODBC )
- osplookup? ( net-libs/osptoolkit )
portaudio? ( media-libs/portaudio )
postgres? ( dev-db/postgresql:* )
radius? ( net-dialup/freeradius-client )
@@ -91,10 +94,6 @@ pkg_setup() {
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
-
- enewgroup asterisk
- enewgroup dialout 20
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout"
}
src_prepare() {
@@ -181,7 +180,6 @@ src_configure() {
use_select lua pbx_lua
use_select mysql app_mysql cdr_mysql res_config_mysql
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
- use_select osplookup app_osplookup
use_select oss chan_oss
use_select postgres {cdr,cel}_pgsql res_config_pgsql
use_select radius {cdr,cel}_radius
@@ -246,8 +244,8 @@ src_install() {
diropts -m 0750 -o asterisk -g asterisk
keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
- newinitd "${FILESDIR}"/1.8.0/asterisk.initd8 asterisk
- newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk
+ newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
+ newconfd "${FILESDIR}"/confd-13.32.0 asterisk
systemd_dounit "${FILESDIR}"/asterisk.service
systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
@@ -265,13 +263,6 @@ src_install() {
dodoc doc/*.pdf
fi
- # install SIP scripts; bug #300832
- #
- dodoc "${FILESDIR}/1.6.2/sip_calc_auth"
- dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh"
- dodoc "${FILESDIR}/1.8.0/find_call_ids.sh"
- dodoc "${FILESDIR}/1.6.2/call_data.txt"
-
# install logrotate snippet; bug #329281
#
insinto /etc/logrotate.d
diff --git a/net-misc/asterisk/asterisk-13.33.0.ebuild b/net-misc/asterisk/asterisk-13.33.0.ebuild
index 1e709bfbd068..88b0e7f31aa0 100644
--- a/net-misc/asterisk/asterisk-13.33.0.ebuild
+++ b/net-misc/asterisk/asterisk-13.33.0.ebuild
@@ -11,14 +11,14 @@ SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar
https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~ppc ~ppc64 x86"
+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 libedit libressl lua mysql newt odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp +ssl static statsd syslog vorbis xmpp"
+IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc ldap libedit 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 )
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
@@ -64,7 +64,6 @@ DEPEND="acct-user/asterisk
mysql? ( dev-db/mysql-connector-c:= )
newt? ( dev-libs/newt )
odbc? ( dev-db/unixODBC )
- osplookup? ( net-libs/osptoolkit )
pjproject? ( net-libs/pjproject )
portaudio? ( media-libs/portaudio )
postgres? ( dev-db/postgresql:* )
@@ -195,7 +194,6 @@ src_configure() {
use_select lua pbx_lua
use_select mysql app_mysql cdr_mysql res_config_mysql
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
- use_select osplookup app_osplookup
use_select oss chan_oss
use_select postgres {cdr,cel}_pgsql res_config_pgsql
use_select radius {cdr,cel}_radius
diff --git a/net-misc/asterisk/asterisk-13.34.0.ebuild b/net-misc/asterisk/asterisk-13.34.0.ebuild
index 0697a07c910d..35bff47da138 100644
--- a/net-misc/asterisk/asterisk-13.34.0.ebuild
+++ b/net-misc/asterisk/asterisk-13.34.0.ebuild
@@ -11,14 +11,14 @@ SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar
https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+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 osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp +ssl static statsd syslog vorbis xmpp"
+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 )
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
@@ -64,7 +64,6 @@ DEPEND="acct-user/asterisk
mysql? ( dev-db/mysql-connector-c:= )
newt? ( dev-libs/newt )
odbc? ( dev-db/unixODBC )
- osplookup? ( net-libs/osptoolkit )
pjproject? ( net-libs/pjproject )
portaudio? ( media-libs/portaudio )
postgres? ( dev-db/postgresql:* )
@@ -195,7 +194,6 @@ src_configure() {
use_select lua pbx_lua
use_select mysql app_mysql cdr_mysql res_config_mysql
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
- use_select osplookup app_osplookup
use_select oss chan_oss
use_select postgres {cdr,cel}_pgsql res_config_pgsql
use_select radius {cdr,cel}_radius
diff --git a/net-misc/asterisk/asterisk-13.35.0.ebuild b/net-misc/asterisk/asterisk-13.35.0.ebuild
new file mode 100644
index 000000000000..1f33018e9fc4
--- /dev/null
+++ b/net-misc/asterisk/asterisk-13.35.0.ebuild
@@ -0,0 +1,294 @@
+# 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 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 )
+ ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
+ voicemail_storage_odbc? ( odbc )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-historic-no-var-run-install.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? ( dev-lang/lua:* )
+ 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/speex
+ media-libs/speexdsp
+ )
+ srtp? ( net-libs/libsrtp:0 )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ vorbis? ( 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
+}
+
+src_prepare() {
+ default
+ AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
+}
+
+src_configure() {
+ local vmst
+
+ econf \
+ --libdir="/usr/$(get_libdir)" \
+ --localstatedir="/var" \
+ --with-crypto \
+ --with-gsm=internal \
+ --with-popt \
+ --with-z \
+ --with-libedit \
+ $(use_with caps cap) \
+ $(use_with http gmime) \
+ $(use_with newt) \
+ $(use_with pjproject) \
+ $(use_with portaudio) \
+ $(use_with ssl)
+
+ _menuselect() {
+ menuselect/menuselect "$@" || die "menuselect $* failed."
+ }
+
+ _use_select() {
+ local state=$(usex "$1" enable disable)
+ shift # remove use from parameters
+
+ while [[ -n $1 ]]; do
+ _menuselect --${state} "$1" menuselect.makeopts
+ shift
+ done
+ }
+
+ # Blank out sounds/sounds.xml file to prevent
+ # asterisk from installing sounds files (we pull them in via
+ # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
+ >"${S}"/sounds/sounds.xml
+
+ # That NATIVE_ARCH chatter really is quite bothersome
+ sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
+
+ # Compile menuselect binary for optional components
+ emake NOISE_BUILD=yes menuselect.makeopts
+
+ # Disable BUILD_NATIVE (bug #667498)
+ _menuselect --disable build_native menuselect.makeopts
+
+ # Broken functionality is forcibly disabled (bug #360143)
+ _menuselect --disable chan_misdn menuselect.makeopts
+ _menuselect --disable chan_ooh323 menuselect.makeopts
+
+ # Utility set is forcibly enabled (bug #358001)
+ _menuselect --enable smsq menuselect.makeopts
+ _menuselect --enable streamplayer menuselect.makeopts
+ _menuselect --enable aelparse menuselect.makeopts
+ _menuselect --enable astman menuselect.makeopts
+
+ # this is connected, otherwise it would not find
+ # ast_pktccops_gate_alloc symbol
+ _menuselect --enable chan_mgcp menuselect.makeopts
+ _menuselect --enable res_pktccops menuselect.makeopts
+
+ # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
+ _menuselect --enable pbx_dundi menuselect.makeopts
+ _menuselect --enable func_aes menuselect.makeopts
+ _menuselect --enable chan_iax2 menuselect.makeopts
+
+ # SQlite3 is now the main database backend, enable related features
+ _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
+ _menuselect --enable cel_sqlite3_custom menuselect.makeopts
+
+ # The others are based on USE-flag settings
+ _use_select alsa chan_alsa
+ _use_select bluetooth chan_mobile
+ _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
+ _use_select cluster res_corosync
+ _use_select curl func_curl res_config_curl res_curl
+ _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
+ _use_select freetds {cdr,cel}_tds
+ _use_select gtalk chan_motif
+ _use_select http res_http_post
+ _use_select iconv func_iconv
+ _use_select ilbc codec_ilbc format_ilbc
+ _use_select ldap res_config_ldap
+ _use_select lua pbx_lua
+ _use_select mysql app_mysql cdr_mysql res_config_mysql
+ _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
+ _use_select oss chan_oss
+ _use_select postgres {cdr,cel}_pgsql res_config_pgsql
+ _use_select radius {cdr,cel}_radius
+ _use_select snmp res_snmp
+ _use_select span res_fax_spandsp
+ _use_select speex {codec,func}_speex
+ _use_select srtp res_srtp
+ _use_select statsd res_statsd res_{endpoint,chan}_stats
+ _use_select syslog cdr_syslog
+ _use_select vorbis format_ogg_vorbis
+ _use_select xmpp res_xmpp
+
+ # Voicemail storage ...
+ for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
+ if use ${vmst}; then
+ _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
+ fi
+ done
+
+ if use debug; then
+ for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
+ _menuselect --enable $o menuselect.makeopts
+ done
+ fi
+}
+
+src_compile() {
+ emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
+}
+
+src_install() {
+ local d
+
+ mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
+ emake DESTDIR="${ED}" NOISY_BUILD=yes install
+
+ if use radius; then
+ insinto /etc/radiusclient/
+ doins contrib/dictionary.digium
+ fi
+ diropts -m 0750 -o root -g asterisk
+ keepdir /etc/asterisk
+ emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
+ for conffile in "${ED}/etc/asterisk/"*
+ do
+ fowners root:root "${conffile#${ED}}"
+ fperms 0644 "${conffile#${ED}}"
+ done
+
+ # keep directories
+ diropts -m 0750 -o asterisk -g root
+ keepdir /var/lib/asterisk
+ keepdir /var/spool/asterisk
+ keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
+ diropts -m 0750 -o asterisk -g asterisk
+ keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
+
+ newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
+ newconfd "${FILESDIR}"/confd-13.32.0 asterisk
+
+ systemd_dounit "${FILESDIR}"/asterisk.service
+ systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
+ systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
+
+ # Reset diropts else dodoc uses it for doc installations.
+ diropts -m0755
+
+ # install the upgrade documentation
+ dodoc UPGRADE* BUGS CREDITS
+
+ # install extra documentation
+ if use doc; then
+ dodoc doc/*.txt
+ dodoc doc/*.pdf
+ fi
+
+ # install logrotate snippet; bug #329281
+ #
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
+
+ # Asterisk installs a few folders that's empty by design,
+ # but still required. This finds them, and marks them for
+ # portage.
+ for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
+ keepdir "${d#${ED}}"
+ done
+}
+
+pkg_postinst() {
+ if [ -z "${REPLACING_VERSIONS}" ]; then
+ elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
+ elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
+ elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
+ elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
+ elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
+ elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
+ fi
+}
diff --git a/net-misc/asterisk/asterisk-16.11.1.ebuild b/net-misc/asterisk/asterisk-16.11.1.ebuild
index 7ee0fe2eb037..b971778f05c4 100644
--- a/net-misc/asterisk/asterisk-16.11.1.ebuild
+++ b/net-misc/asterisk/asterisk-16.11.1.ebuild
@@ -11,14 +11,14 @@ SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar
https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+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 osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp +ssl static statsd syslog unbound vorbis xmpp"
+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 )
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
@@ -65,7 +65,6 @@ DEPEND="acct-user/asterisk
mysql? ( dev-db/mysql-connector-c:= )
newt? ( dev-libs/newt )
odbc? ( dev-db/unixODBC )
- osplookup? ( net-libs/osptoolkit )
pjproject? ( >=net-libs/pjproject-2.9 )
portaudio? ( media-libs/portaudio )
postgres? ( dev-db/postgresql:* )
@@ -200,7 +199,6 @@ src_configure() {
use_select lua pbx_lua
use_select mysql app_mysql cdr_mysql res_config_mysql
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
- use_select osplookup app_osplookup
use_select oss chan_oss
use_select postgres {cdr,cel}_pgsql res_config_pgsql
use_select radius {cdr,cel}_radius
diff --git a/net-misc/asterisk/asterisk-16.10.0.ebuild b/net-misc/asterisk/asterisk-16.12.0.ebuild
index 7ee0fe2eb037..e7b031043036 100644
--- a/net-misc/asterisk/asterisk-16.10.0.ebuild
+++ b/net-misc/asterisk/asterisk-16.12.0.ebuild
@@ -11,14 +11,14 @@ SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar
https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+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 osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp +ssl static statsd syslog unbound vorbis xmpp"
+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 )
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
@@ -27,7 +27,6 @@ REQUIRED_USE="gtalk? ( xmpp )
PATCHES=(
"${FILESDIR}/${PN}-historic-no-var-run-install.patch"
- "${FILESDIR}/${PN}-13.33.0-nossl.patch"
)
DEPEND="acct-user/asterisk
@@ -65,7 +64,6 @@ DEPEND="acct-user/asterisk
mysql? ( dev-db/mysql-connector-c:= )
newt? ( dev-libs/newt )
odbc? ( dev-db/unixODBC )
- osplookup? ( net-libs/osptoolkit )
pjproject? ( >=net-libs/pjproject-2.9 )
portaudio? ( media-libs/portaudio )
postgres? ( dev-db/postgresql:* )
@@ -111,10 +109,6 @@ src_prepare() {
AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
}
-function menuselect() {
- menuselect/menuselect "$@" || die "menuselect $* failed."
-}
-
src_configure() {
local vmst
@@ -136,6 +130,20 @@ src_configure() {
$(use_with ssl) \
$(use_with unbound)
+ _menuselect() {
+ menuselect/menuselect "$@" || die "menuselect $* failed."
+ }
+
+ _use_select() {
+ local state=$(use "$1" && echo enable || echo disable)
+ shift # remove use from parameters
+
+ while [[ -n $1 ]]; do
+ _menuselect --${state} "$1" menuselect.makeopts
+ shift
+ done
+ }
+
# Blank out sounds/sounds.xml file to prevent
# asterisk from installing sounds files (we pull them in via
# asterisk-{core,extra}-sounds and asterisk-moh-opsound.
@@ -148,81 +156,70 @@ src_configure() {
emake NOISY_BUILD=yes menuselect.makeopts
# Disable BUILD_NATIVE (bug #667498)
- menuselect --disable build_native menuselect.makeopts
+ _menuselect --disable build_native menuselect.makeopts
# Broken functionality is forcibly disabled (bug #360143)
- menuselect --disable chan_misdn menuselect.makeopts
- menuselect --disable chan_ooh323 menuselect.makeopts
+ _menuselect --disable chan_misdn menuselect.makeopts
+ _menuselect --disable chan_ooh323 menuselect.makeopts
# Utility set is forcibly enabled (bug #358001)
- menuselect --enable smsq menuselect.makeopts
- menuselect --enable streamplayer menuselect.makeopts
- menuselect --enable aelparse menuselect.makeopts
- menuselect --enable astman menuselect.makeopts
+ _menuselect --enable smsq menuselect.makeopts
+ _menuselect --enable streamplayer menuselect.makeopts
+ _menuselect --enable aelparse menuselect.makeopts
+ _menuselect --enable astman menuselect.makeopts
# this is connected, otherwise it would not find
# ast_pktccops_gate_alloc symbol
- menuselect --enable chan_mgcp menuselect.makeopts
- menuselect --enable res_pktccops menuselect.makeopts
+ _menuselect --enable chan_mgcp menuselect.makeopts
+ _menuselect --enable res_pktccops menuselect.makeopts
# SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
- menuselect --enable pbx_dundi menuselect.makeopts
- menuselect --enable func_aes menuselect.makeopts
- menuselect --enable chan_iax2 menuselect.makeopts
+ _menuselect --enable pbx_dundi menuselect.makeopts
+ _menuselect --enable func_aes menuselect.makeopts
+ _menuselect --enable chan_iax2 menuselect.makeopts
# SQlite3 is now the main database backend, enable related features
- menuselect --enable cdr_sqlite3_custom menuselect.makeopts
- menuselect --enable cel_sqlite3_custom menuselect.makeopts
+ _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
+ _menuselect --enable cel_sqlite3_custom menuselect.makeopts
# The others are based on USE-flag settings
- use_select() {
- local state=$(use "$1" && echo enable || echo disable)
- shift # remove use from parameters
-
- while [[ -n $1 ]]; do
- menuselect --${state} "$1" menuselect.makeopts
- shift
- done
- }
-
- use_select alsa chan_alsa
- use_select bluetooth chan_mobile
- use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
- use_select cluster res_corosync
- use_select curl func_curl res_config_curl res_curl
- use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
- use_select freetds {cdr,cel}_tds
- use_select gtalk chan_motif
- use_select http res_http_post
- use_select iconv func_iconv
- use_select ilbc codec_ilbc format_ilbc
- use_select ldap res_config_ldap
- use_select lua pbx_lua
- use_select mysql app_mysql cdr_mysql res_config_mysql
- use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
- use_select osplookup app_osplookup
- use_select oss chan_oss
- use_select postgres {cdr,cel}_pgsql res_config_pgsql
- use_select radius {cdr,cel}_radius
- use_select snmp res_snmp
- use_select span res_fax_spandsp
- use_select speex {codec,func}_speex
- use_select srtp res_srtp
- use_select statsd res_statsd res_{endpoint,chan}_stats
- use_select syslog cdr_syslog
- use_select vorbis format_ogg_vorbis
- use_select xmpp res_xmpp
+ _use_select alsa chan_alsa
+ _use_select bluetooth chan_mobile
+ _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
+ _use_select cluster res_corosync
+ _use_select curl func_curl res_config_curl res_curl
+ _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
+ _use_select freetds {cdr,cel}_tds
+ _use_select gtalk chan_motif
+ _use_select http res_http_post
+ _use_select iconv func_iconv
+ _use_select ilbc codec_ilbc format_ilbc
+ _use_select ldap res_config_ldap
+ _use_select lua pbx_lua
+ _use_select mysql app_mysql cdr_mysql res_config_mysql
+ _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
+ _use_select oss chan_oss
+ _use_select postgres {cdr,cel}_pgsql res_config_pgsql
+ _use_select radius {cdr,cel}_radius
+ _use_select snmp res_snmp
+ _use_select span res_fax_spandsp
+ _use_select speex {codec,func}_speex
+ _use_select srtp res_srtp
+ _use_select statsd res_statsd res_{endpoint,chan}_stats
+ _use_select syslog cdr_syslog
+ _use_select vorbis format_ogg_vorbis
+ _use_select xmpp res_xmpp
# Voicemail storage ...
for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
if use ${vmst}; then
- menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
+ _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
fi
done
if use debug; then
for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
- menuselect --enable "${o}" menuselect.makeopts
+ _menuselect --enable "${o}" menuselect.makeopts
done
fi
}
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 69296c99e66d..000000000000
--- 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 ba9cbbba98b5..000000000000
--- 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 c4689bd1579d..000000000000
--- 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:.*<sip:'"${anum}"'@.*>.*)\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 5b2e69e517b4..000000000000
--- 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 b/net-misc/asterisk/files/1.6.2/sip_calc_auth
deleted file mode 100644
index 3f050ada5738..000000000000
--- a/net-misc/asterisk/files/1.6.2/sip_calc_auth
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /bin/bash
-
-[ $# -lt 7 ] && echo "USAGE: $0 username realm password method uri algorithm nonce" && exit 1
-
-un=$1
-realm=$2
-pw=$3
-method=$4
-uri=$5
-alg=$6
-nonce=$7
-
-echo "Using $un@$realm (secret $pw) for method $method to $uri with nonce $nonce (alg=$alg)"
-
-a1=$un:$realm:$pw
-a2=$method:$uri
-ha1=$(echo -n "$a1" | openssl $alg)
-ha2=$(echo -n "$a2" | openssl $alg)
-resp=$(echo -n "$ha1:$nonce:$ha2" | openssl $alg)
-
-echo "a1=$a1"
-echo "a2=$a2"
-echo "ha1=$ha1"
-echo "ha2=$ha2"
-echo "resp=$resp"
diff --git a/net-misc/asterisk/files/1.8.0/asterisk.confd b/net-misc/asterisk/files/1.8.0/asterisk.confd
deleted file mode 100644
index f826d46f245c..000000000000
--- a/net-misc/asterisk/files/1.8.0/asterisk.confd
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-#
-# Additional options for asterisk
-#
-# see "asterisk -h" for a list of options
-#
-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"
-#
-# "" to run as user "root" and group "root"
-#
-ASTERISK_USER="asterisk"
-
-#
-# Nicelevel
-#
-# Set the priority of the asterisk process
-#
-# Value: (highest) -20..19 (lowest)
-#
-#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
-#
-#ASTERISK_NOTIFY_EMAIL="root"
-
-#
-# Send asterisk's output to this terminal
-#
-# Value: Full path to device node or a number
-#
-#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 or no/empty
-#
-ASTERISK_CONSOLE="no"
-
-#
-# Maximum size of core files.
-#
-# Value: Size in bytes, unlimited for no limit or empty to disable.
-#
-ASTERISK_CORE_SIZE="unlimited"
-
-#
-# ASTERISK_CORE_DIR
-#
-# Value: Directory (will be created if non-existant), default is /tmp
-#
-ASTERISK_CORE_DIR="/var/lib/asterisk/coredump"
-
-#
-# Max number of filedescriptors
-#
-# Value: Number of descriptors
-#
-ASTERISK_MAX_FD="4096"
-
-#
-# Delay time before restarting asterisk after a crash.
-#
-# Value: Number of seconds to sleep after a crash before restarting.
-#
-ASTERISK_RESTART_DELAY=5
-
-#
-# 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")
-#
-#ASTERISK_CLEANUP_ON_CRASH="mpg123 asterisk-mpg123 mad"
diff --git a/net-misc/asterisk/files/1.8.0/asterisk.initd7 b/net-misc/asterisk/files/1.8.0/asterisk.initd7
deleted file mode 100644
index 0897919caac5..000000000000
--- a/net-misc/asterisk/files/1.8.0/asterisk.initd7
+++ /dev/null
@@ -1,346 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_started_commands="forcestop reload"
-
-depend() {
- need net
- use nscd dns dahdi mysql postgresql slapd capi
-}
-
-is_running() {
- [ -r "${ast_rundir}/asterisk.pid" ] || return 1
- PID="$(cat "${ast_rundir}/asterisk.pid")"
- [ -d "/proc/${PID}" ] || return 1
- EXE="$(readlink -f /proc/${PID}/exe)"
- EXE="${EXE% (deleted)}" # in case asterisk got upgraded and we're still looking at an old one.
- [ "${EXE}" = /usr/sbin/asterisk ] || return 1 # pid got re-used for another process.
-
- # PID reported in pidfile is active, and is still an asterisk instance.
- return 0
-}
-
-# Sets up a few variables for us for use
-# ast_instancename: eg, asterisk when RC_SVCNAME=asterisk, or asterisk(foo) when asterisk.foo.
-# ast_rundir: directory to be used as run folder (pid and ctl files).
-# ast_spooldir:
-setup_svc_variables()
-{
- local t
-
- ast_instancename=asterisk
- ast_rundir=/var/run/${RC_SVCNAME}
- ast_logdir=/var/log/${RC_SVCNAME}
- ast_spooldir=/var/spool/${RC_SVCNAME}
- ast_confdir=/etc/${RC_SVCNAME/.//}
-
- if [ "${RC_SVCNAME}" != "asterisk" ]; then
- t="${RC_SVCNAME#asterisk.}"
- if [ "${RC_SVCNAME}" = "${t}" ]; then
- eerror "Invalid SVCNAME of ${RC_SVCNAME}, must be of the format asterisk.name."
- return 1
- fi
- ast_instancename+="(${t})"
- fi
-
- [ -n "${ASTERISK_RUNDIR}" ] && ast_rundir="${ASTERISK_RUNDIR}"
- [ -n "${ASTERISK_LOGDIR}" ] && ast_logdir="${ASTERISK_LOGDIR}"
- [ -n "${ASTERISK_SPOOLDIR}" ] && ast_spooldir="${ASTERISK_SPOOLDIR}"
- [ -n "${ASTERISK_CONFDIR}" ] && ast_confdir="${ASTERISK_CONFDIR}"
-
- return 0
-}
-
-asterisk_run_loop() {
- local result=0 signal=0
-
- echo "Initializing ${ast_instancename} wrapper"
- OPTS="$*"
-
- trap "rm -f '${ast_rundir}/wrapper_loop.running'" EXIT
- touch "${ast_rundir}/wrapper_loop.running"
-
- while [ -r "${ast_rundir}/wrapper_loop.running" ]; do
- if [ -n "${TTY}" ]; then
- /usr/bin/stty -F "${TTY}" sane
- ${NICE} /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" ${OPTS} >"${TTY}" 2>&1 <"${TTY}"
- result=$?
- else
- ${NICE} /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" ${OPTS} 2>&1 >/dev/null
- result=$?
- fi
-
- if [ "$result" -eq 0 ]; then
- echo "Asterisk terminated normally"
- break
- else
- if [ "$result" -gt 128 ]; then
- signal="$(expr "$result" - 128)"
- MSG="Asterisk terminated with Signal: $signal"
-
- CORE_TARGET="core-$(date "+%Y%m%d-%H%M%S")"
-
- local CORE_DUMPED=0
- if [ -f "${ASTERISK_CORE_DIR}/core" ]; then
- mv "${ASTERISK_CORE_DIR}/core" \
- "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- CORE_DUMPED=1
-
- elif [ -f "${ASTERISK_CORE_DIR}/core.${PID}" ]; then
- mv "${ASTERISK_CORE_DIR}/core.${PID}" \
- "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- CORE_DUMPED=1
-
- fi
-
- [ $CORE_DUMPED -eq 1 ] && \
- MSG="${MSG}\n\rCore dumped: ${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- else
- MSG="Asterisk terminated with return code: $result"
- fi
-
- # kill left-over tasks
- for X in ${ASTERISK_CLEANUP_ON_CRASH}; do
- kill -9 "$(pidof "${X}")";
- done
- fi
-
- [ -n "${TTY}" ] \
- && echo "${MSG}" >"${TTY}" \
- || echo "${MSG}"
-
-
- if [ -n "${ASTERISK_NOTIFY_EMAIL}" ] && \
- [ -x /usr/sbin/sendmail ]; then
- echo -e -n "Subject: Asterisk crashed\r\n${MSG}\r\n" |\
- /usr/sbin/sendmail "${ASTERISK_NOTIFY_EMAIL}"
- fi
- sleep "${ASTERISK_RESTART_DELAY}"
- echo "Restarting Asterisk..."
- done
-
- echo "Terminating wrapper loop."
- return 0
-}
-
-start() {
- local OPTS USER GROUP PID
- local tmp x
-
- local OPTS ARGS
-
- setup_svc_variables || return $?
-
- ebegin "Starting ${ast_instancename} PBX"
-
- eindent
-
- # filter (redundant) arguments
- OPTS="$(echo "${ASTERISK_OPTS}" | sed -re "s:-[cfF]::g")"
-
- # default options
- OPTS="${OPTS} -f" # don't fork / detach breaks wrapper script...
-
- # mangle yes/no options
- ASTERISK_CONSOLE="$(echo ${ASTERISK_CONSOLE} | tr '[:lower:]' '[:upper:]')"
- ASTERISK_WAITBOOTED="$(echo "${ASTERISK_WAITBOOTED}" | tr '[:lower:]' '[:upper:]')"
-
- ASTERISK_RESTART_DELAY="$(echo "${ASTERISK_RESTART_DELAY}" | sed -re 's/^([0-9]*).*/\1/')"
- [ -z "${ASTERISK_RESTART_DELAY}" ] && ASTERISK_RESTART_DELAY=5
-
- if [ -n "${ASTERISK_CORE_SIZE}" ] &&
- [ "${ASTERISK_CORE_SIZE}" != "0" ]; then
- ulimit -c ${ASTERISK_CORE_SIZE}
-
- if [ -n "${ASTERISK_CORE_DIR}" ] && \
- [ ! -d "${ASTERISK_CORE_DIR}" ]
- then
- mkdir -m750 -p "${ASTERISK_CORE_DIR}"
-
- if [ -n "${ASTERISK_USER}" ]; then
- chown -R "${ASTERISK_USER}" "${ASTERISK_CORE_DIR}"
- fi
- fi
- ASTERISK_CORE_DIR="${ASTERISK_CORE_DIR:-/tmp}"
-
- cd "${ASTERISK_CORE_DIR}"
- einfo "Core dump size : ${ASTERISK_CORE_SIZE}"
- einfo "Core dump location : ${ASTERISK_CORE_DIR}"
-
- OPTS="${OPTS} -g"
- fi
-
- if [ -n "${ASTERISK_MAX_FD}" ]; then
- ulimit -n ${ASTERISK_MAX_FD}
- einfo "Max open filedescriptors : ${ASTERISK_MAX_FD}"
- fi
-
- if [ -n "${ASTERISK_NICE}" ]; then
- if [ ${ASTERISK_NICE} -ge -20 ] && \
- [ ${ASTERISK_NICE} -le 19 ]; then
- einfo "Nice level : ${ASTERISK_NICE}"
- NICE="nice -n ${ASTERISK_NICE} --"
- else
- eerror "Nice value must be between -20 and 19"
- return 1
- fi
- else
- NICE=""
- fi
-
- if [ -n "${ASTERISK_NOTIFY_EMAIL}" ]; then
- if [ -x /usr/sbin/sendmail ]; then
- einfo "Email notifications go to : ${ASTERISK_NOTIFY_EMAIL}"
- else
- ewarn "Notifications disabled, /usr/sbin/sendmail doesn't exist or is not executable!"
- unset ASTERISK_NOTIFY_EMAIL
- fi
- fi
-
- if [ -n "${ASTERISK_TTY}" ]; then
- for x in ${ASTERISK_TTY} \
- /dev/tty${ASTERISK_TTY} \
- /dev/vc/${ASTERISK_TTY}
- do
- if [ -c "${x}" ]; then
- TTY="${x}"
- fi
- done
- [ -n "${TTY}" ] && \
- einfo "Messages are sent to : ${TTY}"
- fi
-
- if [ "${ASTERISK_CONSOLE}" = "YES" ] && [ -n "${TTY}" ]; then
- einfo "Starting Asterisk console : ${ASTERISK_CONSOLE}"
- OPTS="${OPTS} -c"
- fi
-
- if [ -n "${ASTERISK_USER}" ]; then
- USER="$(echo $ASTERISK_USER | sed 's/:.*//')"
- GROUP="$(echo $ASTERISK_USER | awk -F: '/.*:.*/ { print $2 }')"
- if [ -n "${USER}" ]; then
- if ! getent passwd "${USER}" &>/dev/null; then
- eerror "Requested to run asterisk as ${USER}, which doesn't exist."
- return 1
- fi
- OPTS="${OPTS} -U ${USER}"
- fi
- if [ -n "${GROUP}" ]; then
- if ! getent group "${GROUP}" &>/dev/null; then
- eerror "Requested to run asterisk with group ${USER}, which doesn't exist."
- return 1
- fi
- OPTS="${OPTS} -G ${GROUP}"
- GROUP=":${GROUP}" # make it look nice...
- fi
- checkpath -d -m 0755 -o ${USER}${GROUP} "${ast_logdir}" "${ast_rundir}" "${ast_spooldir}"
- find "${ast_logdir}" "${ast_rundir}" "${ast_spooldir}" ! -user "${USER}" | while read element; do
- ewarn "${USER} is not the owner of $element, or permissions are insufficient, fixing."
- chown ${USER} "${element}"
- chmod u+rX "${element}"
- done;
- einfo "Starting asterisk as : ${USER}${GROUP}"
- else
- checkpath -d -m 0755 -o root:root "${ast_logdir}" "${ast_rundir}"
- ewarn "Starting asterisk as root is not recommended."
- fi
-
- asterisk_run_loop ${OPTS} 2>&1 | logger -t "wrapper:${ast_instancename}" &
- result=$?
-
- if [ $result -eq 0 ]; then
- # 2 seconds should be enough for asterisk to start
- sleep 2
- is_running
- result=$?
-
- [ $result -eq 0 ] || wrapperstop
- fi
-
- eoutdent
- eend $result
-
- if [ $result -eq 0 -a "${ASTERISK_WAITBOOTED}" = "YES" ]; then
- ebegin "Waiting for ${ast_instancename} to fully boot"
- /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" -r -x "core waitfullybooted" &>/dev/null
- eend $?
- fi
-
- return $result
-}
-
-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 wrapper script"
- kill "$(cat /var/run/asterisk/wrapper_loop.pid)"
- eend $?
- fi
-
- # The new one (due to "hardened" requirements) uses a simpler
- # flag to indicate running or shutting down.
- if [ -r "${ast_rundir}/wrapper_loop.running" ]; then
- ebegin "Signalling wrapper script to terminate"
- rm "${ast_rundir}/wrapper_loop.running"
- eend $?
- fi
-
- return 0
-}
-
-forcestop() {
- setup_svc_variables || return $?
-
- # Just to be sure - when we want to forcestop we should make it all tear down.
- wrapperstop
-
- ebegin "Stopping asterisk PBX"
- start-stop-daemon --stop --pidfile /var/run/asterisk/asterisk.pid
- eend $?
-}
-
-stop() {
- setup_svc_variables || return $?
-
- wrapperstop
-
- if ! is_running; then
- eerror "Asterisk is not running!"
- return 0
- fi
-
- ebegin "Stopping asterisk PBX gracefully"
- /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" -r -x "core stop gracefully" &>/dev/null
- # Now we have to wait until asterisk has _really_ stopped.
- sleep 1
- if is_running; then
- einfon "Waiting for asterisk to shutdown ."
- local cnt=0
- while is_running; do
- cnt="$(expr $cnt + 1)"
- if [ $cnt -gt 60 ] ; then
- # Waited 120 seconds now. Fail.
- echo
- eend 1 "Failed."
- return
- fi
- sleep 2
- echo -n "."
- done
- echo
- fi
- eend 0
-}
-
-reload() {
- setup_svc_variables || return $?
-
- if is_running; then
- ebegin "Forcing asterisk to reload configuration"
- /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" -r -x "module reload" &>/dev/null
- eend $?
- else
- eerror "Asterisk is not running!"
- fi
-}
diff --git a/net-misc/asterisk/files/1.8.0/asterisk.initd8 b/net-misc/asterisk/files/1.8.0/asterisk.initd8
deleted file mode 100644
index 4419dda06883..000000000000
--- a/net-misc/asterisk/files/1.8.0/asterisk.initd8
+++ /dev/null
@@ -1,361 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_started_commands="forcestop reload"
-extra_commands="checkperms"
-
-depend() {
- need net
- use nscd dns dahdi mysql postgresql slapd capi
-}
-
-is_running() {
- [ -r "${ast_rundir}/asterisk.pid" ] || return 1
- PID="$(cat "${ast_rundir}/asterisk.pid")"
- [ -d "/proc/${PID}" ] || return 1
- EXE="$(readlink -f /proc/${PID}/exe)"
- EXE="${EXE% (deleted)}" # in case asterisk got upgraded and we're still looking at an old one.
- [ "${EXE}" = /usr/sbin/asterisk ] || return 1 # pid got re-used for another process.
-
- # PID reported in pidfile is active, and is still an asterisk instance.
- return 0
-}
-
-# Sets up a few variables for us for use
-# ast_instancename: eg, asterisk when RC_SVCNAME=asterisk, or asterisk(foo) when asterisk.foo.
-# ast_rundir: directory to be used as run folder (pid and ctl files).
-# ast_spooldir:
-setup_svc_variables()
-{
- local t
-
- ast_instancename=asterisk
- ast_rundir=/var/run/${RC_SVCNAME}
- ast_logdir=/var/log/${RC_SVCNAME}
- ast_spooldir=/var/spool/${RC_SVCNAME}
- ast_confdir=/etc/${RC_SVCNAME/.//}
-
- if [ "${RC_SVCNAME}" != "asterisk" ]; then
- t="${RC_SVCNAME#asterisk.}"
- if [ "${RC_SVCNAME}" = "${t}" ]; then
- eerror "Invalid SVCNAME of ${RC_SVCNAME}, must be of the format asterisk.name."
- return 1
- fi
- ast_instancename+="(${t})"
- fi
-
- [ -n "${ASTERISK_RUNDIR}" ] && ast_rundir="${ASTERISK_RUNDIR}"
- [ -n "${ASTERISK_LOGDIR}" ] && ast_logdir="${ASTERISK_LOGDIR}"
- [ -n "${ASTERISK_SPOOLDIR}" ] && ast_spooldir="${ASTERISK_SPOOLDIR}"
- [ -n "${ASTERISK_CONFDIR}" ] && ast_confdir="${ASTERISK_CONFDIR}"
-
- if [ -n "${ASTERISK_USER}" ]; then
- ast_user="${ASTERISK_USER%%:*}"
- ast_group="${ASTERISK_USER#*:}"
- ast_group="${ast_group%%:*}"
- [ -z "${ast_user}" ] && ast_user=root
- [ -z "${ast_group}" ] && ast_group="$(getent group $(getent passwd "${ast_user}" | awk -F: '{ print $4 }') | sed -re 's/:.*//')"
- fi
-
- [ -z "${ast_user}" ] && ast_user=root
- [ -z "${ast_group}" ] && ast_group=root
-
- return 0
-}
-
-checkperms() {
- setup_svc_variables
-
- local path
- checkpath -d -m 0755 -o ${ast_user}:${ast_group} "${ast_logdir}" "${ast_rundir}" "${ast_spooldir}"
- for path in "${ast_rundir}" "${ast_spooldir}" "${ast_logdir}"; do
- ebegin "Checking ${path}"
- find "${path}" ! -user "${ast_user}" | while read element; do
- [[ "${element}" = *.gz ]] && continue # Skip logrotated files.
- ewarn "${ast_user} is not the owner of ${element}, or permissions are insufficient, fixing."
- chown ${ast_user} "${element}"
- chmod u+rwX "${element}"
- done;
- eend 0
- done
-}
-
-asterisk_run_loop() {
- local result=0 signal=0
-
- echo "Initializing ${ast_instancename} wrapper"
- OPTS="$*"
-
- trap "rm -f '${ast_rundir}/wrapper_loop.running'" EXIT
- touch "${ast_rundir}/wrapper_loop.running"
-
- while [ -r "${ast_rundir}/wrapper_loop.running" ]; do
- if [ -n "${TTY}" ]; then
- /usr/bin/stty -F "${TTY}" sane
- ${NICE} /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" ${OPTS} >"${TTY}" 2>&1 <"${TTY}"
- result=$?
- else
- ${NICE} /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" ${OPTS} 2>&1 >/dev/null
- result=$?
- fi
-
- if [ "$result" -eq 0 ]; then
- echo "Asterisk terminated normally"
- break
- else
- if [ "$result" -gt 128 ]; then
- signal="$(expr "$result" - 128)"
- MSG="Asterisk terminated with Signal: $signal"
-
- CORE_TARGET="core-$(date "+%Y%m%d-%H%M%S")"
-
- local CORE_DUMPED=0
- if [ -f "${ASTERISK_CORE_DIR}/core" ]; then
- mv "${ASTERISK_CORE_DIR}/core" \
- "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- CORE_DUMPED=1
-
- elif [ -f "${ASTERISK_CORE_DIR}/core.${PID}" ]; then
- mv "${ASTERISK_CORE_DIR}/core.${PID}" \
- "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- CORE_DUMPED=1
-
- fi
-
- [ $CORE_DUMPED -eq 1 ] && \
- MSG="${MSG}\n\rCore dumped: ${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- else
- MSG="Asterisk terminated with return code: $result"
- fi
-
- # kill left-over tasks
- for X in ${ASTERISK_CLEANUP_ON_CRASH}; do
- kill -9 "$(pidof "${X}")";
- done
- fi
-
- [ -n "${TTY}" ] \
- && echo "${MSG}" >"${TTY}" \
- || echo "${MSG}"
-
-
- if [ -n "${ASTERISK_NOTIFY_EMAIL}" ] && \
- [ -x /usr/sbin/sendmail ]; then
- echo -e -n "Subject: Asterisk crashed\r\n${MSG}\r\n" |\
- /usr/sbin/sendmail "${ASTERISK_NOTIFY_EMAIL}"
- fi
- sleep "${ASTERISK_RESTART_DELAY}"
- echo "Restarting Asterisk..."
- done
-
- echo "Terminating wrapper loop."
- return 0
-}
-
-start() {
- local OPTS PID
- local tmp x
-
- local OPTS ARGS
-
- setup_svc_variables || return $?
-
- ebegin "Starting ${ast_instancename} PBX"
-
- eindent
-
- # filter (redundant) arguments
- OPTS="$(echo "${ASTERISK_OPTS}" | sed -re "s:-[cfF]::g")"
-
- # default options
- OPTS="${OPTS} -f" # don't fork / detach breaks wrapper script...
-
- # mangle yes/no options
- ASTERISK_CONSOLE="$(echo ${ASTERISK_CONSOLE} | tr '[:lower:]' '[:upper:]')"
- ASTERISK_WAITBOOTED="$(echo "${ASTERISK_WAITBOOTED}" | tr '[:lower:]' '[:upper:]')"
-
- ASTERISK_RESTART_DELAY="$(echo "${ASTERISK_RESTART_DELAY}" | sed -re 's/^([0-9]*).*/\1/')"
- [ -z "${ASTERISK_RESTART_DELAY}" ] && ASTERISK_RESTART_DELAY=5
-
- if [ -n "${ASTERISK_CORE_SIZE}" ] &&
- [ "${ASTERISK_CORE_SIZE}" != "0" ]; then
- ulimit -c ${ASTERISK_CORE_SIZE}
-
- if [ -n "${ASTERISK_CORE_DIR}" ] && \
- [ ! -d "${ASTERISK_CORE_DIR}" ]
- then
- checkpath -d -m 0755 -o ${ast_user}:${ast_group} "${ASTERISK_CORE_DIR}"
- fi
- ASTERISK_CORE_DIR="${ASTERISK_CORE_DIR:-/tmp}"
-
- cd "${ASTERISK_CORE_DIR}"
- einfo "Core dump size : ${ASTERISK_CORE_SIZE}"
- einfo "Core dump location : ${ASTERISK_CORE_DIR}"
-
- OPTS="${OPTS} -g"
- fi
-
- if [ -n "${ASTERISK_MAX_FD}" ]; then
- ulimit -n ${ASTERISK_MAX_FD}
- einfo "Max open filedescriptors : ${ASTERISK_MAX_FD}"
- fi
-
- if [ -n "${ASTERISK_NICE}" ]; then
- if [ ${ASTERISK_NICE} -ge -20 ] && \
- [ ${ASTERISK_NICE} -le 19 ]; then
- einfo "Nice level : ${ASTERISK_NICE}"
- NICE="nice -n ${ASTERISK_NICE} --"
- else
- eerror "Nice value must be between -20 and 19"
- return 1
- fi
- else
- NICE=""
- fi
-
- if [ -n "${ASTERISK_NOTIFY_EMAIL}" ]; then
- if [ -x /usr/sbin/sendmail ]; then
- einfo "Email notifications go to : ${ASTERISK_NOTIFY_EMAIL}"
- else
- ewarn "Notifications disabled, /usr/sbin/sendmail doesn't exist or is not executable!"
- unset ASTERISK_NOTIFY_EMAIL
- fi
- fi
-
- if [ -n "${ASTERISK_TTY}" ]; then
- for x in ${ASTERISK_TTY} \
- /dev/tty${ASTERISK_TTY} \
- /dev/vc/${ASTERISK_TTY}
- do
- if [ -c "${x}" ]; then
- TTY="${x}"
- fi
- done
- [ -n "${TTY}" ] && \
- einfo "Messages are sent to : ${TTY}"
- fi
-
- if [ "${ASTERISK_CONSOLE}" = "YES" ] && [ -n "${TTY}" ]; then
- einfo "Starting Asterisk console : ${ASTERISK_CONSOLE}"
- OPTS="${OPTS} -c"
- fi
-
- if ! getent passwd "${ast_user}" &>/dev/null; then
- eerror "Requested to run asterisk as ${ast_user}, which doesn't exist."
- return 1
- fi
- OPTS="${OPTS} -U ${ast_user}"
-
- if ! getent group "${ast_group}" &>/dev/null; then
- eerror "Requested to run asterisk with group ${ast_group}, which doesn't exist."
- return 1
- fi
- OPTS="${OPTS} -G ${ast_group}"
-
- if [ "${ast_user}" = root ]; then
- ewarn "Starting asterisk as root is not recommended (SERIOUS SECURITY CONSIDERATIONS)."
- elif [ "${ast_group}" = root ]; then
- ewarn "Starting asterisk with group root is not recommended (SERIOUS SECURITY CONSIDERATIONS)."
- fi
-
- checkpath -d -m 0755 -o "${ast_user}:${ast_group}" "${ast_logdir}" "${ast_rundir}"
- einfo "Starting asterisk as : ${ast_user}:${ast_group}"
- asterisk_run_loop ${OPTS} 2>&1 | logger -t "wrapper:${ast_instancename}" &
- result=$?
-
- if [ $result -eq 0 ]; then
- # 2 seconds should be enough for asterisk to start
- sleep 2
- is_running
- result=$?
-
- [ $result -eq 0 ] || wrapperstop
- fi
-
- eoutdent
- eend $result
-
- if [ $result -eq 0 -a "${ASTERISK_WAITBOOTED}" = "YES" ]; then
- ebegin "Waiting for ${ast_instancename} to fully boot"
- /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" -r -x "core waitfullybooted" &>/dev/null
- eend $?
- fi
-
- return $result
-}
-
-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 wrapper script"
- kill "$(cat /var/run/asterisk/wrapper_loop.pid)"
- eend $?
- fi
-
- # The new one (due to "hardened" requirements) uses a simpler
- # flag to indicate running or shutting down.
- if [ -r "${ast_rundir}/wrapper_loop.running" ]; then
- ebegin "Signalling wrapper script to terminate"
- rm "${ast_rundir}/wrapper_loop.running"
- eend $?
- fi
-
- return 0
-}
-
-forcestop() {
- setup_svc_variables || return $?
-
- # Just to be sure - when we want to forcestop we should make it all tear down.
- wrapperstop
-
- ebegin "Stopping asterisk PBX"
- start-stop-daemon --stop --pidfile /var/run/asterisk/asterisk.pid
- eend $?
-}
-
-stop() {
- setup_svc_variables || return $?
-
- wrapperstop
-
- if ! is_running; then
- eerror "Asterisk is not running!"
- return 0
- fi
-
- ebegin "Stopping asterisk PBX gracefully"
- /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" -r -x "core stop gracefully" &>/dev/null
- # Now we have to wait until asterisk has _really_ stopped.
- sleep 1
- if is_running; then
- einfon "Waiting for asterisk to shutdown ."
- local cnt=0
- while is_running; do
- cnt="$(expr $cnt + 1)"
- if [ $cnt -gt 60 ] ; then
- # Waited 120 seconds now. Fail.
- echo
- eend 1 "Failed."
- return
- fi
- sleep 2
- echo -n "."
- done
- echo
- fi
- eend 0
-}
-
-reload() {
- setup_svc_variables || return $?
-
- if is_running; then
- ebegin "Forcing asterisk to reload configuration"
- /usr/sbin/asterisk -C "${ast_confdir}/asterisk.conf" -r -x "module reload" &>/dev/null
- eend $?
- else
- eerror "Asterisk is not running!"
- fi
-}
diff --git a/net-misc/asterisk/files/1.8.0/find_call_ids.sh b/net-misc/asterisk/files/1.8.0/find_call_ids.sh
deleted file mode 100644
index 321f3dacd624..000000000000
--- a/net-misc/asterisk/files/1.8.0/find_call_ids.sh
+++ /dev/null
@@ -1,68 +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
-
-#echo "Finding calls from '${anum}' to '${bnum}' in ${logfile}."
-
-# modes:
-# 0 - not processing an INVITE.
-# 1 - processing an INVITE.
-# 2 - from matched (processing).
-dos2unix < "${logfile}" | awk '
- BEGIN { mode = 0 }
- mode==0 && $4~"^VERBOSE" {
- dt=$1" "$2" "$3
- }
-
- mode==0 && $1=="INVITE" && $2 ~ "^sip:'"${bnum}"'@" {
- #print
-
- mode=1
-
- split($2, a, "[:@]")
- bnum=a[2]
- }
-
- mode==1 && $1=="From:" {
- #print
- if ($3 ~ "^<sip:'"${anum}"'@.*>") {
- mode=2
- split($3, a, "[:@]")
- anum=a[2]
- } else {
- #print "From does not match ... leaving block."
- mode = 0
- }
- }
-
- mode!=0 && $1=="Call-ID:" {
- callid=$2
-
- if (NF!=2) {
- print "WTF @ Call-ID header having NF!=2"
- }
- }
-
- mode==1 && $0=="" {
- #print "Leaving block (no match)"
- mode = 0
- }
-
- mode==2 && $0=="" {
- #print "Leaving block (match)"
- print dt " " anum " " bnum " " callid
- mode = 0
- }
-'
diff --git a/net-misc/asterisk/files/1.8.0/find_call_sip_trace.sh b/net-misc/asterisk/files/1.8.0/find_call_sip_trace.sh
deleted file mode 100644
index 06ae824def5c..000000000000
--- a/net-misc/asterisk/files/1.8.0/find_call_sip_trace.sh
+++ /dev/null
@@ -1,76 +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
-
-# modes:
-# 0 - searching for SIP start block ...
-# 1 - transmit of sorts
-# 2 - receive
-
-dos2unix < "${logfile}" | awk '
- BEGIN { mode = 0 }
- mode==0 && $4~"^VERBOSE" {
- dt=$1" "$2" "$3
- }
-
- mode!=0 && $1 == "Call-ID:" {
- #print
-
- if ($2 ~ /('"${callid}"')/) {
- callidmatch=1
- } else {
- #print $2" does not match ^('"${callid}"')$"
- mode=0
- }
- }
-
- (mode==1 && $0=="---") || (mode==2 && $0=="<------------->") {
- if (callidmatch) {
- print dt" "sipmode"\n"pckt"---"
- }
-
- mode=0
- }
-
- mode!=0 {
- pckt = pckt $0 "\n"
- }
-
- mode==0 && $0 ~ "chan_sip[.]c: .*[tT]ransmitting" {
- #print
-
- if ($6 == "Retransmitting") {
- sipmode = $6" "$7" to "$NF
- } else {
- sipmode = "Transmitting to "$NF
- }
-
- mode=1
- pckt=""
- callidmatch=0
- }
-
- mode==0 && $0 ~ "SIP read from" {
- #print
- mode=2
- pckt=""
- callidmatch=0
- sipmode="Received from "$5":"
- }
-'
diff --git a/net-misc/asterisk/metadata.xml b/net-misc/asterisk/metadata.xml
index 25d257dff353..d19226fb19d0 100644
--- a/net-misc/asterisk/metadata.xml
+++ b/net-misc/asterisk/metadata.xml
@@ -16,7 +16,6 @@
<flag name="http">Enable embedded web server</flag>
<flag name="ilbc">Enable the Internet Low Bitrate Codec (iLBC)</flag>
<flag name="newt">Include additional tools that require redhats windowing toolkit</flag>
- <flag name="osplookup">Support secure peering using the Open Settlement Protocol</flag>
<flag name="pjproject">Enable support for pjproject (pjsip)</flag>
<flag name="samples">Install sample sound and configuration files (default: on)</flag>
<flag name="span">Enable support for the spandsp codec</flag>