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