Browse Source

Чт мар 2 11:34:04 MSK 2017

Mike Tatarko 2 years ago
parent
commit
a837a965a7

+ 0 - 17
net-misc/quagga/Manifest

@@ -1,17 +0,0 @@
-AUX quagga-0.99.22.4-ipctl-forwarding.patch 731 SHA256 13944134f93a8b31ec0cad8444618afe9681f52de54b20be3be5ff4f7a647c83 SHA512 56bdeb8a1f350fea3ad8ed0cdba28964b00384878853e584746d8ce80c6f9ea5ca5adc4539e314f7fd82203c08d5f2ce6adeec61dac9a7a28282131d0d371447 WHIRLPOOL aacf456f7ccbf91ff9356606a475da00e486008bab35bd5c3f0bc3e742580079ab347f0be07d41816d7ecb438ea95cc4a128384898937b555b43c9b4531fdfe0
-AUX quagga-services.init.3 1079 SHA256 d5de437e5e04c446086406d017cc24e9183e1343e9652732a10827e2b4889e98 SHA512 f2afd1c3859bfff84fad7e16be4f6633a844e80f75792bfa0830603980e0b4c25ef8a5be486563e4f3cf45fb86f99a5bf5a42a3967bda94e3d0872f53640b6af WHIRLPOOL 44ffb79449832c119540bb8c94532dfa592baeee4e1f8c14aa2832a1015f5fdd177cff205bc38bb3232f2104bbaa0a259734e74ee985f53ca1c5e884534320c4
-AUX quagga.pam 975 SHA256 aa68ac97d7a951324bc3c4124a1c70f6fa88a45da860f636ac01cbcbfa36db70 SHA512 92dc6c68146d46046c6f5ff410629a2a7170e81e9657b7a2aebe1d94c8fa267acdcac9d8d8596fb54dbbacc0566502e82d900ea33f8824c07fba497b7e0f1efe WHIRLPOOL defc345fe4ccbff1cf3b68bee46f589467d68b11f7511d1333f9cdf4dbef8c55c32e4b0d9eb2f2aa57df7bdb47baa75bada593f97059494534192d34c808733b
-AUX systemd/babeld.service 342 SHA256 e13d3d7904e55c3193feac7d59181e8a9e654644465bce31b8441f35ab668848 SHA512 8c8231d697a1e04540b30f3e31a56ff4f43cf67dcab70b65e615431923a3818aaaac910d328b33b8273bc72ce68189e672f5e049b7faca6cab179998fa2cbd73 WHIRLPOOL d577189f581228c17401d4fb6a2defd7b7997da956a78439cc437c5119db34f6664e7c39848724086d11ca357d2550a2ee85491f7b874fbd78844ac45b77d294
-AUX systemd/bgpd.service 346 SHA256 45db2d84a8f87f89ea8c64c42d138dec59435d1af702067c851780d96dee2aa8 SHA512 97f8ff44ead913a9edc425a46c927c62ee527afd1cefc90be970e1f63375cba8739ac19ee0471150de56af8c9cd4e6f794438c5657059bcd6d8b9f665e2073e7 WHIRLPOOL 3f554451a036ed57fb4ae9d6fe544ceed648b00777ac9a754a3934f174a1d6dc6e64388bdcdaa249e685d1a070a5f941c8e3317480e1560dff46c84b11a5034e
-AUX systemd/isisd.service 351 SHA256 abe139c1d001667224840ec3567a8b33cdfc18525947a8b0961704c9b0f335fd SHA512 1c229cd9e20c28b25c0973e6f1315c3e77b9cca2eb64fb19663db857c831105ea717c209f5253e7b988deff1292b64aeb0f745022e1b3a97a727767428b3cfe3 WHIRLPOOL 24b31636cd348e06615403e65102849b751db7dda56e3042957e9676983d53899c685f14a07e1aeb5a246f3bf8eec1019e8ce30eaf136db1a33c29dee0ca6d8a
-AUX systemd/ospf6d.service 363 SHA256 2074b57cc63d13b97dd471f0f86da0152e3895e3cc235438a387c6453e437a3e SHA512 88e509c23b10aab018f1e7cadaecfc218ef2867b2c163b7d965f488391ec99a36f3ebd3edce9e8a0eb42688e29d50c1efdddd6b1698e4ee67d8e5b0286f4ca9c WHIRLPOOL 1d7725c50e085618eeef293e3d532e902b073041010d5607628db45c2422e4998470abec5b1501a8c0723137414f0d9bbe9df16858feaa827eaad9bd403356b1
-AUX systemd/ospfd.service 351 SHA256 6af54d5636dd68e1777022a13cff73d91aa113586d331296b1369b01f69c3a62 SHA512 2ee6c144e05f04feae81238a466ddf089de5051a72ed3e6a2e42f04648431410ab9e40aa9a4cdee8526e31e425e58e31ff09c98d6cd0a03eb36b183843d9e555 WHIRLPOOL d34c4dce148fa9200963d87dedf230c2a7082b330b54b5436e548181feeb930f7fb9947dfee21cf0e88dc3dc26f4dd76fd6a128206bb4d59c8218c1951a6c1f1
-AUX systemd/pimd.service 358 SHA256 e04cd6a894e1e331adcf81a2079da75c7d3f347e18b83ec9abbca07b5afae6d5 SHA512 2ddd65cd70dfa5544f6a580762f59a01e79ee913a19659a4d9b7eb4113931d45ca549c016d4f4e633bf96bc1e82ea0b659abc5b689a35c1740316aaf292cf583 WHIRLPOOL 38355aaf76b4f3b804095f5f9f2bff0a53f20f7d01b5c26c224b4c51e68990c9b047032716588bbec912ef87b6da58c2bf7b39b8d2875b61613e733230cdc21a
-AUX systemd/quagga.conf 33 SHA256 d1e6439001a6860419cecd97c36fa646fe4a9b81895cb2e2dd353cf024471953 SHA512 78effd7fe5ddd0187dc6e110ac2550001e24e803423ece7332e7dae0f83fde2d897aafe18665c64a15e2c1747b347d8eb9c99c8b95f16348deffca454a79ad8a WHIRLPOOL 94b97496109627f6f7d95ef605ba7e63bf6dc69b1e70559c252ec018563a66866e7b399c53cb7b1995e0a71fa5e446fd06b3015faf7092e446ace262cfe61fe6
-AUX systemd/ripd.service 346 SHA256 2579f40fc23ffd12581d8910227cfab1cfdfca1a0029e4e74bf9c4b9751b3323 SHA512 566f594ce29b82e2cef617f1f5eaef3d546b0fb5ff13ff7edc05c9c29ebdebab6628fb7099a63b35cf933c0fd4d321339232fcc1a3931bd02660218a6aecddeb WHIRLPOOL 1746b06cf586e91bd5c541dd6bfa874a5f838ac1602ac5f9bb9dfbeba363d9fea50de2c487eaad550e5ae16dcf81af9f1474a640be49ba20f5bba2c1184edcfc
-AUX systemd/ripngd.service 363 SHA256 84931b7364e7ad98d87ec123eb13f28c574cba41aa7e1bfedd7dc2056c54d72f SHA512 66dd66704a2357b1f7dd5b27c937482d093d44a9293f65b6187f23ab89ae0e57cf40a29e33d4b4eb937c760268348a829fd054aab383be99bec4f0755588a88d WHIRLPOOL 5d943a2e62a4b40326e3f974390efb384c19c5f624f7c4d8f2d5d2a00f2430f1793707f780b8a14d73069c4dbe855ed9d5be09d350095001b8cd0b498e9a411b
-AUX systemd/zebra.service 354 SHA256 495eb109bc513784eff1028dbd8759cd583f37c7d07b083e4c3bb8a627e93713 SHA512 d02a801a421c143cefb63abc3448b162505fb9063130523f939f1e6ad33c4b39f113d00e6d0c4ea7f53616fffa1aa2333bf33660b5ccb4d7fd9d4f048c5a979a WHIRLPOOL 2e277d14608dd1b59c549b0046075bad22cf7fc531e7e9838de59aeb8349cd6048bf720622a51086a24a3c8c00c3076fde2de0e02573809f611677513879160f
-DIST ht-20040304-classless-bgp.patch 1581 SHA256 39993890f9e31d662ed0564c732fb22392a901beb45b64261ffeadd9edf27887 SHA512 3df102d8ab88aaee1f109a2310602d6f734f2268252e5e42df752df7db7abeac526e969289481c4abfe905dcd41c35dee65196c48ac320fe9d083305451476e8 WHIRLPOOL cef99d64d52ab8c28bd672fb93dfbd8d716a31c76a5403496a6d104a5ff39531d6085134124d41fe4ff7adf895fa001cbe77b6e42846d849d6c108c81583d04e
-DIST quagga-1.2.0.tar.gz 2948778 SHA256 1043644d37975d9f920b76c593368cbe36ca43e27eb57cff316ee80ccb31dce3 SHA512 0ad28b828c2e52ad486189bd68e21041fe7c4affada7e3f12ba83a95f3532e0b012ba6b4271f9d0de63d4f5b15e80c706977b3afa54b57a3a5ec02400227d5ae WHIRLPOOL b4c73c4f7c99c971d762fbde79d5c6776b11b36d8a9b58e9c7cb5d322818ef8b6d90ca5c3f4c55f9b3353ae65042a99b41d39049b0a2f254bbd8904e5136ecce
-EBUILD quagga-1.2.0.ebuild 3664 SHA256 0abf845e9e62c7e4b378660962cc01ff4bee06fcedc368e1706a74ab07332133 SHA512 f20b1df2039369dee204bf7606b12a6277de65b36448b71080440b07c0042768db3fbc67b647d8f9fc5b301c58a8752eba98d8f54a280ca19cead59a19bc0fa9 WHIRLPOOL e61617dee455201ddc86d12ba4600c8147f376778df2be9f80c1178add0de971742c20e58e31651bfcf9c13bd7880cc3557ffaf44826d34eb65bf8e11e1e0336
-MISC metadata.xml 2225 SHA256 c0484ffa3663342f29a59dc81df3003b680d096ce097393e204d473e50ce888e SHA512 078b9e332afa946917ec44437d39fbd2541939f9dc37af172414d2ad9c3a655f0c25ac348dd9e61c9bc522bf7c648679d9c1b8106ba3babee192228155569870 WHIRLPOOL da52339c7bbf93b9a97da9c10b7516a38c815450547b25f964d04d24adfe118b7b80a01d2ee6a4f821b8471cdb817ef055a06773444c7f9ba1a4585202f45399

