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