Gentoo Archives: gentoo-commits

From: "Rajiv Aaron Manglani (rajiv)" <rajiv@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/asterisk-addons: ChangeLog asterisk-addons-1.2.8.ebuild asterisk-addons-1.2.5-r1.ebuild asterisk-addons-1.2.4.ebuild asterisk-addons-1.2.5.ebuild
Date: Thu, 21 Feb 2008 04:07:50
Message-Id: E1JS2ip-0001fW-Ii@stork.gentoo.org
1 rajiv 08/02/21 04:07:47
2
3 Modified: ChangeLog
4 Added: asterisk-addons-1.2.8.ebuild
5 Removed: asterisk-addons-1.2.5-r1.ebuild
6 asterisk-addons-1.2.4.ebuild
7 asterisk-addons-1.2.5.ebuild
8 Log:
9 version bump and security fix, bug #196122. cleanup old ebuilds.
10 (Portage version: 2.1.4.4)
11
12 Revision Changes Path
13 1.13 net-misc/asterisk-addons/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-addons/ChangeLog?rev=1.13&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-addons/ChangeLog?rev=1.13&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-addons/ChangeLog?r1=1.12&r2=1.13
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk-addons/ChangeLog,v
22 retrieving revision 1.12
23 retrieving revision 1.13
24 diff -u -r1.12 -r1.13
25 --- ChangeLog 11 Oct 2007 20:35:28 -0000 1.12
26 +++ ChangeLog 21 Feb 2008 04:07:47 -0000 1.13
27 @@ -1,6 +1,13 @@
28 # ChangeLog for net-misc/asterisk-addons
29 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-addons/ChangeLog,v 1.12 2007/10/11 20:35:28 sbriesen Exp $
31 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
32 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-addons/ChangeLog,v 1.13 2008/02/21 04:07:47 rajiv Exp $
33 +
34 +*asterisk-addons-1.2.8 (21 Feb 2008)
35 +
36 + 21 Feb 2008; Rajiv Aaron Manglani <rajiv@g.o>
37 + -asterisk-addons-1.2.4.ebuild, -asterisk-addons-1.2.5.ebuild,
38 + -asterisk-addons-1.2.5-r1.ebuild, +asterisk-addons-1.2.8.ebuild:
39 + version bump and security fix, bug #196122. cleanup old ebuilds.
40
41 11 Oct 2007; Stefan Briesenick <sbriesen@g.o>
42 asterisk-addons-1.2.5-r1.ebuild:
43
44
45
46 1.1 net-misc/asterisk-addons/asterisk-addons-1.2.8.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.2.8.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.2.8.ebuild?rev=1.1&content-type=text/plain
50
51 Index: asterisk-addons-1.2.8.ebuild
52 ===================================================================
53 # Copyright 1999-2008 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.2.8.ebuild,v 1.1 2008/02/21 04:07:47 rajiv Exp $
56
57 WANT_AUTOCONF="latest"
58 WANT_AUTOMAKE="latest"
59
60 inherit eutils flag-o-matic autotools
61
62 IUSE="elibc_uclibc mysql sqlite h323"
63 SQLITE_PV="3.2.1"
64
65 MY_P="${P/_/-}"
66
67 DESCRIPTION="Additional Plugins for Asterisk"
68 HOMEPAGE="http://www.asterisk.org/"
69 SRC_URI="http://downloads.digium.com/pub/asterisk/old-releases/${MY_P}.tar.gz
70 sqlite? ( http://www.sqlite.org/sqlite-${SQLITE_PV}.tar.gz )"
71
72 S=${WORKDIR}/${MY_P}
73
74 SLOT="0"
75 LICENSE="GPL-2"
76 KEYWORDS="~amd64 ~sparc ~x86"
77
78 DEPEND=">=net-misc/asterisk-1.2.0
79 mysql? ( virtual/mysql )"
80
81 pkg_setup() {
82 local n dosleep=0
83 einfo "Running pre-flight checks..."
84
85 if use h323 && built_with_use net-misc/asterisk h323; then
86 echo
87 ewarn "h323: Emerging ${PN} with the h323 flag enabled will overwrite asterisk's chan_h323.so!"
88 ewarn "h323: Be sure to upgrade ${ROOT}etc/asterisk/h323.conf afterwards!"
89 dosleep=1
90 fi
91
92 if use sqlite && built_with_use net-misc/asterisk sqlite; then
93 echo
94 ewarn "sqlite: Emerging ${PN} with the sqlite flag enabled will overwrite asterisk's res_sqlite.so!"
95 ewarn "sqlite: Be sure to upgrade ${ROOT}etc/asterisk/res_sqlite.conf afterwards!"
96 dosleep=1
97 fi
98
99 echo
100 if [[ $dosleep -gt 0 ]]; then
101 ebeep
102 n=10
103 while [[ $n -gt 0 ]]; do
104 echo -en " Waiting $n seconds...\r"
105 sleep 1
106 (( n-- ))
107 done
108 fi
109 }
110
111 src_unpack() {
112 unpack ${A}
113 cd ${S}
114
115 #
116 # gentoo patchset
117 #
118 epatch ${FILESDIR}/${PN}-1.2.0-gentoo-base.diff
119 epatch ${FILESDIR}/${PN}-1.2.0-gentoo-res_sqlite3.diff
120 epatch ${FILESDIR}/${PN}-1.2.2-gentoo-format_mp3.diff
121 epatch ${FILESDIR}/${PN}-1.2.3-gentoo-ooh323c.diff
122
123 # patch from jaervosz for uclibc
124 if use elibc_uclibc; then
125 epatch ${FILESDIR}/${PN}-1.2.2-uclibc.diff
126 epatch ${FILESDIR}/${PN}-1.2.4-uclibc.diff
127 fi
128 # patch sqlite
129 if use sqlite; then
130 cd ${WORKDIR}/sqlite-${SQLITE_PV}
131
132 epatch ${FILESDIR}/sqlite-${SQLITE_PV}-data-corruption.patch
133 epunt_cxx
134 fi
135
136 # rebuild ooh323c configure
137 if use h323; then
138 cd ${S}/asterisk-ooh323c
139 eautoreconf
140 fi
141 }
142
143 src_compile() {
144 append-flags -fPIC
145
146 emake -j1 OPTIMIZE="${CFLAGS}" || die "Make failed"
147
148 if use sqlite; then
149 cd ${WORKDIR}/sqlite-${SQLITE_PV}
150 econf --enable-threadsafe || die ""
151 emake || die ""
152
153 cd ${S}
154 emake -j1 -C res_sqlite3 \
155 SQLITEDIR=${WORKDIR}/sqlite-${SQLITE_PV} || die "Make res_sqlite failed"
156 fi
157
158 if use h323; then
159 cd ${S}/asterisk-ooh323c
160 econf || die "econf failed"
161 emake || die "emake failed"
162 fi
163 }
164
165 src_install() {
166 make DESTDIR=${D} install || die "Make install failed"
167
168 if use sqlite; then
169 make -C res_sqlite3 \
170 DESTDIR=${D} install || die "Make install res_sqlite3 failed"
171 fi
172
173 if use h323; then
174 make -C asterisk-ooh323c \
175 DESTDIR=${D} install || die "Make instal ooh323c failed"
176 fi
177
178 # install standard docs...
179 dodoc README
180 dodoc doc/cdr_mysql.txt
181
182 insinto /usr/share/doc/${PF}
183 doins configs/*.sample
184
185 if use sqlite; then
186 cd ${S}/res_sqlite3
187 docinto res_sqlite3
188 dodoc README
189 insinto /usr/share/doc/${PF}/res_sqlite3
190 doins res_sqlite.conf dialplan.sql
191 keepdir /var/lib/asterisk/sqlite
192 fi
193
194 if use h323; then
195 cd ${S}/asterisk-ooh323c
196 docinto chan_ooh323c
197 dodoc AUTHORS INSTALL NEWS README ChangeLog
198 dodoc h323.conf.sample extensions.conf.sample
199
200 insinto /etc/asterisk
201 newins h323.conf.sample h323.conf
202 fi
203
204 cd ${S}
205
206 if use mysql; then
207 insinto /etc/asterisk
208 newins configs/cdr_mysql.conf.sample cdr_mysql.conf
209 newins configs/res_mysql.conf.sample res_mysql.conf
210 fi
211
212 if use h323 || use mysql; then
213 einfo "Fixing permissions"
214 chown -R root:asterisk ${D}etc/asterisk
215 chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
216 fi
217 }
218
219 pkg_postinst() {
220 einfo "********* Some notes from the asterisk-addons readme: **********"
221 echo
222 ewarn "\"Using res_config_mysql at the same time as res_config_odbc can create"
223 ewarn "system instability on some systems. Please load only one or the other.\""
224 echo
225 ewarn "\"format_mp3 can cause Asterisk to crash on certain mp3 files (notably"
226 ewarn "8k files made with lame) due to bugs in mpglib. If you must use this"
227 ewarn "module, use it only with mp3's you know will work with it.\""
228 }
229
230
231
232 --
233 gentoo-commits@l.g.o mailing list