diff options
Diffstat (limited to 'net-misc/exabgp')
-rw-r--r-- | net-misc/exabgp/Manifest | 17 | ||||
-rw-r--r-- | net-misc/exabgp/exabgp-3.2.17.ebuild | 18 | ||||
-rw-r--r-- | net-misc/exabgp/exabgp-3.4.26-r1.ebuild | 16 | ||||
-rw-r--r-- | net-misc/exabgp/exabgp-3.4.28-r2.ebuild | 36 | ||||
-rw-r--r-- | net-misc/exabgp/exabgp-4.0.10.ebuild | 15 | ||||
-rw-r--r-- | net-misc/exabgp/exabgp-4.2.7-r2.ebuild | 54 | ||||
-rw-r--r-- | net-misc/exabgp/files/exabgp-4.2.7-paths.patch | 13 | ||||
-rw-r--r-- | net-misc/exabgp/files/exabgp.confd | 10 | ||||
-rw-r--r-- | net-misc/exabgp/files/exabgp.initd | 59 | ||||
-rw-r--r-- | net-misc/exabgp/files/exabgp.logrotate | 5 | ||||
-rw-r--r-- | net-misc/exabgp/files/exabgp.tmpfiles | 3 | ||||
-rw-r--r-- | net-misc/exabgp/metadata.xml | 4 |
12 files changed, 192 insertions, 58 deletions
diff --git a/net-misc/exabgp/Manifest b/net-misc/exabgp/Manifest index fa2f68eae8e7..fba7197a7518 100644 --- a/net-misc/exabgp/Manifest +++ b/net-misc/exabgp/Manifest @@ -1,7 +1,10 @@ -DIST exabgp-3.2.17.tar.gz 596373 BLAKE2B 410b77af542160334d32e3e3ea54b25f45c990c56fe2dbef0714576eb9e728cebe6d1463c0f22b1240aaf8e99ccabc5f7334cd6c2b3c77426c94b2c048c8783c SHA512 69dbff75caf287e9e0f6ab3707a2bbd576b0b4c8a8c318217cf88c8a1c417d47915b038bc7d64be3bbce9771caa550275703e5543fb5799afc7149dc9f054416 -DIST exabgp-3.4.26.tar.gz 544456 BLAKE2B 75f62ce8a68588f711e86208f00cc6de9ae51a5c82f833b91459bc05974c8eff06fec080823adfecea7b75a43caa3310f6395bd22ab4e6a696f230787bbaae23 SHA512 6cfcc8a40e1e05dfa76df46d8b5e13ce85e73f078d6ab4d2e23dd85035c1ed52bbbaaaade81602ea7572841e6e20d7d7183a7e968599f9e8314e1b89e3a6341f -DIST exabgp-4.0.10.tar.gz 2907852 BLAKE2B 2fad6c853aa7a6f136da3334df4b3bdcaaacd03d3fbf849510bcd40b0639bbcc521726797a196418f0ecd47047c65356ee047d30b009ee01b9d498e354ea3bfd SHA512 a21f49e5e99e28cc848cddfd3992dc18ba57d879d0964da0b906d16dca37aa05a00892d643d6cdeea80d4e629fc55a014d9bc50764d520fda77e94145297832e -EBUILD exabgp-3.2.17.ebuild 435 BLAKE2B f9075fca0cc83f4ab693453fd434538fa72f7b7efe0f2702b9fd7fbc40fced273dac906be1d24fd2ebb58b350df862a95e0dd22859123703871546062e8f6806 SHA512 200dbcc99913a28bd69a7ebde17b729efb280fd1c79e7cd99196c1648f60f771ddac734dbd56d5c4ecc182fd00e9d9d7d89e7b46ed09e9c67bd9c35d544f8359 -EBUILD exabgp-3.4.26-r1.ebuild 400 BLAKE2B 0be76cb073e639dc6bc3a4dc61da8dd3da7c63c407af1af08c3e18a4d224ca87092f91d647dd3a8eecd1595680c0521898f7c378679c6816a430eb47422e01b6 SHA512 50fc08f265c6f5025426257d4ad5c6039137450654a2cc9116c29d61c6f07a16379be4adfb6b62f746bcfaa1e00e92b3b56ed2cde070df9e549a2807f89ad71b -EBUILD exabgp-4.0.10.ebuild 392 BLAKE2B bd1b2536cfafc2c240afa8ac33407837aa5116893dbad65aeba410d4abfa6178dc1c83939d9c1268348d5a3b3d55027202182fafc4eb0770e98457e982124202 SHA512 a280748ff18326e80b1495b62acb966ea2116cae379d1e68cb9df1d7af95174bd88cdd2a789d0af4c2d6deaa4ffb8309e057b073c3eb03165f7116b5aa4fc1e4 -MISC metadata.xml 339 BLAKE2B 863e3a5221b0dc3ef29b27b0d27a0941adc634d0287881bc586005ac6ed60e33e7a1dd48d63b237a78581b7a9890347a8ecc5346ad90cae732763235e486f8ae SHA512 81c99b9e586b1873b2949359be5147e2651e1b7a7e81aed124f54248f2c5f96ffe68f19f153d7029ec8a16e04b1a71b0c6c79c4c747d5901079a536d716acdc8 +AUX exabgp-4.2.7-paths.patch 302 BLAKE2B 52110fefb75e0a36452ea3e53f099897b30df8287d033b353f66df25cf75c4a75a80e91ef49a47c652a46274faabfcf5385653ae03eb75ed1afd866c068967c7 SHA512 678258e4848b17b9880849cb8d105ee64b4cb6bdd678c3c96707467a2bae51c30d34b8609bf5c9a48bcd0722f6247b009dc5c406a3bab02d77bf2f919e7f4fbc +AUX exabgp.confd 183 BLAKE2B 59338bbd61001e4418b970abc45786004b833f80576117122fec99f148c1bab3bc7feed80c46b8bac2ac639b720daa320bd141f65b25a37a6ce1f229653f3741 SHA512 7b888ea5053ebb8da9acbd4a85b6a9900663cadb89258aea86d47cade505e8bbfc6e741fed599d410480467f76f759175d710c284bc6caafdabb4a61c53611ac +AUX exabgp.initd 1472 BLAKE2B 488c1de5222be9f5f67e279fa9607c326922d80c2aafa6cb098f5f721ef1df30f1d56a2a0a0ef6ca376cdb00f65cb1fc644214248b7ea9dbc9dfd55442be7d2b SHA512 453ab87961b4647374af62a02280e750ba0b1bf535a5e92c4434c4ff6c0a55f7ec52a5e0e5a784a31695e02ece42543260186aa25c658368331c06c12794d4b4 +AUX exabgp.logrotate 61 BLAKE2B 63024bebc07e3eadacf1550674f5fbb7cf22d903a02784d8d5f1aae3b8f6e543e5b4b2f7208af91b4c063cb68d831caf18c2b03fce211c4c447f3828c5c8127f SHA512 27e751f0ff066448fc0121a129a9c48ac645738f65041aa29816cddc80dc73f2458110ccd12fa48b2ccb573908357425070103303d5645987b2a4e74986a2786 +AUX exabgp.tmpfiles 136 BLAKE2B ce33ebfb296c6dcb30345b2a4c67f052fc5862ccb28d5cee3d63f45456e34bc72559dad53da4f8a919607522a8c49fc88acf30101b9250d712089c2b0e3a9b22 SHA512 1f191e043e29dc10ba6cf83adb9bbdcc4d9ac3b9e8c7b5d93424578f18d8142b21382218c9ff9fb86607172c52ece2e6aea5ce49a96b4f512663c840cb328540 +DIST exabgp-3.4.28.tar.gz 546611 BLAKE2B c4916fd903fe8853e99ba872d87dc97908546c53d34936019c809ffa18761c3044dd7a21aace9bf6e5bb6a2823d2178422b4cdc2e8f65d7be1fda6de2755ae4d SHA512 40edde5262e3033b5fcccf1e6020cce1fe856b6e31420e14166d5e0d636e5f616283827af2cd82946d94a196ef76ed7c5330ac4bebc564329852869f13018403 +DIST exabgp-4.2.7.tar.gz 2931058 BLAKE2B 2c7bf175322a36c800a8a5874b699b01f4c3d4a8712b1f8decb73665cd214c25ccf657909cfef74610e6a5fd1903245bc4da638ac9245b04c6e63d8247d72d50 SHA512 9c53b78e3fc5ff9cef4d267e2cb3509dbcfdd4a3b21d2c7e40a8d873a9ac586b8d5bf860699b6f878cc221af341df140acdf88aaa26a79b0e7865ce7cc607e01 +EBUILD exabgp-3.4.28-r2.ebuild 850 BLAKE2B ee79eef857a6364e4d1748da8ace0bd2e5d21d51f608b6fd0a027fcd7fb16f9f13062feb25826190d09e0f9285ae2c7d68b902bf3df44f1a45ce0041831f907f SHA512 ef8e5f7cdc233bfb4bdf476317fc3021c4796dd0e661a778df24fce72261224a987718ce0b96a6ca44695f8e8f46518bec48069a4d290c33896d18ce1604648a +EBUILD exabgp-4.2.7-r2.ebuild 1225 BLAKE2B 056734c689ddd191bf4227f71f8af8221b19bb176feb233ea1f8c6515886b9088c8b16c3cb2657a7e6ad4fac627282f349ac20b560fb9671eb6de7f770b44842 SHA512 5204bbdb48d313bae38e74fca9ddf48f1d2e57e7eaabd18943f13abedc4961c2b2ca1ef8335f5b38664aa8bf4910bf7c18c1c28d2827a323c06a403b6e500c1c +MISC metadata.xml 343 BLAKE2B 306f12e34e1edf8060cdd1515f77040a2b400a9d853b8b46a73b219464947cf3fc1f64efc32bde26074aa61cb483466ea752481876a02cb14c8388787105e61f SHA512 9c4c8e26eb586fa1153b1f02db408cebd9a460c6ceca049fe121977d1a14ec130d9289aca2f0cffee009a5e7f314818eb37b55790c75502817bb2941be7352f6 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 5792e63eb1c2..000000000000 --- 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 c0a9b4043dbc..000000000000 --- 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-3.4.28-r2.ebuild b/net-misc/exabgp/exabgp-3.4.28-r2.ebuild new file mode 100644 index 000000000000..f6753117ebc7 --- /dev/null +++ b/net-misc/exabgp/exabgp-3.4.28-r2.ebuild @@ -0,0 +1,36 @@ +# 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 +} 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 3a13ef59ecf4..000000000000 --- 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" diff --git a/net-misc/exabgp/exabgp-4.2.7-r2.ebuild b/net-misc/exabgp/exabgp-4.2.7-r2.ebuild new file mode 100644 index 000000000000..bdcff317c204 --- /dev/null +++ b/net-misc/exabgp/exabgp-4.2.7-r2.ebuild @@ -0,0 +1,54 @@ +# 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 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 + 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.7-paths.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 +} diff --git a/net-misc/exabgp/files/exabgp-4.2.7-paths.patch b/net-misc/exabgp/files/exabgp-4.2.7-paths.patch new file mode 100644 index 000000000000..0744a00d6939 --- /dev/null +++ b/net-misc/exabgp/files/exabgp-4.2.7-paths.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +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')), ++ ('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 000000000000..2586be12393d --- /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 000000000000..e220108d8262 --- /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 + eend ${?} "exabgpcli failed" +} diff --git a/net-misc/exabgp/files/exabgp.logrotate b/net-misc/exabgp/files/exabgp.logrotate new file mode 100644 index 000000000000..0616196211ac --- /dev/null +++ b/net-misc/exabgp/files/exabgp.logrotate @@ -0,0 +1,5 @@ +/var/log/exabgp/*.log { + missingok + compress + copytruncate +} diff --git a/net-misc/exabgp/files/exabgp.tmpfiles b/net-misc/exabgp/files/exabgp.tmpfiles new file mode 100644 index 000000000000..80720cbfc1f7 --- /dev/null +++ b/net-misc/exabgp/files/exabgp.tmpfiles @@ -0,0 +1,3 @@ +f /run/exabgp 0755 exabgp exabgp - - +p /run/exabgp/exabgp.in 0600 exabgp exabgp - - +p /run/exabgp/exabgp.out 0600 exabgp exabgp - - diff --git a/net-misc/exabgp/metadata.xml b/net-misc/exabgp/metadata.xml index 019082130680..e7e80d6c3fa8 100644 --- a/net-misc/exabgp/metadata.xml +++ b/net-misc/exabgp/metadata.xml @@ -2,8 +2,8 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>chainsaw@gentoo.org</email> - <name>Tony Vroon</name> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> </maintainer> <upstream> <remote-id type="github">Exa-Networks/exabgp</remote-id> |