+ 0 - 22
net-misc/quagga/files/quagga-0.99.22.4-ipctl-forwarding.patch

@@ -1,22 +0,0 @@
-Fix for missing definitions on some Hardened configurations
-Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=437292
-
-diff -Naur quagga-0.99.16.orig/zebra/ipforward_sysctl.c quagga-0.99.16/zebra/ipforward_sysctl.c
---- quagga-0.99.16.orig/zebra/ipforward_sysctl.c	2010-03-11 12:11:32.000000000 -0500
-+++ quagga-0.99.16/zebra/ipforward_sysctl.c	2010-03-11 12:11:39.000000000 -0500
-@@ -31,6 +31,15 @@
- 
- #define MIB_SIZ 4
- 
-+/* Fix for recent (2.6.14) kernel headers */
-+#ifndef IPCTL_FORWARDING
-+    #define IPCTL_FORWARDING       NET_IPV4_FORWARD
-+#endif
-+
-+#ifndef IP6CTL_FORWARDING
-+    #define IP6CTL_FORWARDING      NET_IPV6_FORWARDING
-+#endif
-+
- extern struct zebra_privs_t zserv_privs;
- 
- /* IPv4 forwarding control MIB. */

+ 0 - 44
net-misc/quagga/files/quagga-services.init.3

