1 |
chainsaw 11/02/28 17:42:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asterisk-1.6.2.17.ebuild |
5 |
Log: |
6 |
New release on the 1.6.2 branch. This is a bugfix release, the official changelog is at http://www.asterisk.org/node/51583 for your enjoyment. |
7 |
|
8 |
(Portage version: 2.1.9.41/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.298 net-misc/asterisk/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.298&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.298&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.297&r2=1.298 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
20 |
retrieving revision 1.297 |
21 |
retrieving revision 1.298 |
22 |
diff -u -r1.297 -r1.298 |
23 |
--- ChangeLog 28 Feb 2011 17:32:14 -0000 1.297 |
24 |
+++ ChangeLog 28 Feb 2011 17:42:25 -0000 1.298 |
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.297 2011/02/28 17:32:14 chainsaw Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.298 2011/02/28 17:42:25 chainsaw Exp $ |
30 |
+ |
31 |
+*asterisk-1.6.2.17 (28 Feb 2011) |
32 |
+ |
33 |
+ 28 Feb 2011; Tony Vroon <chainsaw@g.o> +asterisk-1.6.2.17.ebuild: |
34 |
+ New release on the 1.6.2 branch. This is a bugfix release, the official |
35 |
+ changelog is at http://www.asterisk.org/node/51583 for your enjoyment. |
36 |
|
37 |
*asterisk-1.8.3 (28 Feb 2011) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-misc/asterisk/asterisk-1.6.2.17.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.17.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.17.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: asterisk-1.6.2.17.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.17.ebuild,v 1.1 2011/02/28 17:42:25 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 ) |
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 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
113 |
} |
114 |
|
115 |
src_prepare() { |
116 |
base_src_prepare |
117 |
AT_M4DIR=autoconf eautoreconf |
118 |
} |
119 |
|
120 |
src_configure() { |
121 |
econf \ |
122 |
--libdir="/usr/$(get_libdir)" \ |
123 |
--localstatedir="/var" \ |
124 |
--with-gsm=internal \ |
125 |
--with-popt \ |
126 |
--with-z \ |
127 |
$(use_with alsa asound) \ |
128 |
$(use_with caps cap) \ |
129 |
$(use_with dahdi pri) \ |
130 |
$(use_with dahdi tonezone) \ |
131 |
$(use_with dahdi) \ |
132 |
$(use_with freetds tds) \ |
133 |
$(use_with iconv) \ |
134 |
$(use_with jabber iksemel) \ |
135 |
$(use_with lua) \ |
136 |
$(use_with newt) \ |
137 |
$(use_with oss) \ |
138 |
$(use_with postgres) \ |
139 |
$(use_with radius) \ |
140 |
$(use_with snmp netsnmp) \ |
141 |
$(use_with span spandsp) \ |
142 |
$(use_with speex) \ |
143 |
$(use_with speex speexdsp) \ |
144 |
$(use_with sqlite sqlite3) \ |
145 |
$(use_with ssl crypto) \ |
146 |
$(use_with ssl) \ |
147 |
$(use_with vorbis ogg) \ |
148 |
$(use_with vorbis) || die "econf failed" |
149 |
|
150 |
# |
151 |
# blank out sounds/sounds.xml file to prevent |
152 |
# asterisk from installing sounds files (we pull them in via |
153 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound). |
154 |
# |
155 |
>"${S}"/sounds/sounds.xml |
156 |
} |
157 |
|
158 |
src_compile() { |
159 |
ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" |
160 |
} |
161 |
|
162 |
src_install() { |
163 |
# setup directory structure |
164 |
# |
165 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig |
166 |
|
167 |
emake DESTDIR="${D}" install || die "emake install failed" |
168 |
|
169 |
if use samples; then |
170 |
emake DESTDIR="${D}" samples || die "emake samples failed" |
171 |
for conffile in "${D}"etc/asterisk/*.* |
172 |
do |
173 |
chown asterisk:asterisk $conffile |
174 |
chmod 0660 $conffile |
175 |
done |
176 |
einfo "Sample files have been installed" |
177 |
else |
178 |
einfo "Skipping installation of sample files..." |
179 |
rm -f "${D}"var/lib/asterisk/mohmp3/* |
180 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* |
181 |
rm -f "${D}"var/lib/asterisk/agi-bin/* |
182 |
rm -f "${D}"etc/asterisk/* |
183 |
fi |
184 |
rm -rf "${D}"var/spool/asterisk/voicemail/default |
185 |
|
186 |
# keep directories |
187 |
diropts -m 0770 -o asterisk -g asterisk |
188 |
keepdir /etc/asterisk |
189 |
keepdir /var/lib/asterisk |
190 |
keepdir /var/run/asterisk |
191 |
keepdir /var/spool/asterisk |
192 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
193 |
diropts -m 0750 -o asterisk -g asterisk |
194 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
195 |
|
196 |
newinitd "${FILESDIR}"/1.6.2/asterisk.initd2 asterisk |
197 |
newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk |
198 |
|
199 |
# install the upgrade documentation |
200 |
# |
201 |
dodoc README UPGRADE* BUGS CREDITS |
202 |
|
203 |
# install extra documentation |
204 |
# |
205 |
if use doc |
206 |
then |
207 |
dodoc doc/*.txt |
208 |
dodoc doc/*.pdf |
209 |
dodoc doc/PEERING |
210 |
dodoc doc/CODING-GUIDELINES |
211 |
dodoc doc/tex/*.pdf |
212 |
fi |
213 |
|
214 |
# install snmp mib files |
215 |
# |
216 |
if use snmp |
217 |
then |
218 |
insinto /usr/share/snmp/mibs/ |
219 |
doins doc/digium-mib.txt doc/asterisk-mib.txt |
220 |
fi |
221 |
|
222 |
# install SIP scripts; bug #300832 |
223 |
# |
224 |
dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
225 |
dodoc "${FILESDIR}/1.6.2/find_call_sip_trace.sh" |
226 |
dodoc "${FILESDIR}/1.6.2/find_call_ids.sh" |
227 |
dodoc "${FILESDIR}/1.6.2/call_data.txt" |
228 |
|
229 |
insinto /etc/logrotate.d |
230 |
newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk |
231 |
} |
232 |
|
233 |
pkg_postinst() { |
234 |
# |
235 |
# Announcements, warnings, reminders... |
236 |
# |
237 |
einfo "Asterisk has been installed" |
238 |
einfo |
239 |
elog "If you want to know more about asterisk, visit these sites:" |
240 |
elog "http://www.asteriskdocs.org/" |
241 |
elog "http://www.voip-info.org/wiki-Asterisk" |
242 |
einfo |
243 |
elog "http://www.automated.it/guidetoasterisk.htm" |
244 |
einfo |
245 |
elog "Gentoo VoIP IRC Channel:" |
246 |
elog "#gentoo-voip @ irc.freenode.net" |
247 |
} |
248 |
|
249 |
pkg_config() { |
250 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
251 |
|
252 |
read tmp |
253 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
254 |
|
255 |
if [[ "$tmp" = "y" ]] ||\ |
256 |
[[ "$tmp" = "yes" ]] |
257 |
then |
258 |
einfo "Resetting permissions to defaults..." |
259 |
|
260 |
for x in spool run lib log; do |
261 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
262 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
263 |
done |
264 |
|
265 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
266 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
267 |
|
268 |
einfo "done" |
269 |
else |
270 |
einfo "skipping" |
271 |
fi |
272 |
} |