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