# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 MY_P="${PN}-linux-port-linux-${PV}" AUTOTOOLS_AUTORECONF=1 inherit autotools-utils DESCRIPTION="Implementation of the Border Gateway Protocol from OpenBSD" HOMEPAGE="http://www.openbgpd.org/ http://wiki.version6.net/openbgpd" SRC_URI="https://github.com/Cougar/openbgpd-linux-port/archive/linux-${PV}.tar.gz -> ${P}.tar.gz" LICENSE="ISC" SLOT="0" KEYWORDS="~amd64" RDEPEND="!net-misc/quagga" DEPEND="${RDEPEND} virtual/yacc" S="${WORKDIR}/${MY_P}" src_prepare() { # respect CFLAGS sed -i -e '/^CFLAGS=/d' configure.ac || die 'sed on configure.ac failed' # add missing include sed -i -e '/#include /a #include ' bgpd/rde.h || die 'sed on bgpd/rde.h failed' # install files into sbin rather than in bin sed -i -e 's/bin_PROGRAMS/sbin_PROGRAMS/' {bgpd,bgpctl}/Makefile.am || die 'sed on bin/sbin in Makefile.am failed' autotools-utils_src_prepare } src_install() { autotools-utils_src_install doman bgpd/*.5 bgpd/*.8 bgpctl/*.8 }