Files
gentoo/net-misc/asterisk-base/asterisk-base-4.ebuild
Jaco Kroon 16ecbb19ee net-misc/asterisk-base: add 4
Signed-off-by: Jaco Kroon <jkroon@gentoo.org>
2026-03-04 13:46:25 +02:00

35 lines
776 B
Bash

# Copyright 2023-2026 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://github.com/jkroonza/asterisk-base"
SRC_URI="https://github.com/jkroonza/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
RDEPEND="net-misc/asterisk"
src_install() {
newinitd initd asterisk
newconfd confd asterisk
dosbin asterisk_wrapper
systemd_dounit asterisk.service
systemd_install_serviced asterisk.service.conf asterisk.service
newtmpfiles tmpfiles.conf asterisk.conf
insinto /etc/logrotate.d
newins logrotate asterisk
}
pkg_postinst() {
tmpfiles_process asterisk.conf
}