@@ -1,44 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-: ${CFGFILE:=/etc/quagga/${SVCNAME}.conf}
-
-pidfile=/run/quagga/${SVCNAME}.pid
-
-command=/usr/sbin/${SVCNAME}
-command_args="-d -f ${CFGFILE} ${EXTRA_OPTS} --pid_file ${pidfile}"
-
-get_service_config() {
-	[ -e "$CFGFILE" ] || return
-
-	awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
-}
-
-depend() {
-	config "$CFGFILE"
-
-    [ ${SVCNAME} = "zebra" ] && need net || need zebra
-
-	[ "$(get_service_config log)" = "syslog" ] && \
-		use logger
-}
-
-start_pre() {
-    if [ ! -e "${CFGFILE}" ] ; then
-        eerror "Before starting ${SVCNAME} you have to configure it, by creating"
-        eerror "a ${CFGFILE} file."
-        eerror ""
-        eerror "A sample file has been installed in `echo /usr/share/doc/quagga-*/samples/${SVCNAME}.conf.sample*`"
-        return 1
-    fi
-
-	checkpath -d -m 0750 -o quagga:quagga /run/quagga
-
-	if [ ${SVCNAME} = "zebra" ]; then
-		ebegin "Cleaning up stale zebra routes..."
-		ip route flush proto zebra
-		eend $?
-	fi
-}

