Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/
Date: Thu, 07 Jan 2021 19:41:33
Message-Id: 1610048479.c3b2bb5a7088770e87052841dce6078fc31dc338.asturm@gentoo
1 commit: c3b2bb5a7088770e87052841dce6078fc31dc338
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Mon Nov 2 07:18:52 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 19:41:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b2bb5a
7
8 net-misc/asterisk: Cleanup old versions.
9
10 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
11 Closes: https://github.com/gentoo/gentoo/pull/18110
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 net-misc/asterisk/Manifest | 7 -
15 net-misc/asterisk/asterisk-13.34.0.ebuild | 295 --------------------
16 net-misc/asterisk/asterisk-13.35.0.ebuild | 299 --------------------
17 net-misc/asterisk/asterisk-13.36.0.ebuild | 299 --------------------
18 net-misc/asterisk/asterisk-13.37.0.ebuild | 299 --------------------
19 net-misc/asterisk/asterisk-16.12.0-r1.ebuild | 304 ---------------------
20 net-misc/asterisk/asterisk-16.13.0.ebuild | 304 ---------------------
21 net-misc/asterisk/asterisk-16.14.0.ebuild | 304 ---------------------
22 .../asterisk/files/asterisk-13.33.0-nossl.patch | 94 -------
23 9 files changed, 2205 deletions(-)
24
25 diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
26 index 59e0c86d51a..4f9d9cb309d 100644
27 --- a/net-misc/asterisk/Manifest
28 +++ b/net-misc/asterisk/Manifest
29 @@ -1,10 +1,3 @@
30 -DIST asterisk-13.34.0.tar.gz 33686020 BLAKE2B 48de77f2e29028ab3503ea30038e629b6ede43154bec8efe1384a7077fb971f91b85d9b4eb55f7a4ea6577a31ad5fe496453fe59cd607a0c613e46edef9a11d9 SHA512 2132db831bb063330c47cea8cea67af706839d25e64eee558475643cb79a4e548fc6ffe7ce61a053f41cf6f367320eedaa87973a5de4ef38ae858a6e5a183ee7
31 -DIST asterisk-13.35.0.tar.gz 33685340 BLAKE2B 728281257541977ac150b1b7d6148fd326c584f7827af46882ff3e3af111d876c3e53f92f1034c55875d730e5b92c379b8906198393b7a4227a5bb74818ab27c SHA512 7596f387d45ef9f0327d78bc0446979e233aba517bbedfb539409cc507e2dac15e3b32d5c8a5e69783d106d4244661cb20b0580ed00904699bc5bf5db7b4713a
32 -DIST asterisk-13.36.0.tar.gz 33692378 BLAKE2B 7252e7a103d94bbdd4073563f88ec2952ef88856cb5a98f7a07818a993c1064ca4ffb12202f2c297125d7bc3fd3814c9921a87c179db03dede05162844bebbd1 SHA512 276175e6df1c8a2e642c4607aa32515e7c4fffe50f7db89bbfee8850b286579350a074bb8bbe743b3e95d6ce2d92f8d5444053fe52527071cc884356b57a1efc
33 -DIST asterisk-13.37.0.tar.gz 33696267 BLAKE2B 806e48fd2ed497becef87e5a349854e377aaaeb5f749e4c8ce957b585256edcc3c1812f199f793eecc829155baf12336f4971d2664e836ad38248139f5fc719f SHA512 f01ebc3a0b4d598f35f26e60aa6fdc03ab5d4ee28547ec048c2af9ab67f2657a5767484bf7d07d8fbcb1e84ce6865f4fe70772f30a5dc45568669ffeb7387b8e
34 DIST asterisk-13.38.1.tar.gz 33705256 BLAKE2B c783ee40880455cee5a60b111f69d95fdc42bd42a598834236e9999d0f2f401548229560e937fa8d842c5d24715d3891e7860f098d35d5630522e7a659123242 SHA512 270b7c8374104b3c2e9999503fa5cab5b465e37ddfa6759c1019fb99b6bb5877fe4505501ac3306a708ce911aeda36d04796f51156312c04fec013dbaa56a57f
35 -DIST asterisk-16.12.0.tar.gz 27727347 BLAKE2B 3e2e986136e5ff19a876f01fdc6db1b6c22f83bf38f8524a418e474e2400375d8091dd215fb54f5b01f998cecf46d6965a0c35a44dc6f3be7f7a811e2ce70b8c SHA512 1fc41b92d070efd4a7ea5db1a36c83bdb6dbbe7d9b5087b0a887ba3d6875e81ba1b71a79b216138b242f0349a176baf6745480ff6fb7ed47c62dda4b09b6a891
36 -DIST asterisk-16.13.0.tar.gz 27735450 BLAKE2B 64cc75c7aa715734ebaf06fe7b3df54cfa309fc6126b45abfc21cc22c2c4e795946be473ce2887dc074124f9da6c8937d1bb4207fecf402eed7803ed063faa80 SHA512 872c5a5cb8faf9b1632895dafb6ee86c87e1766c9f33099b32216e6703f063800f87cac6db3537d1744349c42abd3ea83d70afe35138e45fb756872688822dfa
37 -DIST asterisk-16.14.0.tar.gz 27740877 BLAKE2B f8a09d39c36c1cdcc17878f1af69da7691503290177583ec1a92ac0471c029e527a3b62bd731a7340c43fb7abeca32b604303f0739e614c5a1edb0131f07e0fd SHA512 699b0c701a00df0ffcb7094f5cc732b645775deb85486e044685685b81aad09e6b2e9558436e80c505de93add630b76cf49d7261ba8eaae46f93272844346234
38 DIST asterisk-16.15.1.tar.gz 27796648 BLAKE2B 4daa0b121a789d0384d81c3b56951bfd7c919cae3de1d7eaa0ba50f01f428c1d56555838f9ce2b3fe24309b131310c59622ed114cd4f76ac7b06896ceb3da6fc SHA512 5ce6e1301825b142859087ba237b2c1b3e0687cac3fac28f35b043727cac26583697534b2726a65510e50ef27cf373b0c4cef60042f789aa6b875448a5f08914
39 DIST gentoo-asterisk-patchset-4.08.tar.bz2 2176 BLAKE2B 7f8c9b5fda855091e66b2534d2be23fb1616f565480459f71f766826e5deeeecb24899e2ee9eefe74323e892624d32ab954ec7e9be6a002431ff029fc13493ed SHA512 365c1b8628882c48c279e1fd77d982e6d0820ba7d7122e97bb4988f875d7010caa956798c833c3b01d389004fa08a63a9de2c1b452c9e5701c6106e29fd8e9e1
40
41 diff --git a/net-misc/asterisk/asterisk-13.34.0.ebuild b/net-misc/asterisk/asterisk-13.34.0.ebuild
42 deleted file mode 100644
43 index f24978bc763..00000000000
44 --- a/net-misc/asterisk/asterisk-13.34.0.ebuild
45 +++ /dev/null
46 @@ -1,295 +0,0 @@
47 -# Copyright 1999-2020 Gentoo Authors
48 -# Distributed under the terms of the GNU General Public License v2
49 -
50 -EAPI=7
51 -
52 -inherit autotools linux-info systemd
53 -
54 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
55 -HOMEPAGE="https://www.asterisk.org/"
56 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
57 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
58 -LICENSE="GPL-2"
59 -SLOT="0"
60 -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
61 -
62 -IUSE_VOICEMAIL_STORAGE="
63 - +voicemail_storage_file
64 - voicemail_storage_odbc
65 - voicemail_storage_imap
66 -"
67 -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"
68 -IUSE_EXPAND="VOICEMAIL_STORAGE"
69 -REQUIRED_USE="gtalk? ( xmpp )
70 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
71 - voicemail_storage_odbc? ( odbc )
72 -"
73 -
74 -PATCHES=(
75 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
76 - "${FILESDIR}/${PN}-13.33.0-nossl.patch"
77 -)
78 -
79 -DEPEND="acct-user/asterisk
80 - acct-group/asterisk
81 - dev-db/sqlite:3
82 - dev-libs/popt
83 - dev-libs/jansson
84 - dev-libs/libedit
85 - dev-libs/libxml2:2
86 - dev-libs/libxslt
87 - sys-libs/ncurses:0=
88 - sys-libs/zlib
89 - alsa? ( media-libs/alsa-lib )
90 - bluetooth? ( net-wireless/bluez:= )
91 - calendar? (
92 - net-libs/neon:=
93 - dev-libs/libical:=
94 - dev-libs/iksemel
95 - )
96 - caps? ( sys-libs/libcap )
97 - cluster? ( sys-cluster/corosync )
98 - curl? ( net-misc/curl )
99 - dahdi? (
100 - net-libs/libpri
101 - net-misc/dahdi-tools
102 - )
103 - freetds? ( dev-db/freetds )
104 - gtalk? ( dev-libs/iksemel )
105 - http? ( dev-libs/gmime:2.6 )
106 - iconv? ( virtual/libiconv )
107 - ilbc? ( media-libs/libilbc )
108 - ldap? ( net-nds/openldap )
109 - lua? ( dev-lang/lua:0= )
110 - mysql? ( dev-db/mysql-connector-c:= )
111 - newt? ( dev-libs/newt )
112 - odbc? ( dev-db/unixODBC )
113 - pjproject? ( net-libs/pjproject )
114 - portaudio? ( media-libs/portaudio )
115 - postgres? ( dev-db/postgresql:* )
116 - radius? ( net-dialup/freeradius-client )
117 - snmp? ( net-analyzer/net-snmp:= )
118 - span? ( media-libs/spandsp )
119 - speex? (
120 - media-libs/speex
121 - media-libs/speexdsp
122 - )
123 - srtp? ( net-libs/libsrtp:0 )
124 - ssl? (
125 - !libressl? ( dev-libs/openssl:0= )
126 - libressl? ( dev-libs/libressl:0= )
127 - )
128 - vorbis? ( media-libs/libvorbis )
129 - voicemail_storage_imap? ( virtual/imap-c-client )
130 - xmpp? ( dev-libs/iksemel )
131 -"
132 -
133 -RDEPEND="${DEPEND}
134 - net-misc/asterisk-core-sounds
135 - net-misc/asterisk-extra-sounds
136 - net-misc/asterisk-moh-opsound
137 - selinux? ( sec-policy/selinux-asterisk )
138 - syslog? ( virtual/logger )"
139 -
140 -BDEPEND="virtual/pkgconfig"
141 -
142 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
143 -
144 -pkg_setup() {
145 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
146 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
147 - have reported that this module dropped critical SIP packets in their deployments. You
148 - may want to disable it if you see such problems."
149 - check_extra_config
150 -}
151 -
152 -src_prepare() {
153 - default
154 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
155 -}
156 -
157 -function menuselect() {
158 - menuselect/menuselect "$@" || die "menuselect $* failed."
159 -}
160 -
161 -src_configure() {
162 - local vmst
163 -
164 - econf \
165 - --libdir="/usr/$(get_libdir)" \
166 - --localstatedir="/var" \
167 - --with-crypto \
168 - --with-gsm=internal \
169 - --with-popt \
170 - --with-z \
171 - --with-libedit \
172 - $(use_with caps cap) \
173 - $(use_with http gmime) \
174 - $(use_with newt) \
175 - $(use_with pjproject) \
176 - $(use_with portaudio) \
177 - $(use_with ssl)
178 -
179 - # Blank out sounds/sounds.xml file to prevent
180 - # asterisk from installing sounds files (we pull them in via
181 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
182 - >"${S}"/sounds/sounds.xml
183 -
184 - # That NATIVE_ARCH chatter really is quite bothersome
185 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
186 -
187 - # Compile menuselect binary for optional components
188 - emake NOISE_BUILD=yes menuselect.makeopts
189 -
190 - # Disable BUILD_NATIVE (bug #667498)
191 - menuselect --disable build_native menuselect.makeopts
192 -
193 - # Broken functionality is forcibly disabled (bug #360143)
194 - menuselect --disable chan_misdn menuselect.makeopts
195 - menuselect --disable chan_ooh323 menuselect.makeopts
196 -
197 - # Utility set is forcibly enabled (bug #358001)
198 - menuselect --enable smsq menuselect.makeopts
199 - menuselect --enable streamplayer menuselect.makeopts
200 - menuselect --enable aelparse menuselect.makeopts
201 - menuselect --enable astman menuselect.makeopts
202 -
203 - # this is connected, otherwise it would not find
204 - # ast_pktccops_gate_alloc symbol
205 - menuselect --enable chan_mgcp menuselect.makeopts
206 - menuselect --enable res_pktccops menuselect.makeopts
207 -
208 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
209 - menuselect --enable pbx_dundi menuselect.makeopts
210 - menuselect --enable func_aes menuselect.makeopts
211 - menuselect --enable chan_iax2 menuselect.makeopts
212 -
213 - # SQlite3 is now the main database backend, enable related features
214 - menuselect --enable cdr_sqlite3_custom menuselect.makeopts
215 - menuselect --enable cel_sqlite3_custom menuselect.makeopts
216 -
217 - # The others are based on USE-flag settings
218 - use_select() {
219 - local state=$(use "$1" && echo enable || echo disable)
220 - shift # remove use from parameters
221 -
222 - while [[ -n $1 ]]; do
223 - menuselect --${state} "$1" menuselect.makeopts
224 - shift
225 - done
226 - }
227 -
228 - use_select alsa chan_alsa
229 - use_select bluetooth chan_mobile
230 - use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
231 - use_select cluster res_corosync
232 - use_select curl func_curl res_config_curl res_curl
233 - use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
234 - use_select freetds {cdr,cel}_tds
235 - use_select gtalk chan_motif
236 - use_select http res_http_post
237 - use_select iconv func_iconv
238 - use_select ilbc codec_ilbc format_ilbc
239 - use_select ldap res_config_ldap
240 - use_select lua pbx_lua
241 - use_select mysql app_mysql cdr_mysql res_config_mysql
242 - use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
243 - use_select oss chan_oss
244 - use_select postgres {cdr,cel}_pgsql res_config_pgsql
245 - use_select radius {cdr,cel}_radius
246 - use_select snmp res_snmp
247 - use_select span res_fax_spandsp
248 - use_select speex {codec,func}_speex
249 - use_select srtp res_srtp
250 - use_select statsd res_statsd res_{endpoint,chan}_stats
251 - use_select syslog cdr_syslog
252 - use_select vorbis format_ogg_vorbis
253 - use_select xmpp res_xmpp
254 -
255 - # Voicemail storage ...
256 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
257 - if use ${vmst}; then
258 - menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
259 - fi
260 - done
261 -
262 - if use debug; then
263 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
264 - menuselect --enable $o menuselect.makeopts
265 - done
266 - fi
267 -}
268 -
269 -src_compile() {
270 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
271 -}
272 -
273 -src_install() {
274 - local d
275 -
276 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
277 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
278 -
279 - if use radius; then
280 - insinto /etc/radiusclient/
281 - doins contrib/dictionary.digium
282 - fi
283 - diropts -m 0750 -o root -g asterisk
284 - keepdir /etc/asterisk
285 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
286 - for conffile in "${ED}/etc/asterisk/"*
287 - do
288 - fowners root:root "${conffile#${ED}}"
289 - fperms 0644 "${conffile#${ED}}"
290 - done
291 -
292 - # keep directories
293 - diropts -m 0750 -o asterisk -g root
294 - keepdir /var/lib/asterisk
295 - keepdir /var/spool/asterisk
296 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
297 - diropts -m 0750 -o asterisk -g asterisk
298 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
299 -
300 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
301 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
302 -
303 - systemd_dounit "${FILESDIR}"/asterisk.service
304 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
305 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
306 -
307 - # Reset diropts else dodoc uses it for doc installations.
308 - diropts -m0755
309 -
310 - # install the upgrade documentation
311 - dodoc UPGRADE* BUGS CREDITS
312 -
313 - # install extra documentation
314 - if use doc; then
315 - dodoc doc/*.txt
316 - dodoc doc/*.pdf
317 - fi
318 -
319 - # install logrotate snippet; bug #329281
320 - #
321 - insinto /etc/logrotate.d
322 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
323 -
324 - # Asterisk installs a few folders that's empty by design,
325 - # but still required. This finds them, and marks them for
326 - # portage.
327 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
328 - keepdir "${d#${ED}}"
329 - done
330 -}
331 -
332 -pkg_postinst() {
333 - if [ -z "${REPLACING_VERSIONS}" ]; then
334 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
335 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
336 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
337 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
338 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
339 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
340 - fi
341 -}
342
343 diff --git a/net-misc/asterisk/asterisk-13.35.0.ebuild b/net-misc/asterisk/asterisk-13.35.0.ebuild
344 deleted file mode 100644
345 index 847f1d498af..00000000000
346 --- a/net-misc/asterisk/asterisk-13.35.0.ebuild
347 +++ /dev/null
348 @@ -1,299 +0,0 @@
349 -# Copyright 1999-2020 Gentoo Authors
350 -# Distributed under the terms of the GNU General Public License v2
351 -
352 -EAPI=7
353 -
354 -inherit autotools linux-info systemd
355 -
356 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
357 -HOMEPAGE="https://www.asterisk.org/"
358 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
359 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
360 -LICENSE="GPL-2"
361 -SLOT="0"
362 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
363 -
364 -IUSE_VOICEMAIL_STORAGE="
365 - +voicemail_storage_file
366 - voicemail_storage_odbc
367 - voicemail_storage_imap
368 -"
369 -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"
370 -IUSE_EXPAND="VOICEMAIL_STORAGE"
371 -REQUIRED_USE="gtalk? ( xmpp )
372 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
373 - voicemail_storage_odbc? ( odbc )
374 -"
375 -
376 -PATCHES=(
377 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
378 -)
379 -
380 -DEPEND="acct-user/asterisk
381 - acct-group/asterisk
382 - dev-db/sqlite:3
383 - dev-libs/popt
384 - dev-libs/jansson
385 - dev-libs/libedit
386 - dev-libs/libxml2:2
387 - dev-libs/libxslt
388 - sys-libs/ncurses:0=
389 - sys-libs/zlib
390 - alsa? ( media-libs/alsa-lib )
391 - bluetooth? ( net-wireless/bluez:= )
392 - calendar? (
393 - net-libs/neon:=
394 - dev-libs/libical:=
395 - dev-libs/iksemel
396 - )
397 - caps? ( sys-libs/libcap )
398 - cluster? ( sys-cluster/corosync )
399 - curl? ( net-misc/curl )
400 - dahdi? (
401 - net-libs/libpri
402 - net-misc/dahdi-tools
403 - )
404 - freetds? ( dev-db/freetds )
405 - gtalk? ( dev-libs/iksemel )
406 - http? ( dev-libs/gmime:2.6 )
407 - iconv? ( virtual/libiconv )
408 - ilbc? ( media-libs/libilbc )
409 - ldap? ( net-nds/openldap )
410 - lua? ( dev-lang/lua:0= )
411 - mysql? ( dev-db/mysql-connector-c:= )
412 - newt? ( dev-libs/newt )
413 - odbc? ( dev-db/unixODBC )
414 - pjproject? ( net-libs/pjproject )
415 - portaudio? ( media-libs/portaudio )
416 - postgres? ( dev-db/postgresql:* )
417 - radius? ( net-dialup/freeradius-client )
418 - snmp? ( net-analyzer/net-snmp:= )
419 - span? ( media-libs/spandsp )
420 - speex? (
421 - media-libs/libogg
422 - media-libs/speex
423 - media-libs/speexdsp
424 - )
425 - srtp? ( net-libs/libsrtp:0 )
426 - ssl? (
427 - !libressl? ( dev-libs/openssl:0= )
428 - libressl? ( dev-libs/libressl:0= )
429 - )
430 - vorbis? (
431 - media-libs/libogg
432 - media-libs/libvorbis
433 - )
434 - voicemail_storage_imap? ( virtual/imap-c-client )
435 - xmpp? ( dev-libs/iksemel )
436 -"
437 -
438 -RDEPEND="${DEPEND}
439 - net-misc/asterisk-core-sounds
440 - net-misc/asterisk-extra-sounds
441 - net-misc/asterisk-moh-opsound
442 - selinux? ( sec-policy/selinux-asterisk )
443 - syslog? ( virtual/logger )"
444 -
445 -BDEPEND="virtual/pkgconfig"
446 -
447 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
448 -
449 -pkg_setup() {
450 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
451 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
452 - have reported that this module dropped critical SIP packets in their deployments. You
453 - may want to disable it if you see such problems."
454 - check_extra_config
455 -}
456 -
457 -src_prepare() {
458 - default
459 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
460 -}
461 -
462 -src_configure() {
463 - local vmst
464 -
465 - econf \
466 - --libdir="/usr/$(get_libdir)" \
467 - --localstatedir="/var" \
468 - --with-crypto \
469 - --with-gsm=internal \
470 - --with-popt \
471 - --with-z \
472 - --with-libedit \
473 - $(use_with caps cap) \
474 - $(use_with http gmime) \
475 - $(use_with newt) \
476 - $(use_with pjproject) \
477 - $(use_with portaudio) \
478 - $(use_with ssl)
479 -
480 - _menuselect() {
481 - menuselect/menuselect "$@" || die "menuselect $* failed."
482 - }
483 -
484 - _use_select() {
485 - local state=$(usex "$1" enable disable)
486 - shift # remove use from parameters
487 -
488 - while [[ -n $1 ]]; do
489 - _menuselect --${state} "$1" menuselect.makeopts
490 - shift
491 - done
492 - }
493 -
494 - # Blank out sounds/sounds.xml file to prevent
495 - # asterisk from installing sounds files (we pull them in via
496 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
497 - >"${S}"/sounds/sounds.xml
498 -
499 - # That NATIVE_ARCH chatter really is quite bothersome
500 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
501 -
502 - # Compile menuselect binary for optional components
503 - emake NOISE_BUILD=yes menuselect.makeopts
504 -
505 - # Disable BUILD_NATIVE (bug #667498)
506 - _menuselect --disable build_native menuselect.makeopts
507 -
508 - # Broken functionality is forcibly disabled (bug #360143)
509 - _menuselect --disable chan_misdn menuselect.makeopts
510 - _menuselect --disable chan_ooh323 menuselect.makeopts
511 -
512 - # Utility set is forcibly enabled (bug #358001)
513 - _menuselect --enable smsq menuselect.makeopts
514 - _menuselect --enable streamplayer menuselect.makeopts
515 - _menuselect --enable aelparse menuselect.makeopts
516 - _menuselect --enable astman menuselect.makeopts
517 -
518 - # this is connected, otherwise it would not find
519 - # ast_pktccops_gate_alloc symbol
520 - _menuselect --enable chan_mgcp menuselect.makeopts
521 - _menuselect --enable res_pktccops menuselect.makeopts
522 -
523 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
524 - _menuselect --enable pbx_dundi menuselect.makeopts
525 - _menuselect --enable func_aes menuselect.makeopts
526 - _menuselect --enable chan_iax2 menuselect.makeopts
527 -
528 - # SQlite3 is now the main database backend, enable related features
529 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
530 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
531 -
532 - # The others are based on USE-flag settings
533 - _use_select alsa chan_alsa
534 - _use_select bluetooth chan_mobile
535 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
536 - _use_select cluster res_corosync
537 - _use_select curl func_curl res_config_curl res_curl
538 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
539 - _use_select freetds {cdr,cel}_tds
540 - _use_select gtalk chan_motif
541 - _use_select http res_http_post
542 - _use_select iconv func_iconv
543 - _use_select ilbc codec_ilbc format_ilbc
544 - _use_select ldap res_config_ldap
545 - _use_select lua pbx_lua
546 - _use_select mysql app_mysql cdr_mysql res_config_mysql
547 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
548 - _use_select oss chan_oss
549 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
550 - _use_select radius {cdr,cel}_radius
551 - _use_select snmp res_snmp
552 - _use_select span res_fax_spandsp
553 - _use_select speex {codec,func}_speex
554 - _use_select speex format_ogg_speex
555 - _use_select srtp res_srtp
556 - _use_select statsd res_statsd res_{endpoint,chan}_stats
557 - _use_select syslog cdr_syslog
558 - _use_select vorbis format_ogg_vorbis
559 - _use_select xmpp res_xmpp
560 -
561 - # Voicemail storage ...
562 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
563 - if use ${vmst}; then
564 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
565 - fi
566 - done
567 -
568 - if use debug; then
569 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
570 - _menuselect --enable $o menuselect.makeopts
571 - done
572 - fi
573 -}
574 -
575 -src_compile() {
576 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
577 -}
578 -
579 -src_install() {
580 - local d
581 -
582 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
583 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
584 -
585 - if use radius; then
586 - insinto /etc/radiusclient/
587 - doins contrib/dictionary.digium
588 - fi
589 - diropts -m 0750 -o root -g asterisk
590 - keepdir /etc/asterisk
591 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
592 - for conffile in "${ED}/etc/asterisk/"*
593 - do
594 - fowners root:root "${conffile#${ED}}"
595 - fperms 0644 "${conffile#${ED}}"
596 - done
597 -
598 - # keep directories
599 - diropts -m 0750 -o asterisk -g root
600 - keepdir /var/lib/asterisk
601 - keepdir /var/spool/asterisk
602 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
603 - diropts -m 0750 -o asterisk -g asterisk
604 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
605 -
606 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
607 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
608 -
609 - systemd_dounit "${FILESDIR}"/asterisk.service
610 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
611 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
612 -
613 - # Reset diropts else dodoc uses it for doc installations.
614 - diropts -m0755
615 -
616 - # install the upgrade documentation
617 - dodoc UPGRADE* BUGS CREDITS
618 -
619 - # install extra documentation
620 - if use doc; then
621 - dodoc doc/*.txt
622 - dodoc doc/*.pdf
623 - fi
624 -
625 - # install logrotate snippet; bug #329281
626 - #
627 - insinto /etc/logrotate.d
628 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
629 -
630 - # Asterisk installs a few folders that's empty by design,
631 - # but still required. This finds them, and marks them for
632 - # portage.
633 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
634 - keepdir "${d#${ED}}"
635 - done
636 -}
637 -
638 -pkg_postinst() {
639 - if [ -z "${REPLACING_VERSIONS}" ]; then
640 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
641 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
642 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
643 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
644 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
645 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
646 - fi
647 -}
648
649 diff --git a/net-misc/asterisk/asterisk-13.36.0.ebuild b/net-misc/asterisk/asterisk-13.36.0.ebuild
650 deleted file mode 100644
651 index c34a89ba8f6..00000000000
652 --- a/net-misc/asterisk/asterisk-13.36.0.ebuild
653 +++ /dev/null
654 @@ -1,299 +0,0 @@
655 -# Copyright 1999-2020 Gentoo Authors
656 -# Distributed under the terms of the GNU General Public License v2
657 -
658 -EAPI=7
659 -
660 -inherit autotools linux-info systemd
661 -
662 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
663 -HOMEPAGE="https://www.asterisk.org/"
664 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
665 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
666 -LICENSE="GPL-2"
667 -SLOT="0"
668 -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
669 -
670 -IUSE_VOICEMAIL_STORAGE="
671 - +voicemail_storage_file
672 - voicemail_storage_odbc
673 - voicemail_storage_imap
674 -"
675 -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"
676 -IUSE_EXPAND="VOICEMAIL_STORAGE"
677 -REQUIRED_USE="gtalk? ( xmpp )
678 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
679 - voicemail_storage_odbc? ( odbc )
680 -"
681 -
682 -PATCHES=(
683 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
684 -)
685 -
686 -DEPEND="acct-user/asterisk
687 - acct-group/asterisk
688 - dev-db/sqlite:3
689 - dev-libs/popt
690 - dev-libs/jansson
691 - dev-libs/libedit
692 - dev-libs/libxml2:2
693 - dev-libs/libxslt
694 - sys-libs/ncurses:0=
695 - sys-libs/zlib
696 - alsa? ( media-libs/alsa-lib )
697 - bluetooth? ( net-wireless/bluez:= )
698 - calendar? (
699 - net-libs/neon:=
700 - dev-libs/libical:=
701 - dev-libs/iksemel
702 - )
703 - caps? ( sys-libs/libcap )
704 - cluster? ( sys-cluster/corosync )
705 - curl? ( net-misc/curl )
706 - dahdi? (
707 - net-libs/libpri
708 - net-misc/dahdi-tools
709 - )
710 - freetds? ( dev-db/freetds )
711 - gtalk? ( dev-libs/iksemel )
712 - http? ( dev-libs/gmime:2.6 )
713 - iconv? ( virtual/libiconv )
714 - ilbc? ( media-libs/libilbc )
715 - ldap? ( net-nds/openldap )
716 - lua? ( dev-lang/lua:0= )
717 - mysql? ( dev-db/mysql-connector-c:= )
718 - newt? ( dev-libs/newt )
719 - odbc? ( dev-db/unixODBC )
720 - pjproject? ( net-libs/pjproject )
721 - portaudio? ( media-libs/portaudio )
722 - postgres? ( dev-db/postgresql:* )
723 - radius? ( net-dialup/freeradius-client )
724 - snmp? ( net-analyzer/net-snmp:= )
725 - span? ( media-libs/spandsp )
726 - speex? (
727 - media-libs/libogg
728 - media-libs/speex
729 - media-libs/speexdsp
730 - )
731 - srtp? ( net-libs/libsrtp:0 )
732 - ssl? (
733 - !libressl? ( dev-libs/openssl:0= )
734 - libressl? ( dev-libs/libressl:0= )
735 - )
736 - vorbis? (
737 - media-libs/libogg
738 - media-libs/libvorbis
739 - )
740 - voicemail_storage_imap? ( virtual/imap-c-client )
741 - xmpp? ( dev-libs/iksemel )
742 -"
743 -
744 -RDEPEND="${DEPEND}
745 - net-misc/asterisk-core-sounds
746 - net-misc/asterisk-extra-sounds
747 - net-misc/asterisk-moh-opsound
748 - selinux? ( sec-policy/selinux-asterisk )
749 - syslog? ( virtual/logger )"
750 -
751 -BDEPEND="virtual/pkgconfig"
752 -
753 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
754 -
755 -pkg_setup() {
756 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
757 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
758 - have reported that this module dropped critical SIP packets in their deployments. You
759 - may want to disable it if you see such problems."
760 - check_extra_config
761 -}
762 -
763 -src_prepare() {
764 - default
765 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
766 -}
767 -
768 -src_configure() {
769 - local vmst
770 -
771 - econf \
772 - --libdir="/usr/$(get_libdir)" \
773 - --localstatedir="/var" \
774 - --with-crypto \
775 - --with-gsm=internal \
776 - --with-popt \
777 - --with-z \
778 - --with-libedit \
779 - $(use_with caps cap) \
780 - $(use_with http gmime) \
781 - $(use_with newt) \
782 - $(use_with pjproject) \
783 - $(use_with portaudio) \
784 - $(use_with ssl)
785 -
786 - _menuselect() {
787 - menuselect/menuselect "$@" || die "menuselect $* failed."
788 - }
789 -
790 - _use_select() {
791 - local state=$(usex "$1" enable disable)
792 - shift # remove use from parameters
793 -
794 - while [[ -n $1 ]]; do
795 - _menuselect --${state} "$1" menuselect.makeopts
796 - shift
797 - done
798 - }
799 -
800 - # Blank out sounds/sounds.xml file to prevent
801 - # asterisk from installing sounds files (we pull them in via
802 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
803 - >"${S}"/sounds/sounds.xml
804 -
805 - # That NATIVE_ARCH chatter really is quite bothersome
806 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
807 -
808 - # Compile menuselect binary for optional components
809 - emake NOISE_BUILD=yes menuselect.makeopts
810 -
811 - # Disable BUILD_NATIVE (bug #667498)
812 - _menuselect --disable build_native menuselect.makeopts
813 -
814 - # Broken functionality is forcibly disabled (bug #360143)
815 - _menuselect --disable chan_misdn menuselect.makeopts
816 - _menuselect --disable chan_ooh323 menuselect.makeopts
817 -
818 - # Utility set is forcibly enabled (bug #358001)
819 - _menuselect --enable smsq menuselect.makeopts
820 - _menuselect --enable streamplayer menuselect.makeopts
821 - _menuselect --enable aelparse menuselect.makeopts
822 - _menuselect --enable astman menuselect.makeopts
823 -
824 - # this is connected, otherwise it would not find
825 - # ast_pktccops_gate_alloc symbol
826 - _menuselect --enable chan_mgcp menuselect.makeopts
827 - _menuselect --enable res_pktccops menuselect.makeopts
828 -
829 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
830 - _menuselect --enable pbx_dundi menuselect.makeopts
831 - _menuselect --enable func_aes menuselect.makeopts
832 - _menuselect --enable chan_iax2 menuselect.makeopts
833 -
834 - # SQlite3 is now the main database backend, enable related features
835 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
836 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
837 -
838 - # The others are based on USE-flag settings
839 - _use_select alsa chan_alsa
840 - _use_select bluetooth chan_mobile
841 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
842 - _use_select cluster res_corosync
843 - _use_select curl func_curl res_config_curl res_curl
844 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
845 - _use_select freetds {cdr,cel}_tds
846 - _use_select gtalk chan_motif
847 - _use_select http res_http_post
848 - _use_select iconv func_iconv
849 - _use_select ilbc codec_ilbc format_ilbc
850 - _use_select ldap res_config_ldap
851 - _use_select lua pbx_lua
852 - _use_select mysql app_mysql cdr_mysql res_config_mysql
853 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
854 - _use_select oss chan_oss
855 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
856 - _use_select radius {cdr,cel}_radius
857 - _use_select snmp res_snmp
858 - _use_select span res_fax_spandsp
859 - _use_select speex {codec,func}_speex
860 - _use_select speex format_ogg_speex
861 - _use_select srtp res_srtp
862 - _use_select statsd res_statsd res_{endpoint,chan}_stats
863 - _use_select syslog cdr_syslog
864 - _use_select vorbis format_ogg_vorbis
865 - _use_select xmpp res_xmpp
866 -
867 - # Voicemail storage ...
868 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
869 - if use ${vmst}; then
870 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
871 - fi
872 - done
873 -
874 - if use debug; then
875 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
876 - _menuselect --enable $o menuselect.makeopts
877 - done
878 - fi
879 -}
880 -
881 -src_compile() {
882 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
883 -}
884 -
885 -src_install() {
886 - local d
887 -
888 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
889 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
890 -
891 - if use radius; then
892 - insinto /etc/radiusclient/
893 - doins contrib/dictionary.digium
894 - fi
895 - diropts -m 0750 -o root -g asterisk
896 - keepdir /etc/asterisk
897 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
898 - for conffile in "${ED}/etc/asterisk/"*
899 - do
900 - fowners root:root "${conffile#${ED}}"
901 - fperms 0644 "${conffile#${ED}}"
902 - done
903 -
904 - # keep directories
905 - diropts -m 0750 -o asterisk -g root
906 - keepdir /var/lib/asterisk
907 - keepdir /var/spool/asterisk
908 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
909 - diropts -m 0750 -o asterisk -g asterisk
910 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
911 -
912 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
913 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
914 -
915 - systemd_dounit "${FILESDIR}"/asterisk.service
916 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
917 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
918 -
919 - # Reset diropts else dodoc uses it for doc installations.
920 - diropts -m0755
921 -
922 - # install the upgrade documentation
923 - dodoc UPGRADE* BUGS CREDITS
924 -
925 - # install extra documentation
926 - if use doc; then
927 - dodoc doc/*.txt
928 - dodoc doc/*.pdf
929 - fi
930 -
931 - # install logrotate snippet; bug #329281
932 - #
933 - insinto /etc/logrotate.d
934 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
935 -
936 - # Asterisk installs a few folders that's empty by design,
937 - # but still required. This finds them, and marks them for
938 - # portage.
939 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
940 - keepdir "${d#${ED}}"
941 - done
942 -}
943 -
944 -pkg_postinst() {
945 - if [ -z "${REPLACING_VERSIONS}" ]; then
946 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
947 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
948 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
949 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
950 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
951 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
952 - fi
953 -}
954
955 diff --git a/net-misc/asterisk/asterisk-13.37.0.ebuild b/net-misc/asterisk/asterisk-13.37.0.ebuild
956 deleted file mode 100644
957 index 847f1d498af..00000000000
958 --- a/net-misc/asterisk/asterisk-13.37.0.ebuild
959 +++ /dev/null
960 @@ -1,299 +0,0 @@
961 -# Copyright 1999-2020 Gentoo Authors
962 -# Distributed under the terms of the GNU General Public License v2
963 -
964 -EAPI=7
965 -
966 -inherit autotools linux-info systemd
967 -
968 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
969 -HOMEPAGE="https://www.asterisk.org/"
970 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
971 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
972 -LICENSE="GPL-2"
973 -SLOT="0"
974 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
975 -
976 -IUSE_VOICEMAIL_STORAGE="
977 - +voicemail_storage_file
978 - voicemail_storage_odbc
979 - voicemail_storage_imap
980 -"
981 -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"
982 -IUSE_EXPAND="VOICEMAIL_STORAGE"
983 -REQUIRED_USE="gtalk? ( xmpp )
984 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
985 - voicemail_storage_odbc? ( odbc )
986 -"
987 -
988 -PATCHES=(
989 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
990 -)
991 -
992 -DEPEND="acct-user/asterisk
993 - acct-group/asterisk
994 - dev-db/sqlite:3
995 - dev-libs/popt
996 - dev-libs/jansson
997 - dev-libs/libedit
998 - dev-libs/libxml2:2
999 - dev-libs/libxslt
1000 - sys-libs/ncurses:0=
1001 - sys-libs/zlib
1002 - alsa? ( media-libs/alsa-lib )
1003 - bluetooth? ( net-wireless/bluez:= )
1004 - calendar? (
1005 - net-libs/neon:=
1006 - dev-libs/libical:=
1007 - dev-libs/iksemel
1008 - )
1009 - caps? ( sys-libs/libcap )
1010 - cluster? ( sys-cluster/corosync )
1011 - curl? ( net-misc/curl )
1012 - dahdi? (
1013 - net-libs/libpri
1014 - net-misc/dahdi-tools
1015 - )
1016 - freetds? ( dev-db/freetds )
1017 - gtalk? ( dev-libs/iksemel )
1018 - http? ( dev-libs/gmime:2.6 )
1019 - iconv? ( virtual/libiconv )
1020 - ilbc? ( media-libs/libilbc )
1021 - ldap? ( net-nds/openldap )
1022 - lua? ( dev-lang/lua:0= )
1023 - mysql? ( dev-db/mysql-connector-c:= )
1024 - newt? ( dev-libs/newt )
1025 - odbc? ( dev-db/unixODBC )
1026 - pjproject? ( net-libs/pjproject )
1027 - portaudio? ( media-libs/portaudio )
1028 - postgres? ( dev-db/postgresql:* )
1029 - radius? ( net-dialup/freeradius-client )
1030 - snmp? ( net-analyzer/net-snmp:= )
1031 - span? ( media-libs/spandsp )
1032 - speex? (
1033 - media-libs/libogg
1034 - media-libs/speex
1035 - media-libs/speexdsp
1036 - )
1037 - srtp? ( net-libs/libsrtp:0 )
1038 - ssl? (
1039 - !libressl? ( dev-libs/openssl:0= )
1040 - libressl? ( dev-libs/libressl:0= )
1041 - )
1042 - vorbis? (
1043 - media-libs/libogg
1044 - media-libs/libvorbis
1045 - )
1046 - voicemail_storage_imap? ( virtual/imap-c-client )
1047 - xmpp? ( dev-libs/iksemel )
1048 -"
1049 -
1050 -RDEPEND="${DEPEND}
1051 - net-misc/asterisk-core-sounds
1052 - net-misc/asterisk-extra-sounds
1053 - net-misc/asterisk-moh-opsound
1054 - selinux? ( sec-policy/selinux-asterisk )
1055 - syslog? ( virtual/logger )"
1056 -
1057 -BDEPEND="virtual/pkgconfig"
1058 -
1059 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
1060 -
1061 -pkg_setup() {
1062 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
1063 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
1064 - have reported that this module dropped critical SIP packets in their deployments. You
1065 - may want to disable it if you see such problems."
1066 - check_extra_config
1067 -}
1068 -
1069 -src_prepare() {
1070 - default
1071 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
1072 -}
1073 -
1074 -src_configure() {
1075 - local vmst
1076 -
1077 - econf \
1078 - --libdir="/usr/$(get_libdir)" \
1079 - --localstatedir="/var" \
1080 - --with-crypto \
1081 - --with-gsm=internal \
1082 - --with-popt \
1083 - --with-z \
1084 - --with-libedit \
1085 - $(use_with caps cap) \
1086 - $(use_with http gmime) \
1087 - $(use_with newt) \
1088 - $(use_with pjproject) \
1089 - $(use_with portaudio) \
1090 - $(use_with ssl)
1091 -
1092 - _menuselect() {
1093 - menuselect/menuselect "$@" || die "menuselect $* failed."
1094 - }
1095 -
1096 - _use_select() {
1097 - local state=$(usex "$1" enable disable)
1098 - shift # remove use from parameters
1099 -
1100 - while [[ -n $1 ]]; do
1101 - _menuselect --${state} "$1" menuselect.makeopts
1102 - shift
1103 - done
1104 - }
1105 -
1106 - # Blank out sounds/sounds.xml file to prevent
1107 - # asterisk from installing sounds files (we pull them in via
1108 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
1109 - >"${S}"/sounds/sounds.xml
1110 -
1111 - # That NATIVE_ARCH chatter really is quite bothersome
1112 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
1113 -
1114 - # Compile menuselect binary for optional components
1115 - emake NOISE_BUILD=yes menuselect.makeopts
1116 -
1117 - # Disable BUILD_NATIVE (bug #667498)
1118 - _menuselect --disable build_native menuselect.makeopts
1119 -
1120 - # Broken functionality is forcibly disabled (bug #360143)
1121 - _menuselect --disable chan_misdn menuselect.makeopts
1122 - _menuselect --disable chan_ooh323 menuselect.makeopts
1123 -
1124 - # Utility set is forcibly enabled (bug #358001)
1125 - _menuselect --enable smsq menuselect.makeopts
1126 - _menuselect --enable streamplayer menuselect.makeopts
1127 - _menuselect --enable aelparse menuselect.makeopts
1128 - _menuselect --enable astman menuselect.makeopts
1129 -
1130 - # this is connected, otherwise it would not find
1131 - # ast_pktccops_gate_alloc symbol
1132 - _menuselect --enable chan_mgcp menuselect.makeopts
1133 - _menuselect --enable res_pktccops menuselect.makeopts
1134 -
1135 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
1136 - _menuselect --enable pbx_dundi menuselect.makeopts
1137 - _menuselect --enable func_aes menuselect.makeopts
1138 - _menuselect --enable chan_iax2 menuselect.makeopts
1139 -
1140 - # SQlite3 is now the main database backend, enable related features
1141 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
1142 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
1143 -
1144 - # The others are based on USE-flag settings
1145 - _use_select alsa chan_alsa
1146 - _use_select bluetooth chan_mobile
1147 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
1148 - _use_select cluster res_corosync
1149 - _use_select curl func_curl res_config_curl res_curl
1150 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
1151 - _use_select freetds {cdr,cel}_tds
1152 - _use_select gtalk chan_motif
1153 - _use_select http res_http_post
1154 - _use_select iconv func_iconv
1155 - _use_select ilbc codec_ilbc format_ilbc
1156 - _use_select ldap res_config_ldap
1157 - _use_select lua pbx_lua
1158 - _use_select mysql app_mysql cdr_mysql res_config_mysql
1159 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
1160 - _use_select oss chan_oss
1161 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
1162 - _use_select radius {cdr,cel}_radius
1163 - _use_select snmp res_snmp
1164 - _use_select span res_fax_spandsp
1165 - _use_select speex {codec,func}_speex
1166 - _use_select speex format_ogg_speex
1167 - _use_select srtp res_srtp
1168 - _use_select statsd res_statsd res_{endpoint,chan}_stats
1169 - _use_select syslog cdr_syslog
1170 - _use_select vorbis format_ogg_vorbis
1171 - _use_select xmpp res_xmpp
1172 -
1173 - # Voicemail storage ...
1174 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
1175 - if use ${vmst}; then
1176 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
1177 - fi
1178 - done
1179 -
1180 - if use debug; then
1181 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
1182 - _menuselect --enable $o menuselect.makeopts
1183 - done
1184 - fi
1185 -}
1186 -
1187 -src_compile() {
1188 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
1189 -}
1190 -
1191 -src_install() {
1192 - local d
1193 -
1194 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
1195 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
1196 -
1197 - if use radius; then
1198 - insinto /etc/radiusclient/
1199 - doins contrib/dictionary.digium
1200 - fi
1201 - diropts -m 0750 -o root -g asterisk
1202 - keepdir /etc/asterisk
1203 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
1204 - for conffile in "${ED}/etc/asterisk/"*
1205 - do
1206 - fowners root:root "${conffile#${ED}}"
1207 - fperms 0644 "${conffile#${ED}}"
1208 - done
1209 -
1210 - # keep directories
1211 - diropts -m 0750 -o asterisk -g root
1212 - keepdir /var/lib/asterisk
1213 - keepdir /var/spool/asterisk
1214 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
1215 - diropts -m 0750 -o asterisk -g asterisk
1216 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
1217 -
1218 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
1219 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
1220 -
1221 - systemd_dounit "${FILESDIR}"/asterisk.service
1222 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
1223 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
1224 -
1225 - # Reset diropts else dodoc uses it for doc installations.
1226 - diropts -m0755
1227 -
1228 - # install the upgrade documentation
1229 - dodoc UPGRADE* BUGS CREDITS
1230 -
1231 - # install extra documentation
1232 - if use doc; then
1233 - dodoc doc/*.txt
1234 - dodoc doc/*.pdf
1235 - fi
1236 -
1237 - # install logrotate snippet; bug #329281
1238 - #
1239 - insinto /etc/logrotate.d
1240 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
1241 -
1242 - # Asterisk installs a few folders that's empty by design,
1243 - # but still required. This finds them, and marks them for
1244 - # portage.
1245 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
1246 - keepdir "${d#${ED}}"
1247 - done
1248 -}
1249 -
1250 -pkg_postinst() {
1251 - if [ -z "${REPLACING_VERSIONS}" ]; then
1252 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
1253 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1254 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
1255 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
1256 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
1257 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1258 - fi
1259 -}
1260
1261 diff --git a/net-misc/asterisk/asterisk-16.12.0-r1.ebuild b/net-misc/asterisk/asterisk-16.12.0-r1.ebuild
1262 deleted file mode 100644
1263 index da613c5156f..00000000000
1264 --- a/net-misc/asterisk/asterisk-16.12.0-r1.ebuild
1265 +++ /dev/null
1266 @@ -1,304 +0,0 @@
1267 -# Copyright 1999-2020 Gentoo Authors
1268 -# Distributed under the terms of the GNU General Public License v2
1269 -
1270 -EAPI=7
1271 -
1272 -inherit autotools linux-info systemd
1273 -
1274 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
1275 -HOMEPAGE="https://www.asterisk.org/"
1276 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
1277 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
1278 -LICENSE="GPL-2"
1279 -SLOT="0"
1280 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
1281 -
1282 -IUSE_VOICEMAIL_STORAGE="
1283 - +voicemail_storage_file
1284 - voicemail_storage_odbc
1285 - voicemail_storage_imap
1286 -"
1287 -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"
1288 -IUSE_EXPAND="VOICEMAIL_STORAGE"
1289 -REQUIRED_USE="gtalk? ( xmpp )
1290 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
1291 - voicemail_storage_odbc? ( odbc )
1292 -"
1293 -
1294 -PATCHES=(
1295 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
1296 -)
1297 -
1298 -DEPEND="acct-user/asterisk
1299 - acct-group/asterisk
1300 - dev-db/sqlite:3
1301 - dev-libs/popt
1302 - >=dev-libs/jansson-2.11
1303 - dev-libs/libedit
1304 - dev-libs/libxml2:2
1305 - dev-libs/libxslt
1306 - sys-apps/util-linux
1307 - sys-libs/ncurses:0=
1308 - sys-libs/zlib
1309 - alsa? ( media-libs/alsa-lib )
1310 - bluetooth? ( net-wireless/bluez:= )
1311 - calendar? (
1312 - net-libs/neon:=
1313 - dev-libs/libical:=
1314 - dev-libs/iksemel
1315 - )
1316 - caps? ( sys-libs/libcap )
1317 - cluster? ( sys-cluster/corosync )
1318 - curl? ( net-misc/curl )
1319 - dahdi? (
1320 - net-libs/libpri
1321 - net-misc/dahdi-tools
1322 - )
1323 - freetds? ( dev-db/freetds )
1324 - gtalk? ( dev-libs/iksemel )
1325 - http? ( dev-libs/gmime:2.6 )
1326 - iconv? ( virtual/libiconv )
1327 - ilbc? ( media-libs/libilbc )
1328 - ldap? ( net-nds/openldap )
1329 - lua? ( dev-lang/lua:0= )
1330 - mysql? ( dev-db/mysql-connector-c:= )
1331 - newt? ( dev-libs/newt )
1332 - odbc? ( dev-db/unixODBC )
1333 - pjproject? ( >=net-libs/pjproject-2.9 )
1334 - portaudio? ( media-libs/portaudio )
1335 - postgres? ( dev-db/postgresql:* )
1336 - radius? ( net-dialup/freeradius-client )
1337 - snmp? ( net-analyzer/net-snmp:= )
1338 - span? ( media-libs/spandsp )
1339 - speex? (
1340 - media-libs/libogg
1341 - media-libs/speex
1342 - media-libs/speexdsp
1343 - )
1344 - srtp? ( net-libs/libsrtp:0 )
1345 - ssl? (
1346 - !libressl? ( dev-libs/openssl:0= )
1347 - libressl? ( dev-libs/libressl:0= )
1348 - )
1349 - unbound? ( net-dns/unbound )
1350 - vorbis? (
1351 - media-libs/libogg
1352 - media-libs/libvorbis
1353 - )
1354 - voicemail_storage_imap? ( virtual/imap-c-client )
1355 - xmpp? ( dev-libs/iksemel )
1356 -"
1357 -
1358 -RDEPEND="${DEPEND}
1359 - net-misc/asterisk-core-sounds
1360 - net-misc/asterisk-extra-sounds
1361 - net-misc/asterisk-moh-opsound
1362 - selinux? ( sec-policy/selinux-asterisk )
1363 - syslog? ( virtual/logger )"
1364 -
1365 -BDEPEND="virtual/pkgconfig"
1366 -
1367 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
1368 -
1369 -pkg_setup() {
1370 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
1371 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
1372 - have reported that this module dropped critical SIP packets in their deployments. You
1373 - may want to disable it if you see such problems."
1374 - check_extra_config
1375 -}
1376 -
1377 -src_prepare() {
1378 - default
1379 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
1380 -}
1381 -
1382 -src_configure() {
1383 - local vmst
1384 -
1385 - econf \
1386 - --libdir="/usr/$(get_libdir)" \
1387 - --localstatedir="/var" \
1388 - --with-crypto \
1389 - --with-gsm=internal \
1390 - --with-popt \
1391 - --with-z \
1392 - --with-libedit \
1393 - --without-jansson-bundled \
1394 - --without-pjproject-bundled \
1395 - $(use_with caps cap) \
1396 - $(use_with http gmime) \
1397 - $(use_with newt) \
1398 - $(use_with pjproject) \
1399 - $(use_with portaudio) \
1400 - $(use_with ssl) \
1401 - $(use_with unbound)
1402 -
1403 - _menuselect() {
1404 - menuselect/menuselect "$@" || die "menuselect $* failed."
1405 - }
1406 -
1407 - _use_select() {
1408 - local state=$(use "$1" && echo enable || echo disable)
1409 - shift # remove use from parameters
1410 -
1411 - while [[ -n $1 ]]; do
1412 - _menuselect --${state} "$1" menuselect.makeopts
1413 - shift
1414 - done
1415 - }
1416 -
1417 - # Blank out sounds/sounds.xml file to prevent
1418 - # asterisk from installing sounds files (we pull them in via
1419 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
1420 - >"${S}"/sounds/sounds.xml
1421 -
1422 - # That NATIVE_ARCH chatter really is quite bothersome
1423 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
1424 -
1425 - # Compile menuselect binary for optional components
1426 - emake NOISY_BUILD=yes menuselect.makeopts
1427 -
1428 - # Disable BUILD_NATIVE (bug #667498)
1429 - _menuselect --disable build_native menuselect.makeopts
1430 -
1431 - # Broken functionality is forcibly disabled (bug #360143)
1432 - _menuselect --disable chan_misdn menuselect.makeopts
1433 - _menuselect --disable chan_ooh323 menuselect.makeopts
1434 -
1435 - # Utility set is forcibly enabled (bug #358001)
1436 - _menuselect --enable smsq menuselect.makeopts
1437 - _menuselect --enable streamplayer menuselect.makeopts
1438 - _menuselect --enable aelparse menuselect.makeopts
1439 - _menuselect --enable astman menuselect.makeopts
1440 -
1441 - # this is connected, otherwise it would not find
1442 - # ast_pktccops_gate_alloc symbol
1443 - _menuselect --enable chan_mgcp menuselect.makeopts
1444 - _menuselect --enable res_pktccops menuselect.makeopts
1445 -
1446 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
1447 - _menuselect --enable pbx_dundi menuselect.makeopts
1448 - _menuselect --enable func_aes menuselect.makeopts
1449 - _menuselect --enable chan_iax2 menuselect.makeopts
1450 -
1451 - # SQlite3 is now the main database backend, enable related features
1452 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
1453 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
1454 -
1455 - # The others are based on USE-flag settings
1456 - _use_select alsa chan_alsa
1457 - _use_select bluetooth chan_mobile
1458 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
1459 - _use_select cluster res_corosync
1460 - _use_select curl func_curl res_config_curl res_curl
1461 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
1462 - _use_select freetds {cdr,cel}_tds
1463 - _use_select gtalk chan_motif
1464 - _use_select http res_http_post
1465 - _use_select iconv func_iconv
1466 - _use_select ilbc codec_ilbc format_ilbc
1467 - _use_select ldap res_config_ldap
1468 - _use_select lua pbx_lua
1469 - _use_select mysql app_mysql cdr_mysql res_config_mysql
1470 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
1471 - _use_select oss chan_oss
1472 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
1473 - _use_select radius {cdr,cel}_radius
1474 - _use_select snmp res_snmp
1475 - _use_select span res_fax_spandsp
1476 - _use_select speex {codec,func}_speex
1477 - _use_select speex format_ogg_speex
1478 - _use_select srtp res_srtp
1479 - _use_select statsd res_statsd res_{endpoint,chan}_stats
1480 - _use_select syslog cdr_syslog
1481 - _use_select vorbis format_ogg_vorbis
1482 - _use_select xmpp res_xmpp
1483 -
1484 - # Voicemail storage ...
1485 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
1486 - if use ${vmst}; then
1487 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
1488 - fi
1489 - done
1490 -
1491 - if use debug; then
1492 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
1493 - _menuselect --enable "${o}" menuselect.makeopts
1494 - done
1495 - fi
1496 -}
1497 -
1498 -src_compile() {
1499 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
1500 -}
1501 -
1502 -src_install() {
1503 - local d
1504 -
1505 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
1506 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
1507 -
1508 - if use radius; then
1509 - insinto /etc/radiusclient/
1510 - doins contrib/dictionary.digium
1511 - fi
1512 - diropts -m 0750 -o root -g asterisk
1513 - keepdir /etc/asterisk
1514 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
1515 - for conffile in "${ED}/etc/asterisk/"*
1516 - do
1517 - fowners root:root "${conffile#${ED}}"
1518 - fperms 0644 "${conffile#${ED}}"
1519 - done
1520 -
1521 - # keep directories
1522 - diropts -m 0750 -o asterisk -g root
1523 - keepdir /var/lib/asterisk
1524 - keepdir /var/spool/asterisk
1525 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
1526 - diropts -m 0750 -o asterisk -g asterisk
1527 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
1528 -
1529 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
1530 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
1531 -
1532 - systemd_dounit "${FILESDIR}"/asterisk.service
1533 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
1534 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
1535 -
1536 - # Reset diropts else dodoc uses it for doc installations.
1537 - diropts -m0755
1538 -
1539 - # install the upgrade documentation
1540 - dodoc UPGRADE* BUGS CREDITS
1541 -
1542 - # install extra documentation
1543 - if use doc; then
1544 - dodoc doc/*.txt
1545 - dodoc doc/*.pdf
1546 - fi
1547 -
1548 - # install logrotate snippet; bug #329281
1549 - #
1550 - insinto /etc/logrotate.d
1551 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
1552 -
1553 - # Asterisk installs a few folders that's empty by design,
1554 - # but still required. This finds them, and marks them for
1555 - # portage.
1556 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
1557 - keepdir "${d#${ED}}"
1558 - done
1559 -}
1560 -
1561 -pkg_postinst() {
1562 - if [ -z "${REPLACING_VERSIONS}" ]; then
1563 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
1564 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1565 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
1566 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
1567 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
1568 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1569 - fi
1570 -}
1571
1572 diff --git a/net-misc/asterisk/asterisk-16.13.0.ebuild b/net-misc/asterisk/asterisk-16.13.0.ebuild
1573 deleted file mode 100644
1574 index da613c5156f..00000000000
1575 --- a/net-misc/asterisk/asterisk-16.13.0.ebuild
1576 +++ /dev/null
1577 @@ -1,304 +0,0 @@
1578 -# Copyright 1999-2020 Gentoo Authors
1579 -# Distributed under the terms of the GNU General Public License v2
1580 -
1581 -EAPI=7
1582 -
1583 -inherit autotools linux-info systemd
1584 -
1585 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
1586 -HOMEPAGE="https://www.asterisk.org/"
1587 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
1588 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
1589 -LICENSE="GPL-2"
1590 -SLOT="0"
1591 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
1592 -
1593 -IUSE_VOICEMAIL_STORAGE="
1594 - +voicemail_storage_file
1595 - voicemail_storage_odbc
1596 - voicemail_storage_imap
1597 -"
1598 -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"
1599 -IUSE_EXPAND="VOICEMAIL_STORAGE"
1600 -REQUIRED_USE="gtalk? ( xmpp )
1601 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
1602 - voicemail_storage_odbc? ( odbc )
1603 -"
1604 -
1605 -PATCHES=(
1606 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
1607 -)
1608 -
1609 -DEPEND="acct-user/asterisk
1610 - acct-group/asterisk
1611 - dev-db/sqlite:3
1612 - dev-libs/popt
1613 - >=dev-libs/jansson-2.11
1614 - dev-libs/libedit
1615 - dev-libs/libxml2:2
1616 - dev-libs/libxslt
1617 - sys-apps/util-linux
1618 - sys-libs/ncurses:0=
1619 - sys-libs/zlib
1620 - alsa? ( media-libs/alsa-lib )
1621 - bluetooth? ( net-wireless/bluez:= )
1622 - calendar? (
1623 - net-libs/neon:=
1624 - dev-libs/libical:=
1625 - dev-libs/iksemel
1626 - )
1627 - caps? ( sys-libs/libcap )
1628 - cluster? ( sys-cluster/corosync )
1629 - curl? ( net-misc/curl )
1630 - dahdi? (
1631 - net-libs/libpri
1632 - net-misc/dahdi-tools
1633 - )
1634 - freetds? ( dev-db/freetds )
1635 - gtalk? ( dev-libs/iksemel )
1636 - http? ( dev-libs/gmime:2.6 )
1637 - iconv? ( virtual/libiconv )
1638 - ilbc? ( media-libs/libilbc )
1639 - ldap? ( net-nds/openldap )
1640 - lua? ( dev-lang/lua:0= )
1641 - mysql? ( dev-db/mysql-connector-c:= )
1642 - newt? ( dev-libs/newt )
1643 - odbc? ( dev-db/unixODBC )
1644 - pjproject? ( >=net-libs/pjproject-2.9 )
1645 - portaudio? ( media-libs/portaudio )
1646 - postgres? ( dev-db/postgresql:* )
1647 - radius? ( net-dialup/freeradius-client )
1648 - snmp? ( net-analyzer/net-snmp:= )
1649 - span? ( media-libs/spandsp )
1650 - speex? (
1651 - media-libs/libogg
1652 - media-libs/speex
1653 - media-libs/speexdsp
1654 - )
1655 - srtp? ( net-libs/libsrtp:0 )
1656 - ssl? (
1657 - !libressl? ( dev-libs/openssl:0= )
1658 - libressl? ( dev-libs/libressl:0= )
1659 - )
1660 - unbound? ( net-dns/unbound )
1661 - vorbis? (
1662 - media-libs/libogg
1663 - media-libs/libvorbis
1664 - )
1665 - voicemail_storage_imap? ( virtual/imap-c-client )
1666 - xmpp? ( dev-libs/iksemel )
1667 -"
1668 -
1669 -RDEPEND="${DEPEND}
1670 - net-misc/asterisk-core-sounds
1671 - net-misc/asterisk-extra-sounds
1672 - net-misc/asterisk-moh-opsound
1673 - selinux? ( sec-policy/selinux-asterisk )
1674 - syslog? ( virtual/logger )"
1675 -
1676 -BDEPEND="virtual/pkgconfig"
1677 -
1678 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
1679 -
1680 -pkg_setup() {
1681 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
1682 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
1683 - have reported that this module dropped critical SIP packets in their deployments. You
1684 - may want to disable it if you see such problems."
1685 - check_extra_config
1686 -}
1687 -
1688 -src_prepare() {
1689 - default
1690 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
1691 -}
1692 -
1693 -src_configure() {
1694 - local vmst
1695 -
1696 - econf \
1697 - --libdir="/usr/$(get_libdir)" \
1698 - --localstatedir="/var" \
1699 - --with-crypto \
1700 - --with-gsm=internal \
1701 - --with-popt \
1702 - --with-z \
1703 - --with-libedit \
1704 - --without-jansson-bundled \
1705 - --without-pjproject-bundled \
1706 - $(use_with caps cap) \
1707 - $(use_with http gmime) \
1708 - $(use_with newt) \
1709 - $(use_with pjproject) \
1710 - $(use_with portaudio) \
1711 - $(use_with ssl) \
1712 - $(use_with unbound)
1713 -
1714 - _menuselect() {
1715 - menuselect/menuselect "$@" || die "menuselect $* failed."
1716 - }
1717 -
1718 - _use_select() {
1719 - local state=$(use "$1" && echo enable || echo disable)
1720 - shift # remove use from parameters
1721 -
1722 - while [[ -n $1 ]]; do
1723 - _menuselect --${state} "$1" menuselect.makeopts
1724 - shift
1725 - done
1726 - }
1727 -
1728 - # Blank out sounds/sounds.xml file to prevent
1729 - # asterisk from installing sounds files (we pull them in via
1730 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
1731 - >"${S}"/sounds/sounds.xml
1732 -
1733 - # That NATIVE_ARCH chatter really is quite bothersome
1734 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
1735 -
1736 - # Compile menuselect binary for optional components
1737 - emake NOISY_BUILD=yes menuselect.makeopts
1738 -
1739 - # Disable BUILD_NATIVE (bug #667498)
1740 - _menuselect --disable build_native menuselect.makeopts
1741 -
1742 - # Broken functionality is forcibly disabled (bug #360143)
1743 - _menuselect --disable chan_misdn menuselect.makeopts
1744 - _menuselect --disable chan_ooh323 menuselect.makeopts
1745 -
1746 - # Utility set is forcibly enabled (bug #358001)
1747 - _menuselect --enable smsq menuselect.makeopts
1748 - _menuselect --enable streamplayer menuselect.makeopts
1749 - _menuselect --enable aelparse menuselect.makeopts
1750 - _menuselect --enable astman menuselect.makeopts
1751 -
1752 - # this is connected, otherwise it would not find
1753 - # ast_pktccops_gate_alloc symbol
1754 - _menuselect --enable chan_mgcp menuselect.makeopts
1755 - _menuselect --enable res_pktccops menuselect.makeopts
1756 -
1757 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
1758 - _menuselect --enable pbx_dundi menuselect.makeopts
1759 - _menuselect --enable func_aes menuselect.makeopts
1760 - _menuselect --enable chan_iax2 menuselect.makeopts
1761 -
1762 - # SQlite3 is now the main database backend, enable related features
1763 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
1764 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
1765 -
1766 - # The others are based on USE-flag settings
1767 - _use_select alsa chan_alsa
1768 - _use_select bluetooth chan_mobile
1769 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
1770 - _use_select cluster res_corosync
1771 - _use_select curl func_curl res_config_curl res_curl
1772 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
1773 - _use_select freetds {cdr,cel}_tds
1774 - _use_select gtalk chan_motif
1775 - _use_select http res_http_post
1776 - _use_select iconv func_iconv
1777 - _use_select ilbc codec_ilbc format_ilbc
1778 - _use_select ldap res_config_ldap
1779 - _use_select lua pbx_lua
1780 - _use_select mysql app_mysql cdr_mysql res_config_mysql
1781 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
1782 - _use_select oss chan_oss
1783 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
1784 - _use_select radius {cdr,cel}_radius
1785 - _use_select snmp res_snmp
1786 - _use_select span res_fax_spandsp
1787 - _use_select speex {codec,func}_speex
1788 - _use_select speex format_ogg_speex
1789 - _use_select srtp res_srtp
1790 - _use_select statsd res_statsd res_{endpoint,chan}_stats
1791 - _use_select syslog cdr_syslog
1792 - _use_select vorbis format_ogg_vorbis
1793 - _use_select xmpp res_xmpp
1794 -
1795 - # Voicemail storage ...
1796 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
1797 - if use ${vmst}; then
1798 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
1799 - fi
1800 - done
1801 -
1802 - if use debug; then
1803 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
1804 - _menuselect --enable "${o}" menuselect.makeopts
1805 - done
1806 - fi
1807 -}
1808 -
1809 -src_compile() {
1810 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
1811 -}
1812 -
1813 -src_install() {
1814 - local d
1815 -
1816 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
1817 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
1818 -
1819 - if use radius; then
1820 - insinto /etc/radiusclient/
1821 - doins contrib/dictionary.digium
1822 - fi
1823 - diropts -m 0750 -o root -g asterisk
1824 - keepdir /etc/asterisk
1825 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
1826 - for conffile in "${ED}/etc/asterisk/"*
1827 - do
1828 - fowners root:root "${conffile#${ED}}"
1829 - fperms 0644 "${conffile#${ED}}"
1830 - done
1831 -
1832 - # keep directories
1833 - diropts -m 0750 -o asterisk -g root
1834 - keepdir /var/lib/asterisk
1835 - keepdir /var/spool/asterisk
1836 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
1837 - diropts -m 0750 -o asterisk -g asterisk
1838 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
1839 -
1840 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
1841 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
1842 -
1843 - systemd_dounit "${FILESDIR}"/asterisk.service
1844 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
1845 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
1846 -
1847 - # Reset diropts else dodoc uses it for doc installations.
1848 - diropts -m0755
1849 -
1850 - # install the upgrade documentation
1851 - dodoc UPGRADE* BUGS CREDITS
1852 -
1853 - # install extra documentation
1854 - if use doc; then
1855 - dodoc doc/*.txt
1856 - dodoc doc/*.pdf
1857 - fi
1858 -
1859 - # install logrotate snippet; bug #329281
1860 - #
1861 - insinto /etc/logrotate.d
1862 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
1863 -
1864 - # Asterisk installs a few folders that's empty by design,
1865 - # but still required. This finds them, and marks them for
1866 - # portage.
1867 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
1868 - keepdir "${d#${ED}}"
1869 - done
1870 -}
1871 -
1872 -pkg_postinst() {
1873 - if [ -z "${REPLACING_VERSIONS}" ]; then
1874 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
1875 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1876 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
1877 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
1878 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
1879 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1880 - fi
1881 -}
1882
1883 diff --git a/net-misc/asterisk/asterisk-16.14.0.ebuild b/net-misc/asterisk/asterisk-16.14.0.ebuild
1884 deleted file mode 100644
1885 index da613c5156f..00000000000
1886 --- a/net-misc/asterisk/asterisk-16.14.0.ebuild
1887 +++ /dev/null
1888 @@ -1,304 +0,0 @@
1889 -# Copyright 1999-2020 Gentoo Authors
1890 -# Distributed under the terms of the GNU General Public License v2
1891 -
1892 -EAPI=7
1893 -
1894 -inherit autotools linux-info systemd
1895 -
1896 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
1897 -HOMEPAGE="https://www.asterisk.org/"
1898 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
1899 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
1900 -LICENSE="GPL-2"
1901 -SLOT="0"
1902 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
1903 -
1904 -IUSE_VOICEMAIL_STORAGE="
1905 - +voicemail_storage_file
1906 - voicemail_storage_odbc
1907 - voicemail_storage_imap
1908 -"
1909 -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"
1910 -IUSE_EXPAND="VOICEMAIL_STORAGE"
1911 -REQUIRED_USE="gtalk? ( xmpp )
1912 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
1913 - voicemail_storage_odbc? ( odbc )
1914 -"
1915 -
1916 -PATCHES=(
1917 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
1918 -)
1919 -
1920 -DEPEND="acct-user/asterisk
1921 - acct-group/asterisk
1922 - dev-db/sqlite:3
1923 - dev-libs/popt
1924 - >=dev-libs/jansson-2.11
1925 - dev-libs/libedit
1926 - dev-libs/libxml2:2
1927 - dev-libs/libxslt
1928 - sys-apps/util-linux
1929 - sys-libs/ncurses:0=
1930 - sys-libs/zlib
1931 - alsa? ( media-libs/alsa-lib )
1932 - bluetooth? ( net-wireless/bluez:= )
1933 - calendar? (
1934 - net-libs/neon:=
1935 - dev-libs/libical:=
1936 - dev-libs/iksemel
1937 - )
1938 - caps? ( sys-libs/libcap )
1939 - cluster? ( sys-cluster/corosync )
1940 - curl? ( net-misc/curl )
1941 - dahdi? (
1942 - net-libs/libpri
1943 - net-misc/dahdi-tools
1944 - )
1945 - freetds? ( dev-db/freetds )
1946 - gtalk? ( dev-libs/iksemel )
1947 - http? ( dev-libs/gmime:2.6 )
1948 - iconv? ( virtual/libiconv )
1949 - ilbc? ( media-libs/libilbc )
1950 - ldap? ( net-nds/openldap )
1951 - lua? ( dev-lang/lua:0= )
1952 - mysql? ( dev-db/mysql-connector-c:= )
1953 - newt? ( dev-libs/newt )
1954 - odbc? ( dev-db/unixODBC )
1955 - pjproject? ( >=net-libs/pjproject-2.9 )
1956 - portaudio? ( media-libs/portaudio )
1957 - postgres? ( dev-db/postgresql:* )
1958 - radius? ( net-dialup/freeradius-client )
1959 - snmp? ( net-analyzer/net-snmp:= )
1960 - span? ( media-libs/spandsp )
1961 - speex? (
1962 - media-libs/libogg
1963 - media-libs/speex
1964 - media-libs/speexdsp
1965 - )
1966 - srtp? ( net-libs/libsrtp:0 )
1967 - ssl? (
1968 - !libressl? ( dev-libs/openssl:0= )
1969 - libressl? ( dev-libs/libressl:0= )
1970 - )
1971 - unbound? ( net-dns/unbound )
1972 - vorbis? (
1973 - media-libs/libogg
1974 - media-libs/libvorbis
1975 - )
1976 - voicemail_storage_imap? ( virtual/imap-c-client )
1977 - xmpp? ( dev-libs/iksemel )
1978 -"
1979 -
1980 -RDEPEND="${DEPEND}
1981 - net-misc/asterisk-core-sounds
1982 - net-misc/asterisk-extra-sounds
1983 - net-misc/asterisk-moh-opsound
1984 - selinux? ( sec-policy/selinux-asterisk )
1985 - syslog? ( virtual/logger )"
1986 -
1987 -BDEPEND="virtual/pkgconfig"
1988 -
1989 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
1990 -
1991 -pkg_setup() {
1992 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
1993 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
1994 - have reported that this module dropped critical SIP packets in their deployments. You
1995 - may want to disable it if you see such problems."
1996 - check_extra_config
1997 -}
1998 -
1999 -src_prepare() {
2000 - default
2001 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
2002 -}
2003 -
2004 -src_configure() {
2005 - local vmst
2006 -
2007 - econf \
2008 - --libdir="/usr/$(get_libdir)" \
2009 - --localstatedir="/var" \
2010 - --with-crypto \
2011 - --with-gsm=internal \
2012 - --with-popt \
2013 - --with-z \
2014 - --with-libedit \
2015 - --without-jansson-bundled \
2016 - --without-pjproject-bundled \
2017 - $(use_with caps cap) \
2018 - $(use_with http gmime) \
2019 - $(use_with newt) \
2020 - $(use_with pjproject) \
2021 - $(use_with portaudio) \
2022 - $(use_with ssl) \
2023 - $(use_with unbound)
2024 -
2025 - _menuselect() {
2026 - menuselect/menuselect "$@" || die "menuselect $* failed."
2027 - }
2028 -
2029 - _use_select() {
2030 - local state=$(use "$1" && echo enable || echo disable)
2031 - shift # remove use from parameters
2032 -
2033 - while [[ -n $1 ]]; do
2034 - _menuselect --${state} "$1" menuselect.makeopts
2035 - shift
2036 - done
2037 - }
2038 -
2039 - # Blank out sounds/sounds.xml file to prevent
2040 - # asterisk from installing sounds files (we pull them in via
2041 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
2042 - >"${S}"/sounds/sounds.xml
2043 -
2044 - # That NATIVE_ARCH chatter really is quite bothersome
2045 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
2046 -
2047 - # Compile menuselect binary for optional components
2048 - emake NOISY_BUILD=yes menuselect.makeopts
2049 -
2050 - # Disable BUILD_NATIVE (bug #667498)
2051 - _menuselect --disable build_native menuselect.makeopts
2052 -
2053 - # Broken functionality is forcibly disabled (bug #360143)
2054 - _menuselect --disable chan_misdn menuselect.makeopts
2055 - _menuselect --disable chan_ooh323 menuselect.makeopts
2056 -
2057 - # Utility set is forcibly enabled (bug #358001)
2058 - _menuselect --enable smsq menuselect.makeopts
2059 - _menuselect --enable streamplayer menuselect.makeopts
2060 - _menuselect --enable aelparse menuselect.makeopts
2061 - _menuselect --enable astman menuselect.makeopts
2062 -
2063 - # this is connected, otherwise it would not find
2064 - # ast_pktccops_gate_alloc symbol
2065 - _menuselect --enable chan_mgcp menuselect.makeopts
2066 - _menuselect --enable res_pktccops menuselect.makeopts
2067 -
2068 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
2069 - _menuselect --enable pbx_dundi menuselect.makeopts
2070 - _menuselect --enable func_aes menuselect.makeopts
2071 - _menuselect --enable chan_iax2 menuselect.makeopts
2072 -
2073 - # SQlite3 is now the main database backend, enable related features
2074 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
2075 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
2076 -
2077 - # The others are based on USE-flag settings
2078 - _use_select alsa chan_alsa
2079 - _use_select bluetooth chan_mobile
2080 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
2081 - _use_select cluster res_corosync
2082 - _use_select curl func_curl res_config_curl res_curl
2083 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
2084 - _use_select freetds {cdr,cel}_tds
2085 - _use_select gtalk chan_motif
2086 - _use_select http res_http_post
2087 - _use_select iconv func_iconv
2088 - _use_select ilbc codec_ilbc format_ilbc
2089 - _use_select ldap res_config_ldap
2090 - _use_select lua pbx_lua
2091 - _use_select mysql app_mysql cdr_mysql res_config_mysql
2092 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
2093 - _use_select oss chan_oss
2094 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
2095 - _use_select radius {cdr,cel}_radius
2096 - _use_select snmp res_snmp
2097 - _use_select span res_fax_spandsp
2098 - _use_select speex {codec,func}_speex
2099 - _use_select speex format_ogg_speex
2100 - _use_select srtp res_srtp
2101 - _use_select statsd res_statsd res_{endpoint,chan}_stats
2102 - _use_select syslog cdr_syslog
2103 - _use_select vorbis format_ogg_vorbis
2104 - _use_select xmpp res_xmpp
2105 -
2106 - # Voicemail storage ...
2107 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
2108 - if use ${vmst}; then
2109 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
2110 - fi
2111 - done
2112 -
2113 - if use debug; then
2114 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
2115 - _menuselect --enable "${o}" menuselect.makeopts
2116 - done
2117 - fi
2118 -}
2119 -
2120 -src_compile() {
2121 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
2122 -}
2123 -
2124 -src_install() {
2125 - local d
2126 -
2127 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
2128 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
2129 -
2130 - if use radius; then
2131 - insinto /etc/radiusclient/
2132 - doins contrib/dictionary.digium
2133 - fi
2134 - diropts -m 0750 -o root -g asterisk
2135 - keepdir /etc/asterisk
2136 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
2137 - for conffile in "${ED}/etc/asterisk/"*
2138 - do
2139 - fowners root:root "${conffile#${ED}}"
2140 - fperms 0644 "${conffile#${ED}}"
2141 - done
2142 -
2143 - # keep directories
2144 - diropts -m 0750 -o asterisk -g root
2145 - keepdir /var/lib/asterisk
2146 - keepdir /var/spool/asterisk
2147 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
2148 - diropts -m 0750 -o asterisk -g asterisk
2149 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
2150 -
2151 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
2152 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
2153 -
2154 - systemd_dounit "${FILESDIR}"/asterisk.service
2155 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
2156 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
2157 -
2158 - # Reset diropts else dodoc uses it for doc installations.
2159 - diropts -m0755
2160 -
2161 - # install the upgrade documentation
2162 - dodoc UPGRADE* BUGS CREDITS
2163 -
2164 - # install extra documentation
2165 - if use doc; then
2166 - dodoc doc/*.txt
2167 - dodoc doc/*.pdf
2168 - fi
2169 -
2170 - # install logrotate snippet; bug #329281
2171 - #
2172 - insinto /etc/logrotate.d
2173 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
2174 -
2175 - # Asterisk installs a few folders that's empty by design,
2176 - # but still required. This finds them, and marks them for
2177 - # portage.
2178 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
2179 - keepdir "${d#${ED}}"
2180 - done
2181 -}
2182 -
2183 -pkg_postinst() {
2184 - if [ -z "${REPLACING_VERSIONS}" ]; then
2185 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
2186 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
2187 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
2188 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
2189 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
2190 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
2191 - fi
2192 -}
2193
2194 diff --git a/net-misc/asterisk/files/asterisk-13.33.0-nossl.patch b/net-misc/asterisk/files/asterisk-13.33.0-nossl.patch
2195 deleted file mode 100644
2196 index 5fb0c5650e5..00000000000
2197 --- a/net-misc/asterisk/files/asterisk-13.33.0-nossl.patch
2198 +++ /dev/null
2199 @@ -1,94 +0,0 @@
2200 -From 2513235859fc50e8c28545977702b9b7b439f5f5 Mon Sep 17 00:00:00 2001
2201 -From: Joshua C. Colp <jcolp@×××××××.com>
2202 -Date: Wed, 24 Jun 2020 07:25:47 -0300
2203 -Subject: [PATCH] menuselect: Resolve infinite loop in dependency scenario.
2204 -
2205 -Given a scenario where a module has a dependency on both
2206 -an external library and a module if the external library was
2207 -available and the module was not an infinite loop would
2208 -occur. This happened due to the code changing the dependecy
2209 -status to no failure on each dependency checking loop
2210 -iteration, resulting in the code thinking that it had
2211 -gone from no failure to failure each time triggering another
2212 -dependency check.
2213 -
2214 -This change makes it so that the old dependency status is
2215 -preserved throughout the dependency checking allowing it to
2216 -determine that after the first iteration the dependency
2217 -status does not transition from no failure to failure.
2218 -
2219 -ASTERISK-28930
2220 -
2221 -Change-Id: Iea06d45d9fd6d8bfd068882a0bb7e23a53ec3e84
2222 ----
2223 -
2224 -diff --git a/menuselect/menuselect.c b/menuselect/menuselect.c
2225 -index 83f6098..a595ce8 100644
2226 ---- a/menuselect/menuselect.c
2227 -+++ b/menuselect/menuselect.c
2228 -@@ -630,14 +630,14 @@
2229 - struct member *mem;
2230 - struct reference *dep;
2231 - struct dep_file *dep_file;
2232 -- unsigned int changed, old_failure;
2233 -+ unsigned int changed;
2234 -
2235 - AST_LIST_TRAVERSE(&categories, cat, list) {
2236 - AST_LIST_TRAVERSE(&cat->members, mem, list) {
2237 - if (mem->is_separator) {
2238 - continue;
2239 - }
2240 -- old_failure = mem->depsfailed;
2241 -+ mem->depsfailedold = mem->depsfailed;
2242 - AST_LIST_TRAVERSE(&mem->deps, dep, list) {
2243 - if (dep->member)
2244 - continue;
2245 -@@ -655,7 +655,7 @@
2246 - break; /* This dependency is not met, so we can stop now */
2247 - }
2248 - }
2249 -- if (old_failure == SOFT_FAILURE && mem->depsfailed != HARD_FAILURE)
2250 -+ if (mem->depsfailedold == SOFT_FAILURE && mem->depsfailed != HARD_FAILURE)
2251 - mem->depsfailed = SOFT_FAILURE;
2252 - }
2253 - }
2254 -@@ -673,8 +673,6 @@
2255 - continue;
2256 - }
2257 -
2258 -- old_failure = mem->depsfailed;
2259 --
2260 - if (mem->depsfailed == HARD_FAILURE)
2261 - continue;
2262 -
2263 -@@ -693,7 +691,7 @@
2264 - }
2265 - }
2266 -
2267 -- if (mem->depsfailed != old_failure) {
2268 -+ if (mem->depsfailed != mem->depsfailedold) {
2269 - if ((mem->depsfailed == NO_FAILURE) && mem->was_defaulted) {
2270 - mem->enabled = !strcasecmp(mem->defaultenabled, "yes");
2271 - print_debug("Just set %s enabled to %d\n", mem->name, mem->enabled);
2272 -@@ -702,6 +700,8 @@
2273 - print_debug("Just set %s enabled to %d\n", mem->name, mem->enabled);
2274 - }
2275 - changed = 1;
2276 -+ /* We need to update the old failed deps for the next loop of this */
2277 -+ mem->depsfailedold = mem->depsfailed;
2278 - break; /* This dependency is not met, so we can stop now */
2279 - }
2280 - }
2281 -diff --git a/menuselect/menuselect.h b/menuselect/menuselect.h
2282 -index 78ae8ef..d41859e 100644
2283 ---- a/menuselect/menuselect.h
2284 -+++ b/menuselect/menuselect.h
2285 -@@ -78,6 +78,8 @@
2286 - unsigned int was_enabled:1;
2287 - /*! This module has failed dependencies */
2288 - unsigned int depsfailed:2;
2289 -+ /*! Previous failed dependencies when calculating */
2290 -+ unsigned int depsfailedold:2;
2291 - /*! This module has failed conflicts */
2292 - unsigned int conflictsfailed:2;
2293 - /*! This module's 'enabled' flag was changed by a default only */