Gentoo Archives: gentoo-commits

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