summaryrefslogtreecommitdiff
path: root/net-misc/frr
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-08 04:26:34 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-08 04:26:34 +0100
commit325837835fc86686829aaa6acace3d3c06c74cea (patch)
tree6cc31680e4ce26ab26e863fd7b72d0ffe2d9366f /net-misc/frr
parent7ad61ca2bfc8f8da08d2fb3085e4333dcccb0a64 (diff)
gentoo auto-resync : 08:10:2024 - 04:26:34
Diffstat (limited to 'net-misc/frr')
-rw-r--r--net-misc/frr/Manifest9
-rw-r--r--net-misc/frr/frr-9.0.2.ebuild150
-rw-r--r--net-misc/frr/frr-9.0.4.ebuild2
-rw-r--r--net-misc/frr/frr-9.1-r1.ebuild141
-rw-r--r--net-misc/frr/frr-9.1.2.ebuild2
-rw-r--r--net-misc/frr/frr-9.1.ebuild140
6 files changed, 4 insertions, 440 deletions
diff --git a/net-misc/frr/Manifest b/net-misc/frr/Manifest
index 15624692cb6b..0b819e874d4a 100644
--- a/net-misc/frr/Manifest
+++ b/net-misc/frr/Manifest
@@ -5,15 +5,10 @@ AUX frr-openrc-v2 7079 BLAKE2B abbad56f0715b79ba5ba24df373ccb8ab63caa12b04d89269
AUX frr.pam 969 BLAKE2B 227dc91f51fab504229fa5489486fed1aa393d33c024849724ea3fb934e3fd78ee6c9147240133d458ec52021f13e8a27a2d8a0b4625415007c4595222b815ee SHA512 9a169d58232eba7481aee83d92b4e104b6c4ca95e5b31befe29117fbcebc187ad87c061f37ec7c571ff5702101a329ae0c113cf714e2d0dcd39ca4212734a9ed
DIST frr-10.0.2.tar.gz 10968487 BLAKE2B 420503f25e2e40ce9f53cbb04416ba6d2fd8c7c0958f2d42391d7b534e0547e9ee429ad419cb87a06331efa75603bac1a8439844fe6a478f3b5513e656cab726 SHA512 d37373faab6b004b2bb3d99bee76a4a620ef9dcacfeadb9bbea611cb01ece869467583cde656715d50912b44a84da27103da9b2e76da8bcec9c95436ac45393c
DIST frr-10.1.1.tar.gz 11044980 BLAKE2B 32e50394c35712bc4799cae23c369aca6307d92b20a52ca9c2264b9ee82798d4372816cf87fc6e5c00c14d7aa85b08d3560f7ef6e0d72dd2a2ad231f8f7e3841 SHA512 c555bafc7437e8ba0216bd9cc7e0a432af4c9877255ab4ffdd97a0b7626eb3c9022051b91f6cd5d27d06531f6edef84742b67169ebbc040b8a904e58712cb654
-DIST frr-9.0.2.tar.gz 10341186 BLAKE2B e9c32bf48dc0adc7dd6c23ad1a2779065c762dc6e461a3f86d6b7afbef245345dc65b33d9dd5b499d4c4a7fb3b80a4416bdec9b42e7d15f2864d80c088e2ad4f SHA512 2cfd1a63cf073b8767fd67d9992d9a775d856234a532b13699304b6b1f15eb68bf1301f2f4c503b151fd5c8191bff67aeac9c7a4dc4a3ddb06f9a5db081423b9
DIST frr-9.0.4.tar.gz 10346069 BLAKE2B 63c7cec0fdaccba058bac757b68906c2cf0ec307f5313a299ef943f1c708dfa0ec0dee8bd8f743f9e54a3ed06f484435bb032294c4e2d0a026a2bd4187e14ec2 SHA512 e3717945176f72e14722e929a99f1a62ddd5332988d671950253ea4efc2e83f0464043e7acf990df6bc9306b81f4a32633a0debf92c8a19d13edd38a9bb4eaea
DIST frr-9.1.2.tar.gz 10790677 BLAKE2B dfa4967ee0e0bbecea016b9deeb70b1c1b9e409469de145050602608dddd41857be946e8df5c8a594dfaf6a124729af55d7ce4483e6fe6edc41125f09d9dabd2 SHA512 e0ed613090140ece181bff077a7067a00a5fca648ec6627c02d815060087497c68712c1ba244fa1534cdbcef49db92bd9432545d05027dc4b04db4f423726882
-DIST frr-9.1.tar.gz 10779477 BLAKE2B ba64f9455c38441f8cadce4eed435fb86344244e98bd1b675335887fb098be29adc035d722d3c128e136a4c6b0aa1adcbdc0e22815702e52170da940a5caf20a SHA512 77b278a3ea87da9dfd7b87e4f9ae67f08ed0f24809f6dd228d2ab2e2c29e2b3191d59d50fc474e53e159ac6c79c302481b462125d0657889516f07b8e05e8562
EBUILD frr-10.0.2.ebuild 3590 BLAKE2B 28cbff36c8d3f1dae34807c82d69a2f7a19f16bef5dc2a6c0793886189573ae18b0bee7e4c0456c6129c9390d11a57e43d933463d5f8350bfe16948742811401 SHA512 67d15ab63a9faf5734dc309b5f180395ce353fd4ac67725d23efb772c32a2ff34f5425ea18817f6627d469910bd61cca7122f4de36935a25465635812a8b2bcc
EBUILD frr-10.1.1.ebuild 3590 BLAKE2B 28cbff36c8d3f1dae34807c82d69a2f7a19f16bef5dc2a6c0793886189573ae18b0bee7e4c0456c6129c9390d11a57e43d933463d5f8350bfe16948742811401 SHA512 67d15ab63a9faf5734dc309b5f180395ce353fd4ac67725d23efb772c32a2ff34f5425ea18817f6627d469910bd61cca7122f4de36935a25465635812a8b2bcc
-EBUILD frr-9.0.2.ebuild 3565 BLAKE2B b981fb144f65fc2a5adaeecd383a20da4ffc44fe99c4d93dc3c350394def0845e5e555c72a572600b1c7c53b3462dc7867120f1da772d8cd65574d2306bc35dc SHA512 9d372791d14ea0f2f5cdf9a8ec5f5c8aa1c3ec531156dfd45a00c22471f8a199d95c8417a99f7d76e5c89253a7d7cf13cd8c58856f7e38d3cfac3cce636a5e66
-EBUILD frr-9.0.4.ebuild 3593 BLAKE2B 13bb2b3709a5ae326915d1135b8b0bd3ba75be0f1f1c64769bb89e1974e3b49eb9e123c7b13bfc0584b7cf73b5c8ceb37fffc3ac18a385cc40e520703bf9b64e SHA512 d1556f4fb628ccabaeb33385fe70ae15c8e71f408bfd95524922d53f44758d2e45514b9e1dfc3cbe80419129519d841e319bf0262546a20a9798cee0608e3243
-EBUILD frr-9.1-r1.ebuild 3377 BLAKE2B 75a7b84e99e0634ed27f78812df5a70aae8851f72364d06eb3a4dee01a68563be8aeb93110b07d1ef2a9fb4f4c7c991562609aed9fe777781dae8c9867c92620 SHA512 9f1887875e2eb63e1c3e5c1f12e0d57e35bbf4acf9e4e631977d81877a1d045e7f460832f9c8d16568a871de0048625c915c2dd4ee7eb810397561361b60d461
-EBUILD frr-9.1.2.ebuild 3404 BLAKE2B 43e3eceb38641f1e38812f634d69faed5657580e1f4545fa349647d8a46e77283adb7380b182e894eeee07f2bdff559a1c92359eb93890103b0c908444d1f9e7 SHA512 1ee81cc3eb1e7d7ba8d2104eede0d463c80a695c8e228970da093635530e39e1e99888a62ad71b80836677f506b3679eea2fe933d1a5fd4503e45c9b40fc72fa
-EBUILD frr-9.1.ebuild 3308 BLAKE2B 65266f71442e8c4695a52ed6ae1519dacc9fc57ff541c8593ef40a597df9d384de943a5dae94ec6fb52855afb40002584f7688dc37d0944f695773866861295f SHA512 8c9a497cf2a2dcbe22dc374870f294e12002eca8899953ff66585b79eae81d550effc82b14d95edd69f7aec784cb40db5d4332d36adacbd4abb045768ae33861
+EBUILD frr-9.0.4.ebuild 3592 BLAKE2B 570fbd267aa9656d787a5ae3faff435ee95465b31b1e874cb0f42d607821e1b8620fc8db4a7b42a3ada48fac5534c625950cb24773247bb0bfa65ebc79453816 SHA512 e89c4787fcb05714eacd75c4a8f9787006874047bf101c9c3b1724fc322cbfdb7048e44336b059901e6a9ccefbd3d53da1df81537604d4ecec5bb46c07ad42eb
+EBUILD frr-9.1.2.ebuild 3403 BLAKE2B 5534c9fa814ca3c614fbd2c77b9894c5b0228d7d50aecb5c755fdca5ad8a7eda10edbc3515d14574345f1af92290ca5bbe97c8f167bd072e8ce3f1b807f0b416 SHA512 684f516c8e0086ebc5753d6d06bfc2f302dd2e3093319dbda31d78626b6ec1f984b7064be43ca36c2658723367e460e523ba98429d058a59ff482d4bf0dd6556
MISC metadata.xml 1001 BLAKE2B 32254a7ceb76fb6869dc4b140b54968001eaee2347cde49597a6a599f98b5efcb3e0102e3c7cbd9969a1bc137228be07efb56f791b490ddbaaa8e5c2cf13fba4 SHA512 e63bee06b1eb237fb9e5872a16c294d3378b1a48da1d950e6cc7d6734128c81d019d66fc8be02b9935c9a4e19552f20db335a3296070bcebf4621ffcb3efe91b
diff --git a/net-misc/frr/frr-9.0.2.ebuild b/net-misc/frr/frr-9.0.2.ebuild
deleted file mode 100644
index 87227382bd64..000000000000
--- a/net-misc/frr/frr-9.0.2.ebuild
+++ /dev/null
@@ -1,150 +0,0 @@
-# Copyright 2020-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{9..11} )
-inherit autotools pam python-single-r1 systemd
-
-DESCRIPTION="The FRRouting Protocol Suite"
-HOMEPAGE="https://frrouting.org/"
-SRC_URI="https://github.com/FRRouting/frr/archive/${P}.tar.gz"
-# FRR tarballs have weird format.
-S="${WORKDIR}/frr-${P}"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 ~x86"
-IUSE="doc fpm grpc ipv6 nhrp ospfapi pam rpki snmp test"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-COMMON_DEPEND="
- ${PYTHON_DEPS}
- acct-user/frr
- dev-libs/json-c:0=
- dev-libs/protobuf-c:0=
- >=net-libs/libyang-2.0.0
- <net-libs/libyang-2.1.111
- sys-libs/libcap
- sys-libs/readline:0=
- virtual/libcrypt:=
- grpc? ( net-libs/grpc:= )
- nhrp? ( net-dns/c-ares:0= )
- pam? ( sys-libs/pam )
- rpki? ( >=net-libs/rtrlib-0.8.0[ssh] )
- snmp? ( net-analyzer/net-snmp:= )
-"
-BDEPEND="
- ~dev-util/clippy-${PV}
- app-alternatives/lex
- app-alternatives/yacc
- doc? ( dev-python/sphinx )
-"
-DEPEND="
- ${COMMON_DEPEND}
- elibc_musl? ( sys-libs/queue-standalone )
- test? ( $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') )
-"
-RDEPEND="
- ${COMMON_DEPEND}
- $(python_gen_cond_dep 'dev-python/ipaddr[${PYTHON_USEDEP}]')
-"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-7.5-ipctl-forwarding.patch
- "${FILESDIR}"/${PN}-8.4.1-logrotate.patch
-)
-
-src_prepare() {
- default
-
- python_fix_shebang tools
- eautoreconf
-}
-
-src_configure() {
- local myconf=(
- --disable-static
- --with-pkg-extra-version="-gentoo"
- --enable-configfile-mask=0640
- --enable-logfile-mask=0640
- --prefix="${EPREFIX}"/usr
- --libdir="${EPREFIX}"/usr/lib/frr
- --sbindir="${EPREFIX}"/usr/lib/frr
- --libexecdir="${EPREFIX}"/usr/lib/frr
- --sysconfdir="${EPREFIX}"/etc/frr
- --localstatedir="${EPREFIX}"/run/frr
- --with-moduledir="${EPREFIX}"/usr/lib/frr/modules
- --with-clippy="${BROOT}"/usr/bin/clippy
- --enable-user=frr
- --enable-group=frr
- --enable-vty-group=frr
- --enable-multipath=64
- $(use_enable doc)
- $(use_enable fpm)
- $(use_enable grpc)
- $(use_enable ipv6 ospf6d)
- $(use_enable ipv6 ripngd)
- $(use_enable ipv6 rtadv)
- $(use_enable kernel_linux realms)
- $(use_enable nhrp nhrpd)
- $(usex ospfapi '--enable-ospfclient' '' '' '')
- $(use_enable rpki)
- $(use_enable snmp)
- )
-
- econf "${myconf[@]}"
-}
-
-src_compile() {
- default
-
- use doc && emake -C doc html
-}
-
-src_install() {
- default
- find "${ED}" -name '*.la' -delete || die
-
- # Install user documentation if asked
- use doc && dodoc -r doc/user/_build/html
-
- # Create configuration directory with correct permissions
- keepdir /etc/frr
- fowners frr:frr /etc/frr
- fperms 775 /etc/frr
-
- # Create logs directory with the correct permissions
- keepdir /var/log/frr
- fowners frr:frr /var/log/frr
- fperms 775 /var/log/frr
-
- # Install the default configuration files
- insinto /etc/frr
- doins tools/etc/frr/vtysh.conf
- doins tools/etc/frr/frr.conf
- doins tools/etc/frr/daemons
-
- # Fix permissions/owners.
- fowners frr:frr /etc/frr/vtysh.conf
- fowners frr:frr /etc/frr/frr.conf
- fowners frr:frr /etc/frr/daemons
- fperms 640 /etc/frr/vtysh.conf
- fperms 640 /etc/frr/frr.conf
- fperms 640 /etc/frr/daemons
-
- # Install logrotate configuration
- insinto /etc/logrotate.d
- newins redhat/frr.logrotate frr
-
- # Install PAM configuration file
- use pam && newpamd "${FILESDIR}"/frr.pam frr
-
- # Install init scripts
- systemd_dounit tools/frr.service
- newinitd "${FILESDIR}"/frr-openrc-v2 frr
-
- # Conflict files, installed by net-libs/libsmi, bug #758383
- rm "${ED}"/usr/share/yang/ietf-interfaces.yang || die
-}
diff --git a/net-misc/frr/frr-9.0.4.ebuild b/net-misc/frr/frr-9.0.4.ebuild
index 7b90e58baf39..92169ce4fded 100644
--- a/net-misc/frr/frr-9.0.4.ebuild
+++ b/net-misc/frr/frr-9.0.4.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/frr-${P}"
LICENSE="GPL-2"
SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
IUSE="doc fpm grpc nhrp ospfapi pam rpki snmp test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
diff --git a/net-misc/frr/frr-9.1-r1.ebuild b/net-misc/frr/frr-9.1-r1.ebuild
deleted file mode 100644
index b3062226b32a..000000000000
--- a/net-misc/frr/frr-9.1-r1.ebuild
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 2020-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit autotools pam python-single-r1 systemd
-
-DESCRIPTION="The FRRouting Protocol Suite"
-HOMEPAGE="https://frrouting.org/"
-SRC_URI="https://github.com/FRRouting/frr/archive/${P}.tar.gz"
-# FRR tarballs have weird format.
-S="${WORKDIR}/frr-${P}"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE="doc fpm grpc ipv6 nhrp ospfapi pam rpki snmp test"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-COMMON_DEPEND="
- ${PYTHON_DEPS}
- acct-user/frr
- dev-libs/json-c:0=
- dev-libs/protobuf-c:0=
- >=net-libs/libyang-2.0.0
- <net-libs/libyang-2.1.111
- sys-libs/libcap
- sys-libs/readline:0=
- virtual/libcrypt:=
- grpc? ( net-libs/grpc:= )
- nhrp? ( net-dns/c-ares:0= )
- pam? ( sys-libs/pam )
- rpki? ( >=net-libs/rtrlib-0.8.0[ssh] )
- snmp? ( net-analyzer/net-snmp:= )
-"
-BDEPEND="
- app-alternatives/lex
- app-alternatives/yacc
- doc? ( dev-python/sphinx )
-"
-DEPEND="
- ${COMMON_DEPEND}
- elibc_musl? ( sys-libs/queue-standalone )
- test? ( $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') )
-"
-RDEPEND="
- ${COMMON_DEPEND}
- $(python_gen_cond_dep 'dev-python/ipaddr[${PYTHON_USEDEP}]')
-"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-7.5-ipctl-forwarding.patch
- "${FILESDIR}"/${PN}-8.4.1-logrotate.patch
- "${FILESDIR}"/${PN}-9.1-mimic-gnu-basename-api-for-non-glibc.patch
-)
-
-src_prepare() {
- default
-
- python_fix_shebang tools
- eautoreconf
-}
-
-src_configure() {
- local myconf=(
- --with-pkg-extra-version="-gentoo"
- --enable-configfile-mask=0640
- --enable-logfile-mask=0640
- --libdir="${EPREFIX}"/usr/lib/frr
- --sbindir="${EPREFIX}"/usr/lib/frr
- --libexecdir="${EPREFIX}"/usr/lib/frr
- --sysconfdir="${EPREFIX}"/etc/frr
- --localstatedir="${EPREFIX}"/run/frr
- --with-moduledir="${EPREFIX}"/usr/lib/frr/modules
- --enable-user=frr
- --enable-group=frr
- --enable-vty-group=frr
- --enable-multipath=64
- $(use_enable doc)
- $(use_enable fpm)
- $(use_enable grpc)
- $(use_enable ipv6 ospf6d)
- $(use_enable ipv6 ripngd)
- $(use_enable ipv6 rtadv)
- $(use_enable kernel_linux realms)
- $(use_enable nhrp nhrpd)
- $(usex ospfapi '--enable-ospfclient' '' '' '')
- $(use_enable rpki)
- $(use_enable snmp)
- )
-
- econf "${myconf[@]}"
-}
-
-src_compile() {
- default
-
- use doc && emake -C doc html
-}
-
-src_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- default
-}
-
-src_install() {
- default
- find "${ED}" -name '*.la' -delete || die
-
- # Install user documentation if asked
- use doc && dodoc -r doc/user/_build/html
-
- # Create configuration directory with correct permissions
- # Create logs directory with the correct permissions
- diropts -ofrr -gfrr -m0775
- keepdir /var/log/frr /etc/frr
-
- # Install the default configuration files
- insinto /etc/frr
- doins tools/etc/frr/{vtysh.conf,frr.conf,daemons}
-
- # Fix permissions/owners.
- fowners frr:frr /etc/frr/{vtysh.conf,frr.conf,daemons}
- fperms 640 /etc/frr/{vtysh.conf,frr.conf,daemons}
-
- # Install logrotate configuration
- insinto /etc/logrotate.d
- newins redhat/frr.logrotate frr
-
- # Install PAM configuration file
- use pam && newpamd "${FILESDIR}"/frr.pam frr
-
- # Install init scripts
- systemd_dounit tools/frr.service
- newinitd "${FILESDIR}"/frr-openrc-v2 frr
-
- # Conflict files, installed by net-libs/libsmi, bug #758383
- rm "${ED}"/usr/share/yang/ietf-interfaces.yang || die
-}
diff --git a/net-misc/frr/frr-9.1.2.ebuild b/net-misc/frr/frr-9.1.2.ebuild
index 789b55db98f6..7808e05d8baa 100644
--- a/net-misc/frr/frr-9.1.2.ebuild
+++ b/net-misc/frr/frr-9.1.2.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/frr-${P}"
LICENSE="GPL-2+"
SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
IUSE="doc fpm grpc nhrp ospfapi pam rpki snmp test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
diff --git a/net-misc/frr/frr-9.1.ebuild b/net-misc/frr/frr-9.1.ebuild
deleted file mode 100644
index 71a6eb44675c..000000000000
--- a/net-misc/frr/frr-9.1.ebuild
+++ /dev/null
@@ -1,140 +0,0 @@
-# Copyright 2020-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit autotools pam python-single-r1 systemd
-
-DESCRIPTION="The FRRouting Protocol Suite"
-HOMEPAGE="https://frrouting.org/"
-SRC_URI="https://github.com/FRRouting/frr/archive/${P}.tar.gz"
-# FRR tarballs have weird format.
-S="${WORKDIR}/frr-${P}"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 ~x86"
-IUSE="doc fpm grpc ipv6 nhrp ospfapi pam rpki snmp test"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-COMMON_DEPEND="
- ${PYTHON_DEPS}
- acct-user/frr
- dev-libs/json-c:0=
- dev-libs/protobuf-c:0=
- >=net-libs/libyang-2.0.0
- <net-libs/libyang-2.1.111
- sys-libs/libcap
- sys-libs/readline:0=
- virtual/libcrypt:=
- grpc? ( net-libs/grpc:= )
- nhrp? ( net-dns/c-ares:0= )
- pam? ( sys-libs/pam )
- rpki? ( >=net-libs/rtrlib-0.8.0[ssh] )
- snmp? ( net-analyzer/net-snmp:= )
-"
-BDEPEND="
- app-alternatives/lex
- app-alternatives/yacc
- doc? ( dev-python/sphinx )
-"
-DEPEND="
- ${COMMON_DEPEND}
- elibc_musl? ( sys-libs/queue-standalone )
- test? ( $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') )
-"
-RDEPEND="
- ${COMMON_DEPEND}
- $(python_gen_cond_dep 'dev-python/ipaddr[${PYTHON_USEDEP}]')
-"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-7.5-ipctl-forwarding.patch
- "${FILESDIR}"/${PN}-8.4.1-logrotate.patch
-)
-
-src_prepare() {
- default
-
- python_fix_shebang tools
- eautoreconf
-}
-
-src_configure() {
- local myconf=(
- --with-pkg-extra-version="-gentoo"
- --enable-configfile-mask=0640
- --enable-logfile-mask=0640
- --libdir="${EPREFIX}"/usr/lib/frr
- --sbindir="${EPREFIX}"/usr/lib/frr
- --libexecdir="${EPREFIX}"/usr/lib/frr
- --sysconfdir="${EPREFIX}"/etc/frr
- --localstatedir="${EPREFIX}"/run/frr
- --with-moduledir="${EPREFIX}"/usr/lib/frr/modules
- --enable-user=frr
- --enable-group=frr
- --enable-vty-group=frr
- --enable-multipath=64
- $(use_enable doc)
- $(use_enable fpm)
- $(use_enable grpc)
- $(use_enable ipv6 ospf6d)
- $(use_enable ipv6 ripngd)
- $(use_enable ipv6 rtadv)
- $(use_enable kernel_linux realms)
- $(use_enable nhrp nhrpd)
- $(usex ospfapi '--enable-ospfclient' '' '' '')
- $(use_enable rpki)
- $(use_enable snmp)
- )
-
- econf "${myconf[@]}"
-}
-
-src_compile() {
- default
-
- use doc && emake -C doc html
-}
-
-src_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- default
-}
-
-src_install() {
- default
- find "${ED}" -name '*.la' -delete || die
-
- # Install user documentation if asked
- use doc && dodoc -r doc/user/_build/html
-
- # Create configuration directory with correct permissions
- # Create logs directory with the correct permissions
- diropts -ofrr -gfrr -m0775
- keepdir /var/log/frr /etc/frr
-
- # Install the default configuration files
- insinto /etc/frr
- doins tools/etc/frr/{vtysh.conf,frr.conf,daemons}
-
- # Fix permissions/owners.
- fowners frr:frr /etc/frr/{vtysh.conf,frr.conf,daemons}
- fperms 640 /etc/frr/{vtysh.conf,frr.conf,daemons}
-
- # Install logrotate configuration
- insinto /etc/logrotate.d
- newins redhat/frr.logrotate frr
-
- # Install PAM configuration file
- use pam && newpamd "${FILESDIR}"/frr.pam frr
-
- # Install init scripts
- systemd_dounit tools/frr.service
- newinitd "${FILESDIR}"/frr-openrc-v2 frr
-
- # Conflict files, installed by net-libs/libsmi, bug #758383
- rm "${ED}"/usr/share/yang/ietf-interfaces.yang || die
-}