Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/files/, net-misc/asterisk/
Date: Wed, 10 Feb 2021 19:05:27
Message-Id: 1612983910.8960c56e222bf3166a8e10f1474d7d6330e9df11.sam@gentoo
1 commit: 8960c56e222bf3166a8e10f1474d7d6330e9df11
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Wed Feb 10 18:14:34 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 10 19:05:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8960c56e
7
8 net-misc/asterisk: cleanup "old" versions.
9
10 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-misc/asterisk/asterisk-13.38.1-r1.ebuild | 308 ------------------------
14 net-misc/asterisk/asterisk-13.38.1.ebuild | 299 -----------------------
15 net-misc/asterisk/asterisk-16.15.1-r1.ebuild | 313 -------------------------
16 net-misc/asterisk/asterisk-16.15.1.ebuild | 304 ------------------------
17 net-misc/asterisk/files/asterisk.tmpfiles.conf | 2 -
18 5 files changed, 1226 deletions(-)
19
20 diff --git a/net-misc/asterisk/asterisk-13.38.1-r1.ebuild b/net-misc/asterisk/asterisk-13.38.1-r1.ebuild
21 deleted file mode 100644
22 index 7fd03e6fd84..00000000000
23 --- a/net-misc/asterisk/asterisk-13.38.1-r1.ebuild
24 +++ /dev/null
25 @@ -1,308 +0,0 @@
26 -# Copyright 1999-2020 Gentoo Authors
27 -# Distributed under the terms of the GNU General Public License v2
28 -
29 -EAPI=7
30 -
31 -LUA_COMPAT=( lua5-{1..4} )
32 -
33 -inherit autotools linux-info lua-single systemd
34 -
35 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
36 -HOMEPAGE="https://www.asterisk.org/"
37 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
38 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
39 -LICENSE="GPL-2"
40 -SLOT="0"
41 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
42 -
43 -IUSE_VOICEMAIL_STORAGE="
44 - +voicemail_storage_file
45 - voicemail_storage_odbc
46 - voicemail_storage_imap
47 -"
48 -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"
49 -IUSE_EXPAND="VOICEMAIL_STORAGE"
50 -REQUIRED_USE="gtalk? ( xmpp )
51 - lua? ( ${LUA_REQUIRED_USE} )
52 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
53 - voicemail_storage_odbc? ( odbc )
54 -"
55 -
56 -PATCHES=(
57 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
58 - "${FILESDIR}/${PN}-13.38.1-r1-autoconf-lua-version.patch"
59 - "${FILESDIR}/${PN}-13.38.1-r1-func_lock-fix-races.patch"
60 -)
61 -
62 -DEPEND="acct-user/asterisk
63 - acct-group/asterisk
64 - dev-db/sqlite:3
65 - dev-libs/popt
66 - dev-libs/jansson
67 - dev-libs/libedit
68 - dev-libs/libxml2:2
69 - dev-libs/libxslt
70 - sys-libs/ncurses:0=
71 - sys-libs/zlib
72 - alsa? ( media-libs/alsa-lib )
73 - bluetooth? ( net-wireless/bluez:= )
74 - calendar? (
75 - net-libs/neon:=
76 - dev-libs/libical:=
77 - dev-libs/iksemel
78 - )
79 - caps? ( sys-libs/libcap )
80 - cluster? ( sys-cluster/corosync )
81 - curl? ( net-misc/curl )
82 - dahdi? (
83 - net-libs/libpri
84 - net-misc/dahdi-tools
85 - )
86 - freetds? ( dev-db/freetds )
87 - gtalk? ( dev-libs/iksemel )
88 - http? ( dev-libs/gmime:2.6 )
89 - iconv? ( virtual/libiconv )
90 - ilbc? ( media-libs/libilbc )
91 - ldap? ( net-nds/openldap )
92 - lua? ( ${LUA_DEPS} )
93 - mysql? ( dev-db/mysql-connector-c:= )
94 - newt? ( dev-libs/newt )
95 - odbc? ( dev-db/unixODBC )
96 - pjproject? ( net-libs/pjproject )
97 - portaudio? ( media-libs/portaudio )
98 - postgres? ( dev-db/postgresql:* )
99 - radius? ( net-dialup/freeradius-client )
100 - snmp? ( net-analyzer/net-snmp:= )
101 - span? ( media-libs/spandsp )
102 - speex? (
103 - media-libs/libogg
104 - media-libs/speex
105 - media-libs/speexdsp
106 - )
107 - srtp? ( net-libs/libsrtp:0 )
108 - ssl? (
109 - !libressl? ( dev-libs/openssl:0= )
110 - libressl? ( dev-libs/libressl:0= )
111 - )
112 - vorbis? (
113 - media-libs/libogg
114 - media-libs/libvorbis
115 - )
116 - voicemail_storage_imap? ( virtual/imap-c-client )
117 - xmpp? ( dev-libs/iksemel )
118 -"
119 -
120 -RDEPEND="${DEPEND}
121 - net-misc/asterisk-core-sounds
122 - net-misc/asterisk-extra-sounds
123 - net-misc/asterisk-moh-opsound
124 - selinux? ( sec-policy/selinux-asterisk )
125 - syslog? ( virtual/logger )"
126 -
127 -BDEPEND="virtual/pkgconfig"
128 -
129 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
130 -
131 -pkg_setup() {
132 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
133 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
134 - have reported that this module dropped critical SIP packets in their deployments. You
135 - may want to disable it if you see such problems."
136 - check_extra_config
137 -
138 - use lua && lua-single_pkg_setup
139 -}
140 -
141 -src_prepare() {
142 - default
143 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
144 -}
145 -
146 -src_configure() {
147 - local vmst
148 -
149 - econf \
150 - LUA_VERSION="${ELUA#lua}" \
151 - --libdir="/usr/$(get_libdir)" \
152 - --localstatedir="/var" \
153 - --with-crypto \
154 - --with-gsm=internal \
155 - --with-popt \
156 - --with-z \
157 - --with-libedit \
158 - $(use_with caps cap) \
159 - $(use_with lua lua) \
160 - $(use_with http gmime) \
161 - $(use_with newt) \
162 - $(use_with pjproject) \
163 - $(use_with portaudio) \
164 - $(use_with ssl)
165 -
166 - _menuselect() {
167 - menuselect/menuselect "$@" || die "menuselect $* failed."
168 - }
169 -
170 - _use_select() {
171 - local state=$(usex "$1" enable disable)
172 - shift # remove use from parameters
173 -
174 - while [[ -n $1 ]]; do
175 - _menuselect --${state} "$1" menuselect.makeopts
176 - shift
177 - done
178 - }
179 -
180 - # Blank out sounds/sounds.xml file to prevent
181 - # asterisk from installing sounds files (we pull them in via
182 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
183 - >"${S}"/sounds/sounds.xml
184 -
185 - # That NATIVE_ARCH chatter really is quite bothersome
186 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
187 -
188 - # Compile menuselect binary for optional components
189 - emake NOISE_BUILD=yes menuselect.makeopts
190 -
191 - # Disable BUILD_NATIVE (bug #667498)
192 - _menuselect --disable build_native menuselect.makeopts
193 -
194 - # Broken functionality is forcibly disabled (bug #360143)
195 - _menuselect --disable chan_misdn menuselect.makeopts
196 - _menuselect --disable chan_ooh323 menuselect.makeopts
197 -
198 - # Utility set is forcibly enabled (bug #358001)
199 - _menuselect --enable smsq menuselect.makeopts
200 - _menuselect --enable streamplayer menuselect.makeopts
201 - _menuselect --enable aelparse menuselect.makeopts
202 - _menuselect --enable astman menuselect.makeopts
203 -
204 - # this is connected, otherwise it would not find
205 - # ast_pktccops_gate_alloc symbol
206 - _menuselect --enable chan_mgcp menuselect.makeopts
207 - _menuselect --enable res_pktccops menuselect.makeopts
208 -
209 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
210 - _menuselect --enable pbx_dundi menuselect.makeopts
211 - _menuselect --enable func_aes menuselect.makeopts
212 - _menuselect --enable chan_iax2 menuselect.makeopts
213 -
214 - # SQlite3 is now the main database backend, enable related features
215 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
216 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
217 -
218 - # The others are based on USE-flag settings
219 - _use_select alsa chan_alsa
220 - _use_select bluetooth chan_mobile
221 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
222 - _use_select cluster res_corosync
223 - _use_select curl func_curl res_config_curl res_curl
224 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
225 - _use_select freetds {cdr,cel}_tds
226 - _use_select gtalk chan_motif
227 - _use_select http res_http_post
228 - _use_select iconv func_iconv
229 - _use_select ilbc codec_ilbc format_ilbc
230 - _use_select ldap res_config_ldap
231 - _use_select lua pbx_lua
232 - _use_select mysql app_mysql cdr_mysql res_config_mysql
233 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
234 - _use_select oss chan_oss
235 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
236 - _use_select radius {cdr,cel}_radius
237 - _use_select snmp res_snmp
238 - _use_select span res_fax_spandsp
239 - _use_select speex {codec,func}_speex
240 - _use_select speex format_ogg_speex
241 - _use_select srtp res_srtp
242 - _use_select statsd res_statsd res_{endpoint,chan}_stats
243 - _use_select syslog cdr_syslog
244 - _use_select vorbis format_ogg_vorbis
245 - _use_select xmpp res_xmpp
246 -
247 - # Voicemail storage ...
248 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
249 - if use ${vmst}; then
250 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
251 - fi
252 - done
253 -
254 - if use debug; then
255 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
256 - _menuselect --enable $o menuselect.makeopts
257 - done
258 - fi
259 -}
260 -
261 -src_compile() {
262 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
263 -}
264 -
265 -src_install() {
266 - local d
267 -
268 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
269 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
270 -
271 - if use radius; then
272 - insinto /etc/radiusclient/
273 - doins contrib/dictionary.digium
274 - fi
275 - diropts -m 0750 -o root -g asterisk
276 - keepdir /etc/asterisk
277 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
278 - for conffile in "${ED}/etc/asterisk/"*
279 - do
280 - fowners root:root "${conffile#${ED}}"
281 - fperms 0644 "${conffile#${ED}}"
282 - done
283 -
284 - # keep directories
285 - diropts -m 0750 -o asterisk -g root
286 - keepdir /var/lib/asterisk
287 - keepdir /var/spool/asterisk
288 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
289 - diropts -m 0750 -o asterisk -g asterisk
290 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
291 -
292 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
293 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
294 -
295 - systemd_dounit "${FILESDIR}"/asterisk.service
296 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
297 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
298 -
299 - # Reset diropts else dodoc uses it for doc installations.
300 - diropts -m0755
301 -
302 - # install the upgrade documentation
303 - dodoc UPGRADE* BUGS CREDITS
304 -
305 - # install extra documentation
306 - if use doc; then
307 - dodoc doc/*.txt
308 - dodoc doc/*.pdf
309 - fi
310 -
311 - # install logrotate snippet; bug #329281
312 - #
313 - insinto /etc/logrotate.d
314 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
315 -
316 - # Asterisk installs a few folders that's empty by design,
317 - # but still required. This finds them, and marks them for
318 - # portage.
319 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
320 - keepdir "${d#${ED}}"
321 - done
322 -}
323 -
324 -pkg_postinst() {
325 - if [ -z "${REPLACING_VERSIONS}" ]; then
326 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
327 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
328 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
329 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
330 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
331 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
332 - fi
333 -}
334
335 diff --git a/net-misc/asterisk/asterisk-13.38.1.ebuild b/net-misc/asterisk/asterisk-13.38.1.ebuild
336 deleted file mode 100644
337 index 78d86221507..00000000000
338 --- a/net-misc/asterisk/asterisk-13.38.1.ebuild
339 +++ /dev/null
340 @@ -1,299 +0,0 @@
341 -# Copyright 1999-2021 Gentoo Authors
342 -# Distributed under the terms of the GNU General Public License v2
343 -
344 -EAPI=7
345 -
346 -inherit autotools linux-info systemd
347 -
348 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
349 -HOMEPAGE="https://www.asterisk.org/"
350 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
351 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
352 -LICENSE="GPL-2"
353 -SLOT="0"
354 -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
355 -
356 -IUSE_VOICEMAIL_STORAGE="
357 - +voicemail_storage_file
358 - voicemail_storage_odbc
359 - voicemail_storage_imap
360 -"
361 -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"
362 -IUSE_EXPAND="VOICEMAIL_STORAGE"
363 -REQUIRED_USE="gtalk? ( xmpp )
364 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
365 - voicemail_storage_odbc? ( odbc )
366 -"
367 -
368 -PATCHES=(
369 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
370 -)
371 -
372 -DEPEND="acct-user/asterisk
373 - acct-group/asterisk
374 - dev-db/sqlite:3
375 - dev-libs/popt
376 - dev-libs/jansson
377 - dev-libs/libedit
378 - dev-libs/libxml2:2
379 - dev-libs/libxslt
380 - sys-libs/ncurses:0=
381 - sys-libs/zlib
382 - alsa? ( media-libs/alsa-lib )
383 - bluetooth? ( net-wireless/bluez:= )
384 - calendar? (
385 - net-libs/neon:=
386 - dev-libs/libical:=
387 - dev-libs/iksemel
388 - )
389 - caps? ( sys-libs/libcap )
390 - cluster? ( sys-cluster/corosync )
391 - curl? ( net-misc/curl )
392 - dahdi? (
393 - net-libs/libpri
394 - net-misc/dahdi-tools
395 - )
396 - freetds? ( dev-db/freetds )
397 - gtalk? ( dev-libs/iksemel )
398 - http? ( dev-libs/gmime:2.6 )
399 - iconv? ( virtual/libiconv )
400 - ilbc? ( media-libs/libilbc )
401 - ldap? ( net-nds/openldap )
402 - lua? ( dev-lang/lua:0= )
403 - mysql? ( dev-db/mysql-connector-c:= )
404 - newt? ( dev-libs/newt )
405 - odbc? ( dev-db/unixODBC )
406 - pjproject? ( net-libs/pjproject )
407 - portaudio? ( media-libs/portaudio )
408 - postgres? ( dev-db/postgresql:* )
409 - radius? ( net-dialup/freeradius-client )
410 - snmp? ( net-analyzer/net-snmp:= )
411 - span? ( media-libs/spandsp )
412 - speex? (
413 - media-libs/libogg
414 - media-libs/speex
415 - media-libs/speexdsp
416 - )
417 - srtp? ( net-libs/libsrtp:0 )
418 - ssl? (
419 - !libressl? ( dev-libs/openssl:0= )
420 - libressl? ( dev-libs/libressl:0= )
421 - )
422 - vorbis? (
423 - media-libs/libogg
424 - media-libs/libvorbis
425 - )
426 - voicemail_storage_imap? ( virtual/imap-c-client )
427 - xmpp? ( dev-libs/iksemel )
428 -"
429 -
430 -RDEPEND="${DEPEND}
431 - net-misc/asterisk-core-sounds
432 - net-misc/asterisk-extra-sounds
433 - net-misc/asterisk-moh-opsound
434 - selinux? ( sec-policy/selinux-asterisk )
435 - syslog? ( virtual/logger )"
436 -
437 -BDEPEND="virtual/pkgconfig"
438 -
439 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
440 -
441 -pkg_setup() {
442 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
443 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
444 - have reported that this module dropped critical SIP packets in their deployments. You
445 - may want to disable it if you see such problems."
446 - check_extra_config
447 -}
448 -
449 -src_prepare() {
450 - default
451 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
452 -}
453 -
454 -src_configure() {
455 - local vmst
456 -
457 - econf \
458 - --libdir="/usr/$(get_libdir)" \
459 - --localstatedir="/var" \
460 - --with-crypto \
461 - --with-gsm=internal \
462 - --with-popt \
463 - --with-z \
464 - --with-libedit \
465 - $(use_with caps cap) \
466 - $(use_with http gmime) \
467 - $(use_with newt) \
468 - $(use_with pjproject) \
469 - $(use_with portaudio) \
470 - $(use_with ssl)
471 -
472 - _menuselect() {
473 - menuselect/menuselect "$@" || die "menuselect $* failed."
474 - }
475 -
476 - _use_select() {
477 - local state=$(usex "$1" enable disable)
478 - shift # remove use from parameters
479 -
480 - while [[ -n $1 ]]; do
481 - _menuselect --${state} "$1" menuselect.makeopts
482 - shift
483 - done
484 - }
485 -
486 - # Blank out sounds/sounds.xml file to prevent
487 - # asterisk from installing sounds files (we pull them in via
488 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
489 - >"${S}"/sounds/sounds.xml
490 -
491 - # That NATIVE_ARCH chatter really is quite bothersome
492 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
493 -
494 - # Compile menuselect binary for optional components
495 - emake NOISE_BUILD=yes menuselect.makeopts
496 -
497 - # Disable BUILD_NATIVE (bug #667498)
498 - _menuselect --disable build_native menuselect.makeopts
499 -
500 - # Broken functionality is forcibly disabled (bug #360143)
501 - _menuselect --disable chan_misdn menuselect.makeopts
502 - _menuselect --disable chan_ooh323 menuselect.makeopts
503 -
504 - # Utility set is forcibly enabled (bug #358001)
505 - _menuselect --enable smsq menuselect.makeopts
506 - _menuselect --enable streamplayer menuselect.makeopts
507 - _menuselect --enable aelparse menuselect.makeopts
508 - _menuselect --enable astman menuselect.makeopts
509 -
510 - # this is connected, otherwise it would not find
511 - # ast_pktccops_gate_alloc symbol
512 - _menuselect --enable chan_mgcp menuselect.makeopts
513 - _menuselect --enable res_pktccops menuselect.makeopts
514 -
515 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
516 - _menuselect --enable pbx_dundi menuselect.makeopts
517 - _menuselect --enable func_aes menuselect.makeopts
518 - _menuselect --enable chan_iax2 menuselect.makeopts
519 -
520 - # SQlite3 is now the main database backend, enable related features
521 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
522 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
523 -
524 - # The others are based on USE-flag settings
525 - _use_select alsa chan_alsa
526 - _use_select bluetooth chan_mobile
527 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
528 - _use_select cluster res_corosync
529 - _use_select curl func_curl res_config_curl res_curl
530 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
531 - _use_select freetds {cdr,cel}_tds
532 - _use_select gtalk chan_motif
533 - _use_select http res_http_post
534 - _use_select iconv func_iconv
535 - _use_select ilbc codec_ilbc format_ilbc
536 - _use_select ldap res_config_ldap
537 - _use_select lua pbx_lua
538 - _use_select mysql app_mysql cdr_mysql res_config_mysql
539 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
540 - _use_select oss chan_oss
541 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
542 - _use_select radius {cdr,cel}_radius
543 - _use_select snmp res_snmp
544 - _use_select span res_fax_spandsp
545 - _use_select speex {codec,func}_speex
546 - _use_select speex format_ogg_speex
547 - _use_select srtp res_srtp
548 - _use_select statsd res_statsd res_{endpoint,chan}_stats
549 - _use_select syslog cdr_syslog
550 - _use_select vorbis format_ogg_vorbis
551 - _use_select xmpp res_xmpp
552 -
553 - # Voicemail storage ...
554 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
555 - if use ${vmst}; then
556 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
557 - fi
558 - done
559 -
560 - if use debug; then
561 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
562 - _menuselect --enable $o menuselect.makeopts
563 - done
564 - fi
565 -}
566 -
567 -src_compile() {
568 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
569 -}
570 -
571 -src_install() {
572 - local d
573 -
574 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
575 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
576 -
577 - if use radius; then
578 - insinto /etc/radiusclient/
579 - doins contrib/dictionary.digium
580 - fi
581 - diropts -m 0750 -o root -g asterisk
582 - keepdir /etc/asterisk
583 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
584 - for conffile in "${ED}/etc/asterisk/"*
585 - do
586 - fowners root:root "${conffile#${ED}}"
587 - fperms 0644 "${conffile#${ED}}"
588 - done
589 -
590 - # keep directories
591 - diropts -m 0750 -o asterisk -g root
592 - keepdir /var/lib/asterisk
593 - keepdir /var/spool/asterisk
594 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
595 - diropts -m 0750 -o asterisk -g asterisk
596 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
597 -
598 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
599 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
600 -
601 - systemd_dounit "${FILESDIR}"/asterisk.service
602 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
603 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
604 -
605 - # Reset diropts else dodoc uses it for doc installations.
606 - diropts -m0755
607 -
608 - # install the upgrade documentation
609 - dodoc UPGRADE* BUGS CREDITS
610 -
611 - # install extra documentation
612 - if use doc; then
613 - dodoc doc/*.txt
614 - dodoc doc/*.pdf
615 - fi
616 -
617 - # install logrotate snippet; bug #329281
618 - #
619 - insinto /etc/logrotate.d
620 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
621 -
622 - # Asterisk installs a few folders that's empty by design,
623 - # but still required. This finds them, and marks them for
624 - # portage.
625 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
626 - keepdir "${d#${ED}}"
627 - done
628 -}
629 -
630 -pkg_postinst() {
631 - if [ -z "${REPLACING_VERSIONS}" ]; then
632 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
633 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
634 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
635 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
636 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
637 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
638 - fi
639 -}
640
641 diff --git a/net-misc/asterisk/asterisk-16.15.1-r1.ebuild b/net-misc/asterisk/asterisk-16.15.1-r1.ebuild
642 deleted file mode 100644
643 index 7259961c65f..00000000000
644 --- a/net-misc/asterisk/asterisk-16.15.1-r1.ebuild
645 +++ /dev/null
646 @@ -1,313 +0,0 @@
647 -# Copyright 1999-2020 Gentoo Authors
648 -# Distributed under the terms of the GNU General Public License v2
649 -
650 -EAPI=7
651 -
652 -LUA_COMPAT=( lua5-{1..4} )
653 -
654 -inherit autotools linux-info lua-single systemd
655 -
656 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
657 -HOMEPAGE="https://www.asterisk.org/"
658 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
659 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
660 -LICENSE="GPL-2"
661 -SLOT="0"
662 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
663 -
664 -IUSE_VOICEMAIL_STORAGE="
665 - +voicemail_storage_file
666 - voicemail_storage_odbc
667 - voicemail_storage_imap
668 -"
669 -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"
670 -IUSE_EXPAND="VOICEMAIL_STORAGE"
671 -REQUIRED_USE="gtalk? ( xmpp )
672 - lua? ( ${LUA_REQUIRED_USE} )
673 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
674 - voicemail_storage_odbc? ( odbc )
675 -"
676 -
677 -PATCHES=(
678 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
679 - "${FILESDIR}/${PN}-13.38.1-r1-autoconf-lua-version.patch"
680 - "${FILESDIR}/${PN}-13.38.1-r1-func_lock-fix-races.patch"
681 -)
682 -
683 -DEPEND="acct-user/asterisk
684 - acct-group/asterisk
685 - dev-db/sqlite:3
686 - dev-libs/popt
687 - >=dev-libs/jansson-2.11
688 - dev-libs/libedit
689 - dev-libs/libxml2:2
690 - dev-libs/libxslt
691 - sys-apps/util-linux
692 - sys-libs/ncurses:0=
693 - sys-libs/zlib
694 - alsa? ( media-libs/alsa-lib )
695 - bluetooth? ( net-wireless/bluez:= )
696 - calendar? (
697 - net-libs/neon:=
698 - dev-libs/libical:=
699 - dev-libs/iksemel
700 - )
701 - caps? ( sys-libs/libcap )
702 - cluster? ( sys-cluster/corosync )
703 - curl? ( net-misc/curl )
704 - dahdi? (
705 - net-libs/libpri
706 - net-misc/dahdi-tools
707 - )
708 - freetds? ( dev-db/freetds )
709 - gtalk? ( dev-libs/iksemel )
710 - http? ( dev-libs/gmime:2.6 )
711 - iconv? ( virtual/libiconv )
712 - ilbc? ( media-libs/libilbc )
713 - ldap? ( net-nds/openldap )
714 - lua? ( ${LUA_DEPS} )
715 - mysql? ( dev-db/mysql-connector-c:= )
716 - newt? ( dev-libs/newt )
717 - odbc? ( dev-db/unixODBC )
718 - pjproject? ( >=net-libs/pjproject-2.9 )
719 - portaudio? ( media-libs/portaudio )
720 - postgres? ( dev-db/postgresql:* )
721 - radius? ( net-dialup/freeradius-client )
722 - snmp? ( net-analyzer/net-snmp:= )
723 - span? ( media-libs/spandsp )
724 - speex? (
725 - media-libs/libogg
726 - media-libs/speex
727 - media-libs/speexdsp
728 - )
729 - srtp? ( net-libs/libsrtp:0 )
730 - ssl? (
731 - !libressl? ( dev-libs/openssl:0= )
732 - libressl? ( dev-libs/libressl:0= )
733 - )
734 - unbound? ( net-dns/unbound )
735 - vorbis? (
736 - media-libs/libogg
737 - media-libs/libvorbis
738 - )
739 - voicemail_storage_imap? ( virtual/imap-c-client )
740 - xmpp? ( dev-libs/iksemel )
741 -"
742 -
743 -RDEPEND="${DEPEND}
744 - net-misc/asterisk-core-sounds
745 - net-misc/asterisk-extra-sounds
746 - net-misc/asterisk-moh-opsound
747 - selinux? ( sec-policy/selinux-asterisk )
748 - syslog? ( virtual/logger )"
749 -
750 -BDEPEND="virtual/pkgconfig"
751 -
752 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
753 -
754 -pkg_setup() {
755 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
756 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
757 - have reported that this module dropped critical SIP packets in their deployments. You
758 - may want to disable it if you see such problems."
759 - check_extra_config
760 -
761 - use lua && lua-single_pkg_setup
762 -}
763 -
764 -src_prepare() {
765 - default
766 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
767 -}
768 -
769 -src_configure() {
770 - local vmst
771 -
772 - econf \
773 - LUA_VERSION="${ELUA#lua}" \
774 - --libdir="/usr/$(get_libdir)" \
775 - --localstatedir="/var" \
776 - --with-crypto \
777 - --with-gsm=internal \
778 - --with-popt \
779 - --with-z \
780 - --with-libedit \
781 - --without-jansson-bundled \
782 - --without-pjproject-bundled \
783 - $(use_with caps cap) \
784 - $(use_with lua lua) \
785 - $(use_with http gmime) \
786 - $(use_with newt) \
787 - $(use_with pjproject) \
788 - $(use_with portaudio) \
789 - $(use_with ssl) \
790 - $(use_with unbound)
791 -
792 - _menuselect() {
793 - menuselect/menuselect "$@" || die "menuselect $* failed."
794 - }
795 -
796 - _use_select() {
797 - local state=$(use "$1" && echo enable || echo disable)
798 - shift # remove use from parameters
799 -
800 - while [[ -n $1 ]]; do
801 - _menuselect --${state} "$1" menuselect.makeopts
802 - shift
803 - done
804 - }
805 -
806 - # Blank out sounds/sounds.xml file to prevent
807 - # asterisk from installing sounds files (we pull them in via
808 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
809 - >"${S}"/sounds/sounds.xml
810 -
811 - # That NATIVE_ARCH chatter really is quite bothersome
812 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
813 -
814 - # Compile menuselect binary for optional components
815 - emake NOISY_BUILD=yes menuselect.makeopts
816 -
817 - # Disable BUILD_NATIVE (bug #667498)
818 - _menuselect --disable build_native menuselect.makeopts
819 -
820 - # Broken functionality is forcibly disabled (bug #360143)
821 - _menuselect --disable chan_misdn menuselect.makeopts
822 - _menuselect --disable chan_ooh323 menuselect.makeopts
823 -
824 - # Utility set is forcibly enabled (bug #358001)
825 - _menuselect --enable smsq menuselect.makeopts
826 - _menuselect --enable streamplayer menuselect.makeopts
827 - _menuselect --enable aelparse menuselect.makeopts
828 - _menuselect --enable astman menuselect.makeopts
829 -
830 - # this is connected, otherwise it would not find
831 - # ast_pktccops_gate_alloc symbol
832 - _menuselect --enable chan_mgcp menuselect.makeopts
833 - _menuselect --enable res_pktccops menuselect.makeopts
834 -
835 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
836 - _menuselect --enable pbx_dundi menuselect.makeopts
837 - _menuselect --enable func_aes menuselect.makeopts
838 - _menuselect --enable chan_iax2 menuselect.makeopts
839 -
840 - # SQlite3 is now the main database backend, enable related features
841 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
842 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
843 -
844 - # The others are based on USE-flag settings
845 - _use_select alsa chan_alsa
846 - _use_select bluetooth chan_mobile
847 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
848 - _use_select cluster res_corosync
849 - _use_select curl func_curl res_config_curl res_curl
850 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
851 - _use_select freetds {cdr,cel}_tds
852 - _use_select gtalk chan_motif
853 - _use_select http res_http_post
854 - _use_select iconv func_iconv
855 - _use_select ilbc codec_ilbc format_ilbc
856 - _use_select ldap res_config_ldap
857 - _use_select lua pbx_lua
858 - _use_select mysql app_mysql cdr_mysql res_config_mysql
859 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
860 - _use_select oss chan_oss
861 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
862 - _use_select radius {cdr,cel}_radius
863 - _use_select snmp res_snmp
864 - _use_select span res_fax_spandsp
865 - _use_select speex {codec,func}_speex
866 - _use_select speex format_ogg_speex
867 - _use_select srtp res_srtp
868 - _use_select statsd res_statsd res_{endpoint,chan}_stats
869 - _use_select syslog cdr_syslog
870 - _use_select vorbis format_ogg_vorbis
871 - _use_select xmpp res_xmpp
872 -
873 - # Voicemail storage ...
874 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
875 - if use ${vmst}; then
876 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
877 - fi
878 - done
879 -
880 - if use debug; then
881 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
882 - _menuselect --enable "${o}" menuselect.makeopts
883 - done
884 - fi
885 -}
886 -
887 -src_compile() {
888 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
889 -}
890 -
891 -src_install() {
892 - local d
893 -
894 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
895 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
896 -
897 - if use radius; then
898 - insinto /etc/radiusclient/
899 - doins contrib/dictionary.digium
900 - fi
901 - diropts -m 0750 -o root -g asterisk
902 - keepdir /etc/asterisk
903 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
904 - for conffile in "${ED}/etc/asterisk/"*
905 - do
906 - fowners root:root "${conffile#${ED}}"
907 - fperms 0644 "${conffile#${ED}}"
908 - done
909 -
910 - # keep directories
911 - diropts -m 0750 -o asterisk -g root
912 - keepdir /var/lib/asterisk
913 - keepdir /var/spool/asterisk
914 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
915 - diropts -m 0750 -o asterisk -g asterisk
916 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
917 -
918 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
919 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
920 -
921 - systemd_dounit "${FILESDIR}"/asterisk.service
922 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
923 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
924 -
925 - # Reset diropts else dodoc uses it for doc installations.
926 - diropts -m0755
927 -
928 - # install the upgrade documentation
929 - dodoc UPGRADE* BUGS CREDITS
930 -
931 - # install extra documentation
932 - if use doc; then
933 - dodoc doc/*.txt
934 - dodoc doc/*.pdf
935 - fi
936 -
937 - # install logrotate snippet; bug #329281
938 - #
939 - insinto /etc/logrotate.d
940 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
941 -
942 - # Asterisk installs a few folders that's empty by design,
943 - # but still required. This finds them, and marks them for
944 - # portage.
945 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
946 - keepdir "${d#${ED}}"
947 - done
948 -}
949 -
950 -pkg_postinst() {
951 - if [ -z "${REPLACING_VERSIONS}" ]; then
952 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
953 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
954 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
955 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
956 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
957 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
958 - fi
959 -}
960
961 diff --git a/net-misc/asterisk/asterisk-16.15.1.ebuild b/net-misc/asterisk/asterisk-16.15.1.ebuild
962 deleted file mode 100644
963 index da613c5156f..00000000000
964 --- a/net-misc/asterisk/asterisk-16.15.1.ebuild
965 +++ /dev/null
966 @@ -1,304 +0,0 @@
967 -# Copyright 1999-2020 Gentoo Authors
968 -# Distributed under the terms of the GNU General Public License v2
969 -
970 -EAPI=7
971 -
972 -inherit autotools linux-info systemd
973 -
974 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
975 -HOMEPAGE="https://www.asterisk.org/"
976 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz
977 - https://downloads.uls.co.za/gentoo/asterisk/gentoo-asterisk-patchset-4.08.tar.bz2"
978 -LICENSE="GPL-2"
979 -SLOT="0"
980 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
981 -
982 -IUSE_VOICEMAIL_STORAGE="
983 - +voicemail_storage_file
984 - voicemail_storage_odbc
985 - voicemail_storage_imap
986 -"
987 -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"
988 -IUSE_EXPAND="VOICEMAIL_STORAGE"
989 -REQUIRED_USE="gtalk? ( xmpp )
990 - ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
991 - voicemail_storage_odbc? ( odbc )
992 -"
993 -
994 -PATCHES=(
995 - "${FILESDIR}/${PN}-historic-no-var-run-install.patch"
996 -)
997 -
998 -DEPEND="acct-user/asterisk
999 - acct-group/asterisk
1000 - dev-db/sqlite:3
1001 - dev-libs/popt
1002 - >=dev-libs/jansson-2.11
1003 - dev-libs/libedit
1004 - dev-libs/libxml2:2
1005 - dev-libs/libxslt
1006 - sys-apps/util-linux
1007 - sys-libs/ncurses:0=
1008 - sys-libs/zlib
1009 - alsa? ( media-libs/alsa-lib )
1010 - bluetooth? ( net-wireless/bluez:= )
1011 - calendar? (
1012 - net-libs/neon:=
1013 - dev-libs/libical:=
1014 - dev-libs/iksemel
1015 - )
1016 - caps? ( sys-libs/libcap )
1017 - cluster? ( sys-cluster/corosync )
1018 - curl? ( net-misc/curl )
1019 - dahdi? (
1020 - net-libs/libpri
1021 - net-misc/dahdi-tools
1022 - )
1023 - freetds? ( dev-db/freetds )
1024 - gtalk? ( dev-libs/iksemel )
1025 - http? ( dev-libs/gmime:2.6 )
1026 - iconv? ( virtual/libiconv )
1027 - ilbc? ( media-libs/libilbc )
1028 - ldap? ( net-nds/openldap )
1029 - lua? ( dev-lang/lua:0= )
1030 - mysql? ( dev-db/mysql-connector-c:= )
1031 - newt? ( dev-libs/newt )
1032 - odbc? ( dev-db/unixODBC )
1033 - pjproject? ( >=net-libs/pjproject-2.9 )
1034 - portaudio? ( media-libs/portaudio )
1035 - postgres? ( dev-db/postgresql:* )
1036 - radius? ( net-dialup/freeradius-client )
1037 - snmp? ( net-analyzer/net-snmp:= )
1038 - span? ( media-libs/spandsp )
1039 - speex? (
1040 - media-libs/libogg
1041 - media-libs/speex
1042 - media-libs/speexdsp
1043 - )
1044 - srtp? ( net-libs/libsrtp:0 )
1045 - ssl? (
1046 - !libressl? ( dev-libs/openssl:0= )
1047 - libressl? ( dev-libs/libressl:0= )
1048 - )
1049 - unbound? ( net-dns/unbound )
1050 - vorbis? (
1051 - media-libs/libogg
1052 - media-libs/libvorbis
1053 - )
1054 - voicemail_storage_imap? ( virtual/imap-c-client )
1055 - xmpp? ( dev-libs/iksemel )
1056 -"
1057 -
1058 -RDEPEND="${DEPEND}
1059 - net-misc/asterisk-core-sounds
1060 - net-misc/asterisk-extra-sounds
1061 - net-misc/asterisk-moh-opsound
1062 - selinux? ( sec-policy/selinux-asterisk )
1063 - syslog? ( virtual/logger )"
1064 -
1065 -BDEPEND="virtual/pkgconfig"
1066 -
1067 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
1068 -
1069 -pkg_setup() {
1070 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
1071 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
1072 - have reported that this module dropped critical SIP packets in their deployments. You
1073 - may want to disable it if you see such problems."
1074 - check_extra_config
1075 -}
1076 -
1077 -src_prepare() {
1078 - default
1079 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
1080 -}
1081 -
1082 -src_configure() {
1083 - local vmst
1084 -
1085 - econf \
1086 - --libdir="/usr/$(get_libdir)" \
1087 - --localstatedir="/var" \
1088 - --with-crypto \
1089 - --with-gsm=internal \
1090 - --with-popt \
1091 - --with-z \
1092 - --with-libedit \
1093 - --without-jansson-bundled \
1094 - --without-pjproject-bundled \
1095 - $(use_with caps cap) \
1096 - $(use_with http gmime) \
1097 - $(use_with newt) \
1098 - $(use_with pjproject) \
1099 - $(use_with portaudio) \
1100 - $(use_with ssl) \
1101 - $(use_with unbound)
1102 -
1103 - _menuselect() {
1104 - menuselect/menuselect "$@" || die "menuselect $* failed."
1105 - }
1106 -
1107 - _use_select() {
1108 - local state=$(use "$1" && echo enable || echo disable)
1109 - shift # remove use from parameters
1110 -
1111 - while [[ -n $1 ]]; do
1112 - _menuselect --${state} "$1" menuselect.makeopts
1113 - shift
1114 - done
1115 - }
1116 -
1117 - # Blank out sounds/sounds.xml file to prevent
1118 - # asterisk from installing sounds files (we pull them in via
1119 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
1120 - >"${S}"/sounds/sounds.xml
1121 -
1122 - # That NATIVE_ARCH chatter really is quite bothersome
1123 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
1124 -
1125 - # Compile menuselect binary for optional components
1126 - emake NOISY_BUILD=yes menuselect.makeopts
1127 -
1128 - # Disable BUILD_NATIVE (bug #667498)
1129 - _menuselect --disable build_native menuselect.makeopts
1130 -
1131 - # Broken functionality is forcibly disabled (bug #360143)
1132 - _menuselect --disable chan_misdn menuselect.makeopts
1133 - _menuselect --disable chan_ooh323 menuselect.makeopts
1134 -
1135 - # Utility set is forcibly enabled (bug #358001)
1136 - _menuselect --enable smsq menuselect.makeopts
1137 - _menuselect --enable streamplayer menuselect.makeopts
1138 - _menuselect --enable aelparse menuselect.makeopts
1139 - _menuselect --enable astman menuselect.makeopts
1140 -
1141 - # this is connected, otherwise it would not find
1142 - # ast_pktccops_gate_alloc symbol
1143 - _menuselect --enable chan_mgcp menuselect.makeopts
1144 - _menuselect --enable res_pktccops menuselect.makeopts
1145 -
1146 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
1147 - _menuselect --enable pbx_dundi menuselect.makeopts
1148 - _menuselect --enable func_aes menuselect.makeopts
1149 - _menuselect --enable chan_iax2 menuselect.makeopts
1150 -
1151 - # SQlite3 is now the main database backend, enable related features
1152 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
1153 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
1154 -
1155 - # The others are based on USE-flag settings
1156 - _use_select alsa chan_alsa
1157 - _use_select bluetooth chan_mobile
1158 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
1159 - _use_select cluster res_corosync
1160 - _use_select curl func_curl res_config_curl res_curl
1161 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
1162 - _use_select freetds {cdr,cel}_tds
1163 - _use_select gtalk chan_motif
1164 - _use_select http res_http_post
1165 - _use_select iconv func_iconv
1166 - _use_select ilbc codec_ilbc format_ilbc
1167 - _use_select ldap res_config_ldap
1168 - _use_select lua pbx_lua
1169 - _use_select mysql app_mysql cdr_mysql res_config_mysql
1170 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
1171 - _use_select oss chan_oss
1172 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
1173 - _use_select radius {cdr,cel}_radius
1174 - _use_select snmp res_snmp
1175 - _use_select span res_fax_spandsp
1176 - _use_select speex {codec,func}_speex
1177 - _use_select speex format_ogg_speex
1178 - _use_select srtp res_srtp
1179 - _use_select statsd res_statsd res_{endpoint,chan}_stats
1180 - _use_select syslog cdr_syslog
1181 - _use_select vorbis format_ogg_vorbis
1182 - _use_select xmpp res_xmpp
1183 -
1184 - # Voicemail storage ...
1185 - for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
1186 - if use ${vmst}; then
1187 - _menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
1188 - fi
1189 - done
1190 -
1191 - if use debug; then
1192 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
1193 - _menuselect --enable "${o}" menuselect.makeopts
1194 - done
1195 - fi
1196 -}
1197 -
1198 -src_compile() {
1199 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
1200 -}
1201 -
1202 -src_install() {
1203 - local d
1204 -
1205 - mkdir -p "${ED}/usr/$(get_libdir)/pkgconfig" || die
1206 - emake DESTDIR="${ED}" NOISY_BUILD=yes install
1207 -
1208 - if use radius; then
1209 - insinto /etc/radiusclient/
1210 - doins contrib/dictionary.digium
1211 - fi
1212 - diropts -m 0750 -o root -g asterisk
1213 - keepdir /etc/asterisk
1214 - emake NOISY_BUILD=yes DESTDIR="${ED}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
1215 - for conffile in "${ED}/etc/asterisk/"*
1216 - do
1217 - fowners root:root "${conffile#${ED}}"
1218 - fperms 0644 "${conffile#${ED}}"
1219 - done
1220 -
1221 - # keep directories
1222 - diropts -m 0750 -o asterisk -g root
1223 - keepdir /var/lib/asterisk
1224 - keepdir /var/spool/asterisk
1225 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
1226 - diropts -m 0750 -o asterisk -g asterisk
1227 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
1228 -
1229 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
1230 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
1231 -
1232 - systemd_dounit "${FILESDIR}"/asterisk.service
1233 - systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
1234 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
1235 -
1236 - # Reset diropts else dodoc uses it for doc installations.
1237 - diropts -m0755
1238 -
1239 - # install the upgrade documentation
1240 - dodoc UPGRADE* BUGS CREDITS
1241 -
1242 - # install extra documentation
1243 - if use doc; then
1244 - dodoc doc/*.txt
1245 - dodoc doc/*.pdf
1246 - fi
1247 -
1248 - # install logrotate snippet; bug #329281
1249 - #
1250 - insinto /etc/logrotate.d
1251 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
1252 -
1253 - # Asterisk installs a few folders that's empty by design,
1254 - # but still required. This finds them, and marks them for
1255 - # portage.
1256 - for d in $(find "${ED}"/var -type d -empty || die "Find failed."); do
1257 - keepdir "${d#${ED}}"
1258 - done
1259 -}
1260 -
1261 -pkg_postinst() {
1262 - if [ -z "${REPLACING_VERSIONS}" ]; then
1263 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
1264 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1265 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
1266 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
1267 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
1268 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
1269 - fi
1270 -}
1271
1272 diff --git a/net-misc/asterisk/files/asterisk.tmpfiles.conf b/net-misc/asterisk/files/asterisk.tmpfiles.conf
1273 deleted file mode 100644
1274 index 637302a2737..00000000000
1275 --- a/net-misc/asterisk/files/asterisk.tmpfiles.conf
1276 +++ /dev/null
1277 @@ -1,2 +0,0 @@
1278 -d /var/run/asterisk 0750 asterisk asterisk
1279 -d /var/spool/asterisk 0750 asterisk asterisk