net-misc/openbgpd: Improvements

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2020-05-04 18:37:25 +02:00
parent 1e936ac631
commit ce7a3218ad
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
4 changed files with 25 additions and 18 deletions

View File

@ -1,5 +1,5 @@
--- openbsd/src/usr.sbin/bgpd/config.c 2020-03-20 17:55:04.089577745 +0100 --- a/openbsd/src/usr.sbin/bgpd/config.c 2020-03-20 17:55:04.089577745 +0100
+++ openbsd/src/usr.sbin/bgpd/config.c 2020-03-20 17:56:01.480205070 +0100 +++ b/openbsd/src/usr.sbin/bgpd/config.c 2020-03-20 17:56:01.480205070 +0100
@@ -343,7 +343,8 @@ @@ -343,7 +343,8 @@
fatal("getifaddrs"); fatal("getifaddrs");

View File

@ -1,5 +1,5 @@
--- update.sh 2020-03-20 15:14:46.462983445 +0100 --- a/update.sh 2020-03-20 15:14:46.462983445 +0100
+++ update.sh 2020-03-20 15:14:56.473090379 +0100 +++ b/update.sh 2020-03-20 15:14:56.473090379 +0100
@@ -13,10 +13,6 @@ @@ -13,10 +13,6 @@
git clone "${OPENBGPD_GIT}/openbsd" git clone "${OPENBGPD_GIT}/openbsd"
fi fi

View File

@ -43,8 +43,11 @@ src_install() {
} }
pkg_postinst() { pkg_postinst() {
if [ -z "${REPLACING_VERSIONS}" ]; then
ewarn "" ewarn ""
ewarn "OpenBGPD portable (not running on OpenBSD) cant export its RIB to" ewarn "OpenBGPD portable (not running on OpenBSD) cant export its RIB"
ewarn "the FIB. Its only suitable for route-reflectors or route-servers." ewarn "to the FIB. Its only suitable for route-reflectors or"
ewarn "route-servers."
ewarn "" ewarn ""
fi
} }

View File

@ -6,8 +6,8 @@ EAPI=7
inherit autotools git-r3 systemd inherit autotools git-r3 systemd
DESCRIPTION="OpenBGPD is a free implementation of BGPv4" DESCRIPTION="OpenBGPD is a free implementation of BGPv4"
HOMEPAGE="http://www.openbgpd.org/index.html" HOMEPAGE="http://www.openbgpd.org/"
EGIT_REPO_URI="https://github.com/openbgpd-portable/openbgpd-portable.git" EGIT_REPO_URI="https://github.com/${PN}-portable/${PN}-portable.git"
LICENSE="ISC" LICENSE="ISC"
SLOT="0" SLOT="0"
@ -23,11 +23,14 @@ RDEPEND="
" "
BDEPEND=" BDEPEND="
dev-util/byacc dev-util/byacc
sys-devel/autoconf
sys-devel/automake
sys-devel/libtool sys-devel/libtool
" "
PATCHES=(
"${FILESDIR}/${P}-update.patch"
"${FILESDIR}/${P}-config.c.patch"
)
src_unpack() { src_unpack() {
git-r3_src_unpack git-r3_src_unpack
@ -41,8 +44,6 @@ src_unpack() {
} }
src_prepare() { src_prepare() {
eapply -p0 "${FILESDIR}/${P}-update.patch"
eapply -p0 "${FILESDIR}/${P}-config.c.patch"
default default
./autogen.sh ./autogen.sh
eautoreconf eautoreconf
@ -62,8 +63,11 @@ src_install() {
} }
pkg_postinst() { pkg_postinst() {
if [ -z "${REPLACING_VERSIONS}" ]; then
ewarn "" ewarn ""
ewarn "OpenBGPD portable (not running on OpenBSD) cant export its RIB to" ewarn "OpenBGPD portable (not running on OpenBSD) cant export its RIB"
ewarn "the FIB. Its only suitable for route-reflectors or route-servers." ewarn "to the FIB. Its only suitable for route-reflectors or"
ewarn "route-servers."
ewarn "" ewarn ""
fi
} }