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