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