commit: 6a02234182cc32b9cad4598dd2c9deef293be7f6
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Wed May 20 01:05:16 2020 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed May 20 01:06:09 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a022341
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 <chutzpah <AT> gentoo.org>
.../{exabgp-3.4.28.ebuild => exabgp-3.4.28-r1.ebuild} | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
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 81f8af7bae6..c61d012c7a5 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
+}