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