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-1.6.2.9.ebuild ChangeLog asterisk-1.6.2.8.ebuild asterisk-1.6.1.20.ebuild asterisk-1.6.2.6.ebuild asterisk-1.6.1.18.ebuild asterisk-1.6.2.7.ebuild asterisk-1.6.1.19.ebuild
Date: Fri, 25 Jun 2010 15:14:16
Message-Id: 20100625151409.838522CF62@corvid.gentoo.org
1 chainsaw 10/06/25 15:14:09
2
3 Modified: ChangeLog asterisk-1.6.2.8.ebuild
4 asterisk-1.6.1.20.ebuild
5 Added: asterisk-1.6.2.9.ebuild
6 Removed: asterisk-1.6.2.6.ebuild asterisk-1.6.1.18.ebuild
7 asterisk-1.6.2.7.ebuild asterisk-1.6.1.19.ebuild
8 Log:
9 New upstream version. A DTMF crasher has been fixed, several off-by-one errors have been addressed. Also the build system has seen some improvements. With thanks to Oliver Jacksch for a rebased patch, closes bug #324657. Research by Jaco Kroon closes bug #325231 by Kerin Millar. Cleaned up old ebuilds.
10 (Portage version: 2.1.8.3/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.261 net-misc/asterisk/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.261&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.261&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.260&r2=1.261
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v
22 retrieving revision 1.260
23 retrieving revision 1.261
24 diff -u -r1.260 -r1.261
25 --- ChangeLog 17 Jun 2010 20:56:41 -0000 1.260
26 +++ ChangeLog 25 Jun 2010 15:14:09 -0000 1.261
27 @@ -1,6 +1,19 @@
28 -# ChangeLog for net-misc/asterisk
29 +\# ChangeLog for net-misc/asterisk
30 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.260 2010/06/17 20:56:41 patrick Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.261 2010/06/25 15:14:09 chainsaw Exp $
33 +
34 +*asterisk-1.6.2.9 (25 Jun 2010)
35 +
36 + 25 Jun 2010; Tony Vroon <chainsaw@g.o> -asterisk-1.6.1.18.ebuild,
37 + -asterisk-1.6.1.19.ebuild, asterisk-1.6.1.20.ebuild,
38 + -asterisk-1.6.2.6.ebuild, -asterisk-1.6.2.7.ebuild,
39 + asterisk-1.6.2.8.ebuild, +asterisk-1.6.2.9.ebuild,
40 + +files/1.6.2/asterisk-1.6.2.9-gsm-pic.patch:
41 + New upstream version. A DTMF crasher has been fixed, several off-by-one
42 + errors have been addressed. Also the build system has seen some
43 + improvements. With thanks to Oliver Jacksch for a rebased patch, closes
44 + bug #324657. Research by Jaco Kroon closes bug #325231 by Kerin Millar.
45 + Cleaned up old ebuilds.
46
47 17 Jun 2010; Patrick Lauer <patrick@g.o> asterisk-1.2.37.ebuild,
48 asterisk-1.2.40.ebuild, asterisk-1.6.1.18.ebuild,
49
50
51
52 1.3 net-misc/asterisk/asterisk-1.6.2.8.ebuild
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.8.ebuild?rev=1.3&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.8.ebuild?rev=1.3&content-type=text/plain
56 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.8.ebuild?r1=1.2&r2=1.3
57
58 Index: asterisk-1.6.2.8.ebuild
59 ===================================================================
60 RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.8.ebuild,v
61 retrieving revision 1.2
62 retrieving revision 1.3
63 diff -u -r1.2 -r1.3
64 --- asterisk-1.6.2.8.ebuild 17 Jun 2010 20:56:41 -0000 1.2
65 +++ asterisk-1.6.2.8.ebuild 25 Jun 2010 15:14:09 -0000 1.3
66 @@ -1,6 +1,6 @@
67 # Copyright 1999-2010 Gentoo Foundation
68 # Distributed under the terms of the GNU General Public License v2
69 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.8.ebuild,v 1.2 2010/06/17 20:56:41 patrick Exp $
70 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.8.ebuild,v 1.3 2010/06/25 15:14:09 chainsaw Exp $
71
72 EAPI=3
73 inherit autotools base eutils linux-info
74 @@ -9,7 +9,7 @@
75
76 DESCRIPTION="Asterisk: A Modular Open Source PBX System"
77 HOMEPAGE="http://www.asterisk.org/"
78 -SRC_URI="http://downloads.digium.com/pub/telephony/asterisk/releases/${MY_P}.tar.gz"
79 +SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz"
80 LICENSE="GPL-2"
81 SLOT="0"
82 KEYWORDS="~amd64 ~x86"
83
84
85
86 1.3 net-misc/asterisk/asterisk-1.6.1.20.ebuild
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.20.ebuild?rev=1.3&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.20.ebuild?rev=1.3&content-type=text/plain
90 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.20.ebuild?r1=1.2&r2=1.3
91
92 Index: asterisk-1.6.1.20.ebuild
93 ===================================================================
94 RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.20.ebuild,v
95 retrieving revision 1.2
96 retrieving revision 1.3
97 diff -u -r1.2 -r1.3
98 --- asterisk-1.6.1.20.ebuild 17 Jun 2010 20:56:41 -0000 1.2
99 +++ asterisk-1.6.1.20.ebuild 25 Jun 2010 15:14:09 -0000 1.3
100 @@ -1,6 +1,6 @@
101 # Copyright 1999-2010 Gentoo Foundation
102 # Distributed under the terms of the GNU General Public License v2
103 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.20.ebuild,v 1.2 2010/06/17 20:56:41 patrick Exp $
104 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.20.ebuild,v 1.3 2010/06/25 15:14:09 chainsaw Exp $
105
106 EAPI=3
107 inherit autotools base eutils linux-info
108 @@ -9,7 +9,7 @@
109
110 DESCRIPTION="Asterisk: A Modular Open Source PBX System"
111 HOMEPAGE="http://www.asterisk.org/"
112 -SRC_URI="http://downloads.digium.com/pub/telephony/asterisk/releases/${MY_P}.tar.gz"
113 +SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz"
114 LICENSE="GPL-2"
115 SLOT="0"
116 KEYWORDS="~amd64 ~x86"
117
118
119
120 1.1 net-misc/asterisk/asterisk-1.6.2.9.ebuild
121
122 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.9.ebuild?rev=1.1&view=markup
123 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.9.ebuild?rev=1.1&content-type=text/plain
124
125 Index: asterisk-1.6.2.9.ebuild
126 ===================================================================
127 # Copyright 1999-2010 Gentoo Foundation
128 # Distributed under the terms of the GNU General Public License v2
129 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.9.ebuild,v 1.1 2010/06/25 15:14:09 chainsaw Exp $
130
131 EAPI=3
132 inherit autotools base eutils linux-info
133
134 MY_P="${PN}-${PV/_/-}"
135
136 DESCRIPTION="Asterisk: A Modular Open Source PBX System"
137 HOMEPAGE="http://www.asterisk.org/"
138 SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz"
139 LICENSE="GPL-2"
140 SLOT="0"
141 KEYWORDS="~amd64 ~x86"
142
143 IUSE="alsa +caps curl dahdi debug freetds iconv jabber ldap lua keepsrc misdn newt +samples oss postgres radius snmp span speex ssl sqlite static vorbis"
144
145 RDEPEND="sys-libs/ncurses
146 dev-libs/popt
147 sys-libs/zlib
148 alsa? ( media-libs/alsa-lib )
149 caps? ( sys-libs/libcap )
150 curl? ( net-misc/curl )
151 dahdi? ( >=net-libs/libpri-1.4.7
152 net-misc/dahdi-tools )
153 freetds? ( dev-db/freetds )
154 iconv? ( virtual/libiconv )
155 jabber? ( dev-libs/iksemel )
156 ldap? ( net-nds/openldap )
157 lua? ( dev-lang/lua )
158 misdn? ( net-dialup/misdnuser )
159 newt? ( dev-libs/newt )
160 postgres? ( dev-db/postgresql-base )
161 radius? ( net-dialup/radiusclient-ng )
162 snmp? ( net-analyzer/net-snmp )
163 span? ( media-libs/spandsp )
164 speex? ( media-libs/speex )
165 sqlite? ( dev-db/sqlite )
166 ssl? ( dev-libs/openssl )
167 vorbis? ( media-libs/libvorbis )"
168
169 DEPEND="${RDEPEND}
170 !<net-misc/asterisk-addons-1.6
171 !net-misc/asterisk-chan_unistim
172 !net-misc/zaptel"
173
174 S="${WORKDIR}/${MY_P}"
175
176 PATCHES=(
177 "${FILESDIR}/1.6.2/${P}-gsm-pic.patch"
178 "${FILESDIR}/1.6.2/${PN}-1.6.2.8-pri-missing-keyword.patch"
179 "${FILESDIR}/1.6.2/${PN}-1.6.2.8-inband-indications.patch"
180 "${FILESDIR}/1.6.1/${PN}-1.6.1-uclibc.patch"
181 "${FILESDIR}/1.6.1/${PN}-1.6.1.6-fxsks-hookstate.patch"
182 "${FILESDIR}/1.6.2/${PN}-1.6.2.2-nv-faxdetect.patch"
183 )
184
185 get_available_modules() {
186 local modules mod x
187
188 # build list of available modules...
189 for x in app cdr codec format func pbx res; do
190
191 for mod in $(find "${S}" -type f -name "${x}_*.c*" -print)
192 do
193 modules="${modules} $(basename ${mod/%.c*})"
194 done
195 done
196
197 echo "${modules}"
198 }
199
200 pkg_setup() {
201 if [[ -n "${ASTERISK_MODULES}" ]] ; then
202 ewarn "You are overriding ASTERISK_MODULES. We will assume you know what you are doing. There is no support for this option, try without if you see breakage."
203 fi
204 CONFIG_CHECK="~!NF_CONNTRACK_SIP"
205 local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
206 have reported that this module dropped critical SIP packets in their deployments. You
207 may want to disable it if you see such problems."
208 check_extra_config
209
210 # parse modules list
211 if [[ -n "${ASTERISK_MODULES}" ]]; then
212 local x modules="$(get_available_modules)"
213
214 einfo "Custom list of modules specified, checking..."
215
216 use debug && {
217 einfo "Available modules: ${modules}"
218 einfo " Selected modules: ${ASTERISK_MODULES}"
219 }
220
221 for x in ${ASTERISK_MODULES}; do
222 if [[ "${x}" = "-*" ]]; then
223 MODULES_LIST=""
224 else
225 if has ${x} ${modules}
226 then
227 MODULES_LIST="${MODULES_LIST} ${x}"
228 else
229 eerror "Unknown module: ${x}"
230 fi
231 fi
232 done
233
234 export MODULES_LIST
235 fi
236 }
237
238 src_prepare() {
239 base_src_prepare
240 AT_M4DIR=autoconf eautoreconf
241 }
242
243 src_configure() {
244 econf \
245 --libdir="/usr/$(get_libdir)" \
246 --localstatedir="/var" \
247 --with-gsm=internal \
248 --with-popt \
249 --with-z \
250 $(use_with alsa asound) \
251 $(use_with caps cap) \
252 $(use_with curl) \
253 $(use_with dahdi pri) \
254 $(use_with dahdi tonezone) \
255 $(use_with dahdi) \
256 $(use_with freetds tds) \
257 $(use_with iconv) \
258 $(use_with jabber iksemel) \
259 $(use_with lua) \
260 $(use_with misdn isdnnet) \
261 $(use_with misdn suppserv) \
262 $(use_with misdn) \
263 $(use_with newt) \
264 $(use_with oss) \
265 $(use_with postgres) \
266 $(use_with radius) \
267 $(use_with snmp netsnmp) \
268 $(use_with span spandsp) \
269 $(use_with speex) \
270 $(use_with speex speexdsp) \
271 $(use_with sqlite sqlite3) \
272 $(use_with ssl crypto) \
273 $(use_with ssl) \
274 $(use_with vorbis ogg) \
275 $(use_with vorbis) || die "econf failed"
276
277 #
278 # custom module filter
279 # run menuselect to evaluate the list of modules
280 # and rewrite the list afterwards
281 #
282 if [[ -n "${MODULES_LIST}" ]]
283 then
284 local mod category tmp_list failed_list
285
286 ###
287 # run menuselect
288
289 emake menuselect.makeopts || die "emake menuselect.makeopts failed"
290
291 ###
292 # get list of modules with failed dependencies
293
294 failed_list="$(awk -F= '/^MENUSELECT_DEPSFAILED=/{ print $3 }' menuselect.makeopts)"
295
296 ###
297 # traverse our list of modules
298
299 for category in app cdr codec format func pbx res; do
300 tmp_list=""
301
302 # search list of modules for matching ones first...
303 for mod in ${MODULES_LIST}; do
304 # module is from current category?
305 if [[ "${mod/%_*}" = "${category}" ]]
306 then
307 # check menuselect thinks the dependencies are met
308 if has ${mod} ${failed_list}
309 then
310 eerror "${mod}: dependencies required to build this module are not met, NOT BUILDING!"
311 else
312 tmp_list="${tmp_list} ${mod}"
313 fi
314 fi
315 done
316
317 use debug && echo "${category} tmp: ${tmp_list}"
318
319 # replace the module list for $category with our custom one
320 if [[ -n "${tmp_list}" ]]
321 then
322 category="$(echo ${category} | tr '[:lower:]' '[:upper:]')"
323 sed -i -e "s:^\(MENUSELECT_${category}S?\):\1=${tmp_list}:" \
324 menuselect.makeopts || die "failed to set list of ${category} applications"
325 fi
326 done
327 fi
328 }
329
330 src_compile() {
331 ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed"
332 }
333
334 src_install() {
335 # setup directory structure
336 #
337 mkdir -p "${D}"usr/lib/pkgconfig
338
339 emake DESTDIR="${D}" install || die "emake install failed"
340
341 if use samples; then
342 emake DESTDIR="${D}" samples || die "emake samples failed"
343 for conffile in "${D}"etc/asterisk/*.*
344 do
345 chown asterisk:asterisk $conffile
346 chmod 0660 $conffile
347 done
348 einfo "Sample files have been installed"
349 else
350 einfo "Skipping installation of sample files..."
351 rm -f "${D}"var/lib/asterisk/mohmp3/*
352 rm -f "${D}"var/lib/asterisk/sounds/demo-*
353 rm -f "${D}"var/lib/asterisk/agi-bin/*
354 rm -f "${D}"etc/asterisk/*
355 fi
356 rm -rf "${D}"var/spool/asterisk/voicemail/default
357
358 # keep directories
359 diropts -m 0770 -o asterisk -g asterisk
360 keepdir /etc/asterisk
361 keepdir /var/lib/asterisk
362 keepdir /var/run/asterisk
363 keepdir /var/spool/asterisk
364 keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail}
365 diropts -m 0750 -o asterisk -g asterisk
366 keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
367
368 newinitd "${FILESDIR}"/1.6.1/asterisk.initd3 asterisk
369 newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk
370
371 # some people like to keep the sources around for custom patching
372 # copy the whole source tree to /usr/src/asterisk-${PVF} and run make clean there
373 if use keepsrc
374 then
375 dodir /usr/src
376
377 ebegin "Copying sources into /usr/src"
378 cp -dPR "${S}" "${D}"/usr/src/${PF} || die "Unable to copy sources"
379 eend $?
380
381 ebegin "Cleaning source tree"
382 emake -C "${D}"/usr/src/${PF} clean &>/dev/null || die "Unable to clean sources"
383 eend $?
384
385 einfo "Clean sources are available in "${ROOT}"usr/src/${PF}"
386 fi
387
388 # install the upgrade documentation
389 #
390 dodoc README UPGRADE* BUGS CREDITS
391
392 # install snmp mib files
393 #
394 if use snmp
395 then
396 insinto /usr/share/snmp/mibs/
397 doins doc/digium-mib.txt doc/asterisk-mib.txt
398 fi
399 }
400
401 pkg_preinst() {
402 enewgroup asterisk
403 enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout"
404 }
405
406 pkg_postinst() {
407 #
408 # Announcements, warnings, reminders...
409 #
410 einfo "Asterisk has been installed"
411 echo
412 elog "If you want to know more about asterisk, visit these sites:"
413 elog "http://www.asteriskdocs.org/"
414 elog "http://www.voip-info.org/wiki-Asterisk"
415 echo
416 elog "http://www.automated.it/guidetoasterisk.htm"
417 echo
418 elog "Gentoo VoIP IRC Channel:"
419 elog "#gentoo-voip @ irc.freenode.net"
420 echo
421 echo
422 elog "1.6.1 -> 1.6.2 changes that you may care about:"
423 elog "canreinvite -> directmedia (sip.conf)"
424 elog "extensive T.38 (fax) changes"
425 elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt"
426 elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2"
427 }
428
429 pkg_config() {
430 einfo "Do you want to reset file permissions and ownerships (y/N)?"
431
432 read tmp
433 tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')"
434
435 if [[ "$tmp" = "y" ]] ||\
436 [[ "$tmp" = "yes" ]]
437 then
438 einfo "Resetting permissions to defaults..."
439
440 for x in spool run lib log; do
441 chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk
442 chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk
443 done
444
445 chown -R root:asterisk "${ROOT}"etc/asterisk
446 chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk
447
448 einfo "done"
449 else
450 einfo "skipping"
451 fi
452 }