1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="The eXtensible Open Router Platform"
8 HOMEPAGE="http://www.xorp.org/"
9 SRC_URI="http://www.xorp.org/releases/${PV}/${P}.tar.gz"
14 IUSE="static debug ipv6 snmp"
16 DEPEND=">=dev-lang/python-2.0
19 snmp? ( net-analyzer/net-snmp )"
21 net-analyzer/traceroute"
29 $(use_enable static) \
33 --prefix="/usr/xorp" \
36 # -Werror prevents building snmp agent...
37 find "${S}" -name Makefile -exec sed -i -e '/^C.*FLAGS/s/-Werror//g' '{}' \;
39 emake -j1 || die "emake failed"
43 emake check || die "emake check failed"
47 emake DESTDIR="${D}" install || die "emake install failed"
50 newins rtrmgr/config.boot.sample config.boot.dist
52 newconfd "${FILESDIR}/xorp-confd" xorp
53 newinitd "${FILESDIR}/xorp-initd" xorp
55 dodoc BUGS ERRATA README RELEASE_NOTES TODO VERSION
59 elog "Only users who belong to the xorp group"
60 elog "can run xorpsh in configurational mode."
61 elog "You must create /etc/xorp/config.boot,"
62 elog "you can use the sample /etc/xorp/config.boot.dist"