1 |
commit: ef706b4cd4ec88b3e9730cc5f6de48f8f086e537 |
2 |
Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za> |
3 |
AuthorDate: Fri Feb 24 06:22:05 2023 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 16:13:01 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef706b4c |
7 |
|
8 |
net-misc/asterisk: add 16.30.0 |
9 |
|
10 |
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
net-misc/asterisk/Manifest | 1 + |
14 |
net-misc/asterisk/asterisk-16.30.0.ebuild | 378 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 379 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest |
18 |
index d989a6a83d01..0471df81c552 100644 |
19 |
--- a/net-misc/asterisk/Manifest |
20 |
+++ b/net-misc/asterisk/Manifest |
21 |
@@ -2,6 +2,7 @@ DIST asterisk-16.26.1.tar.gz 28001023 BLAKE2B d426566827bd3466720f94eed04a654eda |
22 |
DIST asterisk-16.27.0.tar.gz 28014649 BLAKE2B 785650674bb2762ab898118cf49aa2cddde60f7e42df0a882751e36053f3cfb7de94475acf6bd484a1998c04b1edd1dca2ee4e9895bf9e411d9b09f91f7a4743 SHA512 ae016a79f8c38c5ae0069d0fa7434a564c8a72efa69135ce17dc7febf220a189ef47aba064ab39a2f49be0f7d5138b36e29f2d004ba51aa3724708efce645d1e |
23 |
DIST asterisk-16.29.0.tar.gz 28105953 BLAKE2B a17dbbb1f717ba6d03da71f761f063a5b95e71f50378cf6bc3abdbaf1bcbac462be1b051c1fe1812a6f2c9082c9928a85ea60346dae742149f230ab8ec6c997f SHA512 7a83778c406dbb7d1e0eebc4eb9f51c841fc5fc987445014e685ade9e143bb81e2fb4870a6ddaf3e4721e75bbd5d6468c9d896616bb1411bad84ac6ca510d69b |
24 |
DIST asterisk-16.29.1.tar.gz 28104161 BLAKE2B 030d0c2ce296db9c38ebd45b69b8a57f368e97f6121aca77c5b1dd4eeaa9f274f4d0e404bbae1317c1c02497e155ca9fef06b82d003987621d2c46984e5f5d2c SHA512 5ae5c22b48ea0ff83a655d64a0122923e736e84d612b7936d157614b01ed1f12da76a8adb10c045023a9464dce26563c8458fcea80af3f26176ed1fcbe4e5376 |
25 |
+DIST asterisk-16.30.0.tar.gz 28131110 BLAKE2B f230155a6347e891b531e54fe2821f1d477ed83699dd4a90c67b3307965430dbcdd04bd0ced49803776d349e29846492a6ef96e19ad3665dc610623be8de25cc SHA512 59cfbc1463dbad6ae7c6307d96b1a220fb02b3e398f96708654e58db788d57f2ca7aac8d4a290ed04f333b5c82c514ec9b95681125e3bdddc237e6c778fd2aec |
26 |
DIST asterisk-18.13.0.tar.gz 28127627 BLAKE2B 24e030d5226fb3cad8e2fedce951fab047afbdf5556821bc246acc3731f25398d47eac7b7e0a97f019d9e97cc6f8990967019db62845f21f3b3459a2c3fced02 SHA512 085dfcf15f99d7d96b49a720156678c4de5a88b55375257a9a1234f9dd83f21eed1685d4177dae5978272608e690582367c6c34fdef91bbad54299594d0ce9df |
27 |
DIST asterisk-18.15.0.tar.gz 28219845 BLAKE2B 712e14bcc2f24b645c39fdfbae19771134e065a9f83187e6578aeb70686a19e66faef4fb700089379274b7fbe9f99cdeec92761fa734926b3bb5db2f02cad8ff SHA512 acf202246e149ddc44ffb688a834455420d6ab53989560568cdccf0da121821ee946c45085c964b52632e24109741908d3f4c00ca00d0b4a9402c128becd9e28 |
28 |
DIST asterisk-18.15.1.tar.gz 28216621 BLAKE2B f354a49111b22fe37caf72ba552d8ecc3dec17605771d153d05b01d7e3017c6a50087309c37078d32b6dc375bbb14dfee89356eb46355f47374a08d5427179a1 SHA512 c8bee50023b137d95b02ce770c9983fc3d8cfc10f7d714ab658fb118813ccf29d97b0ada64bfd2795ce3a0f9ecfe82bd85ab3abefe9c8cc83454cd50ff8e5cf5 |
29 |
|
30 |
diff --git a/net-misc/asterisk/asterisk-16.30.0.ebuild b/net-misc/asterisk/asterisk-16.30.0.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..a984cb830e26 |
33 |
--- /dev/null |
34 |
+++ b/net-misc/asterisk/asterisk-16.30.0.ebuild |
35 |
@@ -0,0 +1,378 @@ |
36 |
+# Copyright 1999-2023 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+LUA_COMPAT=( lua5-{1..4} ) |
42 |
+ |
43 |
+inherit autotools linux-info lua-single systemd toolchain-funcs tmpfiles |
44 |
+ |
45 |
+DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
46 |
+HOMEPAGE="https://www.asterisk.org/" |
47 |
+SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz" |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0/${PV%%.*}" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
51 |
+ |
52 |
+IUSE_VOICEMAIL_STORAGE=( |
53 |
+ +voicemail_storage_file |
54 |
+ voicemail_storage_odbc |
55 |
+ voicemail_storage_imap |
56 |
+) |
57 |
+IUSE="${IUSE_VOICEMAIL_STORAGE[*]} alsa blocks bluetooth calendar +caps cluster codec2 curl dahdi debug deprecated doc freetds gtalk http iconv ilbc ldap lua mysql newt odbc oss pjproject portaudio postgres radius selinux snmp span speex srtp +ssl static statsd syslog systemd unbound vorbis xmpp" |
58 |
+IUSE_EXPAND="VOICEMAIL_STORAGE" |
59 |
+REQUIRED_USE="gtalk? ( xmpp ) |
60 |
+ lua? ( ${LUA_REQUIRED_USE} ) |
61 |
+ ^^ ( ${IUSE_VOICEMAIL_STORAGE[*]//+/} ) |
62 |
+ voicemail_storage_odbc? ( odbc ) |
63 |
+" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}/asterisk-16.16.2-no-var-run-install.patch" |
67 |
+ "${FILESDIR}/asterisk-16.29.1_18.15.1_20.0.1-noexec_stack.patch" |
68 |
+) |
69 |
+ |
70 |
+DEPEND="acct-user/asterisk |
71 |
+ acct-group/asterisk |
72 |
+ dev-db/sqlite:3 |
73 |
+ dev-libs/popt |
74 |
+ >=dev-libs/jansson-2.11:= |
75 |
+ dev-libs/libedit |
76 |
+ dev-libs/libxml2:2 |
77 |
+ dev-libs/libxslt |
78 |
+ sys-apps/util-linux |
79 |
+ sys-libs/zlib |
80 |
+ virtual/libcrypt:= |
81 |
+ alsa? ( media-libs/alsa-lib ) |
82 |
+ bluetooth? ( net-wireless/bluez:= ) |
83 |
+ calendar? ( |
84 |
+ net-libs/neon:= |
85 |
+ dev-libs/libical:= |
86 |
+ dev-libs/iksemel |
87 |
+ ) |
88 |
+ caps? ( sys-libs/libcap ) |
89 |
+ blocks? ( sys-libs/blocksruntime ) |
90 |
+ cluster? ( sys-cluster/corosync ) |
91 |
+ codec2? ( media-libs/codec2:= ) |
92 |
+ curl? ( net-misc/curl ) |
93 |
+ dahdi? ( |
94 |
+ net-libs/libpri |
95 |
+ net-misc/dahdi-tools |
96 |
+ ) |
97 |
+ freetds? ( dev-db/freetds ) |
98 |
+ gtalk? ( dev-libs/iksemel ) |
99 |
+ http? ( dev-libs/gmime:2.6 ) |
100 |
+ iconv? ( virtual/libiconv ) |
101 |
+ ilbc? ( media-libs/libilbc ) |
102 |
+ ldap? ( net-nds/openldap:= ) |
103 |
+ lua? ( ${LUA_DEPS} ) |
104 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
105 |
+ newt? ( dev-libs/newt ) |
106 |
+ odbc? ( dev-db/unixODBC ) |
107 |
+ pjproject? ( >=net-libs/pjproject-2.9:= ) |
108 |
+ portaudio? ( media-libs/portaudio ) |
109 |
+ postgres? ( dev-db/postgresql:* ) |
110 |
+ radius? ( net-dialup/freeradius-client ) |
111 |
+ snmp? ( net-analyzer/net-snmp:= ) |
112 |
+ span? ( media-libs/spandsp ) |
113 |
+ speex? ( |
114 |
+ media-libs/libogg |
115 |
+ media-libs/speex |
116 |
+ media-libs/speexdsp |
117 |
+ ) |
118 |
+ srtp? ( net-libs/libsrtp:0 ) |
119 |
+ ssl? ( |
120 |
+ dev-libs/openssl:0= |
121 |
+ ) |
122 |
+ systemd? ( sys-apps/systemd ) |
123 |
+ !systemd? ( !sys-apps/systemd ) |
124 |
+ unbound? ( net-dns/unbound ) |
125 |
+ vorbis? ( |
126 |
+ media-libs/libogg |
127 |
+ media-libs/libvorbis |
128 |
+ ) |
129 |
+ voicemail_storage_imap? ( net-libs/c-client[ssl=] ) |
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="dev-libs/libxml2:2 |
141 |
+ virtual/pkgconfig" |
142 |
+ |
143 |
+QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+" |
144 |
+ |
145 |
+_make_args=( |
146 |
+ "NOISY_BUILD=yes" |
147 |
+ "ASTDBDIR=\$(ASTDATADIR)/astdb" |
148 |
+ "ASTVARRUNDIR=/run/asterisk" |
149 |
+ "ASTCACHEDIR=/var/cache/asterisk" |
150 |
+ "OPTIMIZE=" |
151 |
+ "DEBUG=" |
152 |
+ "DESTDIR=${D}" |
153 |
+ "CONFIG_SRC=configs/samples" |
154 |
+ "CONFIG_EXTEN=.sample" |
155 |
+) |
156 |
+ |
157 |
+pkg_pretend() { |
158 |
+ CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
159 |
+ local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
160 |
+ have reported that this module dropped critical SIP packets in their deployments. You |
161 |
+ may want to disable it if you see such problems." |
162 |
+ check_extra_config |
163 |
+ |
164 |
+ [[ "${MERGE_TYPE}" == binary ]] && return |
165 |
+ |
166 |
+ if tc-is-clang; then |
167 |
+ use blocks || die "CC=clang requires USE=blocks" |
168 |
+ else |
169 |
+ use blocks && die "USE=blocks can only be used with CC=clang" |
170 |
+ fi |
171 |
+} |
172 |
+ |
173 |
+pkg_setup() { |
174 |
+ use lua && lua-single_pkg_setup |
175 |
+} |
176 |
+ |
177 |
+src_prepare() { |
178 |
+ default |
179 |
+ AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" \ |
180 |
+ AC_CONFIG_SUBDIRS=menuselect eautoreconf |
181 |
+} |
182 |
+ |
183 |
+src_configure() { |
184 |
+ local vmst |
185 |
+ local copt cstate |
186 |
+ |
187 |
+ econf \ |
188 |
+ SED=sed \ |
189 |
+ LUA_VERSION="${ELUA#lua}" \ |
190 |
+ --libdir="/usr/$(get_libdir)" \ |
191 |
+ --localstatedir="/var" \ |
192 |
+ --with-crypto \ |
193 |
+ --with-gsm=internal \ |
194 |
+ --with-popt \ |
195 |
+ --with-z \ |
196 |
+ --with-libedit \ |
197 |
+ --without-jansson-bundled \ |
198 |
+ --without-pjproject-bundled \ |
199 |
+ $(use_with caps cap) \ |
200 |
+ $(use_with codec2) \ |
201 |
+ $(use_with lua lua) \ |
202 |
+ $(use_with http gmime) \ |
203 |
+ $(use_with newt) \ |
204 |
+ $(use_with pjproject) \ |
205 |
+ $(use_with portaudio) \ |
206 |
+ $(use_with ssl) \ |
207 |
+ $(use_with unbound) |
208 |
+ |
209 |
+ _menuselect() { |
210 |
+ menuselect/menuselect "$@" || die "menuselect $* failed." |
211 |
+ } |
212 |
+ |
213 |
+ _use_select() { |
214 |
+ local state=$(use "$1" && echo enable || echo disable) |
215 |
+ shift # remove use from parameters |
216 |
+ |
217 |
+ while [[ -n $1 ]]; do |
218 |
+ _menuselect --${state} "$1" menuselect.makeopts |
219 |
+ shift |
220 |
+ done |
221 |
+ } |
222 |
+ |
223 |
+ # Blank out sounds/sounds.xml file to prevent |
224 |
+ # asterisk from installing sounds files (we pull them in via |
225 |
+ # asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
226 |
+ >"${S}"/sounds/sounds.xml |
227 |
+ |
228 |
+ # That NATIVE_ARCH chatter really is quite bothersome |
229 |
+ sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
230 |
+ |
231 |
+ # Compile menuselect binary for optional components |
232 |
+ emake "${_make_args[@]}" menuselect.makeopts |
233 |
+ |
234 |
+ # Disable astdb2* tools. We've been on sqlite long enough |
235 |
+ # that this should really no longer be a problem (bug #https://bugs.gentoo.org/872194) |
236 |
+ _menuselect --disable astdb2sqlite3 menuselect.makeopts |
237 |
+ _menuselect --disable astdb2bdb menuselect.makeopts |
238 |
+ |
239 |
+ # Disable BUILD_NATIVE (bug #667498) |
240 |
+ _menuselect --disable build_native menuselect.makeopts |
241 |
+ |
242 |
+ # Broken functionality is forcibly disabled (bug #360143) |
243 |
+ _menuselect --disable chan_misdn menuselect.makeopts |
244 |
+ _menuselect --disable chan_ooh323 menuselect.makeopts |
245 |
+ |
246 |
+ # Utility set is forcibly enabled (bug #358001) |
247 |
+ _menuselect --enable smsq menuselect.makeopts |
248 |
+ _menuselect --enable streamplayer menuselect.makeopts |
249 |
+ _menuselect --enable aelparse menuselect.makeopts |
250 |
+ _menuselect --enable astman menuselect.makeopts |
251 |
+ |
252 |
+ # this is connected, otherwise it would not find |
253 |
+ # ast_pktccops_gate_alloc symbol |
254 |
+ _menuselect --enable chan_mgcp menuselect.makeopts |
255 |
+ _menuselect --enable res_pktccops menuselect.makeopts |
256 |
+ |
257 |
+ # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
258 |
+ _menuselect --enable pbx_dundi menuselect.makeopts |
259 |
+ _menuselect --enable func_aes menuselect.makeopts |
260 |
+ _menuselect --enable chan_iax2 menuselect.makeopts |
261 |
+ |
262 |
+ # SQlite3 is now the main database backend, enable related features |
263 |
+ _menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
264 |
+ _menuselect --enable cel_sqlite3_custom menuselect.makeopts |
265 |
+ |
266 |
+ # Disable conversion tools (which fails to compile in some cases). |
267 |
+ _menuselect --disable astdb2bdb menuselect.makeopts |
268 |
+ |
269 |
+ # The others are based on USE-flag settings |
270 |
+ _use_select alsa chan_alsa |
271 |
+ _use_select bluetooth chan_mobile |
272 |
+ _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
273 |
+ _use_select cluster res_corosync |
274 |
+ _use_select codec2 codec_codec2 |
275 |
+ _use_select curl func_curl res_config_curl res_curl |
276 |
+ _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi |
277 |
+ _use_select deprecated app_macro |
278 |
+ _use_select freetds {cdr,cel}_tds |
279 |
+ _use_select gtalk chan_motif |
280 |
+ _use_select http res_http_post |
281 |
+ _use_select iconv func_iconv |
282 |
+ _use_select ilbc codec_ilbc format_ilbc |
283 |
+ _use_select ldap res_config_ldap |
284 |
+ _use_select lua pbx_lua |
285 |
+ _use_select mysql app_mysql cdr_mysql res_config_mysql |
286 |
+ _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
287 |
+ _use_select oss chan_oss |
288 |
+ _use_select postgres {cdr,cel}_pgsql res_config_pgsql |
289 |
+ _use_select radius {cdr,cel}_radius |
290 |
+ _use_select snmp res_snmp |
291 |
+ _use_select span res_fax_spandsp |
292 |
+ _use_select speex {codec,func}_speex |
293 |
+ _use_select speex format_ogg_speex |
294 |
+ _use_select srtp res_srtp |
295 |
+ _use_select statsd res_statsd res_{endpoint,chan}_stats |
296 |
+ _use_select syslog cdr_syslog |
297 |
+ _use_select vorbis format_ogg_vorbis |
298 |
+ _use_select xmpp res_xmpp |
299 |
+ |
300 |
+ # Voicemail storage ... |
301 |
+ for vmst in "${IUSE_VOICEMAIL_STORAGE[@]}"; do |
302 |
+ if use "${vmst#+}"; then |
303 |
+ _menuselect --enable "$(echo "${vmst##*_}" | tr '[:lower:]' '[:upper:]')_STORAGE" menuselect.makeopts |
304 |
+ fi |
305 |
+ done |
306 |
+ |
307 |
+ if use debug; then |
308 |
+ for o in DONT_OPTIMIZE DEBUG_FD_LEAKS MALLOC_DEBUG BETTER_BACKTRACES; do |
309 |
+ _menuselect --enable "${o}" menuselect.makeopts |
310 |
+ done |
311 |
+ fi |
312 |
+ |
313 |
+ if [[ -n "${GENTOO_ASTERISK_CUSTOM_MENUSELECT:+yes}" ]]; then |
314 |
+ for copt in ${GENTOO_ASTERISK_CUSTOM_MENUSELECT}; do |
315 |
+ cstate=--enable |
316 |
+ [[ "${copt}" == -* ]] && cstate=--disable |
317 |
+ ebegin "Custom option ${copt#[-+]} ${cstate:2}d" |
318 |
+ _menuselect ${cstate} "${copt#[-+]}" |
319 |
+ eend $? |
320 |
+ done |
321 |
+ fi |
322 |
+} |
323 |
+ |
324 |
+src_compile() { |
325 |
+ emake "${_make_args[@]}" |
326 |
+} |
327 |
+ |
328 |
+src_install() { |
329 |
+ local d |
330 |
+ |
331 |
+ dodir "/usr/$(get_libdir)/pkgconfig" |
332 |
+ |
333 |
+ diropts -m 0750 -o root -g asterisk |
334 |
+ dodir /etc/asterisk |
335 |
+ |
336 |
+ emake "${_make_args[@]}" install install-configs |
337 |
+ |
338 |
+ fowners asterisk: /var/lib/asterisk/astdb |
339 |
+ |
340 |
+ if use radius; then |
341 |
+ insinto /etc/radiusclient/ |
342 |
+ doins contrib/dictionary.digium |
343 |
+ fi |
344 |
+ |
345 |
+ # keep directories |
346 |
+ diropts -m 0750 -o asterisk -g root |
347 |
+ keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording,outgoing} |
348 |
+ diropts -m 0750 -o asterisk -g asterisk |
349 |
+ keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
350 |
+ |
351 |
+ newsbin "${FILESDIR}/asterisk_wrapper-16.26.1-18.12.1" asterisk_wrapper |
352 |
+ newinitd "${FILESDIR}"/initd-16.26.1-18.12.1 asterisk |
353 |
+ newconfd "${FILESDIR}"/confd-16.26.1-18.12.1 asterisk |
354 |
+ |
355 |
+ systemd_dounit "${FILESDIR}"/asterisk.service |
356 |
+ newtmpfiles "${FILESDIR}"/asterisk.tmpfiles-16.22.0-18.8.0.conf asterisk.conf |
357 |
+ systemd_install_serviced "${FILESDIR}"/asterisk.service.conf |
358 |
+ |
359 |
+ # Reset diropts else dodoc uses it for doc installations. |
360 |
+ diropts -m0755 |
361 |
+ |
362 |
+ # install the upgrade documentation |
363 |
+ dodoc UPGRADE* BUGS CREDITS |
364 |
+ |
365 |
+ # install extra documentation |
366 |
+ use doc && dodoc doc/*.{txt,pdf} |
367 |
+ |
368 |
+ # install logrotate snippet; bug #329281 |
369 |
+ # |
370 |
+ insinto /etc/logrotate.d |
371 |
+ newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk |
372 |
+ |
373 |
+ # Asterisk installs a few folders that's empty by design, |
374 |
+ # but still required. This finds them, and marks them for |
375 |
+ # portage. |
376 |
+ while read d <&3; do |
377 |
+ keepdir "${d#${ED}}" |
378 |
+ done 3< <(find "${ED}"/var -type d -empty || die "Find failed.") |
379 |
+} |
380 |
+ |
381 |
+pkg_postinst() { |
382 |
+ tmpfiles_process asterisk.conf |
383 |
+ |
384 |
+ if [ -z "${REPLACING_VERSIONS}" ]; then |
385 |
+ elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/" |
386 |
+ elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.libera.chat" |
387 |
+ elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then |
388 |
+ elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:" |
389 |
+ elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)" |
390 |
+ elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.libera.chat" |
391 |
+ fi |
392 |
+ |
393 |
+ if use deprecated; then |
394 |
+ ewarn "You really aught to port whatever code you have that depends on this since these are going to go away." |
395 |
+ ewarn "Refer: https://wiki.asterisk.org/wiki/display/AST/Module+Deprecation" |
396 |
+ fi |
397 |
+ |
398 |
+ if [[ -n "${GENTOO_ASTERISK_CUSTOM_MENUSELECT:+yes}" ]]; then |
399 |
+ ewarn "You are using GENTOO_ASTERISK_CUSTOM_MENUSELECT, this should only be used" |
400 |
+ ewarn "for debugging, for anything else, please file a bug on https://bugs.gentoo.org" |
401 |
+ fi |
402 |
+ |
403 |
+ if [[ -f /var/lib/asterisk/astdb.sqlite3 ]]; then |
404 |
+ ewarn "Default astdb location has changed from /var/lib/asterisk to /var/lib/asterisk/astdb" |
405 |
+ ewarn "You still have a /var/lib/asterisk/astdb.sqlite file. You need to either set" |
406 |
+ ewarn "astdbdir in /etc/asterisk/asterisk.conf to /var/lib/asterisk or follow these" |
407 |
+ ewarn "steps to migrate:" |
408 |
+ ewarn "1. /etc/init.d/asterisk stop" |
409 |
+ ewarn "2. mv /var/lib/asterisk/astdb.sqlite /var/lib/asterisk/astdb/" |
410 |
+ ewarn "3. /etc/init.d/asterisk start" |
411 |
+ ewarn "This update was done partly for security reasons so that /var/lib/asterisk can be root owned." |
412 |
+ fi |
413 |
+} |