+ 0 - 26
net-misc/quagga/files/quagga.pam

@@ -1,26 +0,0 @@
-#%PAM-1.0
-#
-
-##### if running quagga as root:
-# Only allow root (and possibly wheel) to use this because enable access
-# is unrestricted.
-auth       sufficient   pam_rootok.so
-
-# Uncomment the following line to implicitly trust users in the "wheel" group.
-#auth       sufficient   pam_wheel.so trust use_uid
-# Uncomment the following line to require a user to be in the "wheel" group.
-#auth       required     pam_wheel.so use_uid
-###########################################################
-
-# If using quagga privileges and with a seperate group for vty access, then
-# access can be controlled via the vty access group, and pam can simply
-# check for valid user/password, eg:
-#
-# only allow local users.
-#auth       required     pam_securetty.so
-#auth       include      system-auth
-#auth       required     pam_nologin.so
-#account    include      system-auth
-#password   include      system-auth
-#session    include      system-auth
-#session    optional     pam_console.so

+ 0 - 16
net-misc/quagga/files/systemd/babeld.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=Babel routing daemon
-Documentation=man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/babeld.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/babeld.pid
-ExecStart=/usr/sbin/babeld -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 16
net-misc/quagga/files/systemd/bgpd.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=BGP routing daemon
-Documentation=man:bgpd(8) man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/bgpd.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/bgpd.pid
-ExecStart=/usr/sbin/bgpd -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 16
net-misc/quagga/files/systemd/isisd.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=IS-IS routing daemon
-Documentation=man:isis(8) man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/isisd.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/isisd.pid
-ExecStart=/usr/sbin/isisd -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 16
net-misc/quagga/files/systemd/ospf6d.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=OSPF routing daemon for IPv6
-Documentation=man:ospfd(8) man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/ospf6d.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/ospf6d.pid
-ExecStart=/usr/sbin/ospf6d -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 16
net-misc/quagga/files/systemd/ospfd.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=OSPF routing daemon
-Documentation=man:ospfd(8) man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/ospfd.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/ospfd.pid
-ExecStart=/usr/sbin/ospfd -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 17
net-misc/quagga/files/systemd/pimd.service

@@ -1,17 +0,0 @@
-[Unit]
-Description=PIM-SSM routing daemon
-Documentation=man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/pimd.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/pimd.pid
-ExecStart=/usr/sbin/pimd -d
-ExecReload=/bin/kill -HUP $MAINPID
-SuccessExitStatus=1
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 1
net-misc/quagga/files/systemd/quagga.conf

