# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch
-inherit autotools eutils flag-o-matic ltprune multilib pam readme.gentoo-r1 systemd tmpfiles user
+inherit autotools eutils flag-o-matic multilib pam readme.gentoo-r1 systemd tmpfiles
DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP"
HOMEPAGE="https://www.quagga.net/"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
+ acct-group/quagga
+ acct-user/quagga
caps? ( sys-libs/libcap )
nhrpd? ( net-dns/c-ares:0= )
protobuf? ( dev-libs/protobuf-c:0= )
You can pass additional options to the daemon by setting the EXTRA_OPTS
variable in their respective file in /etc/conf.d"
-pkg_setup() {
- enewgroup quagga
- enewuser quagga -1 -1 /var/empty quagga
-}
-
src_prepare() {
# Classless prefixes for BGP
# http://hasso.linux.ee/doku.php/english:network:quagga
src_install() {
default
- prune_libtool_files
+ find "${D}" -name '*.la' -delete || die
readme.gentoo_create_doc
keepdir /etc/quagga