From: Patrick McLean Date: Wed, 20 May 2020 01:05:16 +0000 (-0700) Subject: net-misc/exabgp-3.4.28-r1: revbump, add init script, logrotate, etc X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a02234182cc32b9cad4598dd2c9deef293be7f6;p=gentoo.git net-misc/exabgp-3.4.28-r1: revbump, add init script, logrotate, etc Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrick McLean --- diff --git a/net-misc/exabgp/exabgp-3.4.28.ebuild b/net-misc/exabgp/exabgp-3.4.28-r1.ebuild similarity index 55% rename from net-misc/exabgp/exabgp-3.4.28.ebuild rename to net-misc/exabgp/exabgp-3.4.28-r1.ebuild index 81f8af7bae67..c61d012c7a54 100644 --- a/net-misc/exabgp/exabgp-3.4.28.ebuild +++ b/net-misc/exabgp/exabgp-3.4.28-r1.ebuild @@ -4,7 +4,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 ) DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 +inherit tmpfiles systemd distutils-r1 DESCRIPTION="The BGP swiss army knife of networking" HOMEPAGE="https://github.com/Exa-Networks/exabgp" @@ -17,3 +17,18 @@ KEYWORDS="~amd64" RDEPEND=" dev-python/ipaddr[${PYTHON_USEDEP}] " + +python_install_all() { + distutils-r1_python_install_all + + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} + + newtmpfiles "${FILESDIR}/exabgp.tmpfiles" ${PN}.conf + systemd_dounit etc/systemd/* + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + keepdir /etc/exabgp +}