@@ -1 +0,0 @@
-d /run/quagga 0750 quagga quagga

+ 0 - 16
net-misc/quagga/files/systemd/ripd.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=RIP routing daemon
-Documentation=man:ripd(8) man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/ripd.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/ripd.pid
-ExecStart=/usr/sbin/ripd -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 16
net-misc/quagga/files/systemd/ripngd.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=RIP routing daemon for IPv6
-Documentation=man:ripngd(8) man:zebra(8)
-BindTo=zebra.service
-After=network.target zebra.service
-ConditionPathExists=/etc/quagga/ripngd.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/ripngd.pid
-ExecStart=/usr/sbin/ripngd -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 16
net-misc/quagga/files/systemd/zebra.service

@@ -1,16 +0,0 @@
-[Unit]
-Description=GNU Zebra routing manager
-Documentation=man:zebra(8)
-After=network.target
-ConditionPathExists=/etc/quagga/zebra.conf
-
-[Service]
-Type=forking
-PIDFile=/run/quagga/zebra.pid
-ExecStartPre=/bin/ip route flush proto zebra
-ExecStart=/usr/sbin/zebra -d
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-abort
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 47
net-misc/quagga/metadata.xml

@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person">
-		<email>pinkbyte@gentoo.org</email>
-		<name>Sergey Popov</name>
-	</maintainer>
-	<longdescription>
-		Quagga is a modern fork of Zebra. Quagga is a routing software package that provides TCP/IP
-		based routing services with routing protocols support such as RIPv1, RIPv2, RIPng, OSPFv2,
-		OSPFv3, BGP-4, and BGP-4+. Quagga also supports special BGP Route Reflector and Route Server
-		behavior.  In addition to traditional IPv4 routing protocols, Quagga also supports IPv6 routing
-		protocols. With SNMP daemon which supports SMUX protocol, Quagga provides routing protocol
-		MIBs. Furthermore Quagga supports OSPFAPI, a API interface to the OSPF LSDB. It supports
-		inspection as well as injection of normal and opaque OSPF LSAs. Applications like SRRD - The
-		Service Rounting Redundancy Daemon - can make use of OSPFAPI to inject opaque data into the OSPF
-		routing domain. SRRD, for example, implements a cluster server by using the OSPFAPI to flood
-		service state information into the routing domain
-	</longdescription>
-	<use>
-		<flag name="bgpclassless">
-			Apply unofficial patch to enable classless prefixes for BGP. Patch and information to be found
-			at http://hasso.linux.ee/doku.php/english:network:quagga
-		</flag>
-		<flag name="multipath">
-			Enable multipath routes support for any number of routes
-		</flag>
-		<flag name="ospfapi">
-			Enable OSPFAPI support for client applications accessing the OSPF link state database
-		</flag>
-		<flag name="pam">
-			Add support for PAM (via <pkg>sys-libs/pam</pkg>) to the Quagga Virtual Terminal Interface
-			Shell (vtysh); if the readline USE flag is disabled, this flag is ignored
-		</flag>
-		<flag name="protobuf">
-			Enable support for <pkg>dev-libs/protobuf</pkg>
-		</flag>
-		<flag name="readline">
-			Enable support for <pkg>sys-libs/readline</pkg> to provide the Quagga Virtual Terminal
-			Interface Shell (vtysh)
-		</flag>
-		<flag name="tcp-zebra">
-			Enable TCP zserv interface on port 2600 for Zebra/protocol-daemon communication. Unix domain
-			sockets are chosen otherwise
-		</flag>
-	</use>
-</pkgmetadata>

+ 0 - 134
net-misc/quagga/quagga-1.2.0.ebuild

