1 |
commit: a99a94a824de031c5439f57c3c1ae84e7b26b2f9 |
2 |
Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 18 08:08:30 2018 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 18 08:08:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a99a94a8 |
7 |
|
8 |
net-misc/asterisk: Remove vulnerable and old ebuilds |
9 |
|
10 |
Security stabilisation is complete, remove vulnerable 13 branch ebuilds. |
11 |
Also remove one old 11 branch ebuild. |
12 |
|
13 |
Signed-Off-By: Tony Vroon <chainsaw <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
15 |
|
16 |
net-misc/asterisk/Manifest | 2 - |
17 |
net-misc/asterisk/asterisk-11.25.1.ebuild | 324 -------------------------- |
18 |
net-misc/asterisk/asterisk-13.19.0-r1.ebuild | 327 --------------------------- |
19 |
3 files changed, 653 deletions(-) |
20 |
|
21 |
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest |
22 |
index 03e52a87fd2..01ba4b2e0a9 100644 |
23 |
--- a/net-misc/asterisk/Manifest |
24 |
+++ b/net-misc/asterisk/Manifest |
25 |
@@ -1,6 +1,4 @@ |
26 |
-DIST asterisk-11.25.1.tar.gz 35125897 BLAKE2B 42f79202c3e69dc0ff1ddad909c87bc0a0dd3c74bc674fbbcf339e00fedf829f7dd1ad5922fae82d26abc37cd62a44061a917861a2ee9b2fa4e26bec748b0aae SHA512 37144b7296f929bdb707853690a12d4c1403741221c943becc88c18fe20587ba2381425574e97647c10efa9f98200336ddae7e3433740e5a509a837ed28ca02c |
27 |
DIST asterisk-11.25.3.tar.gz 35134682 BLAKE2B 9da24d5d6a674ab660edb103e5fc56ddfbcc58cd86166cc08cceb0598a63b51eae36133565e09a30ad11ff6623ba8945437dfb561d2916f68341d398540dabce SHA512 9c0521d55e5b69663ea40066d52e397ba6c165a4b20cd0a1e5e375b9c0e5a6e4f37908e50b0b580e288dec9be252af9a8bce7bceb03ba029f902fb757e6311ed |
28 |
-DIST asterisk-13.19.0.tar.gz 33027887 BLAKE2B f799f51dc4b45d6db2261abfae33f41416616650702ff0cf6c253a80cf2f554f180df9e90bd107ac6a29eeeeef16e3bfadba087f6485fa93978899590b417443 SHA512 5404080a42e2d6d76b8fa8629c9570ae55c943676c51901a34552dc69c35f82001a1738e2da3adedf1de254bc8d1821ea7708f844685462ecdd1fd4e979e0e7f |
29 |
DIST asterisk-13.23.1.tar.gz 33064056 BLAKE2B 7f531766df5f2db29b562e7c7d4e265d5cf610f192188691279c0294195b835bb62beef19d7e9554862e6b44764064b21d50a3e307bbf85dd12b67a2df8be459 SHA512 227bfc80b2e6382019d608296c4e1c8e992ba867636fa2c8ee578d0aa406b8828bf7962b24035d9b581c433afd18be7cbe98eb954112661b9759b6296ee686dd |
30 |
DIST gentoo-asterisk-patchset-3.17.tar.bz2 5074 BLAKE2B 3c945e77b54b2449253acb9fcea8d289a7a3184729190622c14aff5557d36c93556efa83320fe4e7ae84021960c09f35ae9f997e8015706eef933aae2948309e SHA512 37f86f3c699b2643afd8080391e817a282571694bb56e00efd0734918dbc33d6c12a2463dbc24667597420863b4f506870140fbb8ef3f1700124ef790ae7252d |
31 |
DIST gentoo-asterisk-patchset-4.07.tar.bz2 2471 BLAKE2B d9026e7e8c12431496c24f204d117ed715741623195af10c838ec3ac5ce6a26fbb2d76d4c45c538881b532084e2ce74d2de83a27a0abaa5f65791be91416ef6d SHA512 73a9f92e6a737687c311941100c45bbc573f54fa79d0284318996c0d70274a4d2218693406d71b371496d27123d4d99bbc159974388e6547a682c06084d3b4c5 |
32 |
|
33 |
diff --git a/net-misc/asterisk/asterisk-11.25.1.ebuild b/net-misc/asterisk/asterisk-11.25.1.ebuild |
34 |
deleted file mode 100644 |
35 |
index 75bca552928..00000000000 |
36 |
--- a/net-misc/asterisk/asterisk-11.25.1.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,324 +0,0 @@ |
39 |
-# Copyright 1999-2017 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=6 |
43 |
-inherit autotools eutils linux-info multilib user systemd |
44 |
- |
45 |
-MY_P="${PN}-${PV/_/-}" |
46 |
- |
47 |
-DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
48 |
-HOMEPAGE="http://www.asterisk.org/" |
49 |
-SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
50 |
- mirror://gentoo/gentoo-asterisk-patchset-3.17.tar.bz2" |
51 |
-LICENSE="GPL-2" |
52 |
-SLOT="0" |
53 |
-KEYWORDS="amd64 x86" |
54 |
- |
55 |
-IUSE_VOICEMAIL_STORAGE=" |
56 |
- +voicemail_storage_file |
57 |
- voicemail_storage_odbc |
58 |
- voicemail_storage_imap |
59 |
-" |
60 |
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
61 |
-IUSE_EXPAND="VOICEMAIL_STORAGE" |
62 |
-REQUIRED_USE="gtalk? ( xmpp ) |
63 |
- ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
64 |
- voicemail_storage_odbc? ( odbc ) |
65 |
-" |
66 |
- |
67 |
-EPATCH_SUFFIX="patch" |
68 |
-PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
69 |
- |
70 |
-CDEPEND="dev-db/sqlite:3 |
71 |
- dev-libs/popt |
72 |
- dev-libs/libxml2 |
73 |
- !libressl? ( dev-libs/openssl:0 ) |
74 |
- libressl? ( dev-libs/libressl ) |
75 |
- sys-libs/ncurses:* |
76 |
- sys-libs/zlib |
77 |
- alsa? ( media-libs/alsa-lib ) |
78 |
- bluetooth? ( net-wireless/bluez ) |
79 |
- calendar? ( net-libs/neon |
80 |
- dev-libs/libical |
81 |
- dev-libs/iksemel ) |
82 |
- caps? ( sys-libs/libcap ) |
83 |
- cluster? ( sys-cluster/corosync ) |
84 |
- curl? ( net-misc/curl ) |
85 |
- dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
86 |
- net-misc/dahdi-tools ) |
87 |
- freetds? ( dev-db/freetds ) |
88 |
- gtalk? ( dev-libs/iksemel ) |
89 |
- http? ( dev-libs/gmime:2.6 ) |
90 |
- iconv? ( virtual/libiconv ) |
91 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
92 |
- xmpp? ( dev-libs/iksemel ) |
93 |
- ldap? ( net-nds/openldap ) |
94 |
- libedit? ( dev-libs/libedit ) |
95 |
- lua? ( dev-lang/lua:* ) |
96 |
- mysql? ( virtual/mysql ) |
97 |
- newt? ( dev-libs/newt ) |
98 |
- odbc? ( dev-db/unixODBC ) |
99 |
- osplookup? ( net-libs/osptoolkit ) |
100 |
- portaudio? ( media-libs/portaudio ) |
101 |
- postgres? ( dev-db/postgresql:* ) |
102 |
- radius? ( net-dialup/freeradius-client ) |
103 |
- snmp? ( net-analyzer/net-snmp ) |
104 |
- span? ( media-libs/spandsp ) |
105 |
- speex? ( media-libs/speex ) |
106 |
- srtp? ( net-libs/libsrtp:0 ) |
107 |
- vorbis? ( media-libs/libvorbis )" |
108 |
- |
109 |
-DEPEND="${CDEPEND} |
110 |
- !net-libs/openh323 |
111 |
- !net-libs/pjsip |
112 |
- voicemail_storage_imap? ( virtual/imap-c-client ) |
113 |
- virtual/pkgconfig |
114 |
-" |
115 |
- |
116 |
-RDEPEND="${CDEPEND} |
117 |
- selinux? ( sec-policy/selinux-asterisk ) |
118 |
- syslog? ( virtual/logger )" |
119 |
- |
120 |
-PDEPEND="net-misc/asterisk-core-sounds |
121 |
- net-misc/asterisk-extra-sounds |
122 |
- net-misc/asterisk-moh-opsound" |
123 |
- |
124 |
-S="${WORKDIR}/${MY_P}" |
125 |
- |
126 |
-pkg_setup() { |
127 |
- CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
128 |
- local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
129 |
- have reported that this module dropped critical SIP packets in their deployments. You |
130 |
- may want to disable it if you see such problems." |
131 |
- check_extra_config |
132 |
- |
133 |
- enewgroup asterisk |
134 |
- enewgroup dialout 20 |
135 |
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
136 |
-} |
137 |
- |
138 |
-src_prepare() { |
139 |
- default |
140 |
- AT_M4DIR=autoconf eautoreconf |
141 |
-} |
142 |
- |
143 |
-src_configure() { |
144 |
- local vmst |
145 |
- |
146 |
- econf \ |
147 |
- --libdir="/usr/$(get_libdir)" \ |
148 |
- --localstatedir="/var" \ |
149 |
- --with-crypto \ |
150 |
- --with-gsm=internal \ |
151 |
- --with-popt \ |
152 |
- --with-ssl \ |
153 |
- --with-z \ |
154 |
- --without-pwlib \ |
155 |
- $(use_with caps cap) \ |
156 |
- $(use_with http gmime) \ |
157 |
- $(use_with newt) \ |
158 |
- $(use_with portaudio) |
159 |
- |
160 |
- # Blank out sounds/sounds.xml file to prevent |
161 |
- # asterisk from installing sounds files (we pull them in via |
162 |
- # asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
163 |
- >"${S}"/sounds/sounds.xml |
164 |
- |
165 |
- # That NATIVE_ARCH chatter really is quite bothersome |
166 |
- sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
167 |
- |
168 |
- # Compile menuselect binary for optional components |
169 |
- emake menuselect.makeopts |
170 |
- |
171 |
- # Broken functionality is forcibly disabled (bug #360143) |
172 |
- menuselect/menuselect --disable chan_misdn menuselect.makeopts |
173 |
- menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
174 |
- |
175 |
- # Utility set is forcibly enabled (bug #358001) |
176 |
- menuselect/menuselect --enable smsq menuselect.makeopts |
177 |
- menuselect/menuselect --enable streamplayer menuselect.makeopts |
178 |
- menuselect/menuselect --enable aelparse menuselect.makeopts |
179 |
- menuselect/menuselect --enable astman menuselect.makeopts |
180 |
- |
181 |
- # this is connected, otherwise it would not find |
182 |
- # ast_pktccops_gate_alloc symbol |
183 |
- menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
184 |
- menuselect/menuselect --enable res_pktccops menuselect.makeopts |
185 |
- |
186 |
- # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
187 |
- menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
188 |
- menuselect/menuselect --enable func_aes menuselect.makeopts |
189 |
- menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
190 |
- |
191 |
- # SQlite3 is now the main database backend, enable related features |
192 |
- menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
193 |
- menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
194 |
- |
195 |
- # The others are based on USE-flag settings |
196 |
- use_select() { |
197 |
- local state=$(use "$1" && echo enable || echo disable) |
198 |
- shift # remove use from parameters |
199 |
- |
200 |
- while [[ -n $1 ]]; do |
201 |
- menuselect/menuselect --${state} "$1" menuselect.makeopts |
202 |
- shift |
203 |
- done |
204 |
- } |
205 |
- |
206 |
- use_select alsa chan_alsa |
207 |
- use_select bluetooth chan_mobile |
208 |
- use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
209 |
- use_select cluster res_corosync |
210 |
- use_select curl func_curl res_config_curl res_curl |
211 |
- use_select dahdi app_dahdibarge app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi |
212 |
- use_select freetds {cdr,cel}_tds |
213 |
- use_select gtalk chan_motif |
214 |
- use_select http res_http_post |
215 |
- use_select iconv func_iconv |
216 |
- use_select xmpp res_xmpp |
217 |
- use_select ilbc codec_ilbc format_ilbc |
218 |
- use_select ldap res_config_ldap |
219 |
- use_select lua pbx_lua |
220 |
- use_select mysql app_mysql cdr_mysql res_config_mysql |
221 |
- use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
222 |
- use_select osplookup app_osplookup |
223 |
- use_select oss chan_oss |
224 |
- use_select postgres {cdr,cel}_pgsql res_config_pgsql |
225 |
- use_select radius {cdr,cel}_radius |
226 |
- use_select snmp res_snmp |
227 |
- use_select span res_fax_spandsp |
228 |
- use_select speex {codec,func}_speex |
229 |
- use_select srtp res_srtp |
230 |
- use_select syslog cdr_syslog |
231 |
- use_select vorbis format_ogg_vorbis |
232 |
- |
233 |
- # Voicemail storage ... |
234 |
- for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
235 |
- if use ${vmst}; then |
236 |
- menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
237 |
- fi |
238 |
- done |
239 |
- |
240 |
- if use debug; then |
241 |
- for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do |
242 |
- menuselect/menuselect --enable $o menuselect.makeopts |
243 |
- done |
244 |
- fi |
245 |
-} |
246 |
- |
247 |
-src_compile() { |
248 |
- ASTLDFLAGS="${LDFLAGS}" emake |
249 |
-} |
250 |
- |
251 |
-src_install() { |
252 |
- mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
253 |
- emake DESTDIR="${D}" installdirs |
254 |
- emake DESTDIR="${D}" install |
255 |
- |
256 |
- if use radius; then |
257 |
- insinto /etc/radiusclient/ |
258 |
- doins contrib/dictionary.digium |
259 |
- fi |
260 |
- diropts -m 0750 -o root -g asterisk |
261 |
- keepdir /etc/asterisk |
262 |
- if use samples; then |
263 |
- emake DESTDIR="${D}" samples |
264 |
- for conffile in "${D}"etc/asterisk/*.* |
265 |
- do |
266 |
- chown root:root $conffile |
267 |
- chmod 0644 $conffile |
268 |
- done |
269 |
- einfo "Sample files have been installed" |
270 |
- else |
271 |
- einfo "Skipping installation of sample files..." |
272 |
- rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
273 |
- rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
274 |
- rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
275 |
- rm -f "${D}"etc/asterisk/* || die |
276 |
- fi |
277 |
- rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
278 |
- |
279 |
- # keep directories |
280 |
- diropts -m 0770 -o asterisk asterisk |
281 |
- keepdir /var/lib/asterisk |
282 |
- keepdir /var/spool/asterisk |
283 |
- keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
284 |
- diropts -m 0750 -o asterisk -g asterisk |
285 |
- keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
286 |
- |
287 |
- newinitd "${FILESDIR}"/1.8.0/asterisk.initd8 asterisk |
288 |
- newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
289 |
- |
290 |
- systemd_dounit "${FILESDIR}"/asterisk.service |
291 |
- systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf |
292 |
- systemd_install_serviced "${FILESDIR}"/asterisk.service.conf |
293 |
- |
294 |
- # install the upgrade documentation |
295 |
- # |
296 |
- dodoc README UPGRADE* BUGS CREDITS |
297 |
- |
298 |
- # install extra documentation |
299 |
- # |
300 |
- if use doc |
301 |
- then |
302 |
- dodoc doc/*.txt |
303 |
- dodoc doc/*.pdf |
304 |
- fi |
305 |
- |
306 |
- # install SIP scripts; bug #300832 |
307 |
- # |
308 |
- dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
309 |
- dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
310 |
- dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
311 |
- dodoc "${FILESDIR}/1.6.2/call_data.txt" |
312 |
- |
313 |
- # install logrotate snippet; bug #329281 |
314 |
- # |
315 |
- insinto /etc/logrotate.d |
316 |
- newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk |
317 |
-} |
318 |
- |
319 |
-pkg_postinst() { |
320 |
- # |
321 |
- # Announcements, warnings, reminders... |
322 |
- # |
323 |
- einfo "Asterisk has been installed" |
324 |
- echo |
325 |
- elog "If you want to know more about asterisk, visit these sites:" |
326 |
- elog "http://www.asteriskdocs.org/" |
327 |
- elog "http://www.voip-info.org/wiki-Asterisk" |
328 |
- echo |
329 |
- elog "http://www.automated.it/guidetoasterisk.htm" |
330 |
- echo |
331 |
- elog "Gentoo VoIP IRC Channel:" |
332 |
- elog "#gentoo-voip @ irc.freenode.net" |
333 |
- echo |
334 |
- echo |
335 |
- elog "Please read the Asterisk 11 upgrade document:" |
336 |
- elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11" |
337 |
-} |
338 |
- |
339 |
-pkg_config() { |
340 |
- einfo "Do you want to reset file permissions and ownerships (y/N)?" |
341 |
- |
342 |
- read tmp |
343 |
- tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
344 |
- |
345 |
- if [[ "$tmp" = "y" ]] ||\ |
346 |
- [[ "$tmp" = "yes" ]] |
347 |
- then |
348 |
- einfo "Resetting permissions to defaults..." |
349 |
- |
350 |
- for x in spool run lib log; do |
351 |
- chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
352 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
353 |
- done |
354 |
- |
355 |
- chown -R root:asterisk "${ROOT}"etc/asterisk |
356 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
357 |
- |
358 |
- einfo "done" |
359 |
- else |
360 |
- einfo "skipping" |
361 |
- fi |
362 |
-} |
363 |
|
364 |
diff --git a/net-misc/asterisk/asterisk-13.19.0-r1.ebuild b/net-misc/asterisk/asterisk-13.19.0-r1.ebuild |
365 |
deleted file mode 100644 |
366 |
index 7d2ba52cdc0..00000000000 |
367 |
--- a/net-misc/asterisk/asterisk-13.19.0-r1.ebuild |
368 |
+++ /dev/null |
369 |
@@ -1,327 +0,0 @@ |
370 |
-# Copyright 1999-2018 Gentoo Foundation |
371 |
-# Distributed under the terms of the GNU General Public License v2 |
372 |
- |
373 |
-EAPI=6 |
374 |
-inherit autotools eutils linux-info multilib user systemd |
375 |
- |
376 |
-MY_P="${PN}-${PV/_/-}" |
377 |
- |
378 |
-DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
379 |
-HOMEPAGE="http://www.asterisk.org/" |
380 |
-SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
381 |
- mirror://gentoo/gentoo-asterisk-patchset-4.07.tar.bz2" |
382 |
-LICENSE="GPL-2" |
383 |
-SLOT="0" |
384 |
-KEYWORDS="amd64 x86" |
385 |
- |
386 |
-IUSE_VOICEMAIL_STORAGE=" |
387 |
- +voicemail_storage_file |
388 |
- voicemail_storage_odbc |
389 |
- voicemail_storage_imap |
390 |
-" |
391 |
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
392 |
-IUSE_EXPAND="VOICEMAIL_STORAGE" |
393 |
-REQUIRED_USE="gtalk? ( xmpp ) |
394 |
- ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
395 |
- voicemail_storage_odbc? ( odbc ) |
396 |
-" |
397 |
- |
398 |
-EPATCH_SUFFIX="patch" |
399 |
-PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
400 |
- |
401 |
-CDEPEND="dev-db/sqlite:3 |
402 |
- dev-libs/popt |
403 |
- dev-libs/jansson |
404 |
- dev-libs/libxml2 |
405 |
- !libressl? ( dev-libs/openssl:0 ) |
406 |
- libressl? ( dev-libs/libressl ) |
407 |
- sys-libs/ncurses:* |
408 |
- sys-libs/zlib |
409 |
- alsa? ( media-libs/alsa-lib ) |
410 |
- bluetooth? ( net-wireless/bluez ) |
411 |
- calendar? ( net-libs/neon |
412 |
- dev-libs/libical |
413 |
- dev-libs/iksemel ) |
414 |
- caps? ( sys-libs/libcap ) |
415 |
- cluster? ( sys-cluster/corosync ) |
416 |
- curl? ( net-misc/curl ) |
417 |
- dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
418 |
- net-misc/dahdi-tools ) |
419 |
- freetds? ( dev-db/freetds ) |
420 |
- gtalk? ( dev-libs/iksemel ) |
421 |
- http? ( dev-libs/gmime:2.6 ) |
422 |
- iconv? ( virtual/libiconv ) |
423 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
424 |
- xmpp? ( dev-libs/iksemel ) |
425 |
- ldap? ( net-nds/openldap ) |
426 |
- libedit? ( dev-libs/libedit ) |
427 |
- lua? ( dev-lang/lua:* ) |
428 |
- mysql? ( virtual/mysql ) |
429 |
- newt? ( dev-libs/newt ) |
430 |
- odbc? ( dev-db/unixODBC ) |
431 |
- osplookup? ( net-libs/osptoolkit ) |
432 |
- portaudio? ( media-libs/portaudio ) |
433 |
- postgres? ( dev-db/postgresql:* ) |
434 |
- radius? ( net-dialup/freeradius-client ) |
435 |
- snmp? ( net-analyzer/net-snmp ) |
436 |
- span? ( media-libs/spandsp ) |
437 |
- speex? ( media-libs/speex ) |
438 |
- srtp? ( net-libs/libsrtp:0 ) |
439 |
- vorbis? ( media-libs/libvorbis )" |
440 |
- |
441 |
-DEPEND="${CDEPEND} |
442 |
- !net-libs/openh323 |
443 |
- !net-libs/pjsip |
444 |
- voicemail_storage_imap? ( virtual/imap-c-client ) |
445 |
- virtual/pkgconfig |
446 |
- pjproject? ( >=net-libs/pjproject-2.6 ) |
447 |
-" |
448 |
- |
449 |
-RDEPEND="${CDEPEND} |
450 |
- selinux? ( sec-policy/selinux-asterisk ) |
451 |
- syslog? ( virtual/logger )" |
452 |
- |
453 |
-PDEPEND="net-misc/asterisk-core-sounds |
454 |
- net-misc/asterisk-extra-sounds |
455 |
- net-misc/asterisk-moh-opsound" |
456 |
- |
457 |
-S="${WORKDIR}/${MY_P}" |
458 |
- |
459 |
-pkg_setup() { |
460 |
- CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
461 |
- local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
462 |
- have reported that this module dropped critical SIP packets in their deployments. You |
463 |
- may want to disable it if you see such problems." |
464 |
- check_extra_config |
465 |
- |
466 |
- enewgroup asterisk |
467 |
- enewgroup dialout 20 |
468 |
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
469 |
-} |
470 |
- |
471 |
-src_prepare() { |
472 |
- default |
473 |
- AT_M4DIR="autoconf third-party third-party/pjproject" eautoreconf |
474 |
-} |
475 |
- |
476 |
-src_configure() { |
477 |
- local vmst |
478 |
- |
479 |
- econf \ |
480 |
- --libdir="/usr/$(get_libdir)" \ |
481 |
- --localstatedir="/var" \ |
482 |
- --with-crypto \ |
483 |
- --with-gsm=internal \ |
484 |
- --with-popt \ |
485 |
- --with-ssl \ |
486 |
- --with-z \ |
487 |
- --without-pwlib \ |
488 |
- $(use_with caps cap) \ |
489 |
- $(use_with http gmime) \ |
490 |
- $(use_with newt) \ |
491 |
- $(use_with portaudio) \ |
492 |
- $(use_with pjproject) |
493 |
- |
494 |
- # Blank out sounds/sounds.xml file to prevent |
495 |
- # asterisk from installing sounds files (we pull them in via |
496 |
- # asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
497 |
- >"${S}"/sounds/sounds.xml |
498 |
- |
499 |
- # That NATIVE_ARCH chatter really is quite bothersome |
500 |
- sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
501 |
- |
502 |
- # Compile menuselect binary for optional components |
503 |
- emake menuselect.makeopts |
504 |
- |
505 |
- # Broken functionality is forcibly disabled (bug #360143) |
506 |
- menuselect/menuselect --disable chan_misdn menuselect.makeopts |
507 |
- menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
508 |
- |
509 |
- # Utility set is forcibly enabled (bug #358001) |
510 |
- menuselect/menuselect --enable smsq menuselect.makeopts |
511 |
- menuselect/menuselect --enable streamplayer menuselect.makeopts |
512 |
- menuselect/menuselect --enable aelparse menuselect.makeopts |
513 |
- menuselect/menuselect --enable astman menuselect.makeopts |
514 |
- |
515 |
- # this is connected, otherwise it would not find |
516 |
- # ast_pktccops_gate_alloc symbol |
517 |
- menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
518 |
- menuselect/menuselect --enable res_pktccops menuselect.makeopts |
519 |
- |
520 |
- # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
521 |
- menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
522 |
- menuselect/menuselect --enable func_aes menuselect.makeopts |
523 |
- menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
524 |
- |
525 |
- # SQlite3 is now the main database backend, enable related features |
526 |
- menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
527 |
- menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
528 |
- |
529 |
- # The others are based on USE-flag settings |
530 |
- use_select() { |
531 |
- local state=$(use "$1" && echo enable || echo disable) |
532 |
- shift # remove use from parameters |
533 |
- |
534 |
- while [[ -n $1 ]]; do |
535 |
- menuselect/menuselect --${state} "$1" menuselect.makeopts |
536 |
- shift |
537 |
- done |
538 |
- } |
539 |
- |
540 |
- use_select alsa chan_alsa |
541 |
- use_select bluetooth chan_mobile |
542 |
- use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
543 |
- use_select cluster res_corosync |
544 |
- use_select curl func_curl res_config_curl res_curl |
545 |
- use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi |
546 |
- use_select freetds {cdr,cel}_tds |
547 |
- use_select gtalk chan_motif |
548 |
- use_select http res_http_post |
549 |
- use_select iconv func_iconv |
550 |
- use_select xmpp res_xmpp |
551 |
- use_select ilbc codec_ilbc format_ilbc |
552 |
- use_select ldap res_config_ldap |
553 |
- use_select lua pbx_lua |
554 |
- use_select mysql app_mysql cdr_mysql res_config_mysql |
555 |
- use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
556 |
- use_select osplookup app_osplookup |
557 |
- use_select oss chan_oss |
558 |
- use_select postgres {cdr,cel}_pgsql res_config_pgsql |
559 |
- use_select radius {cdr,cel}_radius |
560 |
- use_select snmp res_snmp |
561 |
- use_select span res_fax_spandsp |
562 |
- use_select speex {codec,func}_speex |
563 |
- use_select srtp res_srtp |
564 |
- use_select syslog cdr_syslog |
565 |
- use_select vorbis format_ogg_vorbis |
566 |
- |
567 |
- # Voicemail storage ... |
568 |
- for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
569 |
- if use ${vmst}; then |
570 |
- menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
571 |
- fi |
572 |
- done |
573 |
- |
574 |
- if use debug; then |
575 |
- for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do |
576 |
- menuselect/menuselect --enable $o menuselect.makeopts |
577 |
- done |
578 |
- fi |
579 |
-} |
580 |
- |
581 |
-src_compile() { |
582 |
- ASTLDFLAGS="${LDFLAGS}" emake |
583 |
-} |
584 |
- |
585 |
-src_install() { |
586 |
- mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
587 |
- emake DESTDIR="${D}" installdirs |
588 |
- emake DESTDIR="${D}" install |
589 |
- |
590 |
- if use radius; then |
591 |
- insinto /etc/radiusclient/ |
592 |
- doins contrib/dictionary.digium |
593 |
- fi |
594 |
- diropts -m 0750 -o root -g asterisk |
595 |
- keepdir /etc/asterisk |
596 |
- if use samples; then |
597 |
- emake DESTDIR="${D}" samples |
598 |
- for conffile in "${D}"etc/asterisk/*.* |
599 |
- do |
600 |
- chown root:root $conffile |
601 |
- chmod 0644 $conffile |
602 |
- done |
603 |
- einfo "Sample files have been installed" |
604 |
- else |
605 |
- einfo "Skipping installation of sample files..." |
606 |
- rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
607 |
- rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
608 |
- rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
609 |
- rm -f "${D}"etc/asterisk/* || die |
610 |
- fi |
611 |
- rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
612 |
- |
613 |
- # keep directories |
614 |
- diropts -m 0770 -o asterisk asterisk |
615 |
- keepdir /var/lib/asterisk |
616 |
- keepdir /var/spool/asterisk |
617 |
- keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
618 |
- diropts -m 0750 -o asterisk -g asterisk |
619 |
- keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
620 |
- |
621 |
- newinitd "${FILESDIR}"/1.8.0/asterisk.initd8 asterisk |
622 |
- newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
623 |
- |
624 |
- systemd_dounit "${FILESDIR}"/asterisk.service |
625 |
- systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf |
626 |
- systemd_install_serviced "${FILESDIR}"/asterisk.service.conf |
627 |
- |
628 |
- # install the upgrade documentation |
629 |
- # |
630 |
- dodoc UPGRADE* BUGS CREDITS |
631 |
- |
632 |
- # install extra documentation |
633 |
- # |
634 |
- if use doc |
635 |
- then |
636 |
- dodoc doc/*.txt |
637 |
- dodoc doc/*.pdf |
638 |
- fi |
639 |
- |
640 |
- # install SIP scripts; bug #300832 |
641 |
- # |
642 |
- dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
643 |
- dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
644 |
- dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
645 |
- dodoc "${FILESDIR}/1.6.2/call_data.txt" |
646 |
- |
647 |
- # install logrotate snippet; bug #329281 |
648 |
- # |
649 |
- insinto /etc/logrotate.d |
650 |
- newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk |
651 |
-} |
652 |
- |
653 |
-pkg_postinst() { |
654 |
- # |
655 |
- # Announcements, warnings, reminders... |
656 |
- # |
657 |
- einfo "Asterisk has been installed" |
658 |
- echo |
659 |
- elog "If you want to know more about asterisk, visit these sites:" |
660 |
- elog "http://www.asteriskdocs.org/" |
661 |
- elog "http://www.voip-info.org/wiki-Asterisk" |
662 |
- echo |
663 |
- elog "http://www.automated.it/guidetoasterisk.htm" |
664 |
- echo |
665 |
- elog "Gentoo VoIP IRC Channel:" |
666 |
- elog "#gentoo-voip @ irc.freenode.net" |
667 |
- echo |
668 |
- echo |
669 |
- elog "Please read the Asterisk 13 upgrade document:" |
670 |
- elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+13" |
671 |
-} |
672 |
- |
673 |
-pkg_config() { |
674 |
- einfo "Do you want to reset file permissions and ownerships (y/N)?" |
675 |
- |
676 |
- read tmp |
677 |
- tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
678 |
- |
679 |
- if [[ "$tmp" = "y" ]] ||\ |
680 |
- [[ "$tmp" = "yes" ]] |
681 |
- then |
682 |
- einfo "Resetting permissions to defaults..." |
683 |
- |
684 |
- for x in spool run lib log; do |
685 |
- chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
686 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
687 |
- done |
688 |
- |
689 |
- chown -R root:asterisk "${ROOT}"etc/asterisk |
690 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
691 |
- |
692 |
- einfo "done" |
693 |
- else |
694 |
- einfo "skipping" |
695 |
- fi |
696 |
-} |