1 |
chainsaw 14/09/29 10:54:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asterisk-12.6.0.ebuild |
5 |
Log: |
6 |
Additional resilience against invalid (ao2) object references. Now supports empty passwords for PJSIP userpass authentication. Masquerade fixes for T38 between PJSIP and non-PJSIP chanels. FORTIFY_SOURCE fix now upstream. Modify permissions to suit a multi-daemon setup as per Jaco Kroon in bug #507894. |
7 |
|
8 |
(Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.497 net-misc/asterisk/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.497&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.497&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.496&r2=1.497 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
20 |
retrieving revision 1.496 |
21 |
retrieving revision 1.497 |
22 |
diff -u -r1.496 -r1.497 |
23 |
--- ChangeLog 29 Sep 2014 10:20:16 -0000 1.496 |
24 |
+++ ChangeLog 29 Sep 2014 10:54:49 -0000 1.497 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-misc/asterisk |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.496 2014/09/29 10:20:16 chainsaw Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.497 2014/09/29 10:54:49 chainsaw Exp $ |
30 |
+ |
31 |
+*asterisk-12.6.0 (29 Sep 2014) |
32 |
+ |
33 |
+ 29 Sep 2014; Tony Vroon <chainsaw@g.o> +asterisk-12.6.0.ebuild: |
34 |
+ Additional resilience against invalid (ao2) object references. Now supports |
35 |
+ empty passwords for PJSIP userpass authentication. Masquerade fixes for T38 |
36 |
+ between PJSIP and non-PJSIP chanels. FORTIFY_SOURCE fix now upstream. Modify |
37 |
+ permissions to suit a multi-daemon setup as per Jaco Kroon in bug #507894. |
38 |
|
39 |
*asterisk-11.13.0 (29 Sep 2014) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 net-misc/asterisk/asterisk-12.6.0.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-12.6.0.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-12.6.0.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: asterisk-12.6.0.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2014 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-12.6.0.ebuild,v 1.1 2014/09/29 10:54:49 chainsaw Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
inherit autotools base eutils linux-info multilib user |
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.13.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/jansson |
86 |
dev-libs/libxml2 |
87 |
dev-libs/openssl |
88 |
sys-libs/ncurses |
89 |
sys-libs/zlib |
90 |
alsa? ( media-libs/alsa-lib ) |
91 |
bluetooth? ( net-wireless/bluez ) |
92 |
calendar? ( net-libs/neon |
93 |
dev-libs/libical |
94 |
dev-libs/iksemel ) |
95 |
caps? ( sys-libs/libcap ) |
96 |
cluster? ( sys-cluster/corosync ) |
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.6 ) |
103 |
iconv? ( virtual/libiconv ) |
104 |
ilbc? ( dev-libs/ilbc-rfc3951 ) |
105 |
jabber? ( dev-libs/iksemel ) |
106 |
ldap? ( net-nds/openldap ) |
107 |
libedit? ( dev-libs/libedit ) |
108 |
lua? ( dev-lang/lua ) |
109 |
mysql? ( virtual/mysql ) |
110 |
newt? ( dev-libs/newt ) |
111 |
odbc? ( dev-db/unixODBC ) |
112 |
osplookup? ( net-libs/osptoolkit ) |
113 |
portaudio? ( media-libs/portaudio ) |
114 |
postgres? ( dev-db/postgresql-base ) |
115 |
radius? ( net-dialup/radiusclient-ng ) |
116 |
selinux? ( sec-policy/selinux-asterisk ) |
117 |
snmp? ( net-analyzer/net-snmp ) |
118 |
span? ( media-libs/spandsp ) |
119 |
speex? ( media-libs/speex ) |
120 |
srtp? ( net-libs/libsrtp ) |
121 |
vorbis? ( media-libs/libvorbis )" |
122 |
|
123 |
DEPEND="${RDEPEND} |
124 |
!net-libs/openh323 |
125 |
!net-libs/pjsip |
126 |
voicemail_storage_imap? ( virtual/imap-c-client ) |
127 |
virtual/pkgconfig |
128 |
" |
129 |
|
130 |
RDEPEND="${RDEPEND} |
131 |
syslog? ( virtual/logger )" |
132 |
|
133 |
PDEPEND="net-misc/asterisk-core-sounds |
134 |
net-misc/asterisk-extra-sounds |
135 |
net-misc/asterisk-moh-opsound" |
136 |
|
137 |
S="${WORKDIR}/${MY_P}" |
138 |
|
139 |
pkg_setup() { |
140 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
141 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
142 |
have reported that this module dropped critical SIP packets in their deployments. You |
143 |
may want to disable it if you see such problems." |
144 |
check_extra_config |
145 |
|
146 |
enewgroup asterisk |
147 |
enewgroup dialout 20 |
148 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
149 |
} |
150 |
|
151 |
src_prepare() { |
152 |
base_src_prepare |
153 |
AT_M4DIR=autoconf eautoreconf |
154 |
} |
155 |
|
156 |
src_configure() { |
157 |
local vmst |
158 |
|
159 |
econf \ |
160 |
--libdir="/usr/$(get_libdir)" \ |
161 |
--localstatedir="/var" \ |
162 |
--with-crypto \ |
163 |
--with-gsm=internal \ |
164 |
--with-popt \ |
165 |
--with-ssl \ |
166 |
--with-z \ |
167 |
--without-pwlib \ |
168 |
$(use_with caps cap) \ |
169 |
$(use_with http gmime) \ |
170 |
$(use_with newt) \ |
171 |
$(use_with portaudio) |
172 |
|
173 |
# Blank out sounds/sounds.xml file to prevent |
174 |
# asterisk from installing sounds files (we pull them in via |
175 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
176 |
>"${S}"/sounds/sounds.xml |
177 |
|
178 |
# That NATIVE_ARCH chatter really is quite bothersome |
179 |
sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
180 |
|
181 |
# Compile menuselect binary for optional components |
182 |
emake menuselect.makeopts |
183 |
|
184 |
# Broken functionality is forcibly disabled (bug #360143) |
185 |
menuselect/menuselect --disable chan_misdn menuselect.makeopts |
186 |
menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
187 |
|
188 |
# Utility set is forcibly enabled (bug #358001) |
189 |
menuselect/menuselect --enable smsq menuselect.makeopts |
190 |
menuselect/menuselect --enable streamplayer menuselect.makeopts |
191 |
menuselect/menuselect --enable aelparse menuselect.makeopts |
192 |
menuselect/menuselect --enable astman menuselect.makeopts |
193 |
|
194 |
# this is connected, otherwise it would not find |
195 |
# ast_pktccops_gate_alloc symbol |
196 |
menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
197 |
menuselect/menuselect --enable res_pktccops menuselect.makeopts |
198 |
|
199 |
# SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
200 |
menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
201 |
menuselect/menuselect --enable func_aes menuselect.makeopts |
202 |
menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
203 |
|
204 |
# SQlite3 is now the main database backend, enable related features |
205 |
menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
206 |
menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
207 |
|
208 |
# The others are based on USE-flag settings |
209 |
use_select() { |
210 |
local state=$(use "$1" && echo enable || echo disable) |
211 |
shift # remove use from parameters |
212 |
|
213 |
while [[ -n $1 ]]; do |
214 |
menuselect/menuselect --${state} "$1" menuselect.makeopts |
215 |
shift |
216 |
done |
217 |
} |
218 |
|
219 |
use_select alsa chan_alsa |
220 |
use_select bluetooth chan_mobile |
221 |
use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
222 |
use_select cluster res_corosync |
223 |
use_select curl func_curl res_config_curl res_curl |
224 |
use_select dahdi app_dahdibarge app_dahdiras chan_dahdi codec_dahdi res_timing_dahdi |
225 |
use_select freetds {cdr,cel}_tds |
226 |
use_select gtalk chan_motif |
227 |
use_select http res_http_post |
228 |
use_select iconv func_iconv |
229 |
use_select jabber res_xmpp |
230 |
use_select ilbc codec_ilbc format_ilbc |
231 |
use_select ldap res_config_ldap |
232 |
use_select lua pbx_lua |
233 |
use_select mysql app_mysql cdr_mysql res_config_mysql |
234 |
use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
235 |
use_select osplookup app_osplookup |
236 |
use_select oss chan_oss |
237 |
use_select postgres {cdr,cel}_pgsql res_config_pgsql |
238 |
use_select radius {cdr,cel}_radius |
239 |
use_select snmp res_snmp |
240 |
use_select span res_fax_spandsp |
241 |
use_select speex {codec,func}_speex |
242 |
use_select srtp res_srtp |
243 |
use_select syslog cdr_syslog |
244 |
use_select vorbis format_ogg_vorbis |
245 |
|
246 |
# Voicemail storage ... |
247 |
for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
248 |
if use ${vmst}; then |
249 |
menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
250 |
fi |
251 |
done |
252 |
|
253 |
if use debug; then |
254 |
for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do |
255 |
menuselect/menuselect --enable $o menuselect.makeopts |
256 |
done |
257 |
fi |
258 |
} |
259 |
|
260 |
src_compile() { |
261 |
ASTLDFLAGS="${LDFLAGS}" emake |
262 |
} |
263 |
|
264 |
src_install() { |
265 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
266 |
emake DESTDIR="${D}" installdirs |
267 |
emake DESTDIR="${D}" install |
268 |
|
269 |
if use radius; then |
270 |
insinto /etc/radiusclient-ng/ |
271 |
doins contrib/dictionary.digium |
272 |
fi |
273 |
diropts -m 0750 -o root -g asterisk |
274 |
keepdir /etc/asterisk |
275 |
if use samples; then |
276 |
emake DESTDIR="${D}" samples |
277 |
for conffile in "${D}"etc/asterisk/*.* |
278 |
do |
279 |
chown root:root $conffile |
280 |
chmod 0644 $conffile |
281 |
done |
282 |
einfo "Sample files have been installed" |
283 |
else |
284 |
einfo "Skipping installation of sample files..." |
285 |
rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
286 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
287 |
rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
288 |
rm -f "${D}"etc/asterisk/* || die |
289 |
fi |
290 |
rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
291 |
|
292 |
# keep directories |
293 |
diropts -m 0770 -o asterisk asterisk |
294 |
keepdir /var/lib/asterisk |
295 |
keepdir /var/spool/asterisk |
296 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
297 |
diropts -m 0750 -o asterisk -g asterisk |
298 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
299 |
|
300 |
newinitd "${FILESDIR}"/1.8.0/asterisk.initd7 asterisk |
301 |
newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
302 |
|
303 |
# install the upgrade documentation |
304 |
# |
305 |
dodoc README UPGRADE* BUGS CREDITS |
306 |
|
307 |
# install extra documentation |
308 |
# |
309 |
if use doc |
310 |
then |
311 |
dodoc doc/*.txt |
312 |
dodoc doc/*.pdf |
313 |
fi |
314 |
|
315 |
# install SIP scripts; bug #300832 |
316 |
# |
317 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
318 |
dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
319 |
dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
320 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
321 |
|
322 |
# install logrotate snippet; bug #329281 |
323 |
# |
324 |
insinto /etc/logrotate.d |
325 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk |
326 |
} |
327 |
|
328 |
pkg_postinst() { |
329 |
# |
330 |
# Announcements, warnings, reminders... |
331 |
# |
332 |
einfo "Asterisk has been installed" |
333 |
echo |
334 |
elog "If you want to know more about asterisk, visit these sites:" |
335 |
elog "http://www.asteriskdocs.org/" |
336 |
elog "http://www.voip-info.org/wiki-Asterisk" |
337 |
echo |
338 |
elog "http://www.automated.it/guidetoasterisk.htm" |
339 |
echo |
340 |
elog "Gentoo VoIP IRC Channel:" |
341 |
elog "#gentoo-voip @ irc.freenode.net" |
342 |
echo |
343 |
echo |
344 |
elog "Please read the Asterisk 12 upgrade document:" |
345 |
elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+12" |
346 |
} |
347 |
|
348 |
pkg_config() { |
349 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
350 |
|
351 |
read tmp |
352 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
353 |
|
354 |
if [[ "$tmp" = "y" ]] ||\ |
355 |
[[ "$tmp" = "yes" ]] |
356 |
then |
357 |
einfo "Resetting permissions to defaults..." |
358 |
|
359 |
for x in spool run lib log; do |
360 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
361 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
362 |
done |
363 |
|
364 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
365 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
366 |
|
367 |
einfo "done" |
368 |
else |
369 |
einfo "skipping" |
370 |
fi |
371 |
} |