1 |
commit: eb87107203304706b5f8c8e859a6290808935317 |
2 |
Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 17 08:33:00 2018 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 17 08:33:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb871072 |
7 |
|
8 |
net-misc/asterisk: Remove vulnerable non-stable 13.X ebuilds |
9 |
|
10 |
Only the 13 branch is vulnerable, so leave the 11 stable branch ebuilds in. |
11 |
|
12 |
Signed-Off-By: Tony Vroon <chainsaw <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
14 |
|
15 |
net-misc/asterisk/Manifest | 4 - |
16 |
net-misc/asterisk/asterisk-13.19.2.ebuild | 327 ------------------------------ |
17 |
net-misc/asterisk/asterisk-13.20.0.ebuild | 327 ------------------------------ |
18 |
net-misc/asterisk/asterisk-13.21.0.ebuild | 327 ------------------------------ |
19 |
net-misc/asterisk/asterisk-13.22.0.ebuild | 327 ------------------------------ |
20 |
5 files changed, 1312 deletions(-) |
21 |
|
22 |
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest |
23 |
index b5607f685a2..03e52a87fd2 100644 |
24 |
--- a/net-misc/asterisk/Manifest |
25 |
+++ b/net-misc/asterisk/Manifest |
26 |
@@ -1,10 +1,6 @@ |
27 |
DIST asterisk-11.25.1.tar.gz 35125897 BLAKE2B 42f79202c3e69dc0ff1ddad909c87bc0a0dd3c74bc674fbbcf339e00fedf829f7dd1ad5922fae82d26abc37cd62a44061a917861a2ee9b2fa4e26bec748b0aae SHA512 37144b7296f929bdb707853690a12d4c1403741221c943becc88c18fe20587ba2381425574e97647c10efa9f98200336ddae7e3433740e5a509a837ed28ca02c |
28 |
DIST asterisk-11.25.3.tar.gz 35134682 BLAKE2B 9da24d5d6a674ab660edb103e5fc56ddfbcc58cd86166cc08cceb0598a63b51eae36133565e09a30ad11ff6623ba8945437dfb561d2916f68341d398540dabce SHA512 9c0521d55e5b69663ea40066d52e397ba6c165a4b20cd0a1e5e375b9c0e5a6e4f37908e50b0b580e288dec9be252af9a8bce7bceb03ba029f902fb757e6311ed |
29 |
DIST asterisk-13.19.0.tar.gz 33027887 BLAKE2B f799f51dc4b45d6db2261abfae33f41416616650702ff0cf6c253a80cf2f554f180df9e90bd107ac6a29eeeeef16e3bfadba087f6485fa93978899590b417443 SHA512 5404080a42e2d6d76b8fa8629c9570ae55c943676c51901a34552dc69c35f82001a1738e2da3adedf1de254bc8d1821ea7708f844685462ecdd1fd4e979e0e7f |
30 |
-DIST asterisk-13.19.2.tar.gz 32991960 BLAKE2B 3b1f731fb68e2d455bfc76e863a8abbd8903ac2f7e89f5bc4b97db0072b0999679a79e6ebbb55c886847fb1db639b6ad84d1f7de1fc3414968ab6b48c5eed72f SHA512 3ee3d57d359ce3049480303b9662a33a905d08491e84d898fd6ee170ee9d34b8bdfcd082b80120dab606929a03572141fe219da75bb87770ed206aeb0249f1e4 |
31 |
-DIST asterisk-13.20.0.tar.gz 32986236 BLAKE2B bc634d93ce4d0a6b524554fa35845a2f289035aea9e7da3098517cdd6d2c85c94482d393276937ea0bc7064260835757e5ffc048f10ea73ba9c0525fd1cf0457 SHA512 de3e740b0dc5bc90806282cbe16f5ec6d151c4a7520b965e6ed30e3cd88d3dc8aca1994c7ae929c039ad755688af6f09a825b665665aacb10cf2566eaa270ca5 |
32 |
-DIST asterisk-13.21.0.tar.gz 32998111 BLAKE2B 7119c541efe80435db6b39571e25e24159b3929f075bd7fd8b1e3260a309bf1ab03599a79aea7d47c429af7e1553d1d89f348c55022e359a43b3fb98ee94882d SHA512 05b10017429a5c339bd50f7576e3198ffd6a71d698f7ad3f604d3e87b76f86da59841bad583c3d979e6e1b7a9fe9fba432c2a9c5faaa1e4dc48003228c637110 |
33 |
-DIST asterisk-13.22.0.tar.gz 33036487 BLAKE2B 09febd1d9ca875b532dffb7e2be5bda0aa9b2aac22d39a28ee3270d5bcb46f56946549aa5d7c8159c00fdb5a7f36e6f5466d6ebfc93f39cb65276efe0bee52b9 SHA512 eb5416d6911aac474c4a1532b1452b0d05359e4150b2e03ba8ac7d5f5f8bfc837a1640fcf26dfa8452b3a738af37e5659f5db6680c16d3ff1ee6c785864c5d5c |
34 |
DIST asterisk-13.23.1.tar.gz 33064056 BLAKE2B 7f531766df5f2db29b562e7c7d4e265d5cf610f192188691279c0294195b835bb62beef19d7e9554862e6b44764064b21d50a3e307bbf85dd12b67a2df8be459 SHA512 227bfc80b2e6382019d608296c4e1c8e992ba867636fa2c8ee578d0aa406b8828bf7962b24035d9b581c433afd18be7cbe98eb954112661b9759b6296ee686dd |
35 |
DIST gentoo-asterisk-patchset-3.17.tar.bz2 5074 BLAKE2B 3c945e77b54b2449253acb9fcea8d289a7a3184729190622c14aff5557d36c93556efa83320fe4e7ae84021960c09f35ae9f997e8015706eef933aae2948309e SHA512 37f86f3c699b2643afd8080391e817a282571694bb56e00efd0734918dbc33d6c12a2463dbc24667597420863b4f506870140fbb8ef3f1700124ef790ae7252d |
36 |
DIST gentoo-asterisk-patchset-4.07.tar.bz2 2471 BLAKE2B d9026e7e8c12431496c24f204d117ed715741623195af10c838ec3ac5ce6a26fbb2d76d4c45c538881b532084e2ce74d2de83a27a0abaa5f65791be91416ef6d SHA512 73a9f92e6a737687c311941100c45bbc573f54fa79d0284318996c0d70274a4d2218693406d71b371496d27123d4d99bbc159974388e6547a682c06084d3b4c5 |
37 |
|
38 |
diff --git a/net-misc/asterisk/asterisk-13.19.2.ebuild b/net-misc/asterisk/asterisk-13.19.2.ebuild |
39 |
deleted file mode 100644 |
40 |
index 99d5134312a..00000000000 |
41 |
--- a/net-misc/asterisk/asterisk-13.19.2.ebuild |
42 |
+++ /dev/null |
43 |
@@ -1,327 +0,0 @@ |
44 |
-# Copyright 1999-2018 Gentoo Authors |
45 |
-# Distributed under the terms of the GNU General Public License v2 |
46 |
- |
47 |
-EAPI=6 |
48 |
-inherit autotools eutils linux-info multilib user systemd |
49 |
- |
50 |
-MY_P="${PN}-${PV/_/-}" |
51 |
- |
52 |
-DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
53 |
-HOMEPAGE="http://www.asterisk.org/" |
54 |
-SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
55 |
- mirror://gentoo/gentoo-asterisk-patchset-4.07.tar.bz2" |
56 |
-LICENSE="GPL-2" |
57 |
-SLOT="0" |
58 |
-KEYWORDS="~amd64 ~ppc ~x86" |
59 |
- |
60 |
-IUSE_VOICEMAIL_STORAGE=" |
61 |
- +voicemail_storage_file |
62 |
- voicemail_storage_odbc |
63 |
- voicemail_storage_imap |
64 |
-" |
65 |
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
66 |
-IUSE_EXPAND="VOICEMAIL_STORAGE" |
67 |
-REQUIRED_USE="gtalk? ( xmpp ) |
68 |
- ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
69 |
- voicemail_storage_odbc? ( odbc ) |
70 |
-" |
71 |
- |
72 |
-EPATCH_SUFFIX="patch" |
73 |
-PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
74 |
- |
75 |
-CDEPEND="dev-db/sqlite:3 |
76 |
- dev-libs/popt |
77 |
- dev-libs/jansson |
78 |
- dev-libs/libxml2 |
79 |
- !libressl? ( dev-libs/openssl:0 ) |
80 |
- libressl? ( dev-libs/libressl ) |
81 |
- sys-libs/ncurses:* |
82 |
- sys-libs/zlib |
83 |
- alsa? ( media-libs/alsa-lib ) |
84 |
- bluetooth? ( net-wireless/bluez ) |
85 |
- calendar? ( net-libs/neon |
86 |
- dev-libs/libical |
87 |
- dev-libs/iksemel ) |
88 |
- caps? ( sys-libs/libcap ) |
89 |
- cluster? ( sys-cluster/corosync ) |
90 |
- curl? ( net-misc/curl ) |
91 |
- dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
92 |
- net-misc/dahdi-tools ) |
93 |
- freetds? ( dev-db/freetds ) |
94 |
- gtalk? ( dev-libs/iksemel ) |
95 |
- http? ( dev-libs/gmime:2.6 ) |
96 |
- iconv? ( virtual/libiconv ) |
97 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
98 |
- xmpp? ( dev-libs/iksemel ) |
99 |
- ldap? ( net-nds/openldap ) |
100 |
- libedit? ( dev-libs/libedit ) |
101 |
- lua? ( dev-lang/lua:* ) |
102 |
- mysql? ( virtual/mysql ) |
103 |
- newt? ( dev-libs/newt ) |
104 |
- odbc? ( dev-db/unixODBC ) |
105 |
- osplookup? ( net-libs/osptoolkit ) |
106 |
- portaudio? ( media-libs/portaudio ) |
107 |
- postgres? ( dev-db/postgresql:* ) |
108 |
- radius? ( net-dialup/freeradius-client ) |
109 |
- snmp? ( net-analyzer/net-snmp ) |
110 |
- span? ( media-libs/spandsp ) |
111 |
- speex? ( media-libs/speex ) |
112 |
- srtp? ( net-libs/libsrtp:0 ) |
113 |
- vorbis? ( media-libs/libvorbis )" |
114 |
- |
115 |
-DEPEND="${CDEPEND} |
116 |
- !net-libs/openh323 |
117 |
- !net-libs/pjsip |
118 |
- voicemail_storage_imap? ( virtual/imap-c-client ) |
119 |
- virtual/pkgconfig |
120 |
- pjproject? ( >=net-libs/pjproject-2.6 ) |
121 |
-" |
122 |
- |
123 |
-RDEPEND="${CDEPEND} |
124 |
- selinux? ( sec-policy/selinux-asterisk ) |
125 |
- syslog? ( virtual/logger )" |
126 |
- |
127 |
-PDEPEND="net-misc/asterisk-core-sounds |
128 |
- net-misc/asterisk-extra-sounds |
129 |
- net-misc/asterisk-moh-opsound" |
130 |
- |
131 |
-S="${WORKDIR}/${MY_P}" |
132 |
- |
133 |
-pkg_setup() { |
134 |
- CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
135 |
- local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
136 |
- have reported that this module dropped critical SIP packets in their deployments. You |
137 |
- may want to disable it if you see such problems." |
138 |
- check_extra_config |
139 |
- |
140 |
- enewgroup asterisk |
141 |
- enewgroup dialout 20 |
142 |
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
143 |
-} |
144 |
- |
145 |
-src_prepare() { |
146 |
- default |
147 |
- AT_M4DIR="autoconf third-party third-party/pjproject" eautoreconf |
148 |
-} |
149 |
- |
150 |
-src_configure() { |
151 |
- local vmst |
152 |
- |
153 |
- econf \ |
154 |
- --libdir="/usr/$(get_libdir)" \ |
155 |
- --localstatedir="/var" \ |
156 |
- --with-crypto \ |
157 |
- --with-gsm=internal \ |
158 |
- --with-popt \ |
159 |
- --with-ssl \ |
160 |
- --with-z \ |
161 |
- --without-pwlib \ |
162 |
- $(use_with caps cap) \ |
163 |
- $(use_with http gmime) \ |
164 |
- $(use_with newt) \ |
165 |
- $(use_with portaudio) \ |
166 |
- $(use_with pjproject) |
167 |
- |
168 |
- # Blank out sounds/sounds.xml file to prevent |
169 |
- # asterisk from installing sounds files (we pull them in via |
170 |
- # asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
171 |
- >"${S}"/sounds/sounds.xml |
172 |
- |
173 |
- # That NATIVE_ARCH chatter really is quite bothersome |
174 |
- sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
175 |
- |
176 |
- # Compile menuselect binary for optional components |
177 |
- emake menuselect.makeopts |
178 |
- |
179 |
- # Broken functionality is forcibly disabled (bug #360143) |
180 |
- menuselect/menuselect --disable chan_misdn menuselect.makeopts |
181 |
- menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
182 |
- |
183 |
- # Utility set is forcibly enabled (bug #358001) |
184 |
- menuselect/menuselect --enable smsq menuselect.makeopts |
185 |
- menuselect/menuselect --enable streamplayer menuselect.makeopts |
186 |
- menuselect/menuselect --enable aelparse menuselect.makeopts |
187 |
- menuselect/menuselect --enable astman menuselect.makeopts |
188 |
- |
189 |
- # this is connected, otherwise it would not find |
190 |
- # ast_pktccops_gate_alloc symbol |
191 |
- menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
192 |
- menuselect/menuselect --enable res_pktccops menuselect.makeopts |
193 |
- |
194 |
- # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
195 |
- menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
196 |
- menuselect/menuselect --enable func_aes menuselect.makeopts |
197 |
- menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
198 |
- |
199 |
- # SQlite3 is now the main database backend, enable related features |
200 |
- menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
201 |
- menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
202 |
- |
203 |
- # The others are based on USE-flag settings |
204 |
- use_select() { |
205 |
- local state=$(use "$1" && echo enable || echo disable) |
206 |
- shift # remove use from parameters |
207 |
- |
208 |
- while [[ -n $1 ]]; do |
209 |
- menuselect/menuselect --${state} "$1" menuselect.makeopts |
210 |
- shift |
211 |
- done |
212 |
- } |
213 |
- |
214 |
- use_select alsa chan_alsa |
215 |
- use_select bluetooth chan_mobile |
216 |
- use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
217 |
- use_select cluster res_corosync |
218 |
- use_select curl func_curl res_config_curl res_curl |
219 |
- use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi |
220 |
- use_select freetds {cdr,cel}_tds |
221 |
- use_select gtalk chan_motif |
222 |
- use_select http res_http_post |
223 |
- use_select iconv func_iconv |
224 |
- use_select xmpp res_xmpp |
225 |
- use_select ilbc codec_ilbc format_ilbc |
226 |
- use_select ldap res_config_ldap |
227 |
- use_select lua pbx_lua |
228 |
- use_select mysql app_mysql cdr_mysql res_config_mysql |
229 |
- use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
230 |
- use_select osplookup app_osplookup |
231 |
- use_select oss chan_oss |
232 |
- use_select postgres {cdr,cel}_pgsql res_config_pgsql |
233 |
- use_select radius {cdr,cel}_radius |
234 |
- use_select snmp res_snmp |
235 |
- use_select span res_fax_spandsp |
236 |
- use_select speex {codec,func}_speex |
237 |
- use_select srtp res_srtp |
238 |
- use_select syslog cdr_syslog |
239 |
- use_select vorbis format_ogg_vorbis |
240 |
- |
241 |
- # Voicemail storage ... |
242 |
- for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
243 |
- if use ${vmst}; then |
244 |
- menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
245 |
- fi |
246 |
- done |
247 |
- |
248 |
- if use debug; then |
249 |
- for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do |
250 |
- menuselect/menuselect --enable $o menuselect.makeopts |
251 |
- done |
252 |
- fi |
253 |
-} |
254 |
- |
255 |
-src_compile() { |
256 |
- ASTLDFLAGS="${LDFLAGS}" emake |
257 |
-} |
258 |
- |
259 |
-src_install() { |
260 |
- mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
261 |
- emake DESTDIR="${D}" installdirs |
262 |
- emake DESTDIR="${D}" install |
263 |
- |
264 |
- if use radius; then |
265 |
- insinto /etc/radiusclient/ |
266 |
- doins contrib/dictionary.digium |
267 |
- fi |
268 |
- diropts -m 0750 -o root -g asterisk |
269 |
- keepdir /etc/asterisk |
270 |
- if use samples; then |
271 |
- emake DESTDIR="${D}" samples |
272 |
- for conffile in "${D}"etc/asterisk/*.* |
273 |
- do |
274 |
- chown root:root $conffile |
275 |
- chmod 0644 $conffile |
276 |
- done |
277 |
- einfo "Sample files have been installed" |
278 |
- else |
279 |
- einfo "Skipping installation of sample files..." |
280 |
- rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
281 |
- rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
282 |
- rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
283 |
- rm -f "${D}"etc/asterisk/* || die |
284 |
- fi |
285 |
- rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
286 |
- |
287 |
- # keep directories |
288 |
- diropts -m 0770 -o asterisk asterisk |
289 |
- keepdir /var/lib/asterisk |
290 |
- keepdir /var/spool/asterisk |
291 |
- keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
292 |
- diropts -m 0750 -o asterisk -g asterisk |
293 |
- keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
294 |
- |
295 |
- newinitd "${FILESDIR}"/1.8.0/asterisk.initd8 asterisk |
296 |
- newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
297 |
- |
298 |
- systemd_dounit "${FILESDIR}"/asterisk.service |
299 |
- systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf |
300 |
- systemd_install_serviced "${FILESDIR}"/asterisk.service.conf |
301 |
- |
302 |
- # install the upgrade documentation |
303 |
- # |
304 |
- dodoc UPGRADE* BUGS CREDITS |
305 |
- |
306 |
- # install extra documentation |
307 |
- # |
308 |
- if use doc |
309 |
- then |
310 |
- dodoc doc/*.txt |
311 |
- dodoc doc/*.pdf |
312 |
- fi |
313 |
- |
314 |
- # install SIP scripts; bug #300832 |
315 |
- # |
316 |
- dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
317 |
- dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
318 |
- dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
319 |
- dodoc "${FILESDIR}/1.6.2/call_data.txt" |
320 |
- |
321 |
- # install logrotate snippet; bug #329281 |
322 |
- # |
323 |
- insinto /etc/logrotate.d |
324 |
- newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk |
325 |
-} |
326 |
- |
327 |
-pkg_postinst() { |
328 |
- # |
329 |
- # Announcements, warnings, reminders... |
330 |
- # |
331 |
- einfo "Asterisk has been installed" |
332 |
- echo |
333 |
- elog "If you want to know more about asterisk, visit these sites:" |
334 |
- elog "http://www.asteriskdocs.org/" |
335 |
- elog "http://www.voip-info.org/wiki-Asterisk" |
336 |
- echo |
337 |
- elog "http://www.automated.it/guidetoasterisk.htm" |
338 |
- echo |
339 |
- elog "Gentoo VoIP IRC Channel:" |
340 |
- elog "#gentoo-voip @ irc.freenode.net" |
341 |
- echo |
342 |
- echo |
343 |
- elog "Please read the Asterisk 13 upgrade document:" |
344 |
- elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+13" |
345 |
-} |
346 |
- |
347 |
-pkg_config() { |
348 |
- einfo "Do you want to reset file permissions and ownerships (y/N)?" |
349 |
- |
350 |
- read tmp |
351 |
- tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
352 |
- |
353 |
- if [[ "$tmp" = "y" ]] ||\ |
354 |
- [[ "$tmp" = "yes" ]] |
355 |
- then |
356 |
- einfo "Resetting permissions to defaults..." |
357 |
- |
358 |
- for x in spool run lib log; do |
359 |
- chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
360 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
361 |
- done |
362 |
- |
363 |
- chown -R root:asterisk "${ROOT}"etc/asterisk |
364 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
365 |
- |
366 |
- einfo "done" |
367 |
- else |
368 |
- einfo "skipping" |
369 |
- fi |
370 |
-} |
371 |
|
372 |
diff --git a/net-misc/asterisk/asterisk-13.20.0.ebuild b/net-misc/asterisk/asterisk-13.20.0.ebuild |
373 |
deleted file mode 100644 |
374 |
index 99d5134312a..00000000000 |
375 |
--- a/net-misc/asterisk/asterisk-13.20.0.ebuild |
376 |
+++ /dev/null |
377 |
@@ -1,327 +0,0 @@ |
378 |
-# Copyright 1999-2018 Gentoo Authors |
379 |
-# Distributed under the terms of the GNU General Public License v2 |
380 |
- |
381 |
-EAPI=6 |
382 |
-inherit autotools eutils linux-info multilib user systemd |
383 |
- |
384 |
-MY_P="${PN}-${PV/_/-}" |
385 |
- |
386 |
-DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
387 |
-HOMEPAGE="http://www.asterisk.org/" |
388 |
-SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
389 |
- mirror://gentoo/gentoo-asterisk-patchset-4.07.tar.bz2" |
390 |
-LICENSE="GPL-2" |
391 |
-SLOT="0" |
392 |
-KEYWORDS="~amd64 ~ppc ~x86" |
393 |
- |
394 |
-IUSE_VOICEMAIL_STORAGE=" |
395 |
- +voicemail_storage_file |
396 |
- voicemail_storage_odbc |
397 |
- voicemail_storage_imap |
398 |
-" |
399 |
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
400 |
-IUSE_EXPAND="VOICEMAIL_STORAGE" |
401 |
-REQUIRED_USE="gtalk? ( xmpp ) |
402 |
- ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
403 |
- voicemail_storage_odbc? ( odbc ) |
404 |
-" |
405 |
- |
406 |
-EPATCH_SUFFIX="patch" |
407 |
-PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
408 |
- |
409 |
-CDEPEND="dev-db/sqlite:3 |
410 |
- dev-libs/popt |
411 |
- dev-libs/jansson |
412 |
- dev-libs/libxml2 |
413 |
- !libressl? ( dev-libs/openssl:0 ) |
414 |
- libressl? ( dev-libs/libressl ) |
415 |
- sys-libs/ncurses:* |
416 |
- sys-libs/zlib |
417 |
- alsa? ( media-libs/alsa-lib ) |
418 |
- bluetooth? ( net-wireless/bluez ) |
419 |
- calendar? ( net-libs/neon |
420 |
- dev-libs/libical |
421 |
- dev-libs/iksemel ) |
422 |
- caps? ( sys-libs/libcap ) |
423 |
- cluster? ( sys-cluster/corosync ) |
424 |
- curl? ( net-misc/curl ) |
425 |
- dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
426 |
- net-misc/dahdi-tools ) |
427 |
- freetds? ( dev-db/freetds ) |
428 |
- gtalk? ( dev-libs/iksemel ) |
429 |
- http? ( dev-libs/gmime:2.6 ) |
430 |
- iconv? ( virtual/libiconv ) |
431 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
432 |
- xmpp? ( dev-libs/iksemel ) |
433 |
- ldap? ( net-nds/openldap ) |
434 |
- libedit? ( dev-libs/libedit ) |
435 |
- lua? ( dev-lang/lua:* ) |
436 |
- mysql? ( virtual/mysql ) |
437 |
- newt? ( dev-libs/newt ) |
438 |
- odbc? ( dev-db/unixODBC ) |
439 |
- osplookup? ( net-libs/osptoolkit ) |
440 |
- portaudio? ( media-libs/portaudio ) |
441 |
- postgres? ( dev-db/postgresql:* ) |
442 |
- radius? ( net-dialup/freeradius-client ) |
443 |
- snmp? ( net-analyzer/net-snmp ) |
444 |
- span? ( media-libs/spandsp ) |
445 |
- speex? ( media-libs/speex ) |
446 |
- srtp? ( net-libs/libsrtp:0 ) |
447 |
- vorbis? ( media-libs/libvorbis )" |
448 |
- |
449 |
-DEPEND="${CDEPEND} |
450 |
- !net-libs/openh323 |
451 |
- !net-libs/pjsip |
452 |
- voicemail_storage_imap? ( virtual/imap-c-client ) |
453 |
- virtual/pkgconfig |
454 |
- pjproject? ( >=net-libs/pjproject-2.6 ) |
455 |
-" |
456 |
- |
457 |
-RDEPEND="${CDEPEND} |
458 |
- selinux? ( sec-policy/selinux-asterisk ) |
459 |
- syslog? ( virtual/logger )" |
460 |
- |
461 |
-PDEPEND="net-misc/asterisk-core-sounds |
462 |
- net-misc/asterisk-extra-sounds |
463 |
- net-misc/asterisk-moh-opsound" |
464 |
- |
465 |
-S="${WORKDIR}/${MY_P}" |
466 |
- |
467 |
-pkg_setup() { |
468 |
- CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
469 |
- local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
470 |
- have reported that this module dropped critical SIP packets in their deployments. You |
471 |
- may want to disable it if you see such problems." |
472 |
- check_extra_config |
473 |
- |
474 |
- enewgroup asterisk |
475 |
- enewgroup dialout 20 |
476 |
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
477 |
-} |
478 |
- |
479 |
-src_prepare() { |
480 |
- default |
481 |
- AT_M4DIR="autoconf third-party third-party/pjproject" eautoreconf |
482 |
-} |
483 |
- |
484 |
-src_configure() { |
485 |
- local vmst |
486 |
- |
487 |
- econf \ |
488 |
- --libdir="/usr/$(get_libdir)" \ |
489 |
- --localstatedir="/var" \ |
490 |
- --with-crypto \ |
491 |
- --with-gsm=internal \ |
492 |
- --with-popt \ |
493 |
- --with-ssl \ |
494 |
- --with-z \ |
495 |
- --without-pwlib \ |
496 |
- $(use_with caps cap) \ |
497 |
- $(use_with http gmime) \ |
498 |
- $(use_with newt) \ |
499 |
- $(use_with portaudio) \ |
500 |
- $(use_with pjproject) |
501 |
- |
502 |
- # Blank out sounds/sounds.xml file to prevent |
503 |
- # asterisk from installing sounds files (we pull them in via |
504 |
- # asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
505 |
- >"${S}"/sounds/sounds.xml |
506 |
- |
507 |
- # That NATIVE_ARCH chatter really is quite bothersome |
508 |
- sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
509 |
- |
510 |
- # Compile menuselect binary for optional components |
511 |
- emake menuselect.makeopts |
512 |
- |
513 |
- # Broken functionality is forcibly disabled (bug #360143) |
514 |
- menuselect/menuselect --disable chan_misdn menuselect.makeopts |
515 |
- menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
516 |
- |
517 |
- # Utility set is forcibly enabled (bug #358001) |
518 |
- menuselect/menuselect --enable smsq menuselect.makeopts |
519 |
- menuselect/menuselect --enable streamplayer menuselect.makeopts |
520 |
- menuselect/menuselect --enable aelparse menuselect.makeopts |
521 |
- menuselect/menuselect --enable astman menuselect.makeopts |
522 |
- |
523 |
- # this is connected, otherwise it would not find |
524 |
- # ast_pktccops_gate_alloc symbol |
525 |
- menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
526 |
- menuselect/menuselect --enable res_pktccops menuselect.makeopts |
527 |
- |
528 |
- # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
529 |
- menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
530 |
- menuselect/menuselect --enable func_aes menuselect.makeopts |
531 |
- menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
532 |
- |
533 |
- # SQlite3 is now the main database backend, enable related features |
534 |
- menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
535 |
- menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
536 |
- |
537 |
- # The others are based on USE-flag settings |
538 |
- use_select() { |
539 |
- local state=$(use "$1" && echo enable || echo disable) |
540 |
- shift # remove use from parameters |
541 |
- |
542 |
- while [[ -n $1 ]]; do |
543 |
- menuselect/menuselect --${state} "$1" menuselect.makeopts |
544 |
- shift |
545 |
- done |
546 |
- } |
547 |
- |
548 |
- use_select alsa chan_alsa |
549 |
- use_select bluetooth chan_mobile |
550 |
- use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
551 |
- use_select cluster res_corosync |
552 |
- use_select curl func_curl res_config_curl res_curl |
553 |
- use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi |
554 |
- use_select freetds {cdr,cel}_tds |
555 |
- use_select gtalk chan_motif |
556 |
- use_select http res_http_post |
557 |
- use_select iconv func_iconv |
558 |
- use_select xmpp res_xmpp |
559 |
- use_select ilbc codec_ilbc format_ilbc |
560 |
- use_select ldap res_config_ldap |
561 |
- use_select lua pbx_lua |
562 |
- use_select mysql app_mysql cdr_mysql res_config_mysql |
563 |
- use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
564 |
- use_select osplookup app_osplookup |
565 |
- use_select oss chan_oss |
566 |
- use_select postgres {cdr,cel}_pgsql res_config_pgsql |
567 |
- use_select radius {cdr,cel}_radius |
568 |
- use_select snmp res_snmp |
569 |
- use_select span res_fax_spandsp |
570 |
- use_select speex {codec,func}_speex |
571 |
- use_select srtp res_srtp |
572 |
- use_select syslog cdr_syslog |
573 |
- use_select vorbis format_ogg_vorbis |
574 |
- |
575 |
- # Voicemail storage ... |
576 |
- for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
577 |
- if use ${vmst}; then |
578 |
- menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
579 |
- fi |
580 |
- done |
581 |
- |
582 |
- if use debug; then |
583 |
- for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do |
584 |
- menuselect/menuselect --enable $o menuselect.makeopts |
585 |
- done |
586 |
- fi |
587 |
-} |
588 |
- |
589 |
-src_compile() { |
590 |
- ASTLDFLAGS="${LDFLAGS}" emake |
591 |
-} |
592 |
- |
593 |
-src_install() { |
594 |
- mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
595 |
- emake DESTDIR="${D}" installdirs |
596 |
- emake DESTDIR="${D}" install |
597 |
- |
598 |
- if use radius; then |
599 |
- insinto /etc/radiusclient/ |
600 |
- doins contrib/dictionary.digium |
601 |
- fi |
602 |
- diropts -m 0750 -o root -g asterisk |
603 |
- keepdir /etc/asterisk |
604 |
- if use samples; then |
605 |
- emake DESTDIR="${D}" samples |
606 |
- for conffile in "${D}"etc/asterisk/*.* |
607 |
- do |
608 |
- chown root:root $conffile |
609 |
- chmod 0644 $conffile |
610 |
- done |
611 |
- einfo "Sample files have been installed" |
612 |
- else |
613 |
- einfo "Skipping installation of sample files..." |
614 |
- rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
615 |
- rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
616 |
- rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
617 |
- rm -f "${D}"etc/asterisk/* || die |
618 |
- fi |
619 |
- rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
620 |
- |
621 |
- # keep directories |
622 |
- diropts -m 0770 -o asterisk asterisk |
623 |
- keepdir /var/lib/asterisk |
624 |
- keepdir /var/spool/asterisk |
625 |
- keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
626 |
- diropts -m 0750 -o asterisk -g asterisk |
627 |
- keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
628 |
- |
629 |
- newinitd "${FILESDIR}"/1.8.0/asterisk.initd8 asterisk |
630 |
- newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
631 |
- |
632 |
- systemd_dounit "${FILESDIR}"/asterisk.service |
633 |
- systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf |
634 |
- systemd_install_serviced "${FILESDIR}"/asterisk.service.conf |
635 |
- |
636 |
- # install the upgrade documentation |
637 |
- # |
638 |
- dodoc UPGRADE* BUGS CREDITS |
639 |
- |
640 |
- # install extra documentation |
641 |
- # |
642 |
- if use doc |
643 |
- then |
644 |
- dodoc doc/*.txt |
645 |
- dodoc doc/*.pdf |
646 |
- fi |
647 |
- |
648 |
- # install SIP scripts; bug #300832 |
649 |
- # |
650 |
- dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
651 |
- dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
652 |
- dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
653 |
- dodoc "${FILESDIR}/1.6.2/call_data.txt" |
654 |
- |
655 |
- # install logrotate snippet; bug #329281 |
656 |
- # |
657 |
- insinto /etc/logrotate.d |
658 |
- newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk |
659 |
-} |
660 |
- |
661 |
-pkg_postinst() { |
662 |
- # |
663 |
- # Announcements, warnings, reminders... |
664 |
- # |
665 |
- einfo "Asterisk has been installed" |
666 |
- echo |
667 |
- elog "If you want to know more about asterisk, visit these sites:" |
668 |
- elog "http://www.asteriskdocs.org/" |
669 |
- elog "http://www.voip-info.org/wiki-Asterisk" |
670 |
- echo |
671 |
- elog "http://www.automated.it/guidetoasterisk.htm" |
672 |
- echo |
673 |
- elog "Gentoo VoIP IRC Channel:" |
674 |
- elog "#gentoo-voip @ irc.freenode.net" |
675 |
- echo |
676 |
- echo |
677 |
- elog "Please read the Asterisk 13 upgrade document:" |
678 |
- elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+13" |
679 |
-} |
680 |
- |
681 |
-pkg_config() { |
682 |
- einfo "Do you want to reset file permissions and ownerships (y/N)?" |
683 |
- |
684 |
- read tmp |
685 |
- tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
686 |
- |
687 |
- if [[ "$tmp" = "y" ]] ||\ |
688 |
- [[ "$tmp" = "yes" ]] |
689 |
- then |
690 |
- einfo "Resetting permissions to defaults..." |
691 |
- |
692 |
- for x in spool run lib log; do |
693 |
- chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
694 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
695 |
- done |
696 |
- |
697 |
- chown -R root:asterisk "${ROOT}"etc/asterisk |
698 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
699 |
- |
700 |
- einfo "done" |
701 |
- else |
702 |
- einfo "skipping" |
703 |
- fi |
704 |
-} |
705 |
|
706 |
diff --git a/net-misc/asterisk/asterisk-13.21.0.ebuild b/net-misc/asterisk/asterisk-13.21.0.ebuild |
707 |
deleted file mode 100644 |
708 |
index 99d5134312a..00000000000 |
709 |
--- a/net-misc/asterisk/asterisk-13.21.0.ebuild |
710 |
+++ /dev/null |
711 |
@@ -1,327 +0,0 @@ |
712 |
-# Copyright 1999-2018 Gentoo Authors |
713 |
-# Distributed under the terms of the GNU General Public License v2 |
714 |
- |
715 |
-EAPI=6 |
716 |
-inherit autotools eutils linux-info multilib user systemd |
717 |
- |
718 |
-MY_P="${PN}-${PV/_/-}" |
719 |
- |
720 |
-DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
721 |
-HOMEPAGE="http://www.asterisk.org/" |
722 |
-SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
723 |
- mirror://gentoo/gentoo-asterisk-patchset-4.07.tar.bz2" |
724 |
-LICENSE="GPL-2" |
725 |
-SLOT="0" |
726 |
-KEYWORDS="~amd64 ~ppc ~x86" |
727 |
- |
728 |
-IUSE_VOICEMAIL_STORAGE=" |
729 |
- +voicemail_storage_file |
730 |
- voicemail_storage_odbc |
731 |
- voicemail_storage_imap |
732 |
-" |
733 |
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
734 |
-IUSE_EXPAND="VOICEMAIL_STORAGE" |
735 |
-REQUIRED_USE="gtalk? ( xmpp ) |
736 |
- ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
737 |
- voicemail_storage_odbc? ( odbc ) |
738 |
-" |
739 |
- |
740 |
-EPATCH_SUFFIX="patch" |
741 |
-PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
742 |
- |
743 |
-CDEPEND="dev-db/sqlite:3 |
744 |
- dev-libs/popt |
745 |
- dev-libs/jansson |
746 |
- dev-libs/libxml2 |
747 |
- !libressl? ( dev-libs/openssl:0 ) |
748 |
- libressl? ( dev-libs/libressl ) |
749 |
- sys-libs/ncurses:* |
750 |
- sys-libs/zlib |
751 |
- alsa? ( media-libs/alsa-lib ) |
752 |
- bluetooth? ( net-wireless/bluez ) |
753 |
- calendar? ( net-libs/neon |
754 |
- dev-libs/libical |
755 |
- dev-libs/iksemel ) |
756 |
- caps? ( sys-libs/libcap ) |
757 |
- cluster? ( sys-cluster/corosync ) |
758 |
- curl? ( net-misc/curl ) |
759 |
- dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
760 |
- net-misc/dahdi-tools ) |
761 |
- freetds? ( dev-db/freetds ) |
762 |
- gtalk? ( dev-libs/iksemel ) |
763 |
- http? ( dev-libs/gmime:2.6 ) |
764 |
- iconv? ( virtual/libiconv ) |
765 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
766 |
- xmpp? ( dev-libs/iksemel ) |
767 |
- ldap? ( net-nds/openldap ) |
768 |
- libedit? ( dev-libs/libedit ) |
769 |
- lua? ( dev-lang/lua:* ) |
770 |
- mysql? ( virtual/mysql ) |
771 |
- newt? ( dev-libs/newt ) |
772 |
- odbc? ( dev-db/unixODBC ) |
773 |
- osplookup? ( net-libs/osptoolkit ) |
774 |
- portaudio? ( media-libs/portaudio ) |
775 |
- postgres? ( dev-db/postgresql:* ) |
776 |
- radius? ( net-dialup/freeradius-client ) |
777 |
- snmp? ( net-analyzer/net-snmp ) |
778 |
- span? ( media-libs/spandsp ) |
779 |
- speex? ( media-libs/speex ) |
780 |
- srtp? ( net-libs/libsrtp:0 ) |
781 |
- vorbis? ( media-libs/libvorbis )" |
782 |
- |
783 |
-DEPEND="${CDEPEND} |
784 |
- !net-libs/openh323 |
785 |
- !net-libs/pjsip |
786 |
- voicemail_storage_imap? ( virtual/imap-c-client ) |
787 |
- virtual/pkgconfig |
788 |
- pjproject? ( >=net-libs/pjproject-2.6 ) |
789 |
-" |
790 |
- |
791 |
-RDEPEND="${CDEPEND} |
792 |
- selinux? ( sec-policy/selinux-asterisk ) |
793 |
- syslog? ( virtual/logger )" |
794 |
- |
795 |
-PDEPEND="net-misc/asterisk-core-sounds |
796 |
- net-misc/asterisk-extra-sounds |
797 |
- net-misc/asterisk-moh-opsound" |
798 |
- |
799 |
-S="${WORKDIR}/${MY_P}" |
800 |
- |
801 |
-pkg_setup() { |
802 |
- CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
803 |
- local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
804 |
- have reported that this module dropped critical SIP packets in their deployments. You |
805 |
- may want to disable it if you see such problems." |
806 |
- check_extra_config |
807 |
- |
808 |
- enewgroup asterisk |
809 |
- enewgroup dialout 20 |
810 |
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
811 |
-} |
812 |
- |
813 |
-src_prepare() { |
814 |
- default |
815 |
- AT_M4DIR="autoconf third-party third-party/pjproject" eautoreconf |
816 |
-} |
817 |
- |
818 |
-src_configure() { |
819 |
- local vmst |
820 |
- |
821 |
- econf \ |
822 |
- --libdir="/usr/$(get_libdir)" \ |
823 |
- --localstatedir="/var" \ |
824 |
- --with-crypto \ |
825 |
- --with-gsm=internal \ |
826 |
- --with-popt \ |
827 |
- --with-ssl \ |
828 |
- --with-z \ |
829 |
- --without-pwlib \ |
830 |
- $(use_with caps cap) \ |
831 |
- $(use_with http gmime) \ |
832 |
- $(use_with newt) \ |
833 |
- $(use_with portaudio) \ |
834 |
- $(use_with pjproject) |
835 |
- |
836 |
- # Blank out sounds/sounds.xml file to prevent |
837 |
- # asterisk from installing sounds files (we pull them in via |
838 |
- # asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
839 |
- >"${S}"/sounds/sounds.xml |
840 |
- |
841 |
- # That NATIVE_ARCH chatter really is quite bothersome |
842 |
- sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
843 |
- |
844 |
- # Compile menuselect binary for optional components |
845 |
- emake menuselect.makeopts |
846 |
- |
847 |
- # Broken functionality is forcibly disabled (bug #360143) |
848 |
- menuselect/menuselect --disable chan_misdn menuselect.makeopts |
849 |
- menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
850 |
- |
851 |
- # Utility set is forcibly enabled (bug #358001) |
852 |
- menuselect/menuselect --enable smsq menuselect.makeopts |
853 |
- menuselect/menuselect --enable streamplayer menuselect.makeopts |
854 |
- menuselect/menuselect --enable aelparse menuselect.makeopts |
855 |
- menuselect/menuselect --enable astman menuselect.makeopts |
856 |
- |
857 |
- # this is connected, otherwise it would not find |
858 |
- # ast_pktccops_gate_alloc symbol |
859 |
- menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
860 |
- menuselect/menuselect --enable res_pktccops menuselect.makeopts |
861 |
- |
862 |
- # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
863 |
- menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
864 |
- menuselect/menuselect --enable func_aes menuselect.makeopts |
865 |
- menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
866 |
- |
867 |
- # SQlite3 is now the main database backend, enable related features |
868 |
- menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
869 |
- menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
870 |
- |
871 |
- # The others are based on USE-flag settings |
872 |
- use_select() { |
873 |
- local state=$(use "$1" && echo enable || echo disable) |
874 |
- shift # remove use from parameters |
875 |
- |
876 |
- while [[ -n $1 ]]; do |
877 |
- menuselect/menuselect --${state} "$1" menuselect.makeopts |
878 |
- shift |
879 |
- done |
880 |
- } |
881 |
- |
882 |
- use_select alsa chan_alsa |
883 |
- use_select bluetooth chan_mobile |
884 |
- use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
885 |
- use_select cluster res_corosync |
886 |
- use_select curl func_curl res_config_curl res_curl |
887 |
- use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi |
888 |
- use_select freetds {cdr,cel}_tds |
889 |
- use_select gtalk chan_motif |
890 |
- use_select http res_http_post |
891 |
- use_select iconv func_iconv |
892 |
- use_select xmpp res_xmpp |
893 |
- use_select ilbc codec_ilbc format_ilbc |
894 |
- use_select ldap res_config_ldap |
895 |
- use_select lua pbx_lua |
896 |
- use_select mysql app_mysql cdr_mysql res_config_mysql |
897 |
- use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
898 |
- use_select osplookup app_osplookup |
899 |
- use_select oss chan_oss |
900 |
- use_select postgres {cdr,cel}_pgsql res_config_pgsql |
901 |
- use_select radius {cdr,cel}_radius |
902 |
- use_select snmp res_snmp |
903 |
- use_select span res_fax_spandsp |
904 |
- use_select speex {codec,func}_speex |
905 |
- use_select srtp res_srtp |
906 |
- use_select syslog cdr_syslog |
907 |
- use_select vorbis format_ogg_vorbis |
908 |
- |
909 |
- # Voicemail storage ... |
910 |
- for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
911 |
- if use ${vmst}; then |
912 |
- menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
913 |
- fi |
914 |
- done |
915 |
- |
916 |
- if use debug; then |
917 |
- for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do |
918 |
- menuselect/menuselect --enable $o menuselect.makeopts |
919 |
- done |
920 |
- fi |
921 |
-} |
922 |
- |
923 |
-src_compile() { |
924 |
- ASTLDFLAGS="${LDFLAGS}" emake |
925 |
-} |
926 |
- |
927 |
-src_install() { |
928 |
- mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
929 |
- emake DESTDIR="${D}" installdirs |
930 |
- emake DESTDIR="${D}" install |
931 |
- |
932 |
- if use radius; then |
933 |
- insinto /etc/radiusclient/ |
934 |
- doins contrib/dictionary.digium |
935 |
- fi |
936 |
- diropts -m 0750 -o root -g asterisk |
937 |
- keepdir /etc/asterisk |
938 |
- if use samples; then |
939 |
- emake DESTDIR="${D}" samples |
940 |
- for conffile in "${D}"etc/asterisk/*.* |
941 |
- do |
942 |
- chown root:root $conffile |
943 |
- chmod 0644 $conffile |
944 |
- done |
945 |
- einfo "Sample files have been installed" |
946 |
- else |
947 |
- einfo "Skipping installation of sample files..." |
948 |
- rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
949 |
- rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
950 |
- rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
951 |
- rm -f "${D}"etc/asterisk/* || die |
952 |
- fi |
953 |
- rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
954 |
- |
955 |
- # keep directories |
956 |
- diropts -m 0770 -o asterisk asterisk |
957 |
- keepdir /var/lib/asterisk |
958 |
- keepdir /var/spool/asterisk |
959 |
- keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
960 |
- diropts -m 0750 -o asterisk -g asterisk |
961 |
- keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
962 |
- |
963 |
- newinitd "${FILESDIR}"/1.8.0/asterisk.initd8 asterisk |
964 |
- newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
965 |
- |
966 |
- systemd_dounit "${FILESDIR}"/asterisk.service |
967 |
- systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf |
968 |
- systemd_install_serviced "${FILESDIR}"/asterisk.service.conf |
969 |
- |
970 |
- # install the upgrade documentation |
971 |
- # |
972 |
- dodoc UPGRADE* BUGS CREDITS |
973 |
- |
974 |
- # install extra documentation |
975 |
- # |
976 |
- if use doc |
977 |
- then |
978 |
- dodoc doc/*.txt |
979 |
- dodoc doc/*.pdf |
980 |
- fi |
981 |
- |
982 |
- # install SIP scripts; bug #300832 |
983 |
- # |
984 |
- dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
985 |
- dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
986 |
- dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
987 |
- dodoc "${FILESDIR}/1.6.2/call_data.txt" |
988 |
- |
989 |
- # install logrotate snippet; bug #329281 |
990 |
- # |
991 |
- insinto /etc/logrotate.d |
992 |
- newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk |
993 |
-} |
994 |
- |
995 |
-pkg_postinst() { |
996 |
- # |
997 |
- # Announcements, warnings, reminders... |
998 |
- # |
999 |
- einfo "Asterisk has been installed" |
1000 |
- echo |
1001 |
- elog "If you want to know more about asterisk, visit these sites:" |
1002 |
- elog "http://www.asteriskdocs.org/" |
1003 |
- elog "http://www.voip-info.org/wiki-Asterisk" |
1004 |
- echo |
1005 |
- elog "http://www.automated.it/guidetoasterisk.htm" |
1006 |
- echo |
1007 |
- elog "Gentoo VoIP IRC Channel:" |
1008 |
- elog "#gentoo-voip @ irc.freenode.net" |
1009 |
- echo |
1010 |
- echo |
1011 |
- elog "Please read the Asterisk 13 upgrade document:" |
1012 |
- elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+13" |
1013 |
-} |
1014 |
- |
1015 |
-pkg_config() { |
1016 |
- einfo "Do you want to reset file permissions and ownerships (y/N)?" |
1017 |
- |
1018 |
- read tmp |
1019 |
- tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
1020 |
- |
1021 |
- if [[ "$tmp" = "y" ]] ||\ |
1022 |
- [[ "$tmp" = "yes" ]] |
1023 |
- then |
1024 |
- einfo "Resetting permissions to defaults..." |
1025 |
- |
1026 |
- for x in spool run lib log; do |
1027 |
- chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
1028 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
1029 |
- done |
1030 |
- |
1031 |
- chown -R root:asterisk "${ROOT}"etc/asterisk |
1032 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
1033 |
- |
1034 |
- einfo "done" |
1035 |
- else |
1036 |
- einfo "skipping" |
1037 |
- fi |
1038 |
-} |
1039 |
|
1040 |
diff --git a/net-misc/asterisk/asterisk-13.22.0.ebuild b/net-misc/asterisk/asterisk-13.22.0.ebuild |
1041 |
deleted file mode 100644 |
1042 |
index 99d5134312a..00000000000 |
1043 |
--- a/net-misc/asterisk/asterisk-13.22.0.ebuild |
1044 |
+++ /dev/null |
1045 |
@@ -1,327 +0,0 @@ |
1046 |
-# Copyright 1999-2018 Gentoo Authors |
1047 |
-# Distributed under the terms of the GNU General Public License v2 |
1048 |
- |
1049 |
-EAPI=6 |
1050 |
-inherit autotools eutils linux-info multilib user systemd |
1051 |
- |
1052 |
-MY_P="${PN}-${PV/_/-}" |
1053 |
- |
1054 |
-DESCRIPTION="Asterisk: A Modular Open Source PBX System" |
1055 |
-HOMEPAGE="http://www.asterisk.org/" |
1056 |
-SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz |
1057 |
- mirror://gentoo/gentoo-asterisk-patchset-4.07.tar.bz2" |
1058 |
-LICENSE="GPL-2" |
1059 |
-SLOT="0" |
1060 |
-KEYWORDS="~amd64 ~ppc ~x86" |
1061 |
- |
1062 |
-IUSE_VOICEMAIL_STORAGE=" |
1063 |
- +voicemail_storage_file |
1064 |
- voicemail_storage_odbc |
1065 |
- voicemail_storage_imap |
1066 |
-" |
1067 |
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
1068 |
-IUSE_EXPAND="VOICEMAIL_STORAGE" |
1069 |
-REQUIRED_USE="gtalk? ( xmpp ) |
1070 |
- ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
1071 |
- voicemail_storage_odbc? ( odbc ) |
1072 |
-" |
1073 |
- |
1074 |
-EPATCH_SUFFIX="patch" |
1075 |
-PATCHES=( "${WORKDIR}/asterisk-patchset" ) |
1076 |
- |
1077 |
-CDEPEND="dev-db/sqlite:3 |
1078 |
- dev-libs/popt |
1079 |
- dev-libs/jansson |
1080 |
- dev-libs/libxml2 |
1081 |
- !libressl? ( dev-libs/openssl:0 ) |
1082 |
- libressl? ( dev-libs/libressl ) |
1083 |
- sys-libs/ncurses:* |
1084 |
- sys-libs/zlib |
1085 |
- alsa? ( media-libs/alsa-lib ) |
1086 |
- bluetooth? ( net-wireless/bluez ) |
1087 |
- calendar? ( net-libs/neon |
1088 |
- dev-libs/libical |
1089 |
- dev-libs/iksemel ) |
1090 |
- caps? ( sys-libs/libcap ) |
1091 |
- cluster? ( sys-cluster/corosync ) |
1092 |
- curl? ( net-misc/curl ) |
1093 |
- dahdi? ( >=net-libs/libpri-1.4.12_beta2 |
1094 |
- net-misc/dahdi-tools ) |
1095 |
- freetds? ( dev-db/freetds ) |
1096 |
- gtalk? ( dev-libs/iksemel ) |
1097 |
- http? ( dev-libs/gmime:2.6 ) |
1098 |
- iconv? ( virtual/libiconv ) |
1099 |
- ilbc? ( dev-libs/ilbc-rfc3951 ) |
1100 |
- xmpp? ( dev-libs/iksemel ) |
1101 |
- ldap? ( net-nds/openldap ) |
1102 |
- libedit? ( dev-libs/libedit ) |
1103 |
- lua? ( dev-lang/lua:* ) |
1104 |
- mysql? ( virtual/mysql ) |
1105 |
- newt? ( dev-libs/newt ) |
1106 |
- odbc? ( dev-db/unixODBC ) |
1107 |
- osplookup? ( net-libs/osptoolkit ) |
1108 |
- portaudio? ( media-libs/portaudio ) |
1109 |
- postgres? ( dev-db/postgresql:* ) |
1110 |
- radius? ( net-dialup/freeradius-client ) |
1111 |
- snmp? ( net-analyzer/net-snmp ) |
1112 |
- span? ( media-libs/spandsp ) |
1113 |
- speex? ( media-libs/speex ) |
1114 |
- srtp? ( net-libs/libsrtp:0 ) |
1115 |
- vorbis? ( media-libs/libvorbis )" |
1116 |
- |
1117 |
-DEPEND="${CDEPEND} |
1118 |
- !net-libs/openh323 |
1119 |
- !net-libs/pjsip |
1120 |
- voicemail_storage_imap? ( virtual/imap-c-client ) |
1121 |
- virtual/pkgconfig |
1122 |
- pjproject? ( >=net-libs/pjproject-2.6 ) |
1123 |
-" |
1124 |
- |
1125 |
-RDEPEND="${CDEPEND} |
1126 |
- selinux? ( sec-policy/selinux-asterisk ) |
1127 |
- syslog? ( virtual/logger )" |
1128 |
- |
1129 |
-PDEPEND="net-misc/asterisk-core-sounds |
1130 |
- net-misc/asterisk-extra-sounds |
1131 |
- net-misc/asterisk-moh-opsound" |
1132 |
- |
1133 |
-S="${WORKDIR}/${MY_P}" |
1134 |
- |
1135 |
-pkg_setup() { |
1136 |
- CONFIG_CHECK="~!NF_CONNTRACK_SIP" |
1137 |
- local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users |
1138 |
- have reported that this module dropped critical SIP packets in their deployments. You |
1139 |
- may want to disable it if you see such problems." |
1140 |
- check_extra_config |
1141 |
- |
1142 |
- enewgroup asterisk |
1143 |
- enewgroup dialout 20 |
1144 |
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" |
1145 |
-} |
1146 |
- |
1147 |
-src_prepare() { |
1148 |
- default |
1149 |
- AT_M4DIR="autoconf third-party third-party/pjproject" eautoreconf |
1150 |
-} |
1151 |
- |
1152 |
-src_configure() { |
1153 |
- local vmst |
1154 |
- |
1155 |
- econf \ |
1156 |
- --libdir="/usr/$(get_libdir)" \ |
1157 |
- --localstatedir="/var" \ |
1158 |
- --with-crypto \ |
1159 |
- --with-gsm=internal \ |
1160 |
- --with-popt \ |
1161 |
- --with-ssl \ |
1162 |
- --with-z \ |
1163 |
- --without-pwlib \ |
1164 |
- $(use_with caps cap) \ |
1165 |
- $(use_with http gmime) \ |
1166 |
- $(use_with newt) \ |
1167 |
- $(use_with portaudio) \ |
1168 |
- $(use_with pjproject) |
1169 |
- |
1170 |
- # Blank out sounds/sounds.xml file to prevent |
1171 |
- # asterisk from installing sounds files (we pull them in via |
1172 |
- # asterisk-{core,extra}-sounds and asterisk-moh-opsound. |
1173 |
- >"${S}"/sounds/sounds.xml |
1174 |
- |
1175 |
- # That NATIVE_ARCH chatter really is quite bothersome |
1176 |
- sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system" |
1177 |
- |
1178 |
- # Compile menuselect binary for optional components |
1179 |
- emake menuselect.makeopts |
1180 |
- |
1181 |
- # Broken functionality is forcibly disabled (bug #360143) |
1182 |
- menuselect/menuselect --disable chan_misdn menuselect.makeopts |
1183 |
- menuselect/menuselect --disable chan_ooh323 menuselect.makeopts |
1184 |
- |
1185 |
- # Utility set is forcibly enabled (bug #358001) |
1186 |
- menuselect/menuselect --enable smsq menuselect.makeopts |
1187 |
- menuselect/menuselect --enable streamplayer menuselect.makeopts |
1188 |
- menuselect/menuselect --enable aelparse menuselect.makeopts |
1189 |
- menuselect/menuselect --enable astman menuselect.makeopts |
1190 |
- |
1191 |
- # this is connected, otherwise it would not find |
1192 |
- # ast_pktccops_gate_alloc symbol |
1193 |
- menuselect/menuselect --enable chan_mgcp menuselect.makeopts |
1194 |
- menuselect/menuselect --enable res_pktccops menuselect.makeopts |
1195 |
- |
1196 |
- # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available |
1197 |
- menuselect/menuselect --enable pbx_dundi menuselect.makeopts |
1198 |
- menuselect/menuselect --enable func_aes menuselect.makeopts |
1199 |
- menuselect/menuselect --enable chan_iax2 menuselect.makeopts |
1200 |
- |
1201 |
- # SQlite3 is now the main database backend, enable related features |
1202 |
- menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts |
1203 |
- menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts |
1204 |
- |
1205 |
- # The others are based on USE-flag settings |
1206 |
- use_select() { |
1207 |
- local state=$(use "$1" && echo enable || echo disable) |
1208 |
- shift # remove use from parameters |
1209 |
- |
1210 |
- while [[ -n $1 ]]; do |
1211 |
- menuselect/menuselect --${state} "$1" menuselect.makeopts |
1212 |
- shift |
1213 |
- done |
1214 |
- } |
1215 |
- |
1216 |
- use_select alsa chan_alsa |
1217 |
- use_select bluetooth chan_mobile |
1218 |
- use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} |
1219 |
- use_select cluster res_corosync |
1220 |
- use_select curl func_curl res_config_curl res_curl |
1221 |
- use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi |
1222 |
- use_select freetds {cdr,cel}_tds |
1223 |
- use_select gtalk chan_motif |
1224 |
- use_select http res_http_post |
1225 |
- use_select iconv func_iconv |
1226 |
- use_select xmpp res_xmpp |
1227 |
- use_select ilbc codec_ilbc format_ilbc |
1228 |
- use_select ldap res_config_ldap |
1229 |
- use_select lua pbx_lua |
1230 |
- use_select mysql app_mysql cdr_mysql res_config_mysql |
1231 |
- use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc |
1232 |
- use_select osplookup app_osplookup |
1233 |
- use_select oss chan_oss |
1234 |
- use_select postgres {cdr,cel}_pgsql res_config_pgsql |
1235 |
- use_select radius {cdr,cel}_radius |
1236 |
- use_select snmp res_snmp |
1237 |
- use_select span res_fax_spandsp |
1238 |
- use_select speex {codec,func}_speex |
1239 |
- use_select srtp res_srtp |
1240 |
- use_select syslog cdr_syslog |
1241 |
- use_select vorbis format_ogg_vorbis |
1242 |
- |
1243 |
- # Voicemail storage ... |
1244 |
- for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do |
1245 |
- if use ${vmst}; then |
1246 |
- menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts |
1247 |
- fi |
1248 |
- done |
1249 |
- |
1250 |
- if use debug; then |
1251 |
- for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do |
1252 |
- menuselect/menuselect --enable $o menuselect.makeopts |
1253 |
- done |
1254 |
- fi |
1255 |
-} |
1256 |
- |
1257 |
-src_compile() { |
1258 |
- ASTLDFLAGS="${LDFLAGS}" emake |
1259 |
-} |
1260 |
- |
1261 |
-src_install() { |
1262 |
- mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die |
1263 |
- emake DESTDIR="${D}" installdirs |
1264 |
- emake DESTDIR="${D}" install |
1265 |
- |
1266 |
- if use radius; then |
1267 |
- insinto /etc/radiusclient/ |
1268 |
- doins contrib/dictionary.digium |
1269 |
- fi |
1270 |
- diropts -m 0750 -o root -g asterisk |
1271 |
- keepdir /etc/asterisk |
1272 |
- if use samples; then |
1273 |
- emake DESTDIR="${D}" samples |
1274 |
- for conffile in "${D}"etc/asterisk/*.* |
1275 |
- do |
1276 |
- chown root:root $conffile |
1277 |
- chmod 0644 $conffile |
1278 |
- done |
1279 |
- einfo "Sample files have been installed" |
1280 |
- else |
1281 |
- einfo "Skipping installation of sample files..." |
1282 |
- rm -f "${D}"var/lib/asterisk/mohmp3/* || die |
1283 |
- rm -f "${D}"var/lib/asterisk/sounds/demo-* || die |
1284 |
- rm -f "${D}"var/lib/asterisk/agi-bin/* || die |
1285 |
- rm -f "${D}"etc/asterisk/* || die |
1286 |
- fi |
1287 |
- rm -rf "${D}"var/spool/asterisk/voicemail/default || die |
1288 |
- |
1289 |
- # keep directories |
1290 |
- diropts -m 0770 -o asterisk asterisk |
1291 |
- keepdir /var/lib/asterisk |
1292 |
- keepdir /var/spool/asterisk |
1293 |
- keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} |
1294 |
- diropts -m 0750 -o asterisk -g asterisk |
1295 |
- keepdir /var/log/asterisk/{cdr-csv,cdr-custom} |
1296 |
- |
1297 |
- newinitd "${FILESDIR}"/1.8.0/asterisk.initd8 asterisk |
1298 |
- newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk |
1299 |
- |
1300 |
- systemd_dounit "${FILESDIR}"/asterisk.service |
1301 |
- systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf |
1302 |
- systemd_install_serviced "${FILESDIR}"/asterisk.service.conf |
1303 |
- |
1304 |
- # install the upgrade documentation |
1305 |
- # |
1306 |
- dodoc UPGRADE* BUGS CREDITS |
1307 |
- |
1308 |
- # install extra documentation |
1309 |
- # |
1310 |
- if use doc |
1311 |
- then |
1312 |
- dodoc doc/*.txt |
1313 |
- dodoc doc/*.pdf |
1314 |
- fi |
1315 |
- |
1316 |
- # install SIP scripts; bug #300832 |
1317 |
- # |
1318 |
- dodoc "${FILESDIR}/1.6.2/sip_calc_auth" |
1319 |
- dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" |
1320 |
- dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" |
1321 |
- dodoc "${FILESDIR}/1.6.2/call_data.txt" |
1322 |
- |
1323 |
- # install logrotate snippet; bug #329281 |
1324 |
- # |
1325 |
- insinto /etc/logrotate.d |
1326 |
- newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk |
1327 |
-} |
1328 |
- |
1329 |
-pkg_postinst() { |
1330 |
- # |
1331 |
- # Announcements, warnings, reminders... |
1332 |
- # |
1333 |
- einfo "Asterisk has been installed" |
1334 |
- echo |
1335 |
- elog "If you want to know more about asterisk, visit these sites:" |
1336 |
- elog "http://www.asteriskdocs.org/" |
1337 |
- elog "http://www.voip-info.org/wiki-Asterisk" |
1338 |
- echo |
1339 |
- elog "http://www.automated.it/guidetoasterisk.htm" |
1340 |
- echo |
1341 |
- elog "Gentoo VoIP IRC Channel:" |
1342 |
- elog "#gentoo-voip @ irc.freenode.net" |
1343 |
- echo |
1344 |
- echo |
1345 |
- elog "Please read the Asterisk 13 upgrade document:" |
1346 |
- elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+13" |
1347 |
-} |
1348 |
- |
1349 |
-pkg_config() { |
1350 |
- einfo "Do you want to reset file permissions and ownerships (y/N)?" |
1351 |
- |
1352 |
- read tmp |
1353 |
- tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" |
1354 |
- |
1355 |
- if [[ "$tmp" = "y" ]] ||\ |
1356 |
- [[ "$tmp" = "yes" ]] |
1357 |
- then |
1358 |
- einfo "Resetting permissions to defaults..." |
1359 |
- |
1360 |
- for x in spool run lib log; do |
1361 |
- chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk |
1362 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk |
1363 |
- done |
1364 |
- |
1365 |
- chown -R root:asterisk "${ROOT}"etc/asterisk |
1366 |
- chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk |
1367 |
- |
1368 |
- einfo "done" |
1369 |
- else |
1370 |
- einfo "skipping" |
1371 |
- fi |
1372 |
-} |