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