@@ -1,134 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id: 95eb9b04aa408af36336606d01ef1ed654e9234f $
-
-EAPI=6
-
-CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch
-
-inherit autotools eutils flag-o-matic multilib pam readme.gentoo-r1 systemd user
-
-DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP"
-HOMEPAGE="http://quagga.net/"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz
-	bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ppc ~s390 sparc x86"
-
-IUSE="bgpclassless caps doc elibc_glibc ipv6 multipath ospfapi pam protobuf +readline snmp tcp-zebra"
-
-COMMON_DEPEND="
-	caps? ( sys-libs/libcap )
-	protobuf? ( dev-libs/protobuf-c:0= )
-	readline? (
-		sys-libs/readline:0=
-		pam? ( sys-libs/pam )
-	)
-	snmp? ( net-analyzer/net-snmp )
-	!elibc_glibc? ( dev-libs/libpcre )"
-DEPEND="${COMMON_DEPEND}
-	sys-apps/gawk
-	sys-devel/libtool:2"
-RDEPEND="${COMMON_DEPEND}
-	sys-apps/iproute2"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-0.99.22.4-ipctl-forwarding.patch"
-)
-
-DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="Sample configuration files can be found in /usr/share/doc/${PF}/samples
-You have to create config files in /etc/quagga before
-starting one of the daemons.
-
-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
-	use bgpclassless && eapply -p0 "${DISTDIR}/${CLASSLESS_BGP_PATCH}"
-
-	eapply "${PATCHES[@]}"
-	eapply_user
-	eautoreconf
-}
-
-src_configure() {
-	append-flags -fno-strict-aliasing
-
-	# do not build PDF docs
-	export ac_cv_prog_PDFLATEX=no
-	export ac_cv_prog_LATEXMK=no
-
-	econf \
-		--enable-exampledir=/usr/share/doc/${PF}/samples \
-		--enable-irdp \
-		--enable-isisd \
-		--enable-isis-topology \
-		--enable-pimd \
-		--enable-user=quagga \
-		--enable-group=quagga \
-		--enable-vty-group=quagga \
-		--with-cflags="${CFLAGS}" \
-		--with-pkg-extra-version="-gentoo" \
-		--sysconfdir=/etc/quagga \
-		--localstatedir=/run/quagga \
-		--disable-static \
-		$(use_enable caps capabilities) \
-		$(usex snmp '--enable-snmp' '' '' '') \
-		$(use_enable !elibc_glibc pcreposix) \
-		$(use_enable tcp-zebra) \
-		$(use_enable doc) \
-		$(usex multipath $(use_enable multipath) '' '=0' '') \
-		$(usex ospfapi '--enable-opaque-lsa --enable-ospf-te --enable-ospfclient' '' '' '') \
-		$(use_enable readline vtysh) \
-		$(use_with pam libpam) \
-		$(use_enable protobuf) \
-		$(use_enable ipv6 ripngd) \
-		$(use_enable ipv6 ospf6d) \
-		$(use_enable ipv6 rtadv)
-}
-
-src_install() {
-	default
-	prune_libtool_files
-	readme.gentoo_create_doc
-
-	keepdir /etc/quagga
-	fowners root:quagga /etc/quagga
-	fperms 0770 /etc/quagga
-
-	# Path for PIDs before first reboot should be created here, bug #558194
-	dodir /run/quagga
-	fowners quagga:quagga /run/quagga
-	fperms 0770 /run/quagga
-
-	# Install systemd-related stuff, bug #553136
-	systemd_dotmpfilesd "${FILESDIR}/systemd/quagga.conf"
-	systemd_dounit "${FILESDIR}/systemd/zebra.service"
-
-	# install zebra as a file, symlink the rest
-	newinitd "${FILESDIR}"/quagga-services.init.3 zebra
-
-	for service in bgpd isisd ospfd pimd ripd $(use ipv6 && echo ospf6d ripngd); do
-		dosym zebra /etc/init.d/${service}
-		systemd_dounit "${FILESDIR}/systemd/${service}.service"
-	done
-
-	use readline && use pam && newpamd "${FILESDIR}/quagga.pam" quagga
-
-	insinto /etc/logrotate.d
-	newins redhat/quagga.logrotate quagga
-}
-
-pkg_postinst() {
-	readme.gentoo_print_elog
-}