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