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