diff options
author | Jaco Kroon <jaco@uls.co.za> | 2023-09-04 17:06:55 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-09-14 15:57:17 +0300 |
commit | 42618905dd3a86740ee6e2928cfecc92c9281b3a (patch) | |
tree | dab1572775b442d6f24ddf1620d2cf2218434811 /net-misc/asterisk-base/asterisk-base-2.ebuild | |
parent | app-backup/duplicity: add 2.1.1 (diff) | |
download | gentoo-42618905dd3a86740ee6e2928cfecc92c9281b3a.tar.gz gentoo-42618905dd3a86740ee6e2928cfecc92c9281b3a.tar.bz2 gentoo-42618905dd3a86740ee6e2928cfecc92c9281b3a.zip |
net-misc/asterisk-base: add 2
Fix core dump handling.
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc/asterisk-base/asterisk-base-2.ebuild')
-rw-r--r-- | net-misc/asterisk-base/asterisk-base-2.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net-misc/asterisk-base/asterisk-base-2.ebuild b/net-misc/asterisk-base/asterisk-base-2.ebuild new file mode 100644 index 000000000000..7d89202ca56f --- /dev/null +++ b/net-misc/asterisk-base/asterisk-base-2.ebuild @@ -0,0 +1,40 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd tmpfiles + +DESCRIPTION="Gentoo Asterisk init scripts" +HOMEPAGE="https://www.gentoo.org/wiki/No_homepage" +# Need to set S due to PMS saying we need it existing, but no SRC_URI +S="${WORKDIR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" + +RDEPEND=" + net-misc/asterisk + !<=net-misc/asterisk-16.30.0:0/16 + !<=net-misc/asterisk-18.18.0:0/18 + !<=net-misc/asterisk-20.3.0:0/20 +" + +src_install() { + newinitd "${FILESDIR}/initd-1" asterisk + newconfd "${FILESDIR}/confd-1" asterisk + newsbin "${FILESDIR}/asterisk_wrapper-2" asterisk_wrapper + + systemd_newunit "${FILESDIR}/asterisk.service-1" asterisk.service + systemd_install_serviced "${FILESDIR}/asterisk.service-1.conf" asterisk.service + + newtmpfiles "${FILESDIR}/tmpfiles-1.conf" asterisk.conf + + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate-1" asterisk +} + +pkg_postinst() { + tmpfiles_process asterisk.conf +} |