[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/, net-misc/exabgp/

2024-04-23 Thread Patrick McLean
commit: d720e4f889f86cc6d6344d72f934f10d5f1c1180
Author: Patrick McLean  gentoo  org>
AuthorDate: Tue Apr 23 23:14:06 2024 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Tue Apr 23 23:14:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d720e4f8

net-misc/exabgp: Revbump, fix bugs #929723, #923160, #910006

Closes: https://bugs.gentoo.org/929723
Closes: https://bugs.gentoo.org/923160
Closes: https://bugs.gentoo.org/910006
Signed-off-by: Patrick McLean  gentoo.org>

 ...xabgp-4.2.21.ebuild => exabgp-4.2.21-r1.ebuild} | 10 +++--
 ...p.service-to-fix-socket-creation-on-start.patch | 38 
 ...xabgp-4.2.21-patch-embedded-six-for-py312.patch | 52 ++
 3 files changed, 96 insertions(+), 4 deletions(-)

diff --git a/net-misc/exabgp/exabgp-4.2.21.ebuild 
b/net-misc/exabgp/exabgp-4.2.21-r1.ebuild
similarity index 80%
rename from net-misc/exabgp/exabgp-4.2.21.ebuild
rename to net-misc/exabgp/exabgp-4.2.21-r1.ebuild
index 23eb5f34e950..40fa0522f040 100644
--- a/net-misc/exabgp/exabgp-4.2.21.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.21-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
 inherit tmpfiles systemd distutils-r1
 
 DESCRIPTION="The BGP swiss army knife of networking"
@@ -34,12 +34,14 @@ PATCHES=(
"${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
"${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
"${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
+   
"${FILESDIR}/exabgp-4.2.21-exabgp.service-to-fix-socket-creation-on-start.patch"
+   "${FILESDIR}/exabgp-4.2.21-patch-embedded-six-for-py312.patch"
 )
 
 distutils_enable_tests pytest
 
 python_test() {
-   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   ./qa/bin/parsing || die "parsing tests fail with ${EPYTHON}"
epytest
 }
 

diff --git 
a/net-misc/exabgp/files/exabgp-4.2.21-exabgp.service-to-fix-socket-creation-on-start.patch
 
b/net-misc/exabgp/files/exabgp-4.2.21-exabgp.service-to-fix-socket-creation-on-start.patch
new file mode 100644
index ..78d26f73f093
--- /dev/null
+++ 
b/net-misc/exabgp/files/exabgp-4.2.21-exabgp.service-to-fix-socket-creation-on-start.patch
@@ -0,0 +1,38 @@
+From: Vincent Bernat 
+Date: Sun, 2 May 2021 17:47:10 +0200
+Subject: Patch exabgp.service to fix socket creation on start
+
+Patch from Marco d'Itri.
+
+Closes: #886568.
+---
+ etc/systemd/exabgp.service | 15 ++-
+ 1 file changed, 6 insertions(+), 9 deletions(-)
+
+diff --git a/etc/systemd/exabgp.service b/etc/systemd/exabgp.service
+index 17ce886..b2da5ba 100644
+--- a/etc/systemd/exabgp.service
 b/etc/systemd/exabgp.service
+@@ -7,16 +7,13 @@ After=network.target
+ ConditionPathExists=/etc/exabgp/exabgp.conf
+ 
+ [Service]
+-#User=exabgp
+-#Group=exabgp
+ Environment=exabgp_daemon_daemonize=false
+-PermissionsStartOnly=true
+-ExecStartPre=-mkfifo /run/exabgp.in
+-ExecStartPre=-mkfifo /run/exabgp.out
+-ExecStartPre=chmod 600 /run/exabgp.in
+-ExecStartPre=chmod 600 /run/exabgp.out
+-ExecStartPre=chown exabgp.exabgp /run/exabgp.in
+-ExecStartPre=chown exabgp.exabgp /run/exabgp.out
++User=exabgp
++Group=exabgp
++RuntimeDirectory=exabgp
++RuntimeDirectoryMode=0750
++ExecStartPre=-/usr/bin/mkfifo /run/exabgp/exabgp.in
++ExecStartPre=-/usr/bin/mkfifo /run/exabgp/exabgp.out
+ ExecStart=/usr/sbin/exabgp /etc/exabgp/exabgp.conf
+ ExecReload=/bin/kill -USR1 $MAINPID
+ Restart=always

diff --git 
a/net-misc/exabgp/files/exabgp-4.2.21-patch-embedded-six-for-py312.patch 
b/net-misc/exabgp/files/exabgp-4.2.21-patch-embedded-six-for-py312.patch
new file mode 100644
index ..ccbf33021d87
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp-4.2.21-patch-embedded-six-for-py312.patch
@@ -0,0 +1,52 @@
+From: Vincent Bernat 
+Date: Mon, 1 Jan 2024 09:15:39 +0100
+Subject: Patch embedded six for Python 3.12
+
+Closes: #1058181
+---
+ lib/exabgp/vendoring/six.py | 16 +++-
+ 1 file changed, 15 insertions(+), 1 deletion(-)
+
+diff --git a/lib/exabgp/vendoring/six.py b/lib/exabgp/vendoring/six.py
+index 20e866a..5f8f3b0 100644
+--- a/lib/exabgp/vendoring/six.py
 b/lib/exabgp/vendoring/six.py
+@@ -71,6 +71,11 @@ def __len__(self):
+ MAXSIZE = int((1 << 63) - 1)
+ del X
+ 
++if PY34:
++from importlib.util import spec_from_loader
++else:
++spec_from_loader = None
++
+ 
+ def _add_doc(func, doc):
+ """Add documentation to a function."""
+@@ -182,6 +187,11 @@ def find_module(self, fullname, path=None):
+ return self
+ return None
+ 
++def find_spec(self, fullname, path, target=None):
++if fullname in self.known_modules:
++return 

