1 |
chainsaw 12/02/28 15:19:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asterisk-1.8.9.3.ebuild asterisk-10.1.3.ebuild |
5 |
Log: |
6 |
Upstream bugfix releases on both the 1.8 & 10 branches. These address an ACK routing issue for non-2xx responses and a route-set creation regression for early dialogs. |
7 |
|
8 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.372 net-misc/asterisk/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.372&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.372&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.371&r2=1.372 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
20 |
retrieving revision 1.371 |
21 |
retrieving revision 1.372 |
22 |
diff -u -r1.371 -r1.372 |
23 |
--- ChangeLog 20 Feb 2012 16:22:15 -0000 1.371 |
24 |
+++ ChangeLog 28 Feb 2012 15:19:34 -0000 1.372 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for net-misc/asterisk |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.371 2012/02/20 16:22:15 chainsaw Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.372 2012/02/28 15:19:34 chainsaw Exp $ |
30 |
+ |
31 |
+*asterisk-10.1.3 (28 Feb 2012) |
32 |
+*asterisk-1.8.9.3 (28 Feb 2012) |
33 |
+ |
34 |
+ 28 Feb 2012; Tony Vroon <chainsaw@g.o> +asterisk-1.8.9.3.ebuild, |
35 |
+ +asterisk-10.1.3.ebuild: |
36 |
+ Upstream bugfix releases on both the 1.8 & 10 branches. These address an ACK |
37 |
+ routing issue for non-2xx responses and a route-set creation regression for |
38 |
+ early dialogs. |
39 |
|
40 |
*asterisk-1.8.9.2 (20 Feb 2012) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-misc/asterisk/asterisk-1.8.9.3.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.8.9.3.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.8.9.3.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: asterisk-1.8.9.3.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.8.9.3.ebuild,v 1.1 2012/02/28 15:19:34 chainsaw Exp $ |
55 |
|
56 |
EAPI=4 |
57 |
inherit autotools base eutils linux-info multilib |
58 |
|
59 |
MY_P="${PN}-${PV/_/-}" |
60 |
|
61 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
62 |
HOMEPAGE="http://www.asterisk.org/" |
63 |
SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/${MY_P}.tar.gz |
64 |
mirror://gentoo/gentoo-asterisk-patchset-1.8.tar.bz2" |
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
|
69 |
IUSE="ais alsa bluetooth calendar +caps curl dahdi debug doc freetds gtalk http iconv jabber jingle ldap lua mysql newt +samples odbc osplookup oss portaudio postgres radius snmp span speex sqlite sqlite3 srtp static syslog usb vorbis" |
70 |
|
71 |
EPATCH_SUFFIX="patch" |
72 |
PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
73 |
#EPATCH_EXCLUDE="1?-*.patch" |
74 |
|
75 |
RDEPEND="dev-libs/popt |
76 |
dev-libs/libxml2 |
77 |
dev-libs/openssl |
78 |
ais? ( sys-cluster/openais ) |
79 |
alsa? ( media-libs/alsa-lib ) |
80 |
bluetooth? ( net-wireless/bluez ) |
81 |
calendar? ( net-libs/neon |
82 |
dev-libs/libical |
83 |
dev-libs/iksemel ) |
84 |
caps? ( sys-libs/libcap ) |
85 |
curl? ( net-misc/curl ) |
86 |
dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
87 |
net-misc/dahdi-tools ) |
88 |
freetds? ( dev-db/freetds ) |
89 |
gtalk? ( dev-libs/iksemel ) |
90 |
http? ( dev-libs/gmime:2.4 ) |
91 |
iconv? ( virtual/libiconv ) |
92 |
jabber? ( dev-libs/iksemel ) |
93 |
jingle? ( dev-libs/iksemel ) |
94 |
ldap? ( net-nds/openldap ) |
95 |
lua? ( dev-lang/lua ) |
96 |
mysql? ( dev-db/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-base ) |
102 |
radius? ( net-dialup/radiusclient-ng ) |
103 |
snmp? ( net-analyzer/net-snmp ) |
104 |
span? ( media-libs/spandsp ) |
105 |
speex? ( media-libs/speex ) |
106 |
sqlite? ( dev-db/sqlite:0 ) |
107 |
sqlite3? ( dev-db/sqlite:3 ) |
108 |
srtp? ( net-libs/libsrtp ) |
109 |
usb? ( dev-libs/libusb |
110 |
media-libs/alsa-lib ) |
111 |
vorbis? ( media-libs/libvorbis )" |
112 |
|
113 |
DEPEND="${RDEPEND} |
114 |
!net-libs/openh323" |
115 |
|
116 |
RDEPEND="${RDEPEND} |
117 |
syslog? ( virtual/logger )" |
118 |
|
119 |
PDEPEND="net-misc/asterisk-core-sounds |
120 |
net-misc/asterisk-extra-sounds |
121 |
net-misc/asterisk-moh-opsound" |
122 |
|
123 |
S="${WORKDIR}/${MY_P}" |
124 |
|
125 |
pkg_setup() { |
126 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
127 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
128 |
have reported that this module dropped critical SIP packets in their deployments. You |
129 |
may want to disable it if you see such problems." |
130 |
check_extra_config |
131 |
|
132 |
enewgroup asterisk |
133 |
enewgroup dialout 20 |
134 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
135 |
} |
136 |
|
137 |
src_prepare() { |
138 |
base_src_prepare |
139 |
AT_M4DIR=autoconf eautoreconf |
140 |
} |
141 |
|
142 |
src_configure() { |
143 |
econf \ |
144 |
--libdir="/usr/$(get_libdir)" \ |
145 |
--localstatedir="/var" \ |
146 |
--with-crypto \ |
147 |
--with-gsm=internal \ |
148 |
--with-popt \ |
149 |
--with-ssl \ |
150 |
--with-z \ |
151 |
$(use_with caps cap) \ |
152 |
$(use_with http gmime) \ |
153 |
$(use_with newt) \ |
154 |
$(use_with portaudio) |
155 |
|
156 |
# Blank out sounds/sounds.xml file to prevent |
157 |
# asterisk from installing sounds files (we pull them in via |
158 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
159 |
>"${S}"/sounds/sounds.xml |
160 |
|
161 |
# Compile menuselect binary for optional components |
162 |
emake menuselect.makeopts |
163 |
|
164 |
# Broken functionality is forcibly disabled (bug #360143) |
165 |
menuselect/menuselect --disable chan_misdn menuselect.makeopts |
166 |
menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
167 |
|
168 |
# Utility set is forcibly enabled (bug #358001) |
169 |
menuselect/menuselect --enable smsq menuselect.makeopts |
170 |
menuselect/menuselect --enable streamplayer menuselect.makeopts |
171 |
menuselect/menuselect --enable aelparse menuselect.makeopts |
172 |
menuselect/menuselect --enable astman menuselect.makeopts |
173 |
|
174 |
# this is connected, otherwise it would not find |
175 |
# ast_pktccops_gate_alloc symbol |
176 |
menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
177 |
menuselect/menuselect --enable res_pktccops menuselect.makeopts |
178 |
|
179 |
# SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
180 |
menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
181 |
menuselect/menuselect --enable func_aes menuselect.makeopts |
182 |
menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
183 |
|
184 |
# The others are based on USE-flag settings |
185 |
use_select() { |
186 |
local state=$(use "$1" && echo enable || echo disable) |
187 |
shift # remove use from parameters |
188 |
|
189 |
while [[ -n $1 ]]; do |
190 |
menuselect/menuselect --${state} "$1" menuselect.makeopts |
191 |
shift |
192 |
done |
193 |
} |
194 |
|
195 |
use_select ais res_ais |
196 |
use_select alsa chan_alsa |
197 |
use_select bluetooth chan_mobile |
198 |
use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
199 |
use_select curl func_curl res_config_curl res_curl |
200 |
use_select dahdi app_dahdibarge app_dahdiras chan_dahdi codec_dahdi res_timing_dahdi |
201 |
use_select freetds {cdr,cel}_tds |
202 |
use_select gtalk chan_gtalk |
203 |
use_select http res_http_post |
204 |
use_select iconv func_iconv |
205 |
use_select jabber res_jabber |
206 |
use_select jingle chan_jingle |
207 |
use_select ldap res_config_ldap |
208 |
use_select lua pbx_lua |
209 |
use_select mysql app_mysql cdr_mysql res_config_mysql |
210 |
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
211 |
use_select osplookup app_osplookup |
212 |
use_select oss chan_oss |
213 |
use_select postgres {cdr,cel}_pgsql res_config_pgsql |
214 |
use_select radius {cdr,cel}_radius |
215 |
use_select snmp res_snmp |
216 |
use_select span res_fax_spandsp |
217 |
use_select speex {codec,func}_speex |
218 |
use_select sqlite cdr_sqlite |
219 |
use_select sqlite3 {cdr,cel}_sqlite3_custom |
220 |
use_select srtp res_srtp |
221 |
use_select syslog cdr_syslog |
222 |
use_select usb chan_usbradio |
223 |
use_select vorbis format_ogg_vorbis |
224 |
} |
225 |
|
226 |
src_compile() { |
227 |
ASTLDFLAGS="${LDFLAGS}" emake |
228 |
} |
229 |
|
230 |
src_install() { |
231 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
232 |
emake DESTDIR="${D}" installdirs |
233 |
emake DESTDIR="${D}" install |
234 |
|
235 |
if use radius; then |
236 |
insinto /etc/radiusclient-ng/ |
237 |
doins contrib/dictionary.digium |
238 |
fi |
239 |
if use samples; then |
240 |
emake DESTDIR="${D}" samples |
241 |
for conffile in "${D}"etc/asterisk/*.* |
242 |
do |
243 |
chown asterisk:asterisk $conffile |
244 |
chmod 0660 $conffile |
245 |
done |
246 |
einfo "Sample files have been installed" |
247 |
else |
248 |
einfo "Skipping installation of sample files..." |
249 |
rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
250 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
251 |
rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
252 |
rm -f "${D}"etc/asterisk/* || die |
253 |
fi |
254 |
rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
255 |
|
256 |
# keep directories |
257 |
diropts -m 0770 -o asterisk -g asterisk |
258 |
keepdir /etc/asterisk |
259 |
keepdir /var/lib/asterisk |
260 |
keepdir /var/run/asterisk |
261 |
keepdir /var/spool/asterisk |
262 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
263 |
diropts -m 0750 -o asterisk -g asterisk |
264 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
265 |
|
266 |
newinitd "${FILESDIR}"/1.8.0/asterisk.initd2 asterisk |
267 |
newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
268 |
|
269 |
# install the upgrade documentation |
270 |
# |
271 |
dodoc README UPGRADE* BUGS CREDITS |
272 |
|
273 |
# install extra documentation |
274 |
# |
275 |
if use doc |
276 |
then |
277 |
dodoc doc/*.txt |
278 |
dodoc doc/*.pdf |
279 |
fi |
280 |
|
281 |
# install SIP scripts; bug #300832 |
282 |
# |
283 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
284 |
dodoc "${FILESDIR}/1.6.2/find_call_sip_trace.sh" |
285 |
dodoc "${FILESDIR}/1.6.2/find_call_ids.sh" |
286 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
287 |
|
288 |
# install logrotate snippet; bug #329281 |
289 |
# |
290 |
insinto /etc/logrotate.d |
291 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk |
292 |
} |
293 |
|
294 |
pkg_postinst() { |
295 |
# |
296 |
# Announcements, warnings, reminders... |
297 |
# |
298 |
einfo "Asterisk has been installed" |
299 |
echo |
300 |
elog "If you want to know more about asterisk, visit these sites:" |
301 |
elog "http://www.asteriskdocs.org/" |
302 |
elog "http://www.voip-info.org/wiki-Asterisk" |
303 |
echo |
304 |
elog "http://www.automated.it/guidetoasterisk.htm" |
305 |
echo |
306 |
elog "Gentoo VoIP IRC Channel:" |
307 |
elog "#gentoo-voip @ irc.freenode.net" |
308 |
echo |
309 |
echo |
310 |
elog "1.6 -> 1.8 changes that you may care about:" |
311 |
elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt" |
312 |
elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2" |
313 |
} |
314 |
|
315 |
pkg_config() { |
316 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
317 |
|
318 |
read tmp |
319 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
320 |
|
321 |
if [[ "$tmp" = "y" ]] ||\ |
322 |
[[ "$tmp" = "yes" ]] |
323 |
then |
324 |
einfo "Resetting permissions to defaults..." |
325 |
|
326 |
for x in spool run lib log; do |
327 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
328 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
329 |
done |
330 |
|
331 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
332 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
333 |
|
334 |
einfo "done" |
335 |
else |
336 |
einfo "skipping" |
337 |
fi |
338 |
} |
339 |
|
340 |
|
341 |
|
342 |
1.1 net-misc/asterisk/asterisk-10.1.3.ebuild |
343 |
|
344 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-10.1.3.ebuild?rev=1.1&view=markup |
345 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-10.1.3.ebuild?rev=1.1&content-type=text/plain |
346 |
|
347 |
Index: asterisk-10.1.3.ebuild |
348 |
=================================================================== |
349 |
# Copyright 1999-2012 Gentoo Foundation |
350 |
# Distributed under the terms of the GNU General Public License v2 |
351 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-10.1.3.ebuild,v 1.1 2012/02/28 15:19:34 chainsaw Exp $ |
352 |
|
353 |
EAPI=4 |
354 |
inherit autotools base eutils linux-info multilib |
355 |
|
356 |
MY_P="${PN}-${PV/_/-}" |
357 |
|
358 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
359 |
HOMEPAGE="http://www.asterisk.org/" |
360 |
SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/${MY_P}.tar.gz |
361 |
mirror://gentoo/gentoo-asterisk-patchset-2.0.tar.bz2" |
362 |
LICENSE="GPL-2" |
363 |
SLOT="0" |
364 |
KEYWORDS="~amd64 ~x86" |
365 |
|
366 |
IUSE="ais alsa bluetooth calendar +caps curl dahdi debug doc freetds gtalk http iconv jabber jingle ldap lua mysql newt +samples odbc osplookup oss portaudio postgres radius snmp span speex srtp static syslog usb vorbis" |
367 |
|
368 |
EPATCH_SUFFIX="patch" |
369 |
PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
370 |
|
371 |
RDEPEND="dev-db/sqlite:3 |
372 |
dev-libs/popt |
373 |
dev-libs/libxml2 |
374 |
dev-libs/openssl |
375 |
ais? ( sys-cluster/openais ) |
376 |
alsa? ( media-libs/alsa-lib ) |
377 |
bluetooth? ( net-wireless/bluez ) |
378 |
calendar? ( net-libs/neon |
379 |
dev-libs/libical |
380 |
dev-libs/iksemel ) |
381 |
caps? ( sys-libs/libcap ) |
382 |
curl? ( net-misc/curl ) |
383 |
dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
384 |
net-misc/dahdi-tools ) |
385 |
freetds? ( dev-db/freetds ) |
386 |
gtalk? ( dev-libs/iksemel ) |
387 |
http? ( dev-libs/gmime:2.4 ) |
388 |
iconv? ( virtual/libiconv ) |
389 |
jabber? ( dev-libs/iksemel ) |
390 |
jingle? ( dev-libs/iksemel ) |
391 |
ldap? ( net-nds/openldap ) |
392 |
lua? ( dev-lang/lua ) |
393 |
mysql? ( dev-db/mysql ) |
394 |
newt? ( dev-libs/newt ) |
395 |
odbc? ( dev-db/unixODBC ) |
396 |
osplookup? ( net-libs/osptoolkit ) |
397 |
portaudio? ( media-libs/portaudio ) |
398 |
postgres? ( dev-db/postgresql-base ) |
399 |
radius? ( net-dialup/radiusclient-ng ) |
400 |
snmp? ( net-analyzer/net-snmp ) |
401 |
span? ( media-libs/spandsp ) |
402 |
speex? ( media-libs/speex ) |
403 |
srtp? ( net-libs/libsrtp ) |
404 |
usb? ( dev-libs/libusb |
405 |
media-libs/alsa-lib ) |
406 |
vorbis? ( media-libs/libvorbis )" |
407 |
|
408 |
DEPEND="${RDEPEND} |
409 |
!net-libs/openh323" |
410 |
|
411 |
RDEPEND="${RDEPEND} |
412 |
syslog? ( virtual/logger )" |
413 |
|
414 |
PDEPEND="net-misc/asterisk-core-sounds |
415 |
net-misc/asterisk-extra-sounds |
416 |
net-misc/asterisk-moh-opsound" |
417 |
|
418 |
S="${WORKDIR}/${MY_P}" |
419 |
|
420 |
pkg_setup() { |
421 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
422 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
423 |
have reported that this module dropped critical SIP packets in their deployments. You |
424 |
may want to disable it if you see such problems." |
425 |
check_extra_config |
426 |
|
427 |
enewgroup asterisk |
428 |
enewgroup dialout 20 |
429 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
430 |
} |
431 |
|
432 |
src_prepare() { |
433 |
base_src_prepare |
434 |
AT_M4DIR=autoconf eautoreconf |
435 |
} |
436 |
|
437 |
src_configure() { |
438 |
econf \ |
439 |
--libdir="/usr/$(get_libdir)" \ |
440 |
--localstatedir="/var" \ |
441 |
--with-crypto \ |
442 |
--with-gsm=internal \ |
443 |
--with-popt \ |
444 |
--with-ssl \ |
445 |
--with-z \ |
446 |
$(use_with caps cap) \ |
447 |
$(use_with http gmime) \ |
448 |
$(use_with newt) \ |
449 |
$(use_with portaudio) |
450 |
|
451 |
# Blank out sounds/sounds.xml file to prevent |
452 |
# asterisk from installing sounds files (we pull them in via |
453 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
454 |
>"${S}"/sounds/sounds.xml |
455 |
|
456 |
# Compile menuselect binary for optional components |
457 |
emake menuselect.makeopts |
458 |
|
459 |
# Broken functionality is forcibly disabled (bug #360143) |
460 |
menuselect/menuselect --disable chan_misdn menuselect.makeopts |
461 |
menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
462 |
|
463 |
# Utility set is forcibly enabled (bug #358001) |
464 |
menuselect/menuselect --enable smsq menuselect.makeopts |
465 |
menuselect/menuselect --enable streamplayer menuselect.makeopts |
466 |
menuselect/menuselect --enable aelparse menuselect.makeopts |
467 |
menuselect/menuselect --enable astman menuselect.makeopts |
468 |
|
469 |
# this is connected, otherwise it would not find |
470 |
# ast_pktccops_gate_alloc symbol |
471 |
menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
472 |
menuselect/menuselect --enable res_pktccops menuselect.makeopts |
473 |
|
474 |
# SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
475 |
menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
476 |
menuselect/menuselect --enable func_aes menuselect.makeopts |
477 |
menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
478 |
|
479 |
# SQlite3 is now the main database backend, enable related features |
480 |
menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
481 |
menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
482 |
|
483 |
# The others are based on USE-flag settings |
484 |
use_select() { |
485 |
local state=$(use "$1" && echo enable || echo disable) |
486 |
shift # remove use from parameters |
487 |
|
488 |
while [[ -n $1 ]]; do |
489 |
menuselect/menuselect --${state} "$1" menuselect.makeopts |
490 |
shift |
491 |
done |
492 |
} |
493 |
|
494 |
use_select ais res_ais |
495 |
use_select alsa chan_alsa |
496 |
use_select bluetooth chan_mobile |
497 |
use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
498 |
use_select curl func_curl res_config_curl res_curl |
499 |
use_select dahdi app_dahdibarge app_dahdiras chan_dahdi codec_dahdi res_timing_dahdi |
500 |
use_select freetds {cdr,cel}_tds |
501 |
use_select gtalk chan_gtalk |
502 |
use_select http res_http_post |
503 |
use_select iconv func_iconv |
504 |
use_select jabber res_jabber |
505 |
use_select jingle chan_jingle |
506 |
use_select ldap res_config_ldap |
507 |
use_select lua pbx_lua |
508 |
use_select mysql app_mysql cdr_mysql res_config_mysql |
509 |
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
510 |
use_select osplookup app_osplookup |
511 |
use_select oss chan_oss |
512 |
use_select postgres {cdr,cel}_pgsql res_config_pgsql |
513 |
use_select radius {cdr,cel}_radius |
514 |
use_select snmp res_snmp |
515 |
use_select span res_fax_spandsp |
516 |
use_select speex {codec,func}_speex |
517 |
use_select srtp res_srtp |
518 |
use_select syslog cdr_syslog |
519 |
use_select usb chan_usbradio |
520 |
use_select vorbis format_ogg_vorbis |
521 |
} |
522 |
|
523 |
src_compile() { |
524 |
ASTLDFLAGS="${LDFLAGS}" emake |
525 |
} |
526 |
|
527 |
src_install() { |
528 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
529 |
emake DESTDIR="${D}" installdirs |
530 |
emake DESTDIR="${D}" install |
531 |
|
532 |
if use radius; then |
533 |
insinto /etc/radiusclient-ng/ |
534 |
doins contrib/dictionary.digium |
535 |
fi |
536 |
if use samples; then |
537 |
emake DESTDIR="${D}" samples |
538 |
for conffile in "${D}"etc/asterisk/*.* |
539 |
do |
540 |
chown asterisk:asterisk $conffile |
541 |
chmod 0660 $conffile |
542 |
done |
543 |
einfo "Sample files have been installed" |
544 |
else |
545 |
einfo "Skipping installation of sample files..." |
546 |
rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
547 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
548 |
rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
549 |
rm -f "${D}"etc/asterisk/* || die |
550 |
fi |
551 |
rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
552 |
|
553 |
# keep directories |
554 |
diropts -m 0770 -o asterisk -g asterisk |
555 |
keepdir /etc/asterisk |
556 |
keepdir /var/lib/asterisk |
557 |
keepdir /var/run/asterisk |
558 |
keepdir /var/spool/asterisk |
559 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
560 |
diropts -m 0750 -o asterisk -g asterisk |
561 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
562 |
|
563 |
newinitd "${FILESDIR}"/1.8.0/asterisk.initd2 asterisk |
564 |
newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
565 |
|
566 |
# install the upgrade documentation |
567 |
# |
568 |
dodoc README UPGRADE* BUGS CREDITS |
569 |
|
570 |
# install extra documentation |
571 |
# |
572 |
if use doc |
573 |
then |
574 |
dodoc doc/*.txt |
575 |
dodoc doc/*.pdf |
576 |
fi |
577 |
|
578 |
# install SIP scripts; bug #300832 |
579 |
# |
580 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
581 |
dodoc "${FILESDIR}/1.6.2/find_call_sip_trace.sh" |
582 |
dodoc "${FILESDIR}/1.6.2/find_call_ids.sh" |
583 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
584 |
|
585 |
# install logrotate snippet; bug #329281 |
586 |
# |
587 |
insinto /etc/logrotate.d |
588 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk |
589 |
} |
590 |
|
591 |
pkg_postinst() { |
592 |
# |
593 |
# Announcements, warnings, reminders... |
594 |
# |
595 |
einfo "Asterisk has been installed" |
596 |
echo |
597 |
elog "If you want to know more about asterisk, visit these sites:" |
598 |
elog "http://www.asteriskdocs.org/" |
599 |
elog "http://www.voip-info.org/wiki-Asterisk" |
600 |
echo |
601 |
elog "http://www.automated.it/guidetoasterisk.htm" |
602 |
echo |
603 |
elog "Gentoo VoIP IRC Channel:" |
604 |
elog "#gentoo-voip @ irc.freenode.net" |
605 |
echo |
606 |
echo |
607 |
elog "1.6 -> 1.8 changes that you may care about:" |
608 |
elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt" |
609 |
elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2" |
610 |
} |
611 |
|
612 |
pkg_config() { |
613 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
614 |
|
615 |
read tmp |
616 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
617 |
|
618 |
if [[ "$tmp" = "y" ]] ||\ |
619 |
[[ "$tmp" = "yes" ]] |
620 |
then |
621 |
einfo "Resetting permissions to defaults..." |
622 |
|
623 |
for x in spool run lib log; do |
624 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
625 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
626 |
done |
627 |
|
628 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
629 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
630 |
|
631 |
einfo "done" |
632 |
else |
633 |
einfo "skipping" |
634 |
fi |
635 |
} |