1 |
chainsaw 12/07/31 10:27:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asterisk-10.7.0.ebuild |
5 |
Removed: asterisk-10.5.2.ebuild |
6 |
Log: |
7 |
Bugfix release on the 10 branch. Fixes, among other things, a null pointer dereference in ast_sockaddr_prase, a potential deadlock in ast_set_hangupsource & routing issues around outboundproxy. |
8 |
|
9 |
(Portage version: 2.1.11.9/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.409 net-misc/asterisk/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.409&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.409&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.408&r2=1.409 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
21 |
retrieving revision 1.408 |
22 |
retrieving revision 1.409 |
23 |
diff -u -r1.408 -r1.409 |
24 |
--- ChangeLog 18 Jul 2012 07:48:33 -0000 1.408 |
25 |
+++ ChangeLog 31 Jul 2012 10:27:55 -0000 1.409 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for net-misc/asterisk |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.408 2012/07/18 07:48:33 chainsaw Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.409 2012/07/31 10:27:55 chainsaw Exp $ |
31 |
+ |
32 |
+*asterisk-10.7.0 (31 Jul 2012) |
33 |
+ |
34 |
+ 31 Jul 2012; Tony Vroon <chainsaw@g.o> -asterisk-10.5.2.ebuild, |
35 |
+ +asterisk-10.7.0.ebuild: |
36 |
+ Bugfix release on the 10 branch. Fixes, among other things, a null pointer |
37 |
+ dereference in ast_sockaddr_prase, a potential deadlock in |
38 |
+ ast_set_hangupsource & routing issues around outboundproxy. |
39 |
|
40 |
*asterisk-1.8.14.1 (18 Jul 2012) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-misc/asterisk/asterisk-10.7.0.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-10.7.0.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-10.7.0.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: asterisk-10.7.0.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-10.7.0.ebuild,v 1.1 2012/07/31 10:27:55 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/releases/${MY_P}.tar.gz |
64 |
mirror://gentoo/gentoo-asterisk-patchset-2.5.tar.bz2" |
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
|
69 |
IUSE_VOICEMAIL_STORAGE=" |
70 |
+voicemail_storage_file |
71 |
voicemail_storage_odbc |
72 |
voicemail_storage_imap |
73 |
" |
74 |
IUSE="${IUSE_VOICEMAIL_STORAGE} 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 vorbis" |
75 |
IUSE_EXPAND="VOICEMAIL_STORAGE" |
76 |
REQUIRED_USE="gtalk? ( jabber ) |
77 |
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
78 |
voicemail_storage_odbc? ( odbc ) |
79 |
" |
80 |
|
81 |
EPATCH_SUFFIX="patch" |
82 |
PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
83 |
|
84 |
RDEPEND="dev-db/sqlite:3 |
85 |
dev-libs/popt |
86 |
dev-libs/libxml2 |
87 |
dev-libs/openssl |
88 |
sys-libs/ncurses |
89 |
sys-libs/zlib |
90 |
ais? ( sys-cluster/openais ) |
91 |
alsa? ( media-libs/alsa-lib ) |
92 |
bluetooth? ( net-wireless/bluez ) |
93 |
calendar? ( net-libs/neon |
94 |
dev-libs/libical |
95 |
dev-libs/iksemel ) |
96 |
caps? ( sys-libs/libcap ) |
97 |
curl? ( net-misc/curl ) |
98 |
dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
99 |
net-misc/dahdi-tools ) |
100 |
freetds? ( dev-db/freetds ) |
101 |
gtalk? ( dev-libs/iksemel ) |
102 |
http? ( dev-libs/gmime:2.4 ) |
103 |
iconv? ( virtual/libiconv ) |
104 |
jabber? ( dev-libs/iksemel ) |
105 |
jingle? ( dev-libs/iksemel ) |
106 |
ldap? ( net-nds/openldap ) |
107 |
lua? ( dev-lang/lua ) |
108 |
mysql? ( virtual/mysql ) |
109 |
newt? ( dev-libs/newt ) |
110 |
odbc? ( dev-db/unixODBC ) |
111 |
osplookup? ( net-libs/osptoolkit ) |
112 |
portaudio? ( media-libs/portaudio ) |
113 |
postgres? ( dev-db/postgresql-base ) |
114 |
radius? ( net-dialup/radiusclient-ng ) |
115 |
snmp? ( net-analyzer/net-snmp ) |
116 |
span? ( media-libs/spandsp ) |
117 |
speex? ( media-libs/speex ) |
118 |
srtp? ( net-libs/libsrtp ) |
119 |
vorbis? ( media-libs/libvorbis )" |
120 |
|
121 |
DEPEND="${RDEPEND} |
122 |
!net-libs/openh323 |
123 |
voicemail_storage_imap? ( virtual/imap-c-client ) |
124 |
" |
125 |
|
126 |
RDEPEND="${RDEPEND} |
127 |
syslog? ( virtual/logger )" |
128 |
|
129 |
PDEPEND="net-misc/asterisk-core-sounds |
130 |
net-misc/asterisk-extra-sounds |
131 |
net-misc/asterisk-moh-opsound" |
132 |
|
133 |
S="${WORKDIR}/${MY_P}" |
134 |
|
135 |
pkg_setup() { |
136 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
137 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
138 |
have reported that this module dropped critical SIP packets in their deployments. You |
139 |
may want to disable it if you see such problems." |
140 |
check_extra_config |
141 |
|
142 |
enewgroup asterisk |
143 |
enewgroup dialout 20 |
144 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
145 |
} |
146 |
|
147 |
src_prepare() { |
148 |
base_src_prepare |
149 |
AT_M4DIR=autoconf eautoreconf |
150 |
} |
151 |
|
152 |
src_configure() { |
153 |
local vmst |
154 |
|
155 |
econf \ |
156 |
--libdir="/usr/$(get_libdir)" \ |
157 |
--localstatedir="/var" \ |
158 |
--with-crypto \ |
159 |
--with-gsm=internal \ |
160 |
--with-popt \ |
161 |
--with-ssl \ |
162 |
--with-z \ |
163 |
$(use_with caps cap) \ |
164 |
$(use_with http gmime) \ |
165 |
$(use_with newt) \ |
166 |
$(use_with portaudio) |
167 |
|
168 |
# Blank out sounds/sounds.xml file to prevent |
169 |
# asterisk from installing sounds files (we pull them in via |
170 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
171 |
>"${S}"/sounds/sounds.xml |
172 |
|
173 |
# Compile menuselect binary for optional components |
174 |
emake menuselect.makeopts |
175 |
|
176 |
# Broken functionality is forcibly disabled (bug #360143) |
177 |
menuselect/menuselect --disable chan_misdn menuselect.makeopts |
178 |
menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
179 |
|
180 |
# Utility set is forcibly enabled (bug #358001) |
181 |
menuselect/menuselect --enable smsq menuselect.makeopts |
182 |
menuselect/menuselect --enable streamplayer menuselect.makeopts |
183 |
menuselect/menuselect --enable aelparse menuselect.makeopts |
184 |
menuselect/menuselect --enable astman menuselect.makeopts |
185 |
|
186 |
# this is connected, otherwise it would not find |
187 |
# ast_pktccops_gate_alloc symbol |
188 |
menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
189 |
menuselect/menuselect --enable res_pktccops menuselect.makeopts |
190 |
|
191 |
# SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
192 |
menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
193 |
menuselect/menuselect --enable func_aes menuselect.makeopts |
194 |
menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
195 |
|
196 |
# SQlite3 is now the main database backend, enable related features |
197 |
menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
198 |
menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
199 |
|
200 |
# The others are based on USE-flag settings |
201 |
use_select() { |
202 |
local state=$(use "$1" && echo enable || echo disable) |
203 |
shift # remove use from parameters |
204 |
|
205 |
while [[ -n $1 ]]; do |
206 |
menuselect/menuselect --${state} "$1" menuselect.makeopts |
207 |
shift |
208 |
done |
209 |
} |
210 |
|
211 |
use_select ais res_ais |
212 |
use_select alsa chan_alsa |
213 |
use_select bluetooth chan_mobile |
214 |
use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
215 |
use_select curl func_curl res_config_curl res_curl |
216 |
use_select dahdi app_dahdibarge app_dahdiras chan_dahdi codec_dahdi res_timing_dahdi |
217 |
use_select freetds {cdr,cel}_tds |
218 |
use_select gtalk chan_gtalk |
219 |
use_select http res_http_post |
220 |
use_select iconv func_iconv |
221 |
use_select jabber res_jabber |
222 |
use_select jingle chan_jingle |
223 |
use_select ldap res_config_ldap |
224 |
use_select lua pbx_lua |
225 |
use_select mysql app_mysql cdr_mysql res_config_mysql |
226 |
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
227 |
use_select osplookup app_osplookup |
228 |
use_select oss chan_oss |
229 |
use_select postgres {cdr,cel}_pgsql res_config_pgsql |
230 |
use_select radius {cdr,cel}_radius |
231 |
use_select snmp res_snmp |
232 |
use_select span res_fax_spandsp |
233 |
use_select speex {codec,func}_speex |
234 |
use_select srtp res_srtp |
235 |
use_select syslog cdr_syslog |
236 |
use_select vorbis format_ogg_vorbis |
237 |
|
238 |
# Voicemail storage ... |
239 |
for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
240 |
if use ${vmst}; then |
241 |
menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
242 |
fi |
243 |
done |
244 |
} |
245 |
|
246 |
src_compile() { |
247 |
ASTLDFLAGS="${LDFLAGS}" emake |
248 |
} |
249 |
|
250 |
src_install() { |
251 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
252 |
emake DESTDIR="${D}" installdirs |
253 |
emake DESTDIR="${D}" install |
254 |
|
255 |
if use radius; then |
256 |
insinto /etc/radiusclient-ng/ |
257 |
doins contrib/dictionary.digium |
258 |
fi |
259 |
if use samples; then |
260 |
emake DESTDIR="${D}" samples |
261 |
for conffile in "${D}"etc/asterisk/*.* |
262 |
do |
263 |
chown asterisk:asterisk $conffile |
264 |
chmod 0660 $conffile |
265 |
done |
266 |
einfo "Sample files have been installed" |
267 |
else |
268 |
einfo "Skipping installation of sample files..." |
269 |
rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
270 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
271 |
rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
272 |
rm -f "${D}"etc/asterisk/* || die |
273 |
fi |
274 |
rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
275 |
|
276 |
# keep directories |
277 |
diropts -m 0770 -o asterisk -g asterisk |
278 |
keepdir /etc/asterisk |
279 |
keepdir /var/lib/asterisk |
280 |
keepdir /var/run/asterisk |
281 |
keepdir /var/spool/asterisk |
282 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
283 |
diropts -m 0750 -o asterisk -g asterisk |
284 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
285 |
|
286 |
newinitd "${FILESDIR}"/1.8.0/asterisk.initd2 asterisk |
287 |
newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
288 |
|
289 |
# install the upgrade documentation |
290 |
# |
291 |
dodoc README UPGRADE* BUGS CREDITS |
292 |
|
293 |
# install extra documentation |
294 |
# |
295 |
if use doc |
296 |
then |
297 |
dodoc doc/*.txt |
298 |
dodoc doc/*.pdf |
299 |
fi |
300 |
|
301 |
# install SIP scripts; bug #300832 |
302 |
# |
303 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
304 |
dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
305 |
dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
306 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
307 |
|
308 |
# install logrotate snippet; bug #329281 |
309 |
# |
310 |
insinto /etc/logrotate.d |
311 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk |
312 |
} |
313 |
|
314 |
pkg_postinst() { |
315 |
# |
316 |
# Announcements, warnings, reminders... |
317 |
# |
318 |
einfo "Asterisk has been installed" |
319 |
echo |
320 |
elog "If you want to know more about asterisk, visit these sites:" |
321 |
elog "http://www.asteriskdocs.org/" |
322 |
elog "http://www.voip-info.org/wiki-Asterisk" |
323 |
echo |
324 |
elog "http://www.automated.it/guidetoasterisk.htm" |
325 |
echo |
326 |
elog "Gentoo VoIP IRC Channel:" |
327 |
elog "#gentoo-voip @ irc.freenode.net" |
328 |
echo |
329 |
echo |
330 |
elog "1.6 -> 1.8 changes that you may care about:" |
331 |
elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt" |
332 |
elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2" |
333 |
} |
334 |
|
335 |
pkg_config() { |
336 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
337 |
|
338 |
read tmp |
339 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
340 |
|
341 |
if [[ "$tmp" = "y" ]] ||\ |
342 |
[[ "$tmp" = "yes" ]] |
343 |
then |
344 |
einfo "Resetting permissions to defaults..." |
345 |
|
346 |
for x in spool run lib log; do |
347 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
348 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
349 |
done |
350 |
|
351 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
352 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
353 |
|
354 |
einfo "done" |
355 |
else |
356 |
einfo "skipping" |
357 |
fi |
358 |
} |