5 |
5 |
|
6 |
6 |
LUA_COMPAT=( lua5-{1..4} )
|
7 |
7 |
|
8 |
|
inherit autotools linux-info lua-single systemd toolchain-funcs tmpfiles
|
|
8 |
inherit autotools linux-info lua-single toolchain-funcs
|
9 |
9 |
|
10 |
10 |
DESCRIPTION="Asterisk: A Modular Open Source PBX System"
|
11 |
11 |
HOMEPAGE="https://www.asterisk.org/"
|
... | ... | |
101 |
101 |
net-misc/asterisk-moh-opsound
|
102 |
102 |
selinux? ( sec-policy/selinux-asterisk )
|
103 |
103 |
syslog? ( virtual/logger )"
|
|
104 |
PDEPEND="net-misc/asterisk-base"
|
104 |
105 |
|
105 |
106 |
BDEPEND="dev-libs/libxml2:2
|
106 |
107 |
virtual/pkgconfig"
|
... | ... | |
313 |
314 |
diropts -m 0750 -o asterisk -g asterisk
|
314 |
315 |
keepdir /var/log/asterisk/{cdr-csv,cdr-custom}
|
315 |
316 |
|
316 |
|
newsbin "${FILESDIR}/asterisk_wrapper-16.26.1-18.12.1" asterisk_wrapper
|
317 |
|
newinitd "${FILESDIR}"/initd-16.26.1-18.12.1 asterisk
|
318 |
|
newconfd "${FILESDIR}"/confd-16.26.1-18.12.1 asterisk
|
319 |
|
|
320 |
|
systemd_dounit "${FILESDIR}"/asterisk.service
|
321 |
|
newtmpfiles "${FILESDIR}"/asterisk.tmpfiles-16.22.0-18.8.0.conf asterisk.conf
|
322 |
|
systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
|
323 |
|
|
324 |
317 |
# Reset diropts else dodoc uses it for doc installations.
|
325 |
318 |
diropts -m0755
|
326 |
319 |
|
... | ... | |
330 |
323 |
# install extra documentation
|
331 |
324 |
use doc && dodoc doc/*.{txt,pdf}
|
332 |
325 |
|
333 |
|
# install logrotate snippet; bug #329281
|
334 |
|
#
|
335 |
|
insinto /etc/logrotate.d
|
336 |
|
newins "${FILESDIR}/1.6.2/asterisk.logrotate4" asterisk
|
337 |
|
|
338 |
326 |
# Asterisk installs a few folders that's empty by design,
|
339 |
327 |
# but still required. This finds them, and marks them for
|
340 |
328 |
# portage.
|
... | ... | |
344 |
332 |
}
|
345 |
333 |
|
346 |
334 |
pkg_postinst() {
|
347 |
|
tmpfiles_process asterisk.conf
|
348 |
|
|
349 |
335 |
if [ -z "${REPLACING_VERSIONS}" ]; then
|
350 |
336 |
elog "Asterisk Wiki: https://wiki.asterisk.org/wiki/"
|
351 |
337 |
elog "Gentoo VoIP IRC Channel: #gentoo-voip @ irc.libera.chat"
|