1 |
chainsaw 13/05/20 20:31:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asterisk-11.4.0.ebuild |
5 |
Log: |
6 |
In a refreshing change of heart, upstream now care about parallel build failures. Drop our relevant two downstream patches. Fixes a res_timing_pthread deadlock, an FD leak in the web server and more SRTP decryption/white noise issues. |
7 |
|
8 |
(Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.452 net-misc/asterisk/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.452&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.452&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.451&r2=1.452 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
20 |
retrieving revision 1.451 |
21 |
retrieving revision 1.452 |
22 |
diff -u -r1.451 -r1.452 |
23 |
--- ChangeLog 30 Mar 2013 13:13:13 -0000 1.451 |
24 |
+++ ChangeLog 20 May 2013 20:31:13 -0000 1.452 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-misc/asterisk |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.451 2013/03/30 13:13:13 chainsaw Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.452 2013/05/20 20:31:13 chainsaw Exp $ |
30 |
+ |
31 |
+*asterisk-11.4.0 (20 May 2013) |
32 |
+ |
33 |
+ 20 May 2013; Tony Vroon <chainsaw@g.o> +asterisk-11.4.0.ebuild: |
34 |
+ In a refreshing change of heart, upstream now care about parallel build |
35 |
+ failures. Drop our relevant two downstream patches. Fixes a |
36 |
+ res_timing_pthread deadlock, an FD leak in the web server and more SRTP |
37 |
+ decryption/white noise issues. |
38 |
|
39 |
30 Mar 2013; Tony Vroon <chainsaw@g.o> -asterisk-1.8.20.1.ebuild, |
40 |
-asterisk-11.2.1.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-misc/asterisk/asterisk-11.4.0.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-11.4.0.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-11.4.0.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: asterisk-11.4.0.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-11.4.0.ebuild,v 1.1 2013/05/20 20:31:13 chainsaw Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
inherit autotools base eutils linux-info multilib |
57 |
|
58 |
MY_P="${PN}-${PV/_/-}" |
59 |
|
60 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
61 |
HOMEPAGE="http://www.asterisk.org/" |
62 |
SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
63 |
mirror://gentoo/gentoo-asterisk-patchset-3.6.tar.bz2" |
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
|
68 |
IUSE_VOICEMAIL_STORAGE=" |
69 |
+voicemail_storage_file |
70 |
voicemail_storage_odbc |
71 |
voicemail_storage_imap |
72 |
" |
73 |
IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc jabber ldap libedit lua mysql newt +samples odbc osplookup oss portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
74 |
IUSE_EXPAND="VOICEMAIL_STORAGE" |
75 |
REQUIRED_USE="gtalk? ( jabber ) |
76 |
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
77 |
voicemail_storage_odbc? ( odbc ) |
78 |
" |
79 |
|
80 |
EPATCH_SUFFIX="patch" |
81 |
PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
82 |
|
83 |
RDEPEND="dev-db/sqlite:3 |
84 |
dev-libs/popt |
85 |
dev-libs/libxml2 |
86 |
dev-libs/openssl |
87 |
sys-libs/ncurses |
88 |
sys-libs/zlib |
89 |
alsa? ( media-libs/alsa-lib ) |
90 |
bluetooth? ( net-wireless/bluez ) |
91 |
calendar? ( net-libs/neon |
92 |
dev-libs/libical |
93 |
dev-libs/iksemel ) |
94 |
caps? ( sys-libs/libcap ) |
95 |
cluster? ( sys-cluster/corosync ) |
96 |
curl? ( net-misc/curl ) |
97 |
dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
98 |
net-misc/dahdi-tools ) |
99 |
freetds? ( dev-db/freetds ) |
100 |
gtalk? ( dev-libs/iksemel ) |
101 |
http? ( dev-libs/gmime:2.4 ) |
102 |
iconv? ( virtual/libiconv ) |
103 |
ilbc? ( dev-libs/ilbc-rfc3951 ) |
104 |
jabber? ( dev-libs/iksemel ) |
105 |
ldap? ( net-nds/openldap ) |
106 |
libedit? ( dev-libs/libedit ) |
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 |
selinux? ( sec-policy/selinux-asterisk ) |
116 |
snmp? ( net-analyzer/net-snmp ) |
117 |
span? ( media-libs/spandsp ) |
118 |
speex? ( media-libs/speex ) |
119 |
srtp? ( net-libs/libsrtp ) |
120 |
vorbis? ( media-libs/libvorbis )" |
121 |
|
122 |
DEPEND="${RDEPEND} |
123 |
!net-libs/openh323 |
124 |
voicemail_storage_imap? ( virtual/imap-c-client ) |
125 |
" |
126 |
|
127 |
RDEPEND="${RDEPEND} |
128 |
syslog? ( virtual/logger )" |
129 |
|
130 |
PDEPEND="net-misc/asterisk-core-sounds |
131 |
net-misc/asterisk-extra-sounds |
132 |
net-misc/asterisk-moh-opsound" |
133 |
|
134 |
S="${WORKDIR}/${MY_P}" |
135 |
|
136 |
pkg_setup() { |
137 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
138 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
139 |
have reported that this module dropped critical SIP packets in their deployments. You |
140 |
may want to disable it if you see such problems." |
141 |
check_extra_config |
142 |
|
143 |
enewgroup asterisk |
144 |
enewgroup dialout 20 |
145 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
146 |
} |
147 |
|
148 |
src_prepare() { |
149 |
base_src_prepare |
150 |
AT_M4DIR=autoconf eautoreconf |
151 |
} |
152 |
|
153 |
src_configure() { |
154 |
local vmst |
155 |
|
156 |
econf \ |
157 |
--libdir="/usr/$(get_libdir)" \ |
158 |
--localstatedir="/var" \ |
159 |
--with-crypto \ |
160 |
--with-gsm=internal \ |
161 |
--with-popt \ |
162 |
--with-ssl \ |
163 |
--with-z \ |
164 |
--without-pwlib \ |
165 |
$(use_with caps cap) \ |
166 |
$(use_with http gmime) \ |
167 |
$(use_with newt) \ |
168 |
$(use_with portaudio) |
169 |
|
170 |
# Blank out sounds/sounds.xml file to prevent |
171 |
# asterisk from installing sounds files (we pull them in via |
172 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
173 |
>"${S}"/sounds/sounds.xml |
174 |
|
175 |
# Compile menuselect binary for optional components |
176 |
emake menuselect.makeopts |
177 |
|
178 |
# Broken functionality is forcibly disabled (bug #360143) |
179 |
menuselect/menuselect --disable chan_misdn menuselect.makeopts |
180 |
menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
181 |
|
182 |
# Utility set is forcibly enabled (bug #358001) |
183 |
menuselect/menuselect --enable smsq menuselect.makeopts |
184 |
menuselect/menuselect --enable streamplayer menuselect.makeopts |
185 |
menuselect/menuselect --enable aelparse menuselect.makeopts |
186 |
menuselect/menuselect --enable astman menuselect.makeopts |
187 |
|
188 |
# this is connected, otherwise it would not find |
189 |
# ast_pktccops_gate_alloc symbol |
190 |
menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
191 |
menuselect/menuselect --enable res_pktccops menuselect.makeopts |
192 |
|
193 |
# SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
194 |
menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
195 |
menuselect/menuselect --enable func_aes menuselect.makeopts |
196 |
menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
197 |
|
198 |
# SQlite3 is now the main database backend, enable related features |
199 |
menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
200 |
menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
201 |
|
202 |
# The others are based on USE-flag settings |
203 |
use_select() { |
204 |
local state=$(use "$1" && echo enable || echo disable) |
205 |
shift # remove use from parameters |
206 |
|
207 |
while [[ -n $1 ]]; do |
208 |
menuselect/menuselect --${state} "$1" menuselect.makeopts |
209 |
shift |
210 |
done |
211 |
} |
212 |
|
213 |
use_select alsa chan_alsa |
214 |
use_select bluetooth chan_mobile |
215 |
use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
216 |
use_select cluster res_corosync |
217 |
use_select curl func_curl res_config_curl res_curl |
218 |
use_select dahdi app_dahdibarge app_dahdiras chan_dahdi codec_dahdi res_timing_dahdi |
219 |
use_select freetds {cdr,cel}_tds |
220 |
use_select gtalk chan_motif |
221 |
use_select http res_http_post |
222 |
use_select iconv func_iconv |
223 |
use_select jabber res_xmpp |
224 |
use_select ilbc codec_ilbc format_ilbc |
225 |
use_select ldap res_config_ldap |
226 |
use_select lua pbx_lua |
227 |
use_select mysql app_mysql cdr_mysql res_config_mysql |
228 |
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
229 |
use_select osplookup app_osplookup |
230 |
use_select oss chan_oss |
231 |
use_select postgres {cdr,cel}_pgsql res_config_pgsql |
232 |
use_select radius {cdr,cel}_radius |
233 |
use_select snmp res_snmp |
234 |
use_select span res_fax_spandsp |
235 |
use_select speex {codec,func}_speex |
236 |
use_select srtp res_srtp |
237 |
use_select syslog cdr_syslog |
238 |
use_select vorbis format_ogg_vorbis |
239 |
|
240 |
# Voicemail storage ... |
241 |
for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
242 |
if use ${vmst}; then |
243 |
menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
244 |
fi |
245 |
done |
246 |
} |
247 |
|
248 |
src_compile() { |
249 |
ASTLDFLAGS="${LDFLAGS}" emake |
250 |
} |
251 |
|
252 |
src_install() { |
253 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
254 |
emake DESTDIR="${D}" installdirs |
255 |
emake DESTDIR="${D}" install |
256 |
|
257 |
if use radius; then |
258 |
insinto /etc/radiusclient-ng/ |
259 |
doins contrib/dictionary.digium |
260 |
fi |
261 |
if use samples; then |
262 |
emake DESTDIR="${D}" samples |
263 |
for conffile in "${D}"etc/asterisk/*.* |
264 |
do |
265 |
chown asterisk:asterisk $conffile |
266 |
chmod 0660 $conffile |
267 |
done |
268 |
einfo "Sample files have been installed" |
269 |
else |
270 |
einfo "Skipping installation of sample files..." |
271 |
rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
272 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
273 |
rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
274 |
rm -f "${D}"etc/asterisk/* || die |
275 |
fi |
276 |
rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
277 |
|
278 |
# keep directories |
279 |
diropts -m 0770 -o asterisk -g asterisk |
280 |
keepdir /etc/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.initd5 asterisk |
288 |
newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
289 |
|
290 |
# install the upgrade documentation |
291 |
# |
292 |
dodoc README UPGRADE* BUGS CREDITS |
293 |
|
294 |
# install extra documentation |
295 |
# |
296 |
if use doc |
297 |
then |
298 |
dodoc doc/*.txt |
299 |
dodoc doc/*.pdf |
300 |
fi |
301 |
|
302 |
# install SIP scripts; bug #300832 |
303 |
# |
304 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
305 |
dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
306 |
dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
307 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
308 |
|
309 |
# install logrotate snippet; bug #329281 |
310 |
# |
311 |
insinto /etc/logrotate.d |
312 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk |
313 |
} |
314 |
|
315 |
pkg_postinst() { |
316 |
# |
317 |
# Announcements, warnings, reminders... |
318 |
# |
319 |
einfo "Asterisk has been installed" |
320 |
echo |
321 |
elog "If you want to know more about asterisk, visit these sites:" |
322 |
elog "http://www.asteriskdocs.org/" |
323 |
elog "http://www.voip-info.org/wiki-Asterisk" |
324 |
echo |
325 |
elog "http://www.automated.it/guidetoasterisk.htm" |
326 |
echo |
327 |
elog "Gentoo VoIP IRC Channel:" |
328 |
elog "#gentoo-voip @ irc.freenode.net" |
329 |
echo |
330 |
echo |
331 |
elog "Please read the Asterisk 11 upgrade document:" |
332 |
elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11" |
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 |
} |