1 |
chainsaw 10/12/30 17:18:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asterisk-1.8.1.1.ebuild |
5 |
Log: |
6 |
Version bump, skipping 1.8.1 as upstream released 1.8.1.1 with two regression fixes. Google Talk fix committed upstream, closes bug #348572 by candrews@××××××××××××.com. Scavenged patches from upstream bug reports #18545, #18547, #18555 & #18556. Diffs in the patch tarball now have comments, thanks to Michael Lesniewski. |
7 |
|
8 |
(Portage version: 2.1.9.25/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.277 net-misc/asterisk/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.277&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.277&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.276&r2=1.277 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
20 |
retrieving revision 1.276 |
21 |
retrieving revision 1.277 |
22 |
diff -u -r1.276 -r1.277 |
23 |
--- ChangeLog 2 Dec 2010 13:37:30 -0000 1.276 |
24 |
+++ ChangeLog 30 Dec 2010 17:18:02 -0000 1.277 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for net-misc/asterisk |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.276 2010/12/02 13:37:30 chainsaw Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.277 2010/12/30 17:18:02 chainsaw Exp $ |
30 |
+ |
31 |
+*asterisk-1.8.1.1 (30 Dec 2010) |
32 |
+ |
33 |
+ 30 Dec 2010; Tony Vroon <chainsaw@g.o> +asterisk-1.8.1.1.ebuild: |
34 |
+ Version bump, skipping 1.8.1 as upstream released 1.8.1.1 with two regression |
35 |
+ fixes. Google Talk fix committed upstream, closes bug #348572 by |
36 |
+ candrews@××××××××××××.com. Scavenged patches from upstream bug reports |
37 |
+ #18545, #18547, #18555 & #18556. Diffs in the patch tarball now have |
38 |
+ comments, thanks to Michael Lesniewski. |
39 |
|
40 |
*asterisk-1.6.2.14 (02 Dec 2010) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-misc/asterisk/asterisk-1.8.1.1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.8.1.1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.8.1.1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: asterisk-1.8.1.1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2010 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.8.1.1.ebuild,v 1.1 2010/12/30 17:18:02 chainsaw Exp $ |
55 |
|
56 |
EAPI=3 |
57 |
inherit autotools base eutils linux-info multilib |
58 |
|
59 |
MY_P="${PN}-${PV/_/-}" |
60 |
|
61 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
62 |
HOMEPAGE="http://www.asterisk.org/" |
63 |
SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/${MY_P}.tar.gz |
64 |
mirror://gentoo/gentoo-asterisk-patchset-0.2.tar.bz2" |
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
|
69 |
IUSE="ais alsa bluetooth calendar +caps curl dahdi debug doc freetds gtalk h323 http iconv jabber jingle ldap logrotate lua keepsrc misdn mysql newt +samples odbc osplookup oss portaudio postgres radius snmp span speex ssl sqlite sqlite3 srtp static syslog usb vorbis" |
70 |
|
71 |
EPATCH_SUFFIX="patch" |
72 |
PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
73 |
|
74 |
RDEPEND="sys-libs/ncurses |
75 |
dev-libs/popt |
76 |
sys-libs/zlib |
77 |
dev-libs/libxml2 |
78 |
ais? ( sys-cluster/openais ) |
79 |
alsa? ( media-libs/alsa-lib ) |
80 |
bluetooth? ( net-wireless/bluez ) |
81 |
calendar? ( net-libs/neon |
82 |
dev-libs/libical |
83 |
dev-libs/iksemel ) |
84 |
caps? ( sys-libs/libcap ) |
85 |
curl? ( net-misc/curl ) |
86 |
dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
87 |
net-misc/dahdi-tools ) |
88 |
freetds? ( dev-db/freetds ) |
89 |
gtalk? ( dev-libs/iksemel ) |
90 |
h323? ( net-libs/openh323 ) |
91 |
http? ( dev-libs/gmime:0 ) |
92 |
iconv? ( virtual/libiconv ) |
93 |
jabber? ( dev-libs/iksemel ) |
94 |
jingle? ( dev-libs/iksemel ) |
95 |
ldap? ( net-nds/openldap ) |
96 |
lua? ( dev-lang/lua ) |
97 |
misdn? ( net-dialup/misdnuser ) |
98 |
mysql? ( dev-db/mysql ) |
99 |
newt? ( dev-libs/newt ) |
100 |
odbc? ( dev-db/unixODBC ) |
101 |
osplookup? ( net-libs/osptoolkit |
102 |
dev-libs/openssl ) |
103 |
portaudio? ( media-libs/portaudio ) |
104 |
postgres? ( dev-db/postgresql-base ) |
105 |
radius? ( net-dialup/radiusclient-ng ) |
106 |
snmp? ( net-analyzer/net-snmp ) |
107 |
span? ( media-libs/spandsp ) |
108 |
speex? ( media-libs/speex ) |
109 |
sqlite? ( dev-db/sqlite:0 ) |
110 |
sqlite3? ( dev-db/sqlite:3 ) |
111 |
srtp? ( net-libs/libsrtp ) |
112 |
ssl? ( dev-libs/openssl ) |
113 |
syslog? ( app-admin/syslog-ng ) |
114 |
usb? ( dev-libs/libusb |
115 |
media-libs/alsa-lib ) |
116 |
vorbis? ( media-libs/libvorbis )" |
117 |
|
118 |
DEPEND="${RDEPEND} |
119 |
!<net-misc/asterisk-addons-1.6 |
120 |
!net-misc/asterisk-chan_unistim |
121 |
!net-misc/zaptel" |
122 |
|
123 |
PDEPEND="net-misc/asterisk-core-sounds |
124 |
net-misc/asterisk-extra-sounds |
125 |
net-misc/asterisk-moh-opsound" |
126 |
|
127 |
S="${WORKDIR}/${MY_P}" |
128 |
|
129 |
pkg_setup() { |
130 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
131 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
132 |
have reported that this module dropped critical SIP packets in their deployments. You |
133 |
may want to disable it if you see such problems." |
134 |
check_extra_config |
135 |
} |
136 |
|
137 |
src_prepare() { |
138 |
base_src_prepare |
139 |
AT_M4DIR=autoconf eautoreconf |
140 |
} |
141 |
|
142 |
src_configure() { |
143 |
econf \ |
144 |
--libdir="/usr/$(get_libdir)" \ |
145 |
--localstatedir="/var" \ |
146 |
--with-gsm=internal \ |
147 |
--with-popt \ |
148 |
--with-z \ |
149 |
$(use_with ais openais) \ |
150 |
$(use_with alsa asound) \ |
151 |
$(use_with bluetooth) \ |
152 |
$(use_with calendar neon) \ |
153 |
$(use_with calendar neon29) \ |
154 |
$(use_with calendar ical) \ |
155 |
$(use_with calendar iksemel) \ |
156 |
$(use_with caps cap) \ |
157 |
$(use_with curl libcurl) \ |
158 |
$(use_with dahdi pri) \ |
159 |
$(use_with dahdi tonezone) \ |
160 |
$(use_with dahdi) \ |
161 |
$(use_with freetds tds) \ |
162 |
$(use_with h323) \ |
163 |
$(use_with http gmime) \ |
164 |
$(use_with iconv) \ |
165 |
$(use_with jabber iksemel) \ |
166 |
$(use_with jingle iksemel) \ |
167 |
$(use_with lua) \ |
168 |
$(use_with misdn isdnnet) \ |
169 |
$(use_with misdn suppserv) \ |
170 |
$(use_with misdn) \ |
171 |
$(use_with mysql mysqlclient) \ |
172 |
$(use_with newt) \ |
173 |
$(use_with osplookup osptk) \ |
174 |
$(use_with oss) \ |
175 |
$(use_with portaudio) \ |
176 |
$(use_with postgres) \ |
177 |
$(use_with radius) \ |
178 |
$(use_with snmp netsnmp) \ |
179 |
$(use_with span spandsp) \ |
180 |
$(use_with speex) \ |
181 |
$(use_with speex speexdsp) \ |
182 |
$(use_with sqlite) \ |
183 |
$(use_with sqlite3) \ |
184 |
$(use_with srtp) \ |
185 |
$(use_with ssl crypto) \ |
186 |
$(use_with ssl) \ |
187 |
$(use_with usb) \ |
188 |
$(use_with vorbis ogg) \ |
189 |
$(use_with vorbis) || die "econf failed" |
190 |
|
191 |
# |
192 |
# blank out sounds/sounds.xml file to prevent |
193 |
# asterisk from installing sounds files (we pull them in via |
194 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
195 |
# |
196 |
>"${S}"/sounds/sounds.xml |
197 |
} |
198 |
|
199 |
src_compile() { |
200 |
ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" |
201 |
} |
202 |
|
203 |
src_install() { |
204 |
# setup directory structure |
205 |
# |
206 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig |
207 |
|
208 |
emake DESTDIR="${D}" install || die "emake install failed" |
209 |
|
210 |
if use samples; then |
211 |
emake DESTDIR="${D}" samples || die "emake samples failed" |
212 |
for conffile in "${D}"etc/asterisk/*.* |
213 |
do |
214 |
chown asterisk:asterisk $conffile |
215 |
chmod 0660 $conffile |
216 |
done |
217 |
einfo "Sample files have been installed" |
218 |
else |
219 |
einfo "Skipping installation of sample files..." |
220 |
rm -f "${D}"var/lib/asterisk/mohmp3/* |
221 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* |
222 |
rm -f "${D}"var/lib/asterisk/agi-bin/* |
223 |
rm -f "${D}"etc/asterisk/* |
224 |
fi |
225 |
rm -rf "${D}"var/spool/asterisk/voicemail/default |
226 |
|
227 |
# keep directories |
228 |
diropts -m 0770 -o asterisk -g asterisk |
229 |
keepdir /etc/asterisk |
230 |
keepdir /var/lib/asterisk |
231 |
keepdir /var/run/asterisk |
232 |
keepdir /var/spool/asterisk |
233 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
234 |
diropts -m 0750 -o asterisk -g asterisk |
235 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
236 |
|
237 |
newinitd "${FILESDIR}"/1.6.2/asterisk.initd2 asterisk |
238 |
newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk |
239 |
|
240 |
# some people like to keep the sources around for custom patching |
241 |
# copy the whole source tree to /usr/src/asterisk-${PVF} and run make clean there |
242 |
if use keepsrc |
243 |
then |
244 |
dodir /usr/src |
245 |
|
246 |
ebegin "Copying sources into /usr/src" |
247 |
cp -dPR "${S}" "${D}"/usr/src/${PF} || die "Unable to copy sources" |
248 |
eend $? |
249 |
|
250 |
ebegin "Cleaning source tree" |
251 |
emake -C "${D}"/usr/src/${PF} clean &>/dev/null || die "Unable to clean sources" |
252 |
eend $? |
253 |
|
254 |
einfo "Clean sources are available in "${ROOT}"usr/src/${PF}" |
255 |
fi |
256 |
|
257 |
# install the upgrade documentation |
258 |
# |
259 |
dodoc README UPGRADE* BUGS CREDITS |
260 |
|
261 |
# install extra documentation |
262 |
# |
263 |
if use doc |
264 |
then |
265 |
dodoc doc/*.txt |
266 |
dodoc doc/*.pdf |
267 |
dodoc doc/PEERING |
268 |
dodoc doc/CODING-GUIDELINES |
269 |
dodoc doc/tex/*.pdf |
270 |
fi |
271 |
|
272 |
# install SIP scripts; bug #300832 |
273 |
# |
274 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
275 |
dodoc "${FILESDIR}/1.6.2/find_call_sip_trace.sh" |
276 |
dodoc "${FILESDIR}/1.6.2/find_call_ids.sh" |
277 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
278 |
|
279 |
# install logrotate snippet; bug #329281 |
280 |
# |
281 |
if use logrotate |
282 |
then |
283 |
insinto /etc/logrotate.d |
284 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk |
285 |
fi |
286 |
} |
287 |
|
288 |
pkg_preinst() { |
289 |
enewgroup asterisk |
290 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
291 |
} |
292 |
|
293 |
pkg_postinst() { |
294 |
# |
295 |
# Announcements, warnings, reminders... |
296 |
# |
297 |
einfo "Asterisk has been installed" |
298 |
echo |
299 |
elog "If you want to know more about asterisk, visit these sites:" |
300 |
elog "http://www.asteriskdocs.org/" |
301 |
elog "http://www.voip-info.org/wiki-Asterisk" |
302 |
echo |
303 |
elog "http://www.automated.it/guidetoasterisk.htm" |
304 |
echo |
305 |
elog "Gentoo VoIP IRC Channel:" |
306 |
elog "#gentoo-voip @ irc.freenode.net" |
307 |
echo |
308 |
echo |
309 |
elog "1.6 -> 1.8 changes that you may care about:" |
310 |
elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt" |
311 |
elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2" |
312 |
} |
313 |
|
314 |
pkg_config() { |
315 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
316 |
|
317 |
read tmp |
318 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
319 |
|
320 |
if [[ "$tmp" = "y" ]] ||\ |
321 |
[[ "$tmp" = "yes" ]] |
322 |
then |
323 |
einfo "Resetting permissions to defaults..." |
324 |
|
325 |
for x in spool run lib log; do |
326 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
327 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
328 |
done |
329 |
|
330 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
331 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
332 |
|
333 |
einfo "done" |
334 |
else |
335 |
einfo "skipping" |
336 |
fi |
337 |
} |