Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/
Date: Mon, 29 Mar 2021 15:29:42
Message-Id: 1617031150.1efef6f201184e5a0f0eef99e4f781006c927060.sam@gentoo
1 commit: 1efef6f201184e5a0f0eef99e4f781006c927060
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Mon Mar 29 14:41:37 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 29 15:19:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1efef6f2
7
8 net-misc/asterisk: cleanup insecure
9
10 Bug: https://bugs.gentoo.org/771318
11 Package-Manager: Portage-3.0.13, Repoman-3.0.2
12 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
13 Closes: https://github.com/gentoo/gentoo/pull/20178
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 net-misc/asterisk/Manifest | 1 -
17 net-misc/asterisk/asterisk-13.38.1-r2.ebuild | 313 ---------------------------
18 2 files changed, 314 deletions(-)
19
20 diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
21 index b29eb12353d..198944c66a9 100644
22 --- a/net-misc/asterisk/Manifest
23 +++ b/net-misc/asterisk/Manifest
24 @@ -1,4 +1,3 @@
25 -DIST asterisk-13.38.1.tar.gz 33705256 BLAKE2B c783ee40880455cee5a60b111f69d95fdc42bd42a598834236e9999d0f2f401548229560e937fa8d842c5d24715d3891e7860f098d35d5630522e7a659123242 SHA512 270b7c8374104b3c2e9999503fa5cab5b465e37ddfa6759c1019fb99b6bb5877fe4505501ac3306a708ce911aeda36d04796f51156312c04fec013dbaa56a57f
26 DIST asterisk-13.38.2.tar.gz 33708267 BLAKE2B f8c188f6500a01e807982518486972c18f8f903285910e64b4d8e2a4f553d42534f910696a02ab13e371dbd83dfd932c5cb7a6cea08817862ecaddcc7afd99d2 SHA512 bd9755503048cd8dcf8e39947dd5cfb617c20c4b1ad5033ae297499a4967c06ba11b6e43233c1ae0d33f8f11a81dbb9b4487f16a1f4786007172028caf1ee051
27 DIST asterisk-16.16.2.tar.gz 27808852 BLAKE2B dc05fe7c797f9b848c918121ffe7e7648bca75fccb70412fcd39f37beb3fd33e7d64cd198919cb6ae2867cd685651497ae15a30fb280988a9c7184e80de235ae SHA512 9e47ea2906a2c0d1a2f527d106ef6200a8d0cce76a31a6cfb3ca720a2ef7b5f723ae5c6266c74b0bdfd5718346e8d01a30fc346981463fa4ee7a4b7c99a67928
28 DIST asterisk-18.2.2.tar.gz 27888521 BLAKE2B 5837b6434568a8e9f7a8963098994ccb487cfe9b85d59b30e5866e4eb67d222c4ac2c77036f7d461de72acc6ffd07fcd2d56bcaa618f4aecdbdba60d609eeb93 SHA512 e15fe3c7f46d49991bcb6f6f565f15e4af0d658b4cd6b091079209dd95a8027858effdc2f2314d72ed46a73cdebc089d3c27d5cf8db50d2d21f3c317a8a4a546
29
30 diff --git a/net-misc/asterisk/asterisk-13.38.1-r2.ebuild b/net-misc/asterisk/asterisk-13.38.1-r2.ebuild
31 deleted file mode 100644
32 index 4afefac8480..00000000000
33 --- a/net-misc/asterisk/asterisk-13.38.1-r2.ebuild
34 +++ /dev/null
35 @@ -1,313 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -LUA_COMPAT=( lua5-{1..4} )
42 -
43 -inherit autotools linux-info lua-single systemd toolchain-funcs tmpfiles
44 -
45 -DESCRIPTION="Asterisk: A Modular Open Source PBX System"
46 -HOMEPAGE="https://www.asterisk.org/"
47 -SRC_URI="https://downloads.asterisk.org/pub/telephony/asterisk/releases/${P}.tar.gz"
48 -LICENSE="GPL-2"
49 -SLOT="0/${PV%%.*}"
50 -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
51 -
52 -IUSE_VOICEMAIL_STORAGE=(
53 - +voicemail_storage_file
54 - voicemail_storage_odbc
55 - voicemail_storage_imap
56 -)
57 -IUSE="${IUSE_VOICEMAIL_STORAGE[*]} alsa blocks bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc ldap libressl lua mysql newt odbc oss pjproject portaudio postgres radius selinux snmp span speex srtp +ssl static statsd syslog vorbis xmpp"
58 -REQUIRED_USE="gtalk? ( xmpp )
59 - lua? ( ${LUA_REQUIRED_USE} )
60 - ^^ ( ${IUSE_VOICEMAIL_STORAGE[*]//+/} )
61 - voicemail_storage_odbc? ( odbc )
62 -"
63 -
64 -PATCHES=(
65 - "${FILESDIR}/asterisk-historic-no-var-run-install.patch"
66 - "${FILESDIR}/asterisk-13.38.1-r1-autoconf-lua-version.patch"
67 - "${FILESDIR}/asterisk-13.38.1-r1-func_lock-fix-races.patch"
68 - "${FILESDIR}/asterisk-13.18.1-r2-autoconf-2.70.patch"
69 -)
70 -
71 -DEPEND="acct-user/asterisk
72 - acct-group/asterisk
73 - dev-db/sqlite:3
74 - dev-libs/popt
75 - dev-libs/jansson
76 - dev-libs/libedit
77 - dev-libs/libxml2:2
78 - dev-libs/libxslt
79 - sys-libs/ncurses:0=
80 - sys-libs/zlib
81 - alsa? ( media-libs/alsa-lib )
82 - bluetooth? ( net-wireless/bluez:= )
83 - calendar? (
84 - net-libs/neon:=
85 - dev-libs/libical:=
86 - dev-libs/iksemel
87 - )
88 - caps? ( sys-libs/libcap )
89 - blocks? ( sys-libs/blocksruntime )
90 - cluster? ( sys-cluster/corosync )
91 - curl? ( net-misc/curl )
92 - dahdi? (
93 - net-libs/libpri
94 - net-misc/dahdi-tools
95 - )
96 - freetds? ( dev-db/freetds )
97 - gtalk? ( dev-libs/iksemel )
98 - http? ( dev-libs/gmime:2.6 )
99 - iconv? ( virtual/libiconv )
100 - ilbc? ( media-libs/libilbc )
101 - ldap? ( net-nds/openldap )
102 - lua? ( ${LUA_DEPS} )
103 - mysql? ( dev-db/mysql-connector-c:= )
104 - newt? ( dev-libs/newt )
105 - odbc? ( dev-db/unixODBC )
106 - pjproject? ( net-libs/pjproject )
107 - portaudio? ( media-libs/portaudio )
108 - postgres? ( dev-db/postgresql:* )
109 - radius? ( net-dialup/freeradius-client )
110 - snmp? ( net-analyzer/net-snmp:= )
111 - span? ( media-libs/spandsp )
112 - speex? (
113 - media-libs/libogg
114 - media-libs/speex
115 - media-libs/speexdsp
116 - )
117 - srtp? ( net-libs/libsrtp:0 )
118 - ssl? (
119 - !libressl? ( dev-libs/openssl:0= )
120 - libressl? ( dev-libs/libressl:0= )
121 - )
122 - vorbis? (
123 - media-libs/libogg
124 - media-libs/libvorbis
125 - )
126 - voicemail_storage_imap? ( virtual/imap-c-client )
127 - xmpp? ( dev-libs/iksemel )
128 -"
129 -
130 -RDEPEND="${DEPEND}
131 - net-misc/asterisk-core-sounds
132 - net-misc/asterisk-extra-sounds
133 - net-misc/asterisk-moh-opsound
134 - selinux? ( sec-policy/selinux-asterisk )
135 - syslog? ( virtual/logger )"
136 -
137 -BDEPEND="dev-libs/libxml2:2
138 - virtual/pkgconfig"
139 -
140 -QA_DT_NEEDED="/usr/lib.*/libasteriskssl[.]so[.][0-9]\+"
141 -
142 -pkg_pretend() {
143 - CONFIG_CHECK="~!NF_CONNTRACK_SIP"
144 - local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users
145 - have reported that this module dropped critical SIP packets in their deployments. You
146 - may want to disable it if you see such problems."
147 - check_extra_config
148 -
149 - [[ "${MERGE_TYPE}" == binary ]] && return
150 -
151 - if tc-is-clang; then
152 - use blocks || die "CC=clang requires USE=blocks"
153 - else
154 - use blocks && die "USE=blocks can only be used with CC=clang"
155 - fi
156 -}
157 -
158 -pkg_setup() {
159 - use lua && lua-single_pkg_setup
160 -}
161 -
162 -src_prepare() {
163 - default
164 - AT_M4DIR="autoconf third-party third-party/pjproject third-party/jansson" eautoreconf
165 -}
166 -
167 -src_configure() {
168 - local vmst
169 -
170 - econf \
171 - LUA_VERSION="${ELUA#lua}" \
172 - --libdir="/usr/$(get_libdir)" \
173 - --localstatedir="/var" \
174 - --with-crypto \
175 - --with-gsm=internal \
176 - --with-popt \
177 - --with-z \
178 - --with-libedit \
179 - $(use_with caps cap) \
180 - $(use_with lua lua) \
181 - $(use_with http gmime) \
182 - $(use_with newt) \
183 - $(use_with pjproject) \
184 - $(use_with portaudio) \
185 - $(use_with ssl)
186 -
187 - _menuselect() {
188 - menuselect/menuselect "$@" || die "menuselect $* failed."
189 - }
190 -
191 - _use_select() {
192 - local state=$(usex "$1" enable disable)
193 - shift # remove use from parameters
194 -
195 - while [[ -n $1 ]]; do
196 - _menuselect --${state} "$1" menuselect.makeopts
197 - shift
198 - done
199 - }
200 -
201 - # Blank out sounds/sounds.xml file to prevent
202 - # asterisk from installing sounds files (we pull them in via
203 - # asterisk-{core,extra}-sounds and asterisk-moh-opsound.
204 - >"${S}"/sounds/sounds.xml
205 -
206 - # That NATIVE_ARCH chatter really is quite bothersome
207 - sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
208 -
209 - # Compile menuselect binary for optional components
210 - emake NOISE_BUILD=yes menuselect.makeopts
211 -
212 - # Disable BUILD_NATIVE (bug #667498)
213 - _menuselect --disable build_native menuselect.makeopts
214 -
215 - # Broken functionality is forcibly disabled (bug #360143)
216 - _menuselect --disable chan_misdn menuselect.makeopts
217 - _menuselect --disable chan_ooh323 menuselect.makeopts
218 -
219 - # Utility set is forcibly enabled (bug #358001)
220 - _menuselect --enable smsq menuselect.makeopts
221 - _menuselect --enable streamplayer menuselect.makeopts
222 - _menuselect --enable aelparse menuselect.makeopts
223 - _menuselect --enable astman menuselect.makeopts
224 -
225 - # this is connected, otherwise it would not find
226 - # ast_pktccops_gate_alloc symbol
227 - _menuselect --enable chan_mgcp menuselect.makeopts
228 - _menuselect --enable res_pktccops menuselect.makeopts
229 -
230 - # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
231 - _menuselect --enable pbx_dundi menuselect.makeopts
232 - _menuselect --enable func_aes menuselect.makeopts
233 - _menuselect --enable chan_iax2 menuselect.makeopts
234 -
235 - # SQlite3 is now the main database backend, enable related features
236 - _menuselect --enable cdr_sqlite3_custom menuselect.makeopts
237 - _menuselect --enable cel_sqlite3_custom menuselect.makeopts
238 -
239 - # The others are based on USE-flag settings
240 - _use_select alsa chan_alsa
241 - _use_select bluetooth chan_mobile
242 - _use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
243 - _use_select cluster res_corosync
244 - _use_select curl func_curl res_config_curl res_curl
245 - _use_select dahdi app_dahdiras app_meetme chan_dahdi codec_dahdi res_timing_dahdi
246 - _use_select freetds {cdr,cel}_tds
247 - _use_select gtalk chan_motif
248 - _use_select http res_http_post
249 - _use_select iconv func_iconv
250 - _use_select ilbc codec_ilbc format_ilbc
251 - _use_select ldap res_config_ldap
252 - _use_select lua pbx_lua
253 - _use_select mysql app_mysql cdr_mysql res_config_mysql
254 - _use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
255 - _use_select oss chan_oss
256 - _use_select postgres {cdr,cel}_pgsql res_config_pgsql
257 - _use_select radius {cdr,cel}_radius
258 - _use_select snmp res_snmp
259 - _use_select span res_fax_spandsp
260 - _use_select speex {codec,func}_speex
261 - _use_select speex format_ogg_speex
262 - _use_select srtp res_srtp
263 - _use_select statsd res_statsd res_{endpoint,chan}_stats
264 - _use_select syslog cdr_syslog
265 - _use_select vorbis format_ogg_vorbis
266 - _use_select xmpp res_xmpp
267 -
268 - # Voicemail storage ...
269 - for vmst in "${IUSE_VOICEMAIL_STORAGE[@]}"; do
270 - if use "${vmst#+}"; then
271 - _menuselect --enable "$(echo "${vmst##*_}" | tr '[:lower:]' '[:upper:]')_STORAGE" menuselect.makeopts
272 - fi
273 - done
274 -
275 - if use debug; then
276 - for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
277 - _menuselect --enable $o menuselect.makeopts
278 - done
279 - fi
280 -}
281 -
282 -src_compile() {
283 - emake ASTCFLAGS="${CFLAGS}" ASTLDFLAGS="${LDFLAGS}" NOISY_BUILD=yes
284 -}
285 -
286 -src_install() {
287 - local d
288 -
289 - dodir "/usr/$(get_libdir)/pkgconfig"
290 - emake DESTDIR="${D}" NOISY_BUILD=yes install
291 -
292 - if use radius; then
293 - insinto /etc/radiusclient/
294 - doins contrib/dictionary.digium
295 - fi
296 - diropts -m 0750 -o root -g asterisk
297 - keepdir /etc/asterisk
298 - emake NOISY_BUILD=yes DESTDIR="${D}" CONFIG_SRC=configs/samples CONFIG_EXTEN=.sample install-configs
299 - chown root:root "${ED}/etc/asterisk/"* || die "chown root:root of config files failed"
300 - chmod 644 "${ED}/etc/asterisk/"* || die "chmod 644 of config files failed"
301 -
302 - # keep directories
303 - diropts -m 0750 -o asterisk -g root
304 - keepdir /var/lib/asterisk
305 - keepdir /var/spool/asterisk
306 - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail,recording}
307 - diropts -m 0750 -o asterisk -g asterisk
308 - keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
309 -
310 - newinitd "${FILESDIR}"/initd-13.32.0-r1 asterisk
311 - newconfd "${FILESDIR}"/confd-13.32.0 asterisk
312 -
313 - systemd_dounit "${FILESDIR}"/asterisk.service
314 - newtmpfiles "${FILESDIR}"/asterisk.tmpfiles2.conf asterisk.conf
315 - systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
316 -
317 - # Reset diropts else dodoc uses it for doc installations.
318 - diropts -m0755
319 -
320 - # install the upgrade documentation
321 - dodoc UPGRADE* BUGS CREDITS
322 -
323 - # install extra documentation
324 - use doc && dodoc doc/*.{txt,pdf}
325 -
326 - # install logrotate snippet; bug #329281
327 - #
328 - insinto /etc/logrotate.d
329 - newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
330 -
331 - # Asterisk installs a few folders that's empty by design,
332 - # but still required. This finds them, and marks them for
333 - # portage.
334 - while read d < <(find "${ED}"/var -type d -empty || die "Find failed."); do
335 - keepdir "${d#${ED}}"
336 - done
337 -}
338 -
339 -pkg_postinst() {
340 - if [ -z "${REPLACING_VERSIONS}" ]; then
341 - elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
342 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
343 - elif [ "$(ver_cut 1 "${REPLACING_VERSIONS}")" != "$(ver_cut 1)" ]; then
344 - elog "You are updating from Asterisk $(ver_cut 1 "${REPLACING_VERSIONS}") upgrade document:"
345 - elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+$(ver_cut 1)"
346 - elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.freenode.net"
347 - fi
348 -}