[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-11-02 Thread Patrick McLean
commit: 0f789d05cf9dcda20458f8dff2f754d72d3ae891
Author: Patrick McLean  gentoo  org>
AuthorDate: Wed Nov  2 17:05:34 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed Nov  2 17:05:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f789d05

net-misc/exabgp: drop 4.2.19-r1

Closes: https://bugs.gentoo.org/878717
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest|  1 -
 net-misc/exabgp/exabgp-4.2.19-r1.ebuild | 64 -
 2 files changed, 65 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index e4972b9defb6..1d1bd126e5f8 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,2 +1 @@
-DIST exabgp-4.2.19.tar.gz 2932903 BLAKE2B 
de988dca0d6c32dbe5a5a04a2f3b5065a71ec83aabccecf675ddf09f9bd38ee417b670c5a2940d12bf3618a9a39e8ec6d0184bfa77cfda8c5e853da0fd52bda4
 SHA512 
35031fbf1b73339926dd08c7edc80497c3a5c4d1a5d626bf2a704ad2e70baeca51a88fe56fe3e43b97187010cf7e89c2b69f0b28276bbf9a945e761c6578818f
 DIST exabgp-4.2.21.tar.gz 2933721 BLAKE2B 
1d4b7cb6d053d2a9b8a338b6cf5f84d8d4ea2e1d1685cac8fb9b4b02cbdb8b9d5de41d4072d9379892e4bf89444f301f88243e5d5145d213956be7319861b723
 SHA512 
0efc7143191e8b557297e9329354c01e2418e0c4c45753941eba3a1f063e77d17a0efa7a14a3062764e45e709f0598f491c10e2c02e751590bb7c0943b61932b

diff --git a/net-misc/exabgp/exabgp-4.2.19-r1.ebuild 
b/net-misc/exabgp/exabgp-4.2.19-r1.ebuild
deleted file mode 100644
index 618539f9bee6..
--- a/net-misc/exabgp/exabgp-4.2.19-r1.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-inherit tmpfiles systemd distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   acct-group/exabgp
-   acct-user/exabgp
-"
-BDEPEND="
-   test? (
-   dev-python/psutil[${PYTHON_USEDEP}]
-   dev-python/nose[${PYTHON_USEDEP}]
-   dev-python/six[${PYTHON_USEDEP}]
-   )
-"
-
-PATCHES=(
-   "${FILESDIR}/exabgp-4.2.7-paths.patch"
-   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
-   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
-   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
-   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
-)
-
-python_test() {
-   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
-   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
-}
-
-python_install_all() {
-   distutils-r1_python_install_all
-
-   newinitd "${FILESDIR}/${PN}.initd-r2" ${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
-
-   doman doc/man/*.?
-}
-
-pkg_postinst() {
-   tmpfiles_process ${PN}.conf
-}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-07-18 Thread Patrick McLean
commit: 7788a6465a51363ac5a2bfebba62db6e981e88d8
Author: Patrick McLean  gentoo  org>
AuthorDate: Mon Jul 18 22:52:27 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Mon Jul 18 22:52:27 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7788a646

net-misc/exabgp: drop 4.2.17, 4.2.20

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest |  2 --
 net-misc/exabgp/exabgp-4.2.17.ebuild | 64 ---
 net-misc/exabgp/exabgp-4.2.20.ebuild | 65 
 3 files changed, 131 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index a5a96201f4dc..e4972b9defb6 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,4 +1,2 @@
-DIST exabgp-4.2.17.tar.gz 2933104 BLAKE2B 
5751888232479c24aa4f66ef357821178c7a5564c0522adb8abf26057eb222ecfbb33caa6d9b71219b79fa309a0c4051b6098015c2362ad9c02e59326ee2bfac
 SHA512 
2000856f540dcaed12dfaf54b689f6b04670f0ec8f19ec7a811ea8e54663afec68a7ae97ed79a001cc09ed42e6a1c5bd2d94ae0c3e3c8bde2da446cf00d66374
 DIST exabgp-4.2.19.tar.gz 2932903 BLAKE2B 
de988dca0d6c32dbe5a5a04a2f3b5065a71ec83aabccecf675ddf09f9bd38ee417b670c5a2940d12bf3618a9a39e8ec6d0184bfa77cfda8c5e853da0fd52bda4
 SHA512 
35031fbf1b73339926dd08c7edc80497c3a5c4d1a5d626bf2a704ad2e70baeca51a88fe56fe3e43b97187010cf7e89c2b69f0b28276bbf9a945e761c6578818f
-DIST exabgp-4.2.20.tar.gz 2933683 BLAKE2B 
8d25442dd3e95ad6db2849adb2ba04563c9c2add50fe94993cc1d72f17c704118732c1a8b88cec48f4a5c3b3f186c66b6643d3d06543475a43f0630801394006
 SHA512 
39de1baa9a4abee9829b3dea211966ec58e487f26c7f9d0d0cd19f5fcca596c9d3a389073bcb19506924feb7af34f4ffc6cbf13b7471cf5e51857af35271e6a5
 DIST exabgp-4.2.21.tar.gz 2933721 BLAKE2B 
1d4b7cb6d053d2a9b8a338b6cf5f84d8d4ea2e1d1685cac8fb9b4b02cbdb8b9d5de41d4072d9379892e4bf89444f301f88243e5d5145d213956be7319861b723
 SHA512 
0efc7143191e8b557297e9329354c01e2418e0c4c45753941eba3a1f063e77d17a0efa7a14a3062764e45e709f0598f491c10e2c02e751590bb7c0943b61932b

diff --git a/net-misc/exabgp/exabgp-4.2.17.ebuild 
b/net-misc/exabgp/exabgp-4.2.17.ebuild
deleted file mode 100644
index 0bac38485f18..
--- a/net-misc/exabgp/exabgp-4.2.17.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-inherit tmpfiles systemd distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   acct-group/exabgp
-   acct-user/exabgp
-"
-BDEPEND="
-   test? (
-   dev-python/psutil[${PYTHON_USEDEP}]
-   dev-python/nose[${PYTHON_USEDEP}]
-   dev-python/six[${PYTHON_USEDEP}]
-   )
-"
-
-PATCHES=(
-   "${FILESDIR}/exabgp-4.2.7-paths.patch"
-   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
-   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
-   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
-   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
-)
-
-python_test() {
-   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
-   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
-}
-
-python_install_all() {
-   distutils-r1_python_install_all
-
-   newinitd "${FILESDIR}/${PN}.initd-r2" ${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
-
-   doman doc/man/*.?
-}
-
-pkg_postinst() {
-   tmpfiles_process ${PN}.conf
-}

diff --git a/net-misc/exabgp/exabgp-4.2.20.ebuild 
b/net-misc/exabgp/exabgp-4.2.20.ebuild
deleted file mode 100644
index 2bd1bad24a9e..
--- a/net-misc/exabgp/exabgp-4.2.20.ebuild
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..11} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-inherit tmpfiles systemd distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   acct-group/exabgp
-   acct-user/exabgp
-"
-BDEPEND="
-   test? (
-   dev-python/psutil[${PYTHON_USEDEP}]
-   dev-python/six[${PYTHON_USEDEP}]
-   )
-"
-
-PATCHES=(
-   "${FILESDIR}/exabgp-4.2.7-paths.patch"
-   

[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-07-18 Thread Patrick McLean
commit: 53e2bea6aaea1bc0ba7663ac771c303f82a0a688
Author: Patrick McLean  gentoo  org>
AuthorDate: Mon Jul 18 22:51:44 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Mon Jul 18 22:51:44 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53e2bea6

net-misc/exabgp: add 4.2.21

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest |  1 +
 net-misc/exabgp/exabgp-4.2.21.ebuild | 65 
 2 files changed, 66 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index d1318297e489..a5a96201f4dc 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,3 +1,4 @@
 DIST exabgp-4.2.17.tar.gz 2933104 BLAKE2B 
5751888232479c24aa4f66ef357821178c7a5564c0522adb8abf26057eb222ecfbb33caa6d9b71219b79fa309a0c4051b6098015c2362ad9c02e59326ee2bfac
 SHA512 
2000856f540dcaed12dfaf54b689f6b04670f0ec8f19ec7a811ea8e54663afec68a7ae97ed79a001cc09ed42e6a1c5bd2d94ae0c3e3c8bde2da446cf00d66374
 DIST exabgp-4.2.19.tar.gz 2932903 BLAKE2B 
de988dca0d6c32dbe5a5a04a2f3b5065a71ec83aabccecf675ddf09f9bd38ee417b670c5a2940d12bf3618a9a39e8ec6d0184bfa77cfda8c5e853da0fd52bda4
 SHA512 
35031fbf1b73339926dd08c7edc80497c3a5c4d1a5d626bf2a704ad2e70baeca51a88fe56fe3e43b97187010cf7e89c2b69f0b28276bbf9a945e761c6578818f
 DIST exabgp-4.2.20.tar.gz 2933683 BLAKE2B 
8d25442dd3e95ad6db2849adb2ba04563c9c2add50fe94993cc1d72f17c704118732c1a8b88cec48f4a5c3b3f186c66b6643d3d06543475a43f0630801394006
 SHA512 
39de1baa9a4abee9829b3dea211966ec58e487f26c7f9d0d0cd19f5fcca596c9d3a389073bcb19506924feb7af34f4ffc6cbf13b7471cf5e51857af35271e6a5
+DIST exabgp-4.2.21.tar.gz 2933721 BLAKE2B 
1d4b7cb6d053d2a9b8a338b6cf5f84d8d4ea2e1d1685cac8fb9b4b02cbdb8b9d5de41d4072d9379892e4bf89444f301f88243e5d5145d213956be7319861b723
 SHA512 
0efc7143191e8b557297e9329354c01e2418e0c4c45753941eba3a1f063e77d17a0efa7a14a3062764e45e709f0598f491c10e2c02e751590bb7c0943b61932b

diff --git a/net-misc/exabgp/exabgp-4.2.21.ebuild 
b/net-misc/exabgp/exabgp-4.2.21.ebuild
new file mode 100644
index ..2bd1bad24a9e
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.2.21.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit tmpfiles systemd distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
+"
+BDEPEND="
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}/exabgp-4.2.7-paths.patch"
+   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
+   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
+)
+
+distutils_enable_tests pytest
+
+python_test() {
+   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   epytest
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   newinitd "${FILESDIR}/${PN}.initd-r2" ${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
+
+   doman doc/man/*.?
+}
+
+pkg_postinst() {
+   tmpfiles_process ${PN}.conf
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/

2022-07-18 Thread Patrick McLean
commit: ffc4d5d79fd487c931b6a0982c4b59a282879088
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Wed Jun 29 09:01:13 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Mon Jul 18 17:33:27 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffc4d5d7

net-misc/exabgp: remove unused file

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/26134
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/files/exabgp.initd-r1 | 64 ---
 1 file changed, 64 deletions(-)

diff --git a/net-misc/exabgp/files/exabgp.initd-r1 
b/net-misc/exabgp/files/exabgp.initd-r1
deleted file mode 100644
index 1d942d850253..
--- a/net-misc/exabgp/files/exabgp.initd-r1
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# default arguments
-: "${EXABGP_ARGS:=--env=/etc/${RC_SVCNAME}/exabgp.env 
/etc/${RC_SVCNAME}/exabgp.conf}"
-
-command="capsh"
-command_args="
-   --groups=${EXABGP_GROUP:=exabgp}
-   --user=${EXABGP_USER:=exabgp}
-   --caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
-   -- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
-
-supervisor=supervise-daemon
-
-: "${pidfile:=/run/exabgp/${RC_SVCNAME}-supervisor.pid}"
-: "${output_log:=/var/log/${RC_SVCNAME}/exabgp.log}"
-: "${error_log:=/var/log/${RC_SVCNAME}/exabgp.log}"
-
-extra_started_commands="routes sessions"
-extra_commands="checkconfig"
-
-depend() {
-   need net
-}
-
-start_pre() {
-   checkpath -q -d -m 0755 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
-   /run/exabgp || return
-
-   checkpath -q -p -m 0600 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
-   /run/exabgp/${RC_SVCNAME}.{in,out} || return
-
-   checkpath -q -d -m 0755 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
-   "/var/log/${RC_SVCNAME}" || return
-
-   checkconfig || return
-}
-
-stop_pre() {
-   # don't restart if the configuration is bad
-   if [ "${RC_CMD}" = restart ]; then
-   checkconfig || return
-   fi
-}
-
-checkconfig() {
-   ebegin "Checking configuration for ${RC_SVCNAME}"
-   exabgp -t ${EXABGP_ARGS}
-   eend ${?} "Invalid configuration"
-}
-
-sessions() {
-   ebegin "Querying sessions"
-   exabgpcli --env /etc/${RC_SVCNAME}/exabgp.env show neighbor summary
-   eend ${?} "exabgpcli failed"
-}
-
-routes() {
-   ebegin "Querying routes"
-   exabgpcli --env /etc/${RC_SVCNAME}/exabgp.env show adj-rib out
-   eend ${?} "exabgpcli failed"
-}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-06-28 Thread Patrick McLean
commit: 197acd342a5fa7c93819a7a0429e528dcb5fd727
Author: Patrick McLean  gentoo  org>
AuthorDate: Tue Jun 28 18:29:01 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Tue Jun 28 18:29:01 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=197acd34

net-misc/exabgp: drop 4.2.11-r1, 4.2.11-r2, 4.2.16

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest|  2 --
 net-misc/exabgp/exabgp-4.2.11-r1.ebuild | 60 ---
 net-misc/exabgp/exabgp-4.2.11-r2.ebuild | 64 -
 net-misc/exabgp/exabgp-4.2.16.ebuild| 64 -
 4 files changed, 190 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 08bf07c092be..d1318297e489 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,5 +1,3 @@
-DIST exabgp-4.2.11.tar.gz 2931753 BLAKE2B 
e5241619db24e2e82dfb42bc613d6b2c28efac205d2bedf732a665a5a9eff1b384833cb1fec3e68a285fc01269c2eaca55b311650e59bcda13d8f024e5294dc3
 SHA512 
61c143e90fd81323b03682ad46f2861576ab0328e2030259eff15bb9ef965477c514fb355112cbaf3dc138fb9f5582b6e1e1efb8d0d4313a9b9924ced156a155
-DIST exabgp-4.2.16.tar.gz 2933071 BLAKE2B 
bc66ece537cb175811233d26f3445e1bb3f7d4f8950bf0839ced014430db17a4df614661448f275fb3a890bb2af6b2459f938f830c82f03a586829e7fe31caca
 SHA512 
06731612df6f0f6623e8ad58c3b52fc4b5dee6b4bb3bb29cee272a4061ef087e2f98739a75cd07ae51e66fb633069926899882e6bab801010ad1db666471
 DIST exabgp-4.2.17.tar.gz 2933104 BLAKE2B 
5751888232479c24aa4f66ef357821178c7a5564c0522adb8abf26057eb222ecfbb33caa6d9b71219b79fa309a0c4051b6098015c2362ad9c02e59326ee2bfac
 SHA512 
2000856f540dcaed12dfaf54b689f6b04670f0ec8f19ec7a811ea8e54663afec68a7ae97ed79a001cc09ed42e6a1c5bd2d94ae0c3e3c8bde2da446cf00d66374
 DIST exabgp-4.2.19.tar.gz 2932903 BLAKE2B 
de988dca0d6c32dbe5a5a04a2f3b5065a71ec83aabccecf675ddf09f9bd38ee417b670c5a2940d12bf3618a9a39e8ec6d0184bfa77cfda8c5e853da0fd52bda4
 SHA512 
35031fbf1b73339926dd08c7edc80497c3a5c4d1a5d626bf2a704ad2e70baeca51a88fe56fe3e43b97187010cf7e89c2b69f0b28276bbf9a945e761c6578818f
 DIST exabgp-4.2.20.tar.gz 2933683 BLAKE2B 
8d25442dd3e95ad6db2849adb2ba04563c9c2add50fe94993cc1d72f17c704118732c1a8b88cec48f4a5c3b3f186c66b6643d3d06543475a43f0630801394006
 SHA512 
39de1baa9a4abee9829b3dea211966ec58e487f26c7f9d0d0cd19f5fcca596c9d3a389073bcb19506924feb7af34f4ffc6cbf13b7471cf5e51857af35271e6a5

diff --git a/net-misc/exabgp/exabgp-4.2.11-r1.ebuild 
b/net-misc/exabgp/exabgp-4.2.11-r1.ebuild
deleted file mode 100644
index 1ec8278c5641..
--- a/net-misc/exabgp/exabgp-4.2.11-r1.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-inherit tmpfiles systemd distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   acct-group/exabgp
-   acct-user/exabgp
-"
-BDEPEND="
-   test? (
-   dev-python/psutil[${PYTHON_USEDEP}]
-   dev-python/nose[${PYTHON_USEDEP}]
-   dev-python/six[${PYTHON_USEDEP}]
-   )
-"
-
-PATCHES=(
-   "${FILESDIR}/exabgp-4.2.7-paths.patch"
-   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
-)
-
-python_test() {
-   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
-   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
-}
-
-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
-
-   doman doc/man/*.?
-}
-
-pkg_postinst() {
-   tmpfiles_process ${PN}.conf
-}

diff --git a/net-misc/exabgp/exabgp-4.2.11-r2.ebuild 
b/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
deleted file mode 100644
index 0c9b22c44818..
--- a/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-inherit tmpfiles systemd distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   acct-group/exabgp
-   acct-user/exabgp
-"

[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-06-28 Thread Patrick McLean
commit: 17b5d7b93719cbf7778af26097557796ec2ce007
Author: Patrick McLean  gentoo  org>
AuthorDate: Tue Jun 28 18:29:41 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Tue Jun 28 18:29:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17b5d7b9

net-misc/exabgp: Drop nose dep in 4.2.20

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/exabgp-4.2.20.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net-misc/exabgp/exabgp-4.2.20.ebuild 
b/net-misc/exabgp/exabgp-4.2.20.ebuild
index c6fbf314f463..2bd1bad24a9e 100644
--- a/net-misc/exabgp/exabgp-4.2.20.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.20.ebuild
@@ -24,7 +24,6 @@ RDEPEND="
 BDEPEND="
test? (
dev-python/psutil[${PYTHON_USEDEP}]
-   dev-python/nose[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
)
 "



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-06-28 Thread Patrick McLean
commit: f37b90eb56d8feaea353a29379c14f3898bf1386
Author: Patrick McLean  gentoo  org>
AuthorDate: Tue Jun 28 18:28:27 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Tue Jun 28 18:28:27 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f37b90eb

net-misc/exabgp: add 4.2.20

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest |  1 +
 net-misc/exabgp/exabgp-4.2.20.ebuild | 66 
 2 files changed, 67 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 874fa190a959..08bf07c092be 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -2,3 +2,4 @@ DIST exabgp-4.2.11.tar.gz 2931753 BLAKE2B 
e5241619db24e2e82dfb42bc613d6b2c28efac
 DIST exabgp-4.2.16.tar.gz 2933071 BLAKE2B 
bc66ece537cb175811233d26f3445e1bb3f7d4f8950bf0839ced014430db17a4df614661448f275fb3a890bb2af6b2459f938f830c82f03a586829e7fe31caca
 SHA512 
06731612df6f0f6623e8ad58c3b52fc4b5dee6b4bb3bb29cee272a4061ef087e2f98739a75cd07ae51e66fb633069926899882e6bab801010ad1db666471
 DIST exabgp-4.2.17.tar.gz 2933104 BLAKE2B 
5751888232479c24aa4f66ef357821178c7a5564c0522adb8abf26057eb222ecfbb33caa6d9b71219b79fa309a0c4051b6098015c2362ad9c02e59326ee2bfac
 SHA512 
2000856f540dcaed12dfaf54b689f6b04670f0ec8f19ec7a811ea8e54663afec68a7ae97ed79a001cc09ed42e6a1c5bd2d94ae0c3e3c8bde2da446cf00d66374
 DIST exabgp-4.2.19.tar.gz 2932903 BLAKE2B 
de988dca0d6c32dbe5a5a04a2f3b5065a71ec83aabccecf675ddf09f9bd38ee417b670c5a2940d12bf3618a9a39e8ec6d0184bfa77cfda8c5e853da0fd52bda4
 SHA512 
35031fbf1b73339926dd08c7edc80497c3a5c4d1a5d626bf2a704ad2e70baeca51a88fe56fe3e43b97187010cf7e89c2b69f0b28276bbf9a945e761c6578818f
+DIST exabgp-4.2.20.tar.gz 2933683 BLAKE2B 
8d25442dd3e95ad6db2849adb2ba04563c9c2add50fe94993cc1d72f17c704118732c1a8b88cec48f4a5c3b3f186c66b6643d3d06543475a43f0630801394006
 SHA512 
39de1baa9a4abee9829b3dea211966ec58e487f26c7f9d0d0cd19f5fcca596c9d3a389073bcb19506924feb7af34f4ffc6cbf13b7471cf5e51857af35271e6a5

diff --git a/net-misc/exabgp/exabgp-4.2.20.ebuild 
b/net-misc/exabgp/exabgp-4.2.20.ebuild
new file mode 100644
index ..c6fbf314f463
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.2.20.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit tmpfiles systemd distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
+"
+BDEPEND="
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   dev-python/nose[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}/exabgp-4.2.7-paths.patch"
+   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
+   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
+)
+
+distutils_enable_tests pytest
+
+python_test() {
+   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   epytest
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   newinitd "${FILESDIR}/${PN}.initd-r2" ${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
+
+   doman doc/man/*.?
+}
+
+pkg_postinst() {
+   tmpfiles_process ${PN}.conf
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-06-09 Thread Patrick McLean
commit: 5039197908326c14dbcb967014d2df5e3f6c6f90
Author: Patrick McLean  gentoo  org>
AuthorDate: Thu Jun  9 22:20:29 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Thu Jun  9 22:20:29 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50391979

net-misc/exabgp: Drop py311 due to nose dep

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/{exabgp-4.2.19.ebuild => exabgp-4.2.19-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-misc/exabgp/exabgp-4.2.19.ebuild 
b/net-misc/exabgp/exabgp-4.2.19-r1.ebuild
similarity index 97%
rename from net-misc/exabgp/exabgp-4.2.19.ebuild
rename to net-misc/exabgp/exabgp-4.2.19-r1.ebuild
index 7d6e1af33930..618539f9bee6 100644
--- a/net-misc/exabgp/exabgp-4.2.19.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.19-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_COMPAT=( python3_{8..10} )
 DISTUTILS_USE_SETUPTOOLS=rdepend
 inherit tmpfiles systemd distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-06-09 Thread Patrick McLean
commit: c4361999cfbf73fbf38c9ef06ce19e9662a98597
Author: Patrick McLean  gentoo  org>
AuthorDate: Thu Jun  9 21:53:37 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Thu Jun  9 21:53:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4361999

net-misc/exabgp: add 4.2.19

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest |  1 +
 net-misc/exabgp/exabgp-4.2.19.ebuild | 64 
 2 files changed, 65 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index a8ea22201700..874fa190a959 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,3 +1,4 @@
 DIST exabgp-4.2.11.tar.gz 2931753 BLAKE2B 
e5241619db24e2e82dfb42bc613d6b2c28efac205d2bedf732a665a5a9eff1b384833cb1fec3e68a285fc01269c2eaca55b311650e59bcda13d8f024e5294dc3
 SHA512 
61c143e90fd81323b03682ad46f2861576ab0328e2030259eff15bb9ef965477c514fb355112cbaf3dc138fb9f5582b6e1e1efb8d0d4313a9b9924ced156a155
 DIST exabgp-4.2.16.tar.gz 2933071 BLAKE2B 
bc66ece537cb175811233d26f3445e1bb3f7d4f8950bf0839ced014430db17a4df614661448f275fb3a890bb2af6b2459f938f830c82f03a586829e7fe31caca
 SHA512 
06731612df6f0f6623e8ad58c3b52fc4b5dee6b4bb3bb29cee272a4061ef087e2f98739a75cd07ae51e66fb633069926899882e6bab801010ad1db666471
 DIST exabgp-4.2.17.tar.gz 2933104 BLAKE2B 
5751888232479c24aa4f66ef357821178c7a5564c0522adb8abf26057eb222ecfbb33caa6d9b71219b79fa309a0c4051b6098015c2362ad9c02e59326ee2bfac
 SHA512 
2000856f540dcaed12dfaf54b689f6b04670f0ec8f19ec7a811ea8e54663afec68a7ae97ed79a001cc09ed42e6a1c5bd2d94ae0c3e3c8bde2da446cf00d66374
+DIST exabgp-4.2.19.tar.gz 2932903 BLAKE2B 
de988dca0d6c32dbe5a5a04a2f3b5065a71ec83aabccecf675ddf09f9bd38ee417b670c5a2940d12bf3618a9a39e8ec6d0184bfa77cfda8c5e853da0fd52bda4
 SHA512 
35031fbf1b73339926dd08c7edc80497c3a5c4d1a5d626bf2a704ad2e70baeca51a88fe56fe3e43b97187010cf7e89c2b69f0b28276bbf9a945e761c6578818f

diff --git a/net-misc/exabgp/exabgp-4.2.19.ebuild 
b/net-misc/exabgp/exabgp-4.2.19.ebuild
new file mode 100644
index ..7d6e1af33930
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.2.19.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit tmpfiles systemd distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
+"
+BDEPEND="
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   dev-python/nose[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}/exabgp-4.2.7-paths.patch"
+   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
+   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
+)
+
+python_test() {
+   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   newinitd "${FILESDIR}/${PN}.initd-r2" ${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
+
+   doman doc/man/*.?
+}
+
+pkg_postinst() {
+   tmpfiles_process ${PN}.conf
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2022-01-10 Thread Patrick McLean
commit: e05730de0329d9e6ce9ca168421abe2b4d867544
Author: Patrick McLean  sony  com>
AuthorDate: Mon Jan 10 18:25:04 2022 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Mon Jan 10 18:25:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e05730de

net-misc/exabgp: Version bump to 4.2.17

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest |  1 +
 net-misc/exabgp/exabgp-4.2.17.ebuild | 64 
 2 files changed, 65 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 60dfd124da04..a8ea22201700 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,2 +1,3 @@
 DIST exabgp-4.2.11.tar.gz 2931753 BLAKE2B 
e5241619db24e2e82dfb42bc613d6b2c28efac205d2bedf732a665a5a9eff1b384833cb1fec3e68a285fc01269c2eaca55b311650e59bcda13d8f024e5294dc3
 SHA512 
61c143e90fd81323b03682ad46f2861576ab0328e2030259eff15bb9ef965477c514fb355112cbaf3dc138fb9f5582b6e1e1efb8d0d4313a9b9924ced156a155
 DIST exabgp-4.2.16.tar.gz 2933071 BLAKE2B 
bc66ece537cb175811233d26f3445e1bb3f7d4f8950bf0839ced014430db17a4df614661448f275fb3a890bb2af6b2459f938f830c82f03a586829e7fe31caca
 SHA512 
06731612df6f0f6623e8ad58c3b52fc4b5dee6b4bb3bb29cee272a4061ef087e2f98739a75cd07ae51e66fb633069926899882e6bab801010ad1db666471
+DIST exabgp-4.2.17.tar.gz 2933104 BLAKE2B 
5751888232479c24aa4f66ef357821178c7a5564c0522adb8abf26057eb222ecfbb33caa6d9b71219b79fa309a0c4051b6098015c2362ad9c02e59326ee2bfac
 SHA512 
2000856f540dcaed12dfaf54b689f6b04670f0ec8f19ec7a811ea8e54663afec68a7ae97ed79a001cc09ed42e6a1c5bd2d94ae0c3e3c8bde2da446cf00d66374

diff --git a/net-misc/exabgp/exabgp-4.2.17.ebuild 
b/net-misc/exabgp/exabgp-4.2.17.ebuild
new file mode 100644
index ..0bac38485f18
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.2.17.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit tmpfiles systemd distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
+"
+BDEPEND="
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   dev-python/nose[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}/exabgp-4.2.7-paths.patch"
+   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
+   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
+)
+
+python_test() {
+   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   newinitd "${FILESDIR}/${PN}.initd-r2" ${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
+
+   doman doc/man/*.?
+}
+
+pkg_postinst() {
+   tmpfiles_process ${PN}.conf
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/, net-misc/exabgp/files/

2021-11-29 Thread Patrick McLean
commit: ae397e779e821f72550b8a0f91c9acc2033a583b
Author: Patrick McLean  sony  com>
AuthorDate: Mon Nov 29 17:37:02 2021 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Mon Nov 29 17:37:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae397e77

net-misc/exabgp: Version bump

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest  |  1 +
 net-misc/exabgp/exabgp-4.2.16.ebuild  | 64 +++
 net-misc/exabgp/files/exabgp.initd-r2 | 64 +++
 3 files changed, 129 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 310718963b10..60dfd124da04 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1 +1,2 @@
 DIST exabgp-4.2.11.tar.gz 2931753 BLAKE2B 
e5241619db24e2e82dfb42bc613d6b2c28efac205d2bedf732a665a5a9eff1b384833cb1fec3e68a285fc01269c2eaca55b311650e59bcda13d8f024e5294dc3
 SHA512 
61c143e90fd81323b03682ad46f2861576ab0328e2030259eff15bb9ef965477c514fb355112cbaf3dc138fb9f5582b6e1e1efb8d0d4313a9b9924ced156a155
+DIST exabgp-4.2.16.tar.gz 2933071 BLAKE2B 
bc66ece537cb175811233d26f3445e1bb3f7d4f8950bf0839ced014430db17a4df614661448f275fb3a890bb2af6b2459f938f830c82f03a586829e7fe31caca
 SHA512 
06731612df6f0f6623e8ad58c3b52fc4b5dee6b4bb3bb29cee272a4061ef087e2f98739a75cd07ae51e66fb633069926899882e6bab801010ad1db666471

diff --git a/net-misc/exabgp/exabgp-4.2.16.ebuild 
b/net-misc/exabgp/exabgp-4.2.16.ebuild
new file mode 100644
index ..b04278316850
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.2.16.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit tmpfiles systemd distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
+"
+BDEPEND="
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   dev-python/nose[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}/exabgp-4.2.7-paths.patch"
+   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
+   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
+)
+
+python_test() {
+   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   newinitd "${FILESDIR}/${PN}.initd-r2" ${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
+
+   doman doc/man/*.?
+}
+
+pkg_postinst() {
+   tmpfiles_process ${PN}.conf
+}

diff --git a/net-misc/exabgp/files/exabgp.initd-r2 
b/net-misc/exabgp/files/exabgp.initd-r2
new file mode 100644
index ..30280b9cfbf7
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp.initd-r2
@@ -0,0 +1,64 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# default arguments
+: "${EXABGP_ARGS:=--env=/etc/${RC_SVCNAME}/exabgp.env 
/etc/${RC_SVCNAME}/exabgp.conf}"
+
+command="capsh"
+command_args="
+   --groups=${EXABGP_GROUP:=exabgp}
+   --user=${EXABGP_USER:=exabgp}
+   --caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
+   -- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
+
+supervisor=supervise-daemon
+
+: "${pidfile:=/run/exabgp/${RC_SVCNAME}-supervisor.pid}"
+: "${output_log:=/var/log/${RC_SVCNAME}/exabgp.log}"
+: "${error_log:=/var/log/${RC_SVCNAME}/exabgp.log}"
+
+extra_started_commands="routes sessions"
+extra_commands="checkconfig"
+
+depend() {
+   need net
+}
+
+start_pre() {
+   checkpath -q -d -m 0755 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
+   /run/exabgp || return
+
+   checkpath -q -p -m 0600 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
+   /run/exabgp/${RC_SVCNAME}.in /run/exabgp/${RC_SVCNAME}.out || 
return
+
+   checkpath -q -d -m 0755 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
+   "/var/log/${RC_SVCNAME}" || return
+
+   checkconfig || return
+}
+
+stop_pre() {
+   # don't restart if the configuration is bad
+   if [ "${RC_CMD}" = restart ]; then
+  

[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2021-10-25 Thread Arthur Zamarin
commit: f93c7a9aeff6bd5be39d6a9c7cb1e608a1c749e1
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Oct 25 05:49:49 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Oct 25 17:19:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f93c7a9a

net-misc/exabgp: enable py3.10

Signed-off-by: Arthur Zamarin  gentoo.org>

 net-misc/exabgp/exabgp-4.2.11-r2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-misc/exabgp/exabgp-4.2.11-r2.ebuild 
b/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
index be3a94116ae..0c9b22c4481 100644
--- a/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+
+PYTHON_COMPAT=( python3_{8..10} )
 DISTUTILS_USE_SETUPTOOLS=rdepend
 inherit tmpfiles systemd distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2021-07-30 Thread Sam James
commit: 63b1973563aeecee27ec9a4359b6b33dfcbe6cd6
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 30 22:57:22 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 30 23:30:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63b19735

net-misc/exabgp: [QA] call tmpfiles_process in pkg_postinst

This is needed to actually apply the tmpfiles configuration
we've installed in the ebuild. See tmpfiles.eclass documentation.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sam James  gentoo.org>

 net-misc/exabgp/exabgp-4.2.11-r1.ebuild | 6 +-
 net-misc/exabgp/exabgp-4.2.11-r2.ebuild | 4 
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/net-misc/exabgp/exabgp-4.2.11-r1.ebuild 
b/net-misc/exabgp/exabgp-4.2.11-r1.ebuild
index a61e484d126..1ec8278c564 100644
--- a/net-misc/exabgp/exabgp-4.2.11-r1.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.11-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -54,3 +54,7 @@ python_install_all() {
 
doman doc/man/*.?
 }
+
+pkg_postinst() {
+   tmpfiles_process ${PN}.conf
+}

diff --git a/net-misc/exabgp/exabgp-4.2.11-r2.ebuild 
b/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
index 3e7774c0353..be3a94116ae 100644
--- a/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
@@ -57,3 +57,7 @@ python_install_all() {
 
doman doc/man/*.?
 }
+
+pkg_postinst() {
+   tmpfiles_process ${PN}.conf
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/

2021-05-17 Thread Patrick McLean
commit: a44841f0657a55467c51c9b04143ca26eb33b3e5
Author: Victor Payno  sony  com>
AuthorDate: Sat May 15 19:26:20 2021 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Mon May 17 17:42:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a44841f0

net-misc/exabgp: fix typo in --user assignment in initd scripts

Signed-off-by: Victor Payno  sony.com>
Closes: https://github.com/gentoo/gentoo/pull/20853
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/files/exabgp.initd| 2 +-
 net-misc/exabgp/files/exabgp.initd-r1 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-misc/exabgp/files/exabgp.initd 
b/net-misc/exabgp/files/exabgp.initd
index c3e3d93a494..c3bbcf1247e 100644
--- a/net-misc/exabgp/files/exabgp.initd
+++ b/net-misc/exabgp/files/exabgp.initd
@@ -8,7 +8,7 @@
 command="capsh"
 command_args="
--groups=${EXABGP_GROUP:=exabgp}
-   --user=${EXABGP_USER:-exabgp}
+   --user=${EXABGP_USER:=exabgp}
--caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
-- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
 command_background="yes"

diff --git a/net-misc/exabgp/files/exabgp.initd-r1 
b/net-misc/exabgp/files/exabgp.initd-r1
index 070a9bf0725..1d942d85025 100644
--- a/net-misc/exabgp/files/exabgp.initd-r1
+++ b/net-misc/exabgp/files/exabgp.initd-r1
@@ -8,7 +8,7 @@
 command="capsh"
 command_args="
--groups=${EXABGP_GROUP:=exabgp}
-   --user=${EXABGP_USER:-exabgp}
+   --user=${EXABGP_USER:=exabgp}
--caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
-- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
 



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/

2021-05-14 Thread Patrick McLean
commit: 0620655ffbcb29faa53cb9c50f5c0b072644e689
Author: Patrick McLean  sony  com>
AuthorDate: Sat May 15 01:38:12 2021 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Sat May 15 01:38:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0620655f

net-misc/exabgp: Fix up initd-r1 as well

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/files/exabgp.initd-r1 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-misc/exabgp/files/exabgp.initd-r1 
b/net-misc/exabgp/files/exabgp.initd-r1
index ec2f01704b8..070a9bf0725 100644
--- a/net-misc/exabgp/files/exabgp.initd-r1
+++ b/net-misc/exabgp/files/exabgp.initd-r1
@@ -7,8 +7,8 @@
 
 command="capsh"
 command_args="
-   --uid=${EXABGP_USER:=exabgp}
-   --gid=${EXABGP_GROUP:=exabgp}
+   --groups=${EXABGP_GROUP:=exabgp}
+   --user=${EXABGP_USER:-exabgp}
--caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
-- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
 



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/

2021-05-14 Thread Patrick McLean
commit: 374b9fbaf268c9e47dd5c0c07dedb8d705c41318
Author: Victor Payno  sony  com>
AuthorDate: Fri May 14 22:52:28 2021 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Fri May 14 23:49:17 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=374b9fba

net-misc/exabgp: fix capsh usage

- --uid and --gid need numeric values

- using --gid or --groups results in "Failed to setgroups." if it is
  placed afgter --uid or --user. setgroups needs to happen before the
  user is changed to non-root.

Signed-off-by: Victor Payno  sony.com>
Closes: https://github.com/gentoo/gentoo/pull/20811
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/files/exabgp.initd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-misc/exabgp/files/exabgp.initd 
b/net-misc/exabgp/files/exabgp.initd
index e220108d826..c3e3d93a494 100644
--- a/net-misc/exabgp/files/exabgp.initd
+++ b/net-misc/exabgp/files/exabgp.initd
@@ -7,8 +7,8 @@
 
 command="capsh"
 command_args="
-   --uid=${EXABGP_USER:-exabgp}
-   --gid=${EXABGP_GROUP:-exabgp}
+   --groups=${EXABGP_GROUP:=exabgp}
+   --user=${EXABGP_USER:-exabgp}
--caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
-- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
 command_background="yes"



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/, net-misc/exabgp/

2021-02-25 Thread Patrick McLean
commit: 6e73d50d48c225700837c41b30bcc53594aec5aa
Author: Patrick McLean  sony  com>
AuthorDate: Thu Feb 25 17:31:21 2021 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Thu Feb 25 17:31:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e73d50d

net-misc/exabgp-4.2.11-r2: Revbump, supervision, misc bugfixes

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/exabgp-4.2.11-r2.ebuild| 59 
 ...p-4.2.11-healthcheck-allow-disable-metric.patch | 22 
 .../exabgp-4.2.11-healthcheck-fix-log-crash.patch  | 13 +
 .../files/exabgp-4.2.11-less-verbose-logging.patch | 44 +++
 net-misc/exabgp/files/exabgp.initd-r1  | 64 ++
 5 files changed, 202 insertions(+)

diff --git a/net-misc/exabgp/exabgp-4.2.11-r2.ebuild 
b/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
new file mode 100644
index 000..3e7774c0353
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.2.11-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{7..9} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit tmpfiles systemd distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
+"
+BDEPEND="
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   dev-python/nose[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}/exabgp-4.2.7-paths.patch"
+   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-allow-disable-metric.patch"
+   "${FILESDIR}/exabgp-4.2.11-healthcheck-fix-log-crash.patch"
+   "${FILESDIR}/exabgp-4.2.11-less-verbose-logging.patch"
+)
+
+python_test() {
+   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+   distutils-r1_python_install_all
+
+   newinitd "${FILESDIR}/${PN}.initd-r1" ${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
+
+   doman doc/man/*.?
+}

diff --git 
a/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-allow-disable-metric.patch 
b/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-allow-disable-metric.patch
new file mode 100644
index 000..768fe80a810
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-allow-disable-metric.patch
@@ -0,0 +1,22 @@
+diff --git a/lib/exabgp/application/healthcheck.py 
b/lib/exabgp/application/healthcheck.py
+index a4f6b8d1..805cf8af 100644
+--- a/lib/exabgp/application/healthcheck.py
 b/lib/exabgp/application/healthcheck.py
+@@ -168,6 +168,7 @@
+ g.add_argument(
+ "--start-ip", metavar='N', type=int, default=0, help="index of the 
first IP in the list of IP addresses"
+ )
++g.add_argument("--no-metric", action="store_true", default=False, 
help="don't send metrics when updating announcements")
+ g.add_argument(
+ "--up-metric", metavar='M', type=int, default=100, help="first IP get 
the metric M when the service is up"
+ )
+@@ -494,7 +495,8 @@
+ announce = "route {0} next-hop {1}".format(str(ip), 
options.next_hop or "self")
+ 
+ if command == "announce":
+-announce = "{0} med {1}".format(announce, metric)
++if not options.no_metric:
++announce = "{0} med {1}".format(announce, metric)
+ if options.local_preference >= 0:
+ announce = "{0} local-preference {1}".format(announce, 
options.local_preference)
+ if options.community or options.disabled_community:

diff --git 
a/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-fix-log-crash.patch 
b/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-fix-log-crash.patch
new file mode 100644
index 000..a43e90a724e
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-fix-log-crash.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/exabgp/logger.py b/lib/exabgp/logger.py
+index 41a1cf28..f87785a2 100644
+--- a/lib/exabgp/logger.py
 b/lib/exabgp/logger.py
+@@ -339,7 +339,7 @@ class Logger(object):
+ else:
+ src = source
+ 
+-log = self._option.get(src, True) and getattr(syslog, 'LOG_%s' % 
level) <= self.level
++log = 

[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2020-11-16 Thread Patrick McLean
commit: 157a8d721a7dffb2b7df866ad0396b5473db0805
Author: Patrick McLean  sony  com>
AuthorDate: Tue Nov 17 04:50:47 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Tue Nov 17 04:50:47 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=157a8d72

net-misc/exabgp-4.2.11-r1: Revbump, install man pages

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/{exabgp-4.2.11.ebuild => exabgp-4.2.11-r1.ebuild} | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net-misc/exabgp/exabgp-4.2.11.ebuild 
b/net-misc/exabgp/exabgp-4.2.11-r1.ebuild
similarity index 98%
rename from net-misc/exabgp/exabgp-4.2.11.ebuild
rename to net-misc/exabgp/exabgp-4.2.11-r1.ebuild
index a8c1d2b70f6..e3f3362cd86 100644
--- a/net-misc/exabgp/exabgp-4.2.11.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.11-r1.ebuild
@@ -51,4 +51,6 @@ python_install_all() {
newins "${FILESDIR}/${PN}.logrotate" ${PN}
 
keepdir /etc/exabgp
+
+   doman doc/man/*.?
 }



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/, net-misc/exabgp/

2020-11-03 Thread Patrick McLean
commit: 4fcc63b780eb64f039754a7f5008bd1f52b1f0f0
Author: Patrick McLean  sony  com>
AuthorDate: Wed Nov  4 02:19:58 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed Nov  4 02:21:07 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fcc63b7

net-misc/exabgp-4.2.11: Version bump

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest|  2 +-
 .../exabgp/{exabgp-4.2.7-r3.ebuild => exabgp-4.2.11.ebuild} |  4 ++--
 net-misc/exabgp/files/exabgp-4.2.10-ip-path.patch   | 13 +
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 7ffb7202572..310718963b1 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1 +1 @@
-DIST exabgp-4.2.7.tar.gz 2931058 BLAKE2B 
2c7bf175322a36c800a8a5874b699b01f4c3d4a8712b1f8decb73665cd214c25ccf657909cfef74610e6a5fd1903245bc4da638ac9245b04c6e63d8247d72d50
 SHA512 
9c53b78e3fc5ff9cef4d267e2cb3509dbcfdd4a3b21d2c7e40a8d873a9ac586b8d5bf860699b6f878cc221af341df140acdf88aaa26a79b0e7865ce7cc607e01
+DIST exabgp-4.2.11.tar.gz 2931753 BLAKE2B 
e5241619db24e2e82dfb42bc613d6b2c28efac205d2bedf732a665a5a9eff1b384833cb1fec3e68a285fc01269c2eaca55b311650e59bcda13d8f024e5294dc3
 SHA512 
61c143e90fd81323b03682ad46f2861576ab0328e2030259eff15bb9ef965477c514fb355112cbaf3dc138fb9f5582b6e1e1efb8d0d4313a9b9924ced156a155

diff --git a/net-misc/exabgp/exabgp-4.2.7-r3.ebuild 
b/net-misc/exabgp/exabgp-4.2.11.ebuild
similarity index 93%
rename from net-misc/exabgp/exabgp-4.2.7-r3.ebuild
rename to net-misc/exabgp/exabgp-4.2.11.ebuild
index bdcff317c20..a8c1d2b70f6 100644
--- a/net-misc/exabgp/exabgp-4.2.7-r3.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.11.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{6..9} )
 DISTUTILS_USE_SETUPTOOLS=rdepend
 inherit tmpfiles systemd distutils-r1
 
@@ -19,7 +19,6 @@ RESTRICT="!test? ( test )"
 RDEPEND="
acct-group/exabgp
acct-user/exabgp
-   dev-python/ipaddr[${PYTHON_USEDEP}]
 "
 BDEPEND="
test? (
@@ -31,6 +30,7 @@ BDEPEND="
 
 PATCHES=(
"${FILESDIR}/exabgp-4.2.7-paths.patch"
+   "${FILESDIR}/exabgp-4.2.10-ip-path.patch"
 )
 
 python_test() {

diff --git a/net-misc/exabgp/files/exabgp-4.2.10-ip-path.patch 
b/net-misc/exabgp/files/exabgp-4.2.10-ip-path.patch
new file mode 100644
index 000..0a86f72dd91
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp-4.2.10-ip-path.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/exabgp/application/healthcheck.py 
b/lib/exabgp/application/healthcheck.py
+index a4f6b8d1..2b4e928e 100644
+--- a/lib/exabgp/application/healthcheck.py
 b/lib/exabgp/application/healthcheck.py
+@@ -184,7 +184,7 @@ def loopback_ips(label, label_only):
+ # Use "ip" (ifconfig is not able to see all addresses)
+ ipre = re.compile(r"^(?P\d+):\s+(?P\S+)\s+inet6?\s+" 
r"(?P[\da-f.:]+)/(?P\d+)\s+.*")
+ labelre = re.compile(r".*\s+lo:(?P\S+).*")
+-cmd = subprocess.Popen("/sbin/ip -o address show dev lo".split(), 
shell=False, stdout=subprocess.PIPE)
++cmd = subprocess.Popen("ip -o address show dev lo".split(), 
shell=False, stdout=subprocess.PIPE)
+ else:
+ # Try with ifconfig
+ ipre = re.compile(



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2020-09-19 Thread Michał Górny
commit: 9c148687d84066d229d3a646ccdeec16c121b464
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Sep 19 11:22:03 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Sep 19 11:28:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c148687

net-misc/exabgp: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 net-misc/exabgp/Manifest|  1 -
 net-misc/exabgp/exabgp-3.4.28-r2.ebuild | 36 -
 2 files changed, 37 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 44d0f761062..7ffb7202572 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,2 +1 @@
-DIST exabgp-3.4.28.tar.gz 546611 BLAKE2B 
c4916fd903fe8853e99ba872d87dc97908546c53d34936019c809ffa18761c3044dd7a21aace9bf6e5bb6a2823d2178422b4cdc2e8f65d7be1fda6de2755ae4d
 SHA512 
40edde5262e3033b5fcccf1e6020cce1fe856b6e31420e14166d5e0d636e5f616283827af2cd82946d94a196ef76ed7c5330ac4bebc564329852869f13018403
 DIST exabgp-4.2.7.tar.gz 2931058 BLAKE2B 
2c7bf175322a36c800a8a5874b699b01f4c3d4a8712b1f8decb73665cd214c25ccf657909cfef74610e6a5fd1903245bc4da638ac9245b04c6e63d8247d72d50
 SHA512 
9c53b78e3fc5ff9cef4d267e2cb3509dbcfdd4a3b21d2c7e40a8d873a9ac586b8d5bf860699b6f878cc221af341df140acdf88aaa26a79b0e7865ce7cc607e01

diff --git a/net-misc/exabgp/exabgp-3.4.28-r2.ebuild 
b/net-misc/exabgp/exabgp-3.4.28-r2.ebuild
deleted file mode 100644
index f6753117ebc..000
--- a/net-misc/exabgp/exabgp-3.4.28-r2.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python2_7 )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-inherit tmpfiles systemd distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
-   acct-group/exabgp
-   acct-user/exabgp
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/, net-misc/exabgp/

2020-07-09 Thread Patrick McLean
commit: 24343e7501aa0f96946fd9bc30740543b14620f2
Author: Patrick McLean  gentoo  org>
AuthorDate: Fri Jul 10 03:42:38 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Fri Jul 10 03:49:47 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24343e75

net-misc/exabgp-4.2.7-r3: Revbump, fix tmpfiles

Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/{exabgp-4.2.7-r2.ebuild => exabgp-4.2.7-r3.ebuild} | 0
 net-misc/exabgp/files/exabgp.tmpfiles  | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-misc/exabgp/exabgp-4.2.7-r2.ebuild 
b/net-misc/exabgp/exabgp-4.2.7-r3.ebuild
similarity index 100%
rename from net-misc/exabgp/exabgp-4.2.7-r2.ebuild
rename to net-misc/exabgp/exabgp-4.2.7-r3.ebuild

diff --git a/net-misc/exabgp/files/exabgp.tmpfiles 
b/net-misc/exabgp/files/exabgp.tmpfiles
index 80720cbfc1f..513ccb06ba9 100644
--- a/net-misc/exabgp/files/exabgp.tmpfiles
+++ b/net-misc/exabgp/files/exabgp.tmpfiles
@@ -1,3 +1,3 @@
-f  /run/exabgp 0755exabgp  exabgp  -   -
+d  /run/exabgp 0755exabgp  exabgp  -   -
 p  /run/exabgp/exabgp.in   0600exabgp  exabgp  -   -
 p  /run/exabgp/exabgp.out  0600exabgp  exabgp  -   -



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/, net-misc/exabgp/

2020-05-19 Thread Patrick McLean
commit: cf95a138451d35566712e45ae763c0470ea2254e
Author: Patrick McLean  sony  com>
AuthorDate: Wed May 20 01:15:57 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed May 20 01:15:57 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf95a138

net-misc/exabgp: revbumps, add deps on user/group packages

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/{exabgp-3.4.28-r1.ebuild => exabgp-3.4.28-r2.ebuild} | 2 ++
 net-misc/exabgp/{exabgp-4.2.7-r1.ebuild => exabgp-4.2.7-r2.ebuild}   | 2 ++
 net-misc/exabgp/files/exabgp.tmpfiles| 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/net-misc/exabgp/exabgp-3.4.28-r1.ebuild 
b/net-misc/exabgp/exabgp-3.4.28-r2.ebuild
similarity index 95%
rename from net-misc/exabgp/exabgp-3.4.28-r1.ebuild
rename to net-misc/exabgp/exabgp-3.4.28-r2.ebuild
index c61d012c7a5..f6753117ebc 100644
--- a/net-misc/exabgp/exabgp-3.4.28-r1.ebuild
+++ b/net-misc/exabgp/exabgp-3.4.28-r2.ebuild
@@ -15,6 +15,8 @@ SLOT="0"
 KEYWORDS="~amd64"
 
 RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
dev-python/ipaddr[${PYTHON_USEDEP}]
 "
 

diff --git a/net-misc/exabgp/exabgp-4.2.7-r1.ebuild 
b/net-misc/exabgp/exabgp-4.2.7-r2.ebuild
similarity index 96%
rename from net-misc/exabgp/exabgp-4.2.7-r1.ebuild
rename to net-misc/exabgp/exabgp-4.2.7-r2.ebuild
index 8714af508f9..bdcff317c20 100644
--- a/net-misc/exabgp/exabgp-4.2.7-r1.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.7-r2.ebuild
@@ -17,6 +17,8 @@ IUSE="test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
+   acct-group/exabgp
+   acct-user/exabgp
dev-python/ipaddr[${PYTHON_USEDEP}]
 "
 BDEPEND="

diff --git a/net-misc/exabgp/files/exabgp.tmpfiles 
b/net-misc/exabgp/files/exabgp.tmpfiles
index 15836294400..80720cbfc1f 100644
--- a/net-misc/exabgp/files/exabgp.tmpfiles
+++ b/net-misc/exabgp/files/exabgp.tmpfiles
@@ -1,3 +1,3 @@
 f  /run/exabgp 0755exabgp  exabgp  -   -
-p  /run/exabgp//exabgp.in  0600exabgp  exabgp  -   -
+p  /run/exabgp/exabgp.in   0600exabgp  exabgp  -   -
 p  /run/exabgp/exabgp.out  0600exabgp  exabgp  -   -



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/

2020-05-19 Thread Patrick McLean
commit: f222e2771a3bd2a794bb5e9816e15b17464d14c1
Author: Patrick McLean  sony  com>
AuthorDate: Wed May 20 01:08:29 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed May 20 01:08:29 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f222e277

net-misc/exabgp: fix tmpfiles

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/files/exabgp.tmpfiles | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-misc/exabgp/files/exabgp.tmpfiles 
b/net-misc/exabgp/files/exabgp.tmpfiles
index 7415d342e27..15836294400 100644
--- a/net-misc/exabgp/files/exabgp.tmpfiles
+++ b/net-misc/exabgp/files/exabgp.tmpfiles
@@ -1,3 +1,3 @@
-f  /run/exabgp 0755exabgp  exabgp  -   -
-p  /run/exabgp.in  0600exabgp  exabgp  -   -
-p  /run/exabgp.out 0600exabgp  exabgp  -   -
+f  /run/exabgp 0755exabgp  exabgp  -   -
+p  /run/exabgp//exabgp.in  0600exabgp  exabgp  -   -
+p  /run/exabgp/exabgp.out  0600exabgp  exabgp  -   -



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2020-05-19 Thread Patrick McLean
commit: 6a02234182cc32b9cad4598dd2c9deef293be7f6
Author: Patrick McLean  sony  com>
AuthorDate: Wed May 20 01:05:16 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed May 20 01:06:09 2020 +
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  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
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2020-05-19 Thread Patrick McLean
commit: 507e270aa762dafd08dc7a5020c089e460d466e9
Author: Patrick McLean  sony  com>
AuthorDate: Wed May 20 01:05:56 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed May 20 01:06:09 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=507e270a

net-misc/exabgp: remove old

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest|  3 ---
 net-misc/exabgp/exabgp-3.2.17.ebuild| 18 --
 net-misc/exabgp/exabgp-3.4.26-r1.ebuild | 16 
 net-misc/exabgp/exabgp-4.0.10.ebuild| 15 ---
 4 files changed, 52 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index fe699328122..44d0f761062 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,5 +1,2 @@
-DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 
410b77af542160334d32e3e3ea54b25f45c990c56fe2dbef0714576eb9e728cebe6d1463c0f22b1240aaf8e99ccabc5f7334cd6c2b3c77426c94b2c048c8783c
 SHA512 
69dbff75caf287e9e0f6ab3707a2bbd576b0b4c8a8c318217cf88c8a1c417d47915b038bc7d64be3bbce9771caa550275703e5543fb5799afc7149dc9f054416
-DIST exabgp-3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f
 DIST exabgp-3.4.28.tar.gz 546611 BLAKE2B 
c4916fd903fe8853e99ba872d87dc97908546c53d34936019c809ffa18761c3044dd7a21aace9bf6e5bb6a2823d2178422b4cdc2e8f65d7be1fda6de2755ae4d
 SHA512 
40edde5262e3033b5fcccf1e6020cce1fe856b6e31420e14166d5e0d636e5f616283827af2cd82946d94a196ef76ed7c5330ac4bebc564329852869f13018403
-DIST exabgp-4.0.10.tar.gz 2907852 BLAKE2B 
2fad6c853aa7a6f136da3334df4b3bdcaaacd03d3fbf849510bcd40b0639bbcc521726797a196418f0ecd47047c65356ee047d30b009ee01b9d498e354ea3bfd
 SHA512 
a21f49e5e99e28cc848cddfd3992dc18ba57d879d0964da0b906d16dca37aa05a00892d643d6cdeea80d4e629fc55a014d9bc50764d520fda77e94145297832e
 DIST exabgp-4.2.7.tar.gz 2931058 BLAKE2B 
2c7bf175322a36c800a8a5874b699b01f4c3d4a8712b1f8decb73665cd214c25ccf657909cfef74610e6a5fd1903245bc4da638ac9245b04c6e63d8247d72d50
 SHA512 
9c53b78e3fc5ff9cef4d267e2cb3509dbcfdd4a3b21d2c7e40a8d873a9ac586b8d5bf860699b6f878cc221af341df140acdf88aaa26a79b0e7865ce7cc607e01

diff --git a/net-misc/exabgp/exabgp-3.2.17.ebuild 
b/net-misc/exabgp/exabgp-3.2.17.ebuild
deleted file mode 100644
index 5792e63eb1c..000
--- a/net-misc/exabgp/exabgp-3.2.17.ebuild
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-
-inherit distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${P}.tar.gz;
-MY_P="${PN}-${PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""

diff --git a/net-misc/exabgp/exabgp-3.4.26-r1.ebuild 
b/net-misc/exabgp/exabgp-3.4.26-r1.ebuild
deleted file mode 100644
index c0a9b4043db..000
--- a/net-misc/exabgp/exabgp-3.4.26-r1.ebuild
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python2_7 )
-
-inherit distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""

diff --git a/net-misc/exabgp/exabgp-4.0.10.ebuild 
b/net-misc/exabgp/exabgp-4.0.10.ebuild
deleted file mode 100644
index 3a13ef59ecf..000
--- a/net-misc/exabgp/exabgp-4.0.10.ebuild
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_6 )
-
-inherit distutils-r1
-
-DESCRIPTION="The BGP swiss army knife of networking"
-HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/, net-misc/exabgp/files/

2020-05-19 Thread Patrick McLean
commit: de4fcd8eb8aa91102dfe549b36f78b9491229f83
Author: Patrick McLean  sony  com>
AuthorDate: Wed May 20 01:02:50 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Wed May 20 01:06:09 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de4fcd8e

net-misc/exabgp-4.2.7-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  gentoo.org>

 ...{exabgp-4.2.7.ebuild => exabgp-4.2.7-r1.ebuild} | 17 ++-
 net-misc/exabgp/files/exabgp-4.2.7-paths.patch |  8 +--
 net-misc/exabgp/files/exabgp.confd | 10 
 net-misc/exabgp/files/exabgp.initd | 59 ++
 net-misc/exabgp/files/exabgp.logrotate |  5 ++
 net-misc/exabgp/files/exabgp.tmpfiles  |  3 ++
 6 files changed, 97 insertions(+), 5 deletions(-)

diff --git a/net-misc/exabgp/exabgp-4.2.7.ebuild 
b/net-misc/exabgp/exabgp-4.2.7-r1.ebuild
similarity index 69%
rename from net-misc/exabgp/exabgp-4.2.7.ebuild
rename to net-misc/exabgp/exabgp-4.2.7-r1.ebuild
index a5eec248b4f..8714af508f9 100644
--- a/net-misc/exabgp/exabgp-4.2.7.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.7-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 PYTHON_COMPAT=( python3_{6,7,8} )
 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;
@@ -35,3 +35,18 @@ python_test() {
./qa/bin/parsing || die "tests fail with ${EPYTHON}"
nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
 }
+
+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
+}

diff --git a/net-misc/exabgp/files/exabgp-4.2.7-paths.patch 
b/net-misc/exabgp/files/exabgp-4.2.7-paths.patch
index 57f3a50748d..0744a00d693 100644
--- a/net-misc/exabgp/files/exabgp-4.2.7-paths.patch
+++ b/net-misc/exabgp/files/exabgp-4.2.7-paths.patch
@@ -3,11 +3,11 @@ index 58d47087..a4266d05 100644
 --- a/setup.py
 +++ b/setup.py
 @@ -31,7 +31,7 @@ def filesOf(directory):
- 
- 
+
+
  data_files = [
 -('etc/exabgp/examples', filesOf('etc/exabgp')),
-+('/etc/exabgp/examples', filesOf('etc/exabgp')),
++('share/exabgp/examples', filesOf('etc/exabgp')),
  ]
- 
+
  if platform.system() != 'NetBSD':

diff --git a/net-misc/exabgp/files/exabgp.confd 
b/net-misc/exabgp/files/exabgp.confd
new file mode 100644
index 000..2586be12393
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp.confd
@@ -0,0 +1,10 @@
+# /etc/conf.d/exabgp
+
+# arguments to pass to exabgp
+#EXABGP_ARGS="/etc/exabgp/exabgp.conf"
+
+# user to run exabgp as
+#EXABGP_USER=exabgp
+
+# group to run exabgp as
+#EXABGP_GROUP=exabgp

diff --git a/net-misc/exabgp/files/exabgp.initd 
b/net-misc/exabgp/files/exabgp.initd
new file mode 100644
index 000..e220108d826
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp.initd
@@ -0,0 +1,59 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# default arguments
+: "${EXABGP_ARGS:=--env=/etc/${RC_SVCNAME}/exabgp.env 
/etc/${RC_SVCNAME}/exabgp.conf}"
+
+command="capsh"
+command_args="
+   --uid=${EXABGP_USER:-exabgp}
+   --gid=${EXABGP_GROUP:-exabgp}
+   --caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
+   -- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
+command_background="yes"
+pidfile="/run/exabgp/${RC_SVCNAME}.pid"
+start_stop_daemon_args="
+   --stdout /var/log/${RC_SVCNAME}/exabgp.log
+   --stderr /var/log/${RC_SVCNAME}/exabgp.log"
+extra_started_commands="routes sessions"
+extra_commands="checkconfig"
+
+depend() {
+   need net
+}
+
+start_pre() {
+   checkpath -q -d -m 0755 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
+   /run/exabgp || return
+
+   checkpath -q -p -m 0600 -o "${EXABGP_USER}:${EXABGP_GROUP}" \
+   /run/exabgp/${RC_SVCNAME}.{in,out} || return
+
+   checkconfig || return
+}
+
+stop_pre() {
+   # don't restart if the configuration is bad
+   if [ "${RC_CMD}" = restart ]; then
+   checkconfig || return
+   fi
+}
+
+checkconfig() {
+   ebegin "Checking configuration for ${RC_SVCNAME}"
+   exabgp -t ${EXABGP_ARGS}
+   eend ${?} "Invalid configuration"
+}
+
+sessions() {
+   ebegin "Querying sessions"
+   exabgpcli --env /etc/${RC_SVCNAME}/exabgp.env show neighbor summary
+   eend ${?} "exabgpcli failed"
+}
+
+routes() {
+   ebegin "Querying routes"
+   exabgpcli --env /etc/${RC_SVCNAME}/exabgp.env show adj-rib out
+ 

[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/, net-misc/exabgp/files/

2020-05-18 Thread Patrick McLean
commit: 66d1505dcce53a754303ad22bd5bcc78bf383201
Author: Patrick McLean  sony  com>
AuthorDate: Mon May 18 21:25:36 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Mon May 18 21:26:14 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66d1505d

net-misc/exabgp-4.2.7: Version bump

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest| 2 +-
 net-misc/exabgp/{exabgp-4.2.6.ebuild => exabgp-4.2.7.ebuild}| 2 +-
 .../files/{exabgp-4.2.6-paths.patch => exabgp-4.2.7-paths.patch}| 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 99bf1efea03..fe699328122 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -2,4 +2,4 @@ DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 
410b77af542160334d32e3e3ea54b25f45c990c
 DIST exabgp-3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f
 DIST exabgp-3.4.28.tar.gz 546611 BLAKE2B 
c4916fd903fe8853e99ba872d87dc97908546c53d34936019c809ffa18761c3044dd7a21aace9bf6e5bb6a2823d2178422b4cdc2e8f65d7be1fda6de2755ae4d
 SHA512 
40edde5262e3033b5fcccf1e6020cce1fe856b6e31420e14166d5e0d636e5f616283827af2cd82946d94a196ef76ed7c5330ac4bebc564329852869f13018403
 DIST exabgp-4.0.10.tar.gz 2907852 BLAKE2B 
2fad6c853aa7a6f136da3334df4b3bdcaaacd03d3fbf849510bcd40b0639bbcc521726797a196418f0ecd47047c65356ee047d30b009ee01b9d498e354ea3bfd
 SHA512 
a21f49e5e99e28cc848cddfd3992dc18ba57d879d0964da0b906d16dca37aa05a00892d643d6cdeea80d4e629fc55a014d9bc50764d520fda77e94145297832e
-DIST exabgp-4.2.6.tar.gz 2922492 BLAKE2B 
de28d6e37dd46e240a224fb327ca85d9917d1447d43317fe93bd7d69a7963ee2ae6ecca613c91ade8d55f0d820c54e0ca88ebe18225f2dcee14c434e64bc1a76
 SHA512 
ad29195a46d1abbf0422ed8fe8013bb9ba3690d3e3876ea09f62bdc44581fda17f0499f45172b7ccac64f6d658770d9cdb7d00df4a12c211bc24310feb5cbbc6
+DIST exabgp-4.2.7.tar.gz 2931058 BLAKE2B 
2c7bf175322a36c800a8a5874b699b01f4c3d4a8712b1f8decb73665cd214c25ccf657909cfef74610e6a5fd1903245bc4da638ac9245b04c6e63d8247d72d50
 SHA512 
9c53b78e3fc5ff9cef4d267e2cb3509dbcfdd4a3b21d2c7e40a8d873a9ac586b8d5bf860699b6f878cc221af341df140acdf88aaa26a79b0e7865ce7cc607e01

diff --git a/net-misc/exabgp/exabgp-4.2.6.ebuild 
b/net-misc/exabgp/exabgp-4.2.7.ebuild
similarity index 95%
rename from net-misc/exabgp/exabgp-4.2.6.ebuild
rename to net-misc/exabgp/exabgp-4.2.7.ebuild
index 5cb7947911a..a5eec248b4f 100644
--- a/net-misc/exabgp/exabgp-4.2.6.ebuild
+++ b/net-misc/exabgp/exabgp-4.2.7.ebuild
@@ -28,7 +28,7 @@ BDEPEND="
 "
 
 PATCHES=(
-   "${FILESDIR}/exabgp-4.2.6-paths.patch"
+   "${FILESDIR}/exabgp-4.2.7-paths.patch"
 )
 
 python_test() {

diff --git a/net-misc/exabgp/files/exabgp-4.2.6-paths.patch 
b/net-misc/exabgp/files/exabgp-4.2.7-paths.patch
similarity index 54%
rename from net-misc/exabgp/files/exabgp-4.2.6-paths.patch
rename to net-misc/exabgp/files/exabgp-4.2.7-paths.patch
index 035ba12bd68..57f3a50748d 100644
--- a/net-misc/exabgp/files/exabgp-4.2.6-paths.patch
+++ b/net-misc/exabgp/files/exabgp-4.2.7-paths.patch
@@ -1,13 +1,13 @@
 diff --git a/setup.py b/setup.py
-index 34c28e4d..e41069bc 100644
+index 58d47087..a4266d05 100644
 --- a/setup.py
 +++ b/setup.py
 @@ -31,7 +31,7 @@ def filesOf(directory):
  
  
  data_files = [
--  ('etc/exabgp/examples', filesOf('etc/exabgp')),
-+  ('/etc/exabgp/examples', filesOf('etc/exabgp')),
+-('etc/exabgp/examples', filesOf('etc/exabgp')),
++('/etc/exabgp/examples', filesOf('etc/exabgp')),
  ]
  
  if platform.system() != 'NetBSD':



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/, net-misc/exabgp/files/

2020-05-15 Thread Patrick McLean
commit: 9190bd1a33a5060340b9815974779574320f13d3
Author: Patrick McLean  sony  com>
AuthorDate: Fri May 15 17:42:56 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Fri May 15 17:42:56 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9190bd1a

net-misc/exabgp-4.2.6: Version bump, add py37, py38 (bug 718442)

Closes: https://bugs.gentoo.org/718442
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest   |  1 +
 net-misc/exabgp/exabgp-4.2.6.ebuild| 37 ++
 net-misc/exabgp/files/exabgp-4.2.6-paths.patch | 13 +
 3 files changed, 51 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index c56a99f38e2..99bf1efea03 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -2,3 +2,4 @@ DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 
410b77af542160334d32e3e3ea54b25f45c990c
 DIST exabgp-3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f
 DIST exabgp-3.4.28.tar.gz 546611 BLAKE2B 
c4916fd903fe8853e99ba872d87dc97908546c53d34936019c809ffa18761c3044dd7a21aace9bf6e5bb6a2823d2178422b4cdc2e8f65d7be1fda6de2755ae4d
 SHA512 
40edde5262e3033b5fcccf1e6020cce1fe856b6e31420e14166d5e0d636e5f616283827af2cd82946d94a196ef76ed7c5330ac4bebc564329852869f13018403
 DIST exabgp-4.0.10.tar.gz 2907852 BLAKE2B 
2fad6c853aa7a6f136da3334df4b3bdcaaacd03d3fbf849510bcd40b0639bbcc521726797a196418f0ecd47047c65356ee047d30b009ee01b9d498e354ea3bfd
 SHA512 
a21f49e5e99e28cc848cddfd3992dc18ba57d879d0964da0b906d16dca37aa05a00892d643d6cdeea80d4e629fc55a014d9bc50764d520fda77e94145297832e
+DIST exabgp-4.2.6.tar.gz 2922492 BLAKE2B 
de28d6e37dd46e240a224fb327ca85d9917d1447d43317fe93bd7d69a7963ee2ae6ecca613c91ade8d55f0d820c54e0ca88ebe18225f2dcee14c434e64bc1a76
 SHA512 
ad29195a46d1abbf0422ed8fe8013bb9ba3690d3e3876ea09f62bdc44581fda17f0499f45172b7ccac64f6d658770d9cdb7d00df4a12c211bc24310feb5cbbc6

diff --git a/net-misc/exabgp/exabgp-4.2.6.ebuild 
b/net-misc/exabgp/exabgp-4.2.6.ebuild
new file mode 100644
index 000..5cb7947911a
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.2.6.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-python/ipaddr[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   dev-python/nose[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   )
+"
+
+PATCHES=(
+   "${FILESDIR}/exabgp-4.2.6-paths.patch"
+)
+
+python_test() {
+   ./qa/bin/parsing || die "tests fail with ${EPYTHON}"
+   nosetests -v ./qa/tests/*_test.py || die "tests fail with ${EPYTHON}"
+}

diff --git a/net-misc/exabgp/files/exabgp-4.2.6-paths.patch 
b/net-misc/exabgp/files/exabgp-4.2.6-paths.patch
new file mode 100644
index 000..035ba12bd68
--- /dev/null
+++ b/net-misc/exabgp/files/exabgp-4.2.6-paths.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 34c28e4d..e41069bc 100644
+--- a/setup.py
 b/setup.py
+@@ -31,7 +31,7 @@ def filesOf(directory):
+ 
+ 
+ data_files = [
+-  ('etc/exabgp/examples', filesOf('etc/exabgp')),
++  ('/etc/exabgp/examples', filesOf('etc/exabgp')),
+ ]
+ 
+ if platform.system() != 'NetBSD':



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2020-05-15 Thread Patrick McLean
commit: d33df74233fecf7216e89547a444844aaec90cb9
Author: Patrick McLean  sony  com>
AuthorDate: Fri May 15 17:40:44 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Fri May 15 17:40:44 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d33df742

net-misc/exabgp-3.4.28: Version bump, take maintainership

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest |  1 +
 net-misc/exabgp/exabgp-3.4.28.ebuild | 19 +++
 net-misc/exabgp/metadata.xml |  4 ++--
 3 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 4074fa3d48f..c56a99f38e2 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,3 +1,4 @@
 DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 
410b77af542160334d32e3e3ea54b25f45c990c56fe2dbef0714576eb9e728cebe6d1463c0f22b1240aaf8e99ccabc5f7334cd6c2b3c77426c94b2c048c8783c
 SHA512 
69dbff75caf287e9e0f6ab3707a2bbd576b0b4c8a8c318217cf88c8a1c417d47915b038bc7d64be3bbce9771caa550275703e5543fb5799afc7149dc9f054416
 DIST exabgp-3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f
+DIST exabgp-3.4.28.tar.gz 546611 BLAKE2B 
c4916fd903fe8853e99ba872d87dc97908546c53d34936019c809ffa18761c3044dd7a21aace9bf6e5bb6a2823d2178422b4cdc2e8f65d7be1fda6de2755ae4d
 SHA512 
40edde5262e3033b5fcccf1e6020cce1fe856b6e31420e14166d5e0d636e5f616283827af2cd82946d94a196ef76ed7c5330ac4bebc564329852869f13018403
 DIST exabgp-4.0.10.tar.gz 2907852 BLAKE2B 
2fad6c853aa7a6f136da3334df4b3bdcaaacd03d3fbf849510bcd40b0639bbcc521726797a196418f0ecd47047c65356ee047d30b009ee01b9d498e354ea3bfd
 SHA512 
a21f49e5e99e28cc848cddfd3992dc18ba57d879d0964da0b906d16dca37aa05a00892d643d6cdeea80d4e629fc55a014d9bc50764d520fda77e94145297832e

diff --git a/net-misc/exabgp/exabgp-3.4.28.ebuild 
b/net-misc/exabgp/exabgp-3.4.28.ebuild
new file mode 100644
index 000..81f8af7bae6
--- /dev/null
+++ b/net-misc/exabgp/exabgp-3.4.28.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+   dev-python/ipaddr[${PYTHON_USEDEP}]
+"

diff --git a/net-misc/exabgp/metadata.xml b/net-misc/exabgp/metadata.xml
index 01908213068..e7e80d6c3fa 100644
--- a/net-misc/exabgp/metadata.xml
+++ b/net-misc/exabgp/metadata.xml
@@ -2,8 +2,8 @@
 http://www.gentoo.org/dtd/metadata.dtd;>
 
   
-chain...@gentoo.org
-Tony Vroon
+chutz...@gentoo.org
+Patrick McLean
   
   
 Exa-Networks/exabgp



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2020-05-07 Thread Michał Górny
commit: 1870acf5cfe7935405d21a1f0d385c2ea8ec8273
Author: Michał Górny  gentoo  org>
AuthorDate: Thu May  7 15:12:49 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu May  7 15:12:49 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1870acf5

net-misc/exabgp: Remove py2.7

Signed-off-by: Michał Górny  gentoo.org>

 net-misc/exabgp/exabgp-4.0.10.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-misc/exabgp/exabgp-4.0.10.ebuild 
b/net-misc/exabgp/exabgp-4.0.10.ebuild
index e55824effab..3a13ef59ecf 100644
--- a/net-misc/exabgp/exabgp-4.0.10.ebuild
+++ b/net-misc/exabgp/exabgp-4.0.10.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python2_7 python3_6 )
+PYTHON_COMPAT=( python3_6 )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2019-04-05 Thread Patrick McLean
commit: b658c06203fd0c9188ce28ac8ecee3d936446885
Author: Patrick McLean  sony  com>
AuthorDate: Fri Apr  5 17:18:00 2019 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Fri Apr  5 17:18:00 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b658c062

net-misc/exabgp: Version bump to 4.0.10

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Patrick McLean  gentoo.org>

 net-misc/exabgp/Manifest |  1 +
 net-misc/exabgp/exabgp-4.0.10.ebuild | 15 +++
 2 files changed, 16 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index 68f404a8fd6..4074fa3d48f 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,2 +1,3 @@
 DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 
410b77af542160334d32e3e3ea54b25f45c990c56fe2dbef0714576eb9e728cebe6d1463c0f22b1240aaf8e99ccabc5f7334cd6c2b3c77426c94b2c048c8783c
 SHA512 
69dbff75caf287e9e0f6ab3707a2bbd576b0b4c8a8c318217cf88c8a1c417d47915b038bc7d64be3bbce9771caa550275703e5543fb5799afc7149dc9f054416
 DIST exabgp-3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f
+DIST exabgp-4.0.10.tar.gz 2907852 BLAKE2B 
2fad6c853aa7a6f136da3334df4b3bdcaaacd03d3fbf849510bcd40b0639bbcc521726797a196418f0ecd47047c65356ee047d30b009ee01b9d498e354ea3bfd
 SHA512 
a21f49e5e99e28cc848cddfd3992dc18ba57d879d0964da0b906d16dca37aa05a00892d643d6cdeea80d4e629fc55a014d9bc50764d520fda77e94145297832e

diff --git a/net-misc/exabgp/exabgp-4.0.10.ebuild 
b/net-misc/exabgp/exabgp-4.0.10.ebuild
new file mode 100644
index 000..e55824effab
--- /dev/null
+++ b/net-misc/exabgp/exabgp-4.0.10.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 python3_6 )
+
+inherit distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2019-01-25 Thread Tony Vroon
commit: 37e822bd95701e0fca10c2cd7c3e8c68d4fbfd39
Author: Tony Vroon  gentoo  org>
AuthorDate: Fri Jan 25 12:02:42 2019 +
Commit: Tony Vroon  gentoo  org>
CommitDate: Fri Jan 25 12:02:42 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37e822bd

net-misc/exabgp: Work around awkward upstream tarball filename

As per Mikle "zlogene" Kolyada, we cannot allow the upstream
tarball name to persist in the tree as it would cause distfile
collisions.
Bumping revision, belt & braces.

Closes: https://bugs.gentoo.org/542012
Signed-Off-By: Tony Vroon  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 net-misc/exabgp/Manifest  | 2 +-
 net-misc/exabgp/{exabgp-3.4.26.ebuild => exabgp-3.4.26-r1.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index dbc9fe05e45..68f404a8fd6 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1,2 +1,2 @@
-DIST 3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f
 DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 
410b77af542160334d32e3e3ea54b25f45c990c56fe2dbef0714576eb9e728cebe6d1463c0f22b1240aaf8e99ccabc5f7334cd6c2b3c77426c94b2c048c8783c
 SHA512 
69dbff75caf287e9e0f6ab3707a2bbd576b0b4c8a8c318217cf88c8a1c417d47915b038bc7d64be3bbce9771caa550275703e5543fb5799afc7149dc9f054416
+DIST exabgp-3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f

diff --git a/net-misc/exabgp/exabgp-3.4.26.ebuild 
b/net-misc/exabgp/exabgp-3.4.26-r1.ebuild
similarity index 95%
rename from net-misc/exabgp/exabgp-3.4.26.ebuild
rename to net-misc/exabgp/exabgp-3.4.26-r1.ebuild
index 16361f516bf..c0a9b4043db 100644
--- a/net-misc/exabgp/exabgp-3.4.26.ebuild
+++ b/net-misc/exabgp/exabgp-3.4.26-r1.ebuild
@@ -8,7 +8,7 @@ inherit distutils-r1
 
 DESCRIPTION="The BGP swiss army knife of networking"
 HOMEPAGE="https://github.com/Exa-Networks/exabgp;
-SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/

2019-01-25 Thread Tony Vroon
commit: 0e3f5038684f55212a24f5014e159ba2b80818be
Author: Tony Vroon  gentoo  org>
AuthorDate: Fri Jan 25 09:29:34 2019 +
Commit: Tony Vroon  gentoo  org>
CommitDate: Fri Jan 25 09:29:34 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e3f5038

net-misc/exabgp: 3.4.26 version bump

As reported by Toralf Förster, early versions of this package
incorrectly installed netlink into the global namespace.
Thanks to Zac Medico for reviving the bug report and confirming
that the issue was fixed upstream.

Closes: https://bugs.gentoo.org/542012
Signed-Off-By: Tony Vroon  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 net-misc/exabgp/Manifest |  1 +
 net-misc/exabgp/exabgp-3.4.26.ebuild | 16 
 2 files changed, 17 insertions(+)

diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest
index af39d95a501..dbc9fe05e45 100644
--- a/net-misc/exabgp/Manifest
+++ b/net-misc/exabgp/Manifest
@@ -1 +1,2 @@
+DIST 3.4.26.tar.gz 544456 BLAKE2B 
75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23
 SHA512 
6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbde81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f
 DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 
410b77af542160334d32e3e3ea54b25f45c990c56fe2dbef0714576eb9e728cebe6d1463c0f22b1240aaf8e99ccabc5f7334cd6c2b3c77426c94b2c048c8783c
 SHA512 
69dbff75caf287e9e0f6ab3707a2bbd576b0b4c8a8c318217cf88c8a1c417d47915b038bc7d64be3bbce9771caa550275703e5543fb5799afc7149dc9f054416

diff --git a/net-misc/exabgp/exabgp-3.4.26.ebuild 
b/net-misc/exabgp/exabgp-3.4.26.ebuild
new file mode 100644
index 000..16361f516bf
--- /dev/null
+++ b/net-misc/exabgp/exabgp-3.4.26.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="The BGP swiss army knife of networking"
+HOMEPAGE="https://github.com/Exa-Networks/exabgp;
+SRC_URI="https://github.com/Exa-Networks/${PN}/archive/${PV}.tar.gz;
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""