1 |
chainsaw 10/07/26 10:41:30 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asterisk-1.6.2.10.ebuild |
5 |
Log: |
6 |
Bugfix release, closes bug #329771 by Oliver Jaksch. |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.264 net-misc/asterisk/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.264&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.264&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.263&r2=1.264 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
19 |
retrieving revision 1.263 |
20 |
retrieving revision 1.264 |
21 |
diff -u -r1.263 -r1.264 |
22 |
--- ChangeLog 19 Jul 2010 15:48:51 -0000 1.263 |
23 |
+++ ChangeLog 26 Jul 2010 10:41:29 -0000 1.264 |
24 |
@@ -1,6 +1,11 @@ |
25 |
\# ChangeLog for net-misc/asterisk |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.263 2010/07/19 15:48:51 chainsaw Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.264 2010/07/26 10:41:29 chainsaw Exp $ |
29 |
+ |
30 |
+*asterisk-1.6.2.10 (26 Jul 2010) |
31 |
+ |
32 |
+ 26 Jul 2010; <chainsaw@g.o> +asterisk-1.6.2.10.ebuild: |
33 |
+ Bugfix release, closes bug #329771 by Oliver Jaksch. |
34 |
|
35 |
*asterisk-1.6.2.9-r1 (19 Jul 2010) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 net-misc/asterisk/asterisk-1.6.2.10.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.10.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: asterisk-1.6.2.10.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $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 $ |
50 |
|
51 |
EAPI=3 |
52 |
inherit autotools base eutils linux-info multilib |
53 |
|
54 |
MY_P="${PN}-${PV/_/-}" |
55 |
|
56 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
57 |
HOMEPAGE="http://www.asterisk.org/" |
58 |
SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz" |
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~x86" |
62 |
|
63 |
IUSE="alsa +caps curl dahdi debug freetds iconv jabber ldap lua keepsrc misdn newt +samples oss postgres radius snmp span speex ssl sqlite static vorbis" |
64 |
|
65 |
RDEPEND="sys-libs/ncurses |
66 |
dev-libs/popt |
67 |
sys-libs/zlib |
68 |
alsa? ( media-libs/alsa-lib ) |
69 |
caps? ( sys-libs/libcap ) |
70 |
curl? ( net-misc/curl ) |
71 |
dahdi? ( >=net-libs/libpri-1.4.7 |
72 |
net-misc/dahdi-tools ) |
73 |
freetds? ( dev-db/freetds ) |
74 |
iconv? ( virtual/libiconv ) |
75 |
jabber? ( dev-libs/iksemel ) |
76 |
ldap? ( net-nds/openldap ) |
77 |
lua? ( dev-lang/lua ) |
78 |
misdn? ( net-dialup/misdnuser ) |
79 |
newt? ( dev-libs/newt ) |
80 |
postgres? ( dev-db/postgresql-base ) |
81 |
radius? ( net-dialup/radiusclient-ng ) |
82 |
snmp? ( net-analyzer/net-snmp ) |
83 |
span? ( media-libs/spandsp ) |
84 |
speex? ( media-libs/speex ) |
85 |
sqlite? ( dev-db/sqlite ) |
86 |
ssl? ( dev-libs/openssl ) |
87 |
vorbis? ( media-libs/libvorbis )" |
88 |
|
89 |
DEPEND="${RDEPEND} |
90 |
!<net-misc/asterisk-addons-1.6 |
91 |
!net-misc/asterisk-chan_unistim |
92 |
!net-misc/zaptel" |
93 |
|
94 |
S="${WORKDIR}/${MY_P}" |
95 |
|
96 |
PATCHES=( |
97 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.9-gsm-pic.patch" |
98 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.8-pri-missing-keyword.patch" |
99 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.8-inband-indications.patch" |
100 |
"${FILESDIR}/1.6.1/${PN}-1.6.1-uclibc.patch" |
101 |
"${FILESDIR}/1.6.1/${PN}-1.6.1.6-fxsks-hookstate.patch" |
102 |
"${FILESDIR}/1.6.2/${PN}-1.6.2.2-nv-faxdetect.patch" |
103 |
) |
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 |
|
113 |
src_prepare() { |
114 |
base_src_prepare |
115 |
AT_M4DIR=autoconf eautoreconf |
116 |
} |
117 |
|
118 |
src_configure() { |
119 |
econf \ |
120 |
--libdir="/usr/$(get_libdir)" \ |
121 |
--localstatedir="/var" \ |
122 |
--with-gsm=internal \ |
123 |
--with-popt \ |
124 |
--with-z \ |
125 |
$(use_with alsa asound) \ |
126 |
$(use_with caps cap) \ |
127 |
$(use_with curl) \ |
128 |
$(use_with dahdi pri) \ |
129 |
$(use_with dahdi tonezone) \ |
130 |
$(use_with dahdi) \ |
131 |
$(use_with freetds tds) \ |
132 |
$(use_with iconv) \ |
133 |
$(use_with jabber iksemel) \ |
134 |
$(use_with lua) \ |
135 |
$(use_with misdn isdnnet) \ |
136 |
$(use_with misdn suppserv) \ |
137 |
$(use_with misdn) \ |
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 |
src_compile() { |
154 |
ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
# setup directory structure |
159 |
# |
160 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig |
161 |
|
162 |
emake DESTDIR="${D}" install || die "emake install failed" |
163 |
|
164 |
if use samples; then |
165 |
emake DESTDIR="${D}" samples || die "emake samples failed" |
166 |
for conffile in "${D}"etc/asterisk/*.* |
167 |
do |
168 |
chown asterisk:asterisk $conffile |
169 |
chmod 0660 $conffile |
170 |
done |
171 |
einfo "Sample files have been installed" |
172 |
else |
173 |
einfo "Skipping installation of sample files..." |
174 |
rm -f "${D}"var/lib/asterisk/mohmp3/* |
175 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* |
176 |
rm -f "${D}"var/lib/asterisk/agi-bin/* |
177 |
rm -f "${D}"etc/asterisk/* |
178 |
fi |
179 |
rm -rf "${D}"var/spool/asterisk/voicemail/default |
180 |
|
181 |
# keep directories |
182 |
diropts -m 0770 -o asterisk -g asterisk |
183 |
keepdir /etc/asterisk |
184 |
keepdir /var/lib/asterisk |
185 |
keepdir /var/run/asterisk |
186 |
keepdir /var/spool/asterisk |
187 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
188 |
diropts -m 0750 -o asterisk -g asterisk |
189 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
190 |
|
191 |
newinitd "${FILESDIR}"/1.6.2/asterisk.initd asterisk |
192 |
newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk |
193 |
|
194 |
# some people like to keep the sources around for custom patching |
195 |
# copy the whole source tree to /usr/src/asterisk-${PVF} and run make clean there |
196 |
if use keepsrc |
197 |
then |
198 |
dodir /usr/src |
199 |
|
200 |
ebegin "Copying sources into /usr/src" |
201 |
cp -dPR "${S}" "${D}"/usr/src/${PF} || die "Unable to copy sources" |
202 |
eend $? |
203 |
|
204 |
ebegin "Cleaning source tree" |
205 |
emake -C "${D}"/usr/src/${PF} clean &>/dev/null || die "Unable to clean sources" |
206 |
eend $? |
207 |
|
208 |
einfo "Clean sources are available in "${ROOT}"usr/src/${PF}" |
209 |
fi |
210 |
|
211 |
# install the upgrade documentation |
212 |
# |
213 |
dodoc README UPGRADE* BUGS CREDITS |
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 |
|
231 |
pkg_preinst() { |
232 |
enewgroup asterisk |
233 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
234 |
} |
235 |
|
236 |
pkg_postinst() { |
237 |
# |
238 |
# Announcements, warnings, reminders... |
239 |
# |
240 |
einfo "Asterisk has been installed" |
241 |
echo |
242 |
elog "If you want to know more about asterisk, visit these sites:" |
243 |
elog "http://www.asteriskdocs.org/" |
244 |
elog "http://www.voip-info.org/wiki-Asterisk" |
245 |
echo |
246 |
elog "http://www.automated.it/guidetoasterisk.htm" |
247 |
echo |
248 |
elog "Gentoo VoIP IRC Channel:" |
249 |
elog "#gentoo-voip @ irc.freenode.net" |
250 |
echo |
251 |
echo |
252 |
elog "1.6.1 -> 1.6.2 changes that you may care about:" |
253 |
elog "canreinvite -> directmedia (sip.conf)" |
254 |
elog "extensive T.38 (fax) changes" |
255 |
elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt" |
256 |
elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2" |
257 |
} |
258 |
|
259 |
pkg_config() { |
260 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
261 |
|
262 |
read tmp |
263 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
264 |
|
265 |
if [[ "$tmp" = "y" ]] ||\ |
266 |
[[ "$tmp" = "yes" ]] |
267 |
then |
268 |
einfo "Resetting permissions to defaults..." |
269 |
|
270 |
for x in spool run lib log; do |
271 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
272 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
273 |
done |
274 |
|
275 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
276 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
277 |
|
278 |
einfo "done" |
279 |
else |
280 |
einfo "skipping" |
281 |
fi |
282 |
} |