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