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