1 |
chainsaw 10/08/20 23:12:54 |
2 |
|
3 |
Modified: asterisk-1.6.2.10.ebuild asterisk-1.2.40.ebuild |
4 |
asterisk-1.2.37.ebuild asterisk-1.6.2.11.ebuild |
5 |
ChangeLog metadata.xml |
6 |
Added: asterisk-1.6.2.11-r1.ebuild |
7 |
Log: |
8 |
Tweak nm call to avoid binary deletion as requested by Alexey McSakoff in bug #302736. Bashims removed from init script by Kerin Millar & Federico Santulli, closes bug #309277. Stock audio prompts now split out to separate ebuilds and logrotate support thanks to Jaco Kroon, closes bug #328513 & #329281 respectively. |
9 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.2 net-misc/asterisk/asterisk-1.6.2.10.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild?rev=1.2&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild?rev=1.2&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild?r1=1.1&r2=1.2 |
17 |
|
18 |
Index: asterisk-1.6.2.10.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild,v |
21 |
retrieving revision 1.1 |
22 |
retrieving revision 1.2 |
23 |
diff -u -r1.1 -r1.2 |
24 |
--- asterisk-1.6.2.10.ebuild 26 Jul 2010 10:41:29 -0000 1.1 |
25 |
+++ asterisk-1.6.2.10.ebuild 20 Aug 2010 23:12:54 -0000 1.2 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2010 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild,v 1.1 2010/07/26 10:41:29 chainsaw Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild,v 1.2 2010/08/20 23:12:54 chainsaw Exp $ |
31 |
|
32 |
EAPI=3 |
33 |
inherit autotools base eutils linux-info multilib |
34 |
@@ -43,7 +43,10 @@ |
35 |
DEPEND="${RDEPEND} |
36 |
!<net-misc/asterisk-addons-1.6 |
37 |
!net-misc/asterisk-chan_unistim |
38 |
- !net-misc/zaptel" |
39 |
+ !net-misc/zaptel |
40 |
+ !net-misc/asterisk-core-sounds |
41 |
+ !net-misc/asterisk-extra-sounds |
42 |
+ !net-misc/asterisk-moh-opsound" |
43 |
|
44 |
S="${WORKDIR}/${MY_P}" |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
1.3 net-misc/asterisk/asterisk-1.2.40.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.2.40.ebuild?rev=1.3&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.2.40.ebuild?rev=1.3&content-type=text/plain |
53 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.2.40.ebuild?r1=1.2&r2=1.3 |
54 |
|
55 |
Index: asterisk-1.2.40.ebuild |
56 |
=================================================================== |
57 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.40.ebuild,v |
58 |
retrieving revision 1.2 |
59 |
retrieving revision 1.3 |
60 |
diff -u -r1.2 -r1.3 |
61 |
--- asterisk-1.2.40.ebuild 17 Jun 2010 20:56:41 -0000 1.2 |
62 |
+++ asterisk-1.2.40.ebuild 20 Aug 2010 23:12:54 -0000 1.3 |
63 |
@@ -1,6 +1,6 @@ |
64 |
# Copyright 1999-2010 Gentoo Foundation |
65 |
# Distributed under the terms of the GNU General Public License v2 |
66 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.40.ebuild,v 1.2 2010/06/17 20:56:41 patrick Exp $ |
67 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.40.ebuild,v 1.3 2010/08/20 23:12:54 chainsaw Exp $ |
68 |
|
69 |
EAPI=2 |
70 |
inherit eutils multilib toolchain-funcs |
71 |
@@ -41,7 +41,10 @@ |
72 |
sys-devel/flex |
73 |
sys-devel/bison |
74 |
doc? ( app-doc/doxygen ) |
75 |
- virtual/logger" |
76 |
+ virtual/logger |
77 |
+ !net-misc/asterisk-core-sounds |
78 |
+ !net-misc/asterisk-extra-sounds |
79 |
+ !net-misc/asterisk-moh-opsound" |
80 |
|
81 |
#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 |
82 |
PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" |
83 |
|
84 |
|
85 |
|
86 |
1.7 net-misc/asterisk/asterisk-1.2.37.ebuild |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.2.37.ebuild?rev=1.7&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.2.37.ebuild?rev=1.7&content-type=text/plain |
90 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.2.37.ebuild?r1=1.6&r2=1.7 |
91 |
|
92 |
Index: asterisk-1.2.37.ebuild |
93 |
=================================================================== |
94 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.37.ebuild,v |
95 |
retrieving revision 1.6 |
96 |
retrieving revision 1.7 |
97 |
diff -u -r1.6 -r1.7 |
98 |
--- asterisk-1.2.37.ebuild 17 Jun 2010 20:56:41 -0000 1.6 |
99 |
+++ asterisk-1.2.37.ebuild 20 Aug 2010 23:12:54 -0000 1.7 |
100 |
@@ -1,6 +1,6 @@ |
101 |
# Copyright 1999-2010 Gentoo Foundation |
102 |
# Distributed under the terms of the GNU General Public License v2 |
103 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.37.ebuild,v 1.6 2010/06/17 20:56:41 patrick Exp $ |
104 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.2.37.ebuild,v 1.7 2010/08/20 23:12:54 chainsaw Exp $ |
105 |
|
106 |
EAPI=2 |
107 |
inherit eutils multilib toolchain-funcs |
108 |
@@ -41,7 +41,10 @@ |
109 |
sys-devel/flex |
110 |
sys-devel/bison |
111 |
doc? ( app-doc/doxygen ) |
112 |
- virtual/logger" |
113 |
+ virtual/logger |
114 |
+ !net-misc/asterisk-core-sounds |
115 |
+ !net-misc/asterisk-extra-sounds |
116 |
+ !net-misc/asterisk-moh-opsound" |
117 |
|
118 |
#asterisk uses special mpg123 functions and does not work with mpeg321, bug #42703 |
119 |
PDEPEND="|| ( media-sound/mpg123 net-misc/asterisk-addons )" |
120 |
|
121 |
|
122 |
|
123 |
1.2 net-misc/asterisk/asterisk-1.6.2.11.ebuild |
124 |
|
125 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11.ebuild?rev=1.2&view=markup |
126 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11.ebuild?rev=1.2&content-type=text/plain |
127 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11.ebuild?r1=1.1&r2=1.2 |
128 |
|
129 |
Index: asterisk-1.6.2.11.ebuild |
130 |
=================================================================== |
131 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11.ebuild,v |
132 |
retrieving revision 1.1 |
133 |
retrieving revision 1.2 |
134 |
diff -u -r1.1 -r1.2 |
135 |
--- asterisk-1.6.2.11.ebuild 10 Aug 2010 23:23:48 -0000 1.1 |
136 |
+++ asterisk-1.6.2.11.ebuild 20 Aug 2010 23:12:54 -0000 1.2 |
137 |
@@ -1,6 +1,6 @@ |
138 |
# Copyright 1999-2010 Gentoo Foundation |
139 |
# Distributed under the terms of the GNU General Public License v2 |
140 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11.ebuild,v 1.1 2010/08/10 23:23:48 chainsaw Exp $ |
141 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11.ebuild,v 1.2 2010/08/20 23:12:54 chainsaw Exp $ |
142 |
|
143 |
EAPI=3 |
144 |
inherit autotools base eutils linux-info multilib |
145 |
@@ -42,7 +42,10 @@ |
146 |
DEPEND="${RDEPEND} |
147 |
!<net-misc/asterisk-addons-1.6 |
148 |
!net-misc/asterisk-chan_unistim |
149 |
- !net-misc/zaptel" |
150 |
+ !net-misc/zaptel |
151 |
+ !net-misc/asterisk-core-sounds |
152 |
+ !net-misc/asterisk-extra-sounds |
153 |
+ !net-misc/asterisk-moh-opsound" |
154 |
|
155 |
S="${WORKDIR}/${MY_P}" |
156 |
|
157 |
|
158 |
|
159 |
|
160 |
1.267 net-misc/asterisk/ChangeLog |
161 |
|
162 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.267&view=markup |
163 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.267&content-type=text/plain |
164 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.266&r2=1.267 |
165 |
|
166 |
Index: ChangeLog |
167 |
=================================================================== |
168 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
169 |
retrieving revision 1.266 |
170 |
retrieving revision 1.267 |
171 |
diff -u -r1.266 -r1.267 |
172 |
--- ChangeLog 20 Aug 2010 15:16:43 -0000 1.266 |
173 |
+++ ChangeLog 20 Aug 2010 23:12:54 -0000 1.267 |
174 |
@@ -1,6 +1,20 @@ |
175 |
\# ChangeLog for net-misc/asterisk |
176 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
177 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.266 2010/08/20 15:16:43 chainsaw Exp $ |
178 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.267 2010/08/20 23:12:54 chainsaw Exp $ |
179 |
+ |
180 |
+*asterisk-1.6.2.11-r1 (20 Aug 2010) |
181 |
+ |
182 |
+ 20 Aug 2010; <chainsaw@g.o> asterisk-1.2.40.ebuild, |
183 |
+ asterisk-1.6.2.10.ebuild, asterisk-1.6.2.11.ebuild, |
184 |
+ +asterisk-1.6.2.11-r1.ebuild, |
185 |
+ +files/1.6.2/asterisk-1.6.2.11-strip-noapi.patch, |
186 |
+ +files/1.6.2/asterisk.initd2, +files/1.6.2/asterisk.logrotate, |
187 |
+ asterisk-1.2.37.ebuild: |
188 |
+ Tweak nm call to avoid binary deletion as requested by Alexey McSakoff in |
189 |
+ bug #302736. Bashims removed from init script by Kerin Millar & Federico |
190 |
+ Santulli, closes bug #309277. Stock audio prompts now split out to |
191 |
+ separate ebuilds and logrotate support thanks to Jaco Kroon, closes bug |
192 |
+ #328513 & #329281 respectively. |
193 |
|
194 |
20 Aug 2010; <chainsaw@g.o> |
195 |
-files/1.6.1/asterisk-1.6.1.1-resolve-peer-not-section-header.patch, |
196 |
|
197 |
|
198 |
|
199 |
1.12 net-misc/asterisk/metadata.xml |
200 |
|
201 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/metadata.xml?rev=1.12&view=markup |
202 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/metadata.xml?rev=1.12&content-type=text/plain |
203 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/metadata.xml?r1=1.11&r2=1.12 |
204 |
|
205 |
Index: metadata.xml |
206 |
=================================================================== |
207 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/metadata.xml,v |
208 |
retrieving revision 1.11 |
209 |
retrieving revision 1.12 |
210 |
diff -u -r1.11 -r1.12 |
211 |
--- metadata.xml 13 May 2010 14:52:34 -0000 1.11 |
212 |
+++ metadata.xml 20 Aug 2010 23:12:54 -0000 1.12 |
213 |
@@ -18,5 +18,6 @@ |
214 |
<flag name="dahdi">Support Digium compatible hardware (formerly known as Zaptel).</flag> |
215 |
<flag name="span">Enable support for the spandsp codec</flag> |
216 |
<flag name="samples">Install sample sound and configuration files (default: on)</flag> |
217 |
+ <flag name="logrotate">Install a configuration snippet for the logrotate cronjob</flag> |
218 |
</use> |
219 |
</pkgmetadata> |
220 |
|
221 |
|
222 |
|
223 |
1.1 net-misc/asterisk/asterisk-1.6.2.11-r1.ebuild |
224 |
|
225 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11-r1.ebuild?rev=1.1&view=markup |
226 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11-r1.ebuild?rev=1.1&content-type=text/plain |
227 |
|
228 |
Index: asterisk-1.6.2.11-r1.ebuild |
229 |
=================================================================== |
230 |
# Copyright 1999-2010 Gentoo Foundation |
231 |
# Distributed under the terms of the GNU General Public License v2 |
232 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.11-r1.ebuild,v 1.1 2010/08/20 23:12:54 chainsaw Exp $ |
233 |
|
234 |
EAPI=3 |
235 |
inherit autotools base eutils linux-info multilib |
236 |
|
237 |
MY_P="${PN}-${PV/_/-}" |
238 |
|
239 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
240 |
HOMEPAGE="http://www.asterisk.org/" |
241 |
SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz" |
242 |
LICENSE="GPL-2" |
243 |
SLOT="0" |
244 |
KEYWORDS="~amd64 ~x86" |
245 |
|
246 |
IUSE="alsa +caps dahdi debug freetds iconv jabber ldap lua keepsrc logrotate misdn newt +samples oss postgres radius snmp span speex ssl sqlite static vorbis" |
247 |
|
248 |
RDEPEND="sys-libs/ncurses |
249 |
dev-libs/popt |
250 |
sys-libs/zlib |
251 |
alsa? ( media-libs/alsa-lib ) |
252 |
caps? ( sys-libs/libcap ) |
253 |
dahdi? ( >=net-libs/libpri-1.4.7 |
254 |
net-misc/dahdi-tools ) |
255 |
freetds? ( dev-db/freetds ) |
256 |
iconv? ( virtual/libiconv ) |
257 |
jabber? ( dev-libs/iksemel ) |
258 |
ldap? ( net-nds/openldap ) |
259 |
lua? ( dev-lang/lua ) |
260 |
misdn? ( net-dialup/misdnuser ) |
261 |
newt? ( dev-libs/newt ) |
262 |
postgres? ( dev-db/postgresql-base ) |
263 |
radius? ( net-dialup/radiusclient-ng ) |
264 |
snmp? ( net-analyzer/net-snmp ) |
265 |
span? ( media-libs/spandsp ) |
266 |
speex? ( media-libs/speex ) |
267 |
sqlite? ( dev-db/sqlite ) |
268 |
ssl? ( dev-libs/openssl ) |
269 |
vorbis? ( media-libs/libvorbis )" |
270 |
|
271 |
DEPEND="${RDEPEND} |
272 |
!<net-misc/asterisk-addons-1.6 |
273 |
!net-misc/asterisk-chan_unistim |
274 |
!net-misc/zaptel" |
275 |
|
276 |
PDEPEND="net-misc/asterisk-core-sounds |
277 |
net-misc/asterisk-extra-sounds |
278 |
net-misc/asterisk-moh-opsound" |
279 |
|
280 |
S="${WORKDIR}/${MY_P}" |
281 |
|
282 |
PATCHES=( |
283 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.9-gsm-pic.patch" |
284 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.8-pri-missing-keyword.patch" |
285 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.8-inband-indications.patch" |
286 |
"${FILESDIR}/1.6.1/${PN}-1.6.1-uclibc.patch" |
287 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.2-nv-faxdetect.patch" |
288 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.11-strip-noapi.patch" |
289 |
) |
290 |
|
291 |
pkg_setup() { |
292 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
293 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
294 |
have reported that this module dropped critical SIP packets in their deployments. You |
295 |
may want to disable it if you see such problems." |
296 |
check_extra_config |
297 |
} |
298 |
|
299 |
src_prepare() { |
300 |
base_src_prepare |
301 |
AT_M4DIR=autoconf eautoreconf |
302 |
} |
303 |
|
304 |
src_configure() { |
305 |
econf \ |
306 |
--libdir="/usr/$(get_libdir)" \ |
307 |
--localstatedir="/var" \ |
308 |
--with-gsm=internal \ |
309 |
--with-popt \ |
310 |
--with-z \ |
311 |
$(use_with alsa asound) \ |
312 |
$(use_with caps cap) \ |
313 |
$(use_with dahdi pri) \ |
314 |
$(use_with dahdi tonezone) \ |
315 |
$(use_with dahdi) \ |
316 |
$(use_with freetds tds) \ |
317 |
$(use_with iconv) \ |
318 |
$(use_with jabber iksemel) \ |
319 |
$(use_with lua) \ |
320 |
$(use_with misdn isdnnet) \ |
321 |
$(use_with misdn suppserv) \ |
322 |
$(use_with misdn) \ |
323 |
$(use_with newt) \ |
324 |
$(use_with oss) \ |
325 |
$(use_with postgres) \ |
326 |
$(use_with radius) \ |
327 |
$(use_with snmp netsnmp) \ |
328 |
$(use_with span spandsp) \ |
329 |
$(use_with speex) \ |
330 |
$(use_with speex speexdsp) \ |
331 |
$(use_with sqlite sqlite3) \ |
332 |
$(use_with ssl crypto) \ |
333 |
$(use_with ssl) \ |
334 |
$(use_with vorbis ogg) \ |
335 |
$(use_with vorbis) || die "econf failed" |
336 |
|
337 |
# |
338 |
# blank out sounds/sounds.xml file to prevent |
339 |
# asterisk from installing sounds files (we pull them in via |
340 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
341 |
# |
342 |
>"${S}"/sounds/sounds.xml |
343 |
} |
344 |
|
345 |
src_compile() { |
346 |
ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" |
347 |
} |
348 |
|
349 |
src_install() { |
350 |
# setup directory structure |
351 |
# |
352 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig |
353 |
|
354 |
emake DESTDIR="${D}" install || die "emake install failed" |
355 |
|
356 |
if use samples; then |
357 |
emake DESTDIR="${D}" samples || die "emake samples failed" |
358 |
for conffile in "${D}"etc/asterisk/*.* |
359 |
do |
360 |
chown asterisk:asterisk $conffile |
361 |
chmod 0660 $conffile |
362 |
done |
363 |
einfo "Sample files have been installed" |
364 |
else |
365 |
einfo "Skipping installation of sample files..." |
366 |
rm -f "${D}"var/lib/asterisk/mohmp3/* |
367 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* |
368 |
rm -f "${D}"var/lib/asterisk/agi-bin/* |
369 |
rm -f "${D}"etc/asterisk/* |
370 |
fi |
371 |
rm -rf "${D}"var/spool/asterisk/voicemail/default |
372 |
|
373 |
# keep directories |
374 |
diropts -m 0770 -o asterisk -g asterisk |
375 |
keepdir /etc/asterisk |
376 |
keepdir /var/lib/asterisk |
377 |
keepdir /var/run/asterisk |
378 |
keepdir /var/spool/asterisk |
379 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
380 |
diropts -m 0750 -o asterisk -g asterisk |
381 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
382 |
|
383 |
newinitd "${FILESDIR}"/1.6.2/asterisk.initd2 asterisk |
384 |
newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk |
385 |
|
386 |
# some people like to keep the sources around for custom patching |
387 |
# copy the whole source tree to /usr/src/asterisk-${PVF} and run make clean there |
388 |
if use keepsrc |
389 |
then |
390 |
dodir /usr/src |
391 |
|
392 |
ebegin "Copying sources into /usr/src" |
393 |
cp -dPR "${S}" "${D}"/usr/src/${PF} || die "Unable to copy sources" |
394 |
eend $? |
395 |
|
396 |
ebegin "Cleaning source tree" |
397 |
emake -C "${D}"/usr/src/${PF} clean &>/dev/null || die "Unable to clean sources" |
398 |
eend $? |
399 |
|
400 |
einfo "Clean sources are available in "${ROOT}"usr/src/${PF}" |
401 |
fi |
402 |
|
403 |
# install the upgrade documentation |
404 |
# |
405 |
dodoc README UPGRADE* BUGS CREDITS |
406 |
|
407 |
# install snmp mib files |
408 |
# |
409 |
if use snmp |
410 |
then |
411 |
insinto /usr/share/snmp/mibs/ |
412 |
doins doc/digium-mib.txt doc/asterisk-mib.txt |
413 |
fi |
414 |
|
415 |
# install SIP scripts; bug #300832 |
416 |
# |
417 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
418 |
dodoc "${FILESDIR}/1.6.2/find_call_sip_trace.sh" |
419 |
dodoc "${FILESDIR}/1.6.2/find_call_ids.sh" |
420 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
421 |
|
422 |
# install logrotate snippet; bug #329281 |
423 |
# |
424 |
if use logrotate |
425 |
then |
426 |
insinto /etc/logrotate.d |
427 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate" asterisk |
428 |
fi |
429 |
} |
430 |
|
431 |
pkg_preinst() { |
432 |
enewgroup asterisk |
433 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
434 |
} |
435 |
|
436 |
pkg_postinst() { |
437 |
# |
438 |
# Announcements, warnings, reminders... |
439 |
# |
440 |
einfo "Asterisk has been installed" |
441 |
echo |
442 |
elog "If you want to know more about asterisk, visit these sites:" |
443 |
elog "http://www.asteriskdocs.org/" |
444 |
elog "http://www.voip-info.org/wiki-Asterisk" |
445 |
echo |
446 |
elog "http://www.automated.it/guidetoasterisk.htm" |
447 |
echo |
448 |
elog "Gentoo VoIP IRC Channel:" |
449 |
elog "#gentoo-voip @ irc.freenode.net" |
450 |
echo |
451 |
echo |
452 |
elog "1.6.1 -> 1.6.2 changes that you may care about:" |
453 |
elog "canreinvite -> directmedia (sip.conf)" |
454 |
elog "extensive T.38 (fax) changes" |
455 |
elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt" |
456 |
elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2" |
457 |
} |
458 |
|
459 |
pkg_config() { |
460 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
461 |
|
462 |
read tmp |
463 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
464 |
|
465 |
if [[ "$tmp" = "y" ]] ||\ |
466 |
[[ "$tmp" = "yes" ]] |
467 |
then |
468 |
einfo "Resetting permissions to defaults..." |
469 |
|
470 |
for x in spool run lib log; do |
471 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
472 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
473 |
done |
474 |
|
475 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
476 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
477 |
|
478 |
einfo "done" |
479 |
else |
480 |
einfo "skipping" |
481 |
fi |
482 |
} |