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