Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/asterisk: asterisk-1.6.2.19.ebuild ChangeLog
Date: Wed, 29 Jun 2011 20:23:28
Message-Id: 20110629202317.BA7CF20054@flycatcher.gentoo.org
1 chainsaw 11/06/29 20:23:17
2
3 Modified: ChangeLog
4 Added: asterisk-1.6.2.19.ebuild
5 Log:
6 This is the final maintenance release in the 1.6.2 branch, which will receive security updates until April 21, 2012. The FullyBooted event is no longer erroneously broadcasted to all AMI connections. Resolves a thread blocking issue in SIP TCP/TLS, a chan_local crash, DTMF delays in core bridge and no longer offers video in directmedia unless both sides support it. Secured up to and including AST-2011-011.
7
8 (Portage version: 2.1.10.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.329 net-misc/asterisk/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.329&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.329&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.328&r2=1.329
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v
20 retrieving revision 1.328
21 retrieving revision 1.329
22 diff -u -r1.328 -r1.329
23 --- ChangeLog 29 Jun 2011 19:17:16 -0000 1.328
24 +++ ChangeLog 29 Jun 2011 20:23:17 -0000 1.329
25 @@ -1,6 +1,16 @@
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.328 2011/06/29 19:17:16 chainsaw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.329 2011/06/29 20:23:17 chainsaw Exp $
30 +
31 +*asterisk-1.6.2.19 (29 Jun 2011)
32 +
33 + 29 Jun 2011; Tony Vroon <chainsaw@g.o> +asterisk-1.6.2.19.ebuild:
34 + This is the final maintenance release in the 1.6.2 branch, which will receive
35 + security updates until April 21, 2012. The FullyBooted event is no longer
36 + erroneously broadcasted to all AMI connections. Resolves a thread blocking
37 + issue in SIP TCP/TLS, a chan_local crash, DTMF delays in core bridge and no
38 + longer offers video in directmedia unless both sides support it. Secured up
39 + to and including AST-2011-011.
40
41 29 Jun 2011; Tony Vroon <chainsaw@g.o> -asterisk-1.6.2.18.1.ebuild:
42 Remove last vulnerable ebuild in 1.6.2 branch now that stabling has been
43
44
45
46 1.1 net-misc/asterisk/asterisk-1.6.2.19.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.19.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.19.ebuild?rev=1.1&content-type=text/plain
50
51 Index: asterisk-1.6.2.19.ebuild
52 ===================================================================
53 # Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.19.ebuild,v 1.1 2011/06/29 20:23:17 chainsaw Exp $
56
57 EAPI=3
58 inherit autotools base eutils linux-info multilib
59
60 MY_P="${PN}-${PV/_/-}"
61
62 DESCRIPTION="Asterisk: A Modular Open Source PBX System"
63 HOMEPAGE="http://www.asterisk.org/"
64 SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz
65 mirror://gentoo/gentoo-asterisk-patchset-0.6.tar.bz2"
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69
70 IUSE="alsa +caps dahdi doc freetds iconv jabber ldap lua newt +samples oss postgres radius snmp span speex ssl sqlite vorbis"
71
72 EPATCH_SUFFIX="patch"
73 PATCHES=( "${WORKDIR}/asterisk-patchset" )
74
75 RDEPEND="sys-libs/ncurses
76 dev-libs/popt
77 sys-libs/zlib
78 alsa? ( media-libs/alsa-lib )
79 caps? ( sys-libs/libcap )
80 dahdi? ( >=net-libs/libpri-1.4.7
81 >=net-misc/dahdi-tools-2.4.1 )
82 freetds? ( dev-db/freetds )
83 iconv? ( virtual/libiconv )
84 jabber? ( dev-libs/iksemel )
85 ldap? ( net-nds/openldap )
86 lua? ( dev-lang/lua )
87 newt? ( dev-libs/newt )
88 postgres? ( dev-db/postgresql-base )
89 radius? ( net-dialup/radiusclient-ng )
90 snmp? ( net-analyzer/net-snmp )
91 span? ( media-libs/spandsp )
92 speex? ( media-libs/speex )
93 sqlite? ( dev-db/sqlite )
94 ssl? ( dev-libs/openssl )
95 vorbis? ( media-libs/libvorbis )"
96
97 DEPEND="${RDEPEND}
98 !<net-misc/asterisk-addons-1.6
99 !net-misc/asterisk-chan_unistim
100 !net-misc/zaptel"
101
102 PDEPEND="net-misc/asterisk-core-sounds
103 net-misc/asterisk-extra-sounds
104 net-misc/asterisk-moh-opsound"
105
106 S="${WORKDIR}/${MY_P}"
107
108 pkg_setup() {
109 CONFIG_CHECK="~!NF_CONNTRACK_SIP"
110 local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
111 have reported that this module dropped critical SIP packets in their deployments. You
112 may want to disable it if you see such problems."
113 check_extra_config
114
115 enewgroup asterisk
116 enewgroup dialout 20
117 enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout"
118 }
119
120 src_prepare() {
121 base_src_prepare
122 AT_M4DIR=autoconf eautoreconf
123 }
124
125 src_configure() {
126 econf \
127 --libdir="/usr/$(get_libdir)" \
128 --localstatedir="/var" \
129 --with-gsm=internal \
130 --with-popt \
131 --with-z \
132 $(use_with alsa asound) \
133 $(use_with caps cap) \
134 $(use_with dahdi pri) \
135 $(use_with dahdi tonezone) \
136 $(use_with dahdi) \
137 $(use_with freetds tds) \
138 $(use_with iconv) \
139 $(use_with jabber iksemel) \
140 $(use_with lua) \
141 $(use_with newt) \
142 $(use_with oss) \
143 $(use_with postgres) \
144 $(use_with radius) \
145 $(use_with snmp netsnmp) \
146 $(use_with span spandsp) \
147 $(use_with speex) \
148 $(use_with speex speexdsp) \
149 $(use_with sqlite sqlite3) \
150 $(use_with ssl crypto) \
151 $(use_with ssl) \
152 $(use_with vorbis ogg) \
153 $(use_with vorbis) || die "econf failed"
154
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 #
160 >"${S}"/sounds/sounds.xml
161 }
162
163 src_compile() {
164 ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed"
165 }
166
167 src_install() {
168 # setup directory structure
169 #
170 mkdir -p "${D}"usr/$(get_libdir)/pkgconfig
171
172 emake DESTDIR="${D}" install || die "emake install failed"
173
174 if use samples; then
175 emake DESTDIR="${D}" samples || die "emake samples failed"
176 for conffile in "${D}"etc/asterisk/*.*
177 do
178 chown asterisk:asterisk $conffile
179 chmod 0660 $conffile
180 done
181 einfo "Sample files have been installed"
182 else
183 einfo "Skipping installation of sample files..."
184 rm -f "${D}"var/lib/asterisk/mohmp3/*
185 rm -f "${D}"var/lib/asterisk/sounds/demo-*
186 rm -f "${D}"var/lib/asterisk/agi-bin/*
187 rm -f "${D}"etc/asterisk/*
188 fi
189 rm -rf "${D}"var/spool/asterisk/voicemail/default
190
191 # keep directories
192 diropts -m 0770 -o asterisk -g asterisk
193 keepdir /etc/asterisk
194 keepdir /var/lib/asterisk
195 keepdir /var/run/asterisk
196 keepdir /var/spool/asterisk
197 keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail}
198 diropts -m 0750 -o asterisk -g asterisk
199 keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
200
201 newinitd "${FILESDIR}"/1.6.2/asterisk.initd2 asterisk
202 newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk
203
204 # install the upgrade documentation
205 #
206 dodoc README UPGRADE* BUGS CREDITS
207
208 # install extra documentation
209 #
210 if use doc
211 then
212 dodoc doc/*.txt
213 dodoc doc/*.pdf
214 dodoc doc/PEERING
215 dodoc doc/CODING-GUIDELINES
216 dodoc doc/tex/*.pdf
217 fi
218
219 # install snmp mib files
220 #
221 if use snmp
222 then
223 insinto /usr/share/snmp/mibs/
224 doins doc/digium-mib.txt doc/asterisk-mib.txt
225 fi
226
227 # install SIP scripts; bug #300832
228 #
229 dodoc "${FILESDIR}/1.6.2/sip_calc_auth"
230 dodoc "${FILESDIR}/1.6.2/find_call_sip_trace.sh"
231 dodoc "${FILESDIR}/1.6.2/find_call_ids.sh"
232 dodoc "${FILESDIR}/1.6.2/call_data.txt"
233
234 insinto /etc/logrotate.d
235 newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk
236 }
237
238 pkg_postinst() {
239 #
240 # Announcements, warnings, reminders...
241 #
242 einfo "Asterisk has been installed"
243 einfo
244 elog "If you want to know more about asterisk, visit these sites:"
245 elog "http://www.asteriskdocs.org/"
246 elog "http://www.voip-info.org/wiki-Asterisk"
247 einfo
248 elog "http://www.automated.it/guidetoasterisk.htm"
249 einfo
250 elog "Gentoo VoIP IRC Channel:"
251 elog "#gentoo-voip @ irc.freenode.net"
252 }
253
254 pkg_config() {
255 einfo "Do you want to reset file permissions and ownerships (y/N)?"
256
257 read tmp
258 tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')"
259
260 if [[ "$tmp" = "y" ]] ||\
261 [[ "$tmp" = "yes" ]]
262 then
263 einfo "Resetting permissions to defaults..."
264
265 for x in spool run lib log; do
266 chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk
267 chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk
268 done
269
270 chown -R root:asterisk "${ROOT}"etc/asterisk
271 chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk
272
273 einfo "done"
274 else
275 einfo "skipping"
276 fi
277 }