summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2020-05-19 18:05:16 -0700
committerPatrick McLean <chutzpah@gentoo.org>2020-05-19 18:06:09 -0700
commit6a02234182cc32b9cad4598dd2c9deef293be7f6 (patch)
tree71857100778ac74db9cfada6ec14ada371342ee6 /net-misc/exabgp
parentnet-misc/exabgp-4.2.7-r1: revbump, add init script, logrotate, etc (diff)
downloadgentoo-6a02234182cc32b9cad4598dd2c9deef293be7f6.tar.gz
gentoo-6a02234182cc32b9cad4598dd2c9deef293be7f6.tar.bz2
gentoo-6a02234182cc32b9cad4598dd2c9deef293be7f6.zip
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@gentoo.org>
Diffstat (limited to 'net-misc/exabgp')
-rw-r--r--net-misc/exabgp/exabgp-3.4.28-r1.ebuild (renamed from net-misc/exabgp/exabgp-3.4.28.ebuild)17
1 files changed, 16 insertions, 1 deletions
diff --git a/net-misc/exabgp/exabgp-3.4.28.ebuild b/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
+}