1 |
chainsaw 11/02/26 19:01:27 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: asterisk-1.6.2.16.2-r2.ebuild |
5 |
Removed: asterisk-1.6.2.16.2-r1.ebuild |
6 |
Log: |
7 |
Transfer stable X86 keyword from -r1 to -r2; removing defective keepsrc USE-flag from ebuild & metadata.xml now. Removal of 1.2 & 1.4 is immanent. |
8 |
|
9 |
(Portage version: 2.1.9.41/cvs/Linux x86_64, RepoMan options: --force) |
10 |
|
11 |
Revision Changes Path |
12 |
1.15 net-misc/asterisk/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/metadata.xml?rev=1.15&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/metadata.xml?rev=1.15&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/metadata.xml?r1=1.14&r2=1.15 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/metadata.xml,v |
21 |
retrieving revision 1.14 |
22 |
retrieving revision 1.15 |
23 |
diff -u -r1.14 -r1.15 |
24 |
--- metadata.xml 4 Jan 2011 17:31:53 -0000 1.14 |
25 |
+++ metadata.xml 26 Feb 2011 19:01:27 -0000 1.15 |
26 |
@@ -12,7 +12,6 @@ |
27 |
<flag name="lowmem">Build Asterisk for environments with low amounts of memory (embedded devices)</flag> |
28 |
<flag name="nosamples">Don't install sample sound and configuration files</flag> |
29 |
<flag name="osp">Enable support for the Open Settlement Protocol</flag> |
30 |
- <flag name="keepsrc">Install sources into /usr/src for custom patching</flag> |
31 |
<flag name="misdn">Build with mISDN (chan_misdn) support for BRI ISDN cards</flag> |
32 |
<flag name="newt">Include additional tools that require redhats windowing toolkit</flag> |
33 |
<flag name="dahdi">Support Digium compatible hardware (formerly known as Zaptel).</flag> |
34 |
|
35 |
|
36 |
|
37 |
1.294 net-misc/asterisk/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.294&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?rev=1.294&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/ChangeLog?r1=1.293&r2=1.294 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v |
46 |
retrieving revision 1.293 |
47 |
retrieving revision 1.294 |
48 |
diff -u -r1.293 -r1.294 |
49 |
--- ChangeLog 26 Feb 2011 17:24:36 -0000 1.293 |
50 |
+++ ChangeLog 26 Feb 2011 19:01:27 -0000 1.294 |
51 |
@@ -1,6 +1,13 @@ |
52 |
# ChangeLog for net-misc/asterisk |
53 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.293 2011/02/26 17:24:36 tomka Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.294 2011/02/26 19:01:27 chainsaw Exp $ |
56 |
+ |
57 |
+*asterisk-1.6.2.16.2-r2 (26 Feb 2011) |
58 |
+ |
59 |
+ 26 Feb 2011; Tony Vroon <chainsaw@g.o> -asterisk-1.6.2.16.2-r1.ebuild, |
60 |
+ +asterisk-1.6.2.16.2-r2.ebuild, metadata.xml: |
61 |
+ Transfer stable X86 keyword from -r1 to -r2; removing defective keepsrc |
62 |
+ USE-flag from ebuild & metadata.xml now. Removal of 1.2 & 1.4 is immanent. |
63 |
|
64 |
26 Feb 2011; Thomas Kahle <tomka@g.o> asterisk-1.6.2.16.2-r1.ebuild: |
65 |
x86 stable per bug 352059 |
66 |
|
67 |
|
68 |
|
69 |
1.1 net-misc/asterisk/asterisk-1.6.2.16.2-r2.ebuild |
70 |
|
71 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.16.2-r2.ebuild?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.16.2-r2.ebuild?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: asterisk-1.6.2.16.2-r2.ebuild |
75 |
=================================================================== |
76 |
# Copyright 1999-2011 Gentoo Foundation |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.16.2-r2.ebuild,v 1.1 2011/02/26 19:01:27 chainsaw Exp $ |
79 |
|
80 |
EAPI=3 |
81 |
inherit autotools base eutils linux-info multilib |
82 |
|
83 |
MY_P="${PN}-${PV/_/-}" |
84 |
|
85 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
86 |
HOMEPAGE="http://www.asterisk.org/" |
87 |
SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
88 |
mirror://gentoo/gentoo-asterisk-patchset-0.1.tar.bz2" |
89 |
LICENSE="GPL-2" |
90 |
SLOT="0" |
91 |
KEYWORDS="~amd64 x86" |
92 |
|
93 |
IUSE="alsa +caps dahdi doc freetds iconv jabber ldap lua newt +samples oss postgres radius snmp span speex ssl sqlite vorbis" |
94 |
|
95 |
EPATCH_SUFFIX="patch" |
96 |
PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
97 |
|
98 |
RDEPEND="sys-libs/ncurses |
99 |
dev-libs/popt |
100 |
sys-libs/zlib |
101 |
alsa? ( media-libs/alsa-lib ) |
102 |
caps? ( sys-libs/libcap ) |
103 |
dahdi? ( >=net-libs/libpri-1.4.7 |
104 |
net-misc/dahdi-tools ) |
105 |
freetds? ( dev-db/freetds ) |
106 |
iconv? ( virtual/libiconv ) |
107 |
jabber? ( dev-libs/iksemel ) |
108 |
ldap? ( net-nds/openldap ) |
109 |
lua? ( dev-lang/lua ) |
110 |
newt? ( dev-libs/newt ) |
111 |
postgres? ( dev-db/postgresql-base ) |
112 |
radius? ( net-dialup/radiusclient-ng ) |
113 |
snmp? ( net-analyzer/net-snmp ) |
114 |
span? ( media-libs/spandsp ) |
115 |
speex? ( media-libs/speex ) |
116 |
sqlite? ( dev-db/sqlite ) |
117 |
ssl? ( dev-libs/openssl ) |
118 |
vorbis? ( media-libs/libvorbis )" |
119 |
|
120 |
DEPEND="${RDEPEND} |
121 |
!<net-misc/asterisk-addons-1.6 |
122 |
!net-misc/asterisk-chan_unistim |
123 |
!net-misc/zaptel" |
124 |
|
125 |
PDEPEND="net-misc/asterisk-core-sounds |
126 |
net-misc/asterisk-extra-sounds |
127 |
net-misc/asterisk-moh-opsound" |
128 |
|
129 |
S="${WORKDIR}/${MY_P}" |
130 |
|
131 |
pkg_setup() { |
132 |
CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
133 |
local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
134 |
have reported that this module dropped critical SIP packets in their deployments. You |
135 |
may want to disable it if you see such problems." |
136 |
check_extra_config |
137 |
|
138 |
enewgroup asterisk |
139 |
enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
140 |
} |
141 |
|
142 |
src_prepare() { |
143 |
base_src_prepare |
144 |
AT_M4DIR=autoconf eautoreconf |
145 |
} |
146 |
|
147 |
src_configure() { |
148 |
econf \ |
149 |
--libdir="/usr/$(get_libdir)" \ |
150 |
--localstatedir="/var" \ |
151 |
--with-gsm=internal \ |
152 |
--with-popt \ |
153 |
--with-z \ |
154 |
$(use_with alsa asound) \ |
155 |
$(use_with caps cap) \ |
156 |
$(use_with dahdi pri) \ |
157 |
$(use_with dahdi tonezone) \ |
158 |
$(use_with dahdi) \ |
159 |
$(use_with freetds tds) \ |
160 |
$(use_with iconv) \ |
161 |
$(use_with jabber iksemel) \ |
162 |
$(use_with lua) \ |
163 |
$(use_with newt) \ |
164 |
$(use_with oss) \ |
165 |
$(use_with postgres) \ |
166 |
$(use_with radius) \ |
167 |
$(use_with snmp netsnmp) \ |
168 |
$(use_with span spandsp) \ |
169 |
$(use_with speex) \ |
170 |
$(use_with speex speexdsp) \ |
171 |
$(use_with sqlite sqlite3) \ |
172 |
$(use_with ssl crypto) \ |
173 |
$(use_with ssl) \ |
174 |
$(use_with vorbis ogg) \ |
175 |
$(use_with vorbis) || die "econf failed" |
176 |
|
177 |
# |
178 |
# blank out sounds/sounds.xml file to prevent |
179 |
# asterisk from installing sounds files (we pull them in via |
180 |
# asterisk-{core,extra}-sounds and asterisk-moh-opsound). |
181 |
# |
182 |
>"${S}"/sounds/sounds.xml |
183 |
} |
184 |
|
185 |
src_compile() { |
186 |
ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" |
187 |
} |
188 |
|
189 |
src_install() { |
190 |
# setup directory structure |
191 |
# |
192 |
mkdir -p "${D}"usr/$(get_libdir)/pkgconfig |
193 |
|
194 |
emake DESTDIR="${D}" install || die "emake install failed" |
195 |
|
196 |
if use samples; then |
197 |
emake DESTDIR="${D}" samples || die "emake samples failed" |
198 |
for conffile in "${D}"etc/asterisk/*.* |
199 |
do |
200 |
chown asterisk:asterisk $conffile |
201 |
chmod 0660 $conffile |
202 |
done |
203 |
einfo "Sample files have been installed" |
204 |
else |
205 |
einfo "Skipping installation of sample files..." |
206 |
rm -f "${D}"var/lib/asterisk/mohmp3/* |
207 |
rm -f "${D}"var/lib/asterisk/sounds/demo-* |
208 |
rm -f "${D}"var/lib/asterisk/agi-bin/* |
209 |
rm -f "${D}"etc/asterisk/* |
210 |
fi |
211 |
rm -rf "${D}"var/spool/asterisk/voicemail/default |
212 |
|
213 |
# keep directories |
214 |
diropts -m 0770 -o asterisk -g asterisk |
215 |
keepdir /etc/asterisk |
216 |
keepdir /var/lib/asterisk |
217 |
keepdir /var/run/asterisk |
218 |
keepdir /var/spool/asterisk |
219 |
keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
220 |
diropts -m 0750 -o asterisk -g asterisk |
221 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
222 |
|
223 |
newinitd "${FILESDIR}"/1.6.2/asterisk.initd2 asterisk |
224 |
newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk |
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_postinst() { |
261 |
# |
262 |
# Announcements, warnings, reminders... |
263 |
# |
264 |
einfo "Asterisk has been installed" |
265 |
einfo |
266 |
elog "If you want to know more about asterisk, visit these sites:" |
267 |
elog "http://www.asteriskdocs.org/" |
268 |
elog "http://www.voip-info.org/wiki-Asterisk" |
269 |
einfo |
270 |
elog "http://www.automated.it/guidetoasterisk.htm" |
271 |
einfo |
272 |
elog "Gentoo VoIP IRC Channel:" |
273 |
elog "#gentoo-voip @ irc.freenode.net" |
274 |
} |
275 |
|
276 |
pkg_config() { |
277 |
einfo "Do you want to reset file permissions and ownerships (y/N)?" |
278 |
|
279 |
read tmp |
280 |
tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
281 |
|
282 |
if [[ "$tmp" = "y" ]] ||\ |
283 |
[[ "$tmp" = "yes" ]] |
284 |
then |
285 |
einfo "Resetting permissions to defaults..." |
286 |
|
287 |
for x in spool run lib log; do |
288 |
chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
289 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
290 |
done |
291 |
|
292 |
chown -R root:asterisk "${ROOT}"etc/asterisk |
293 |
chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
294 |
|
295 |
einfo "done" |
296 |
else |
297 |
einfo "skipping" |
298 |
fi |
